Ubidots Community

[SOLVED] Variance (x, data_range) - Not Accepting As Valid Expression

Any chance someone could spot something I am doing wrong here? I simply replace variance with median and it works fine.



My goal is to use the variance.

Thank you!

Hi @Backpacker87,

I hope all is well,

Although we do not have a specific expression to calculate the variance, this one is the square of the standard deviation that is within our available functions. With that in mind, you just need to calculate the standard deviation and square it to get the variance.

All the best,

1 Like

@isalogi, thank you very much for your reply. I did as you suggested and it shows valid.

FYI, this does show in the current documentation which is where I came up with it:

Hi @Backpacker87,

Thank you for your response and let us know that this expression was in our documentation. We are going to correct this error and apologies for the confusion.