You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the jq recipes! jq is very powerful, but horribly underdocumented.
While looking at your standard deviation recipe, I threw the numbers into Google Sheets (and Excel) and your the results did not match - which bothered me. Long story short, your recipe is for the biased standard deviation (and variation) while the Google Sheets and Excel functions calculate the unbiased standard deviation (and variation). While I do not fully appreciate correcting for biases, I am happy to know why the results did not match.
In your existing recipe, I did the following:
changed mean to simply def mean: add / length;
removed pow2 altogether and replaced its call with . * .
simplified your data with just an array of the same numbers
Thanks for the jq recipes! jq is very powerful, but horribly underdocumented.
While looking at your standard deviation recipe, I threw the numbers into Google Sheets (and Excel) and your the results did not match - which bothered me. Long story short, your recipe is for the biased standard deviation (and variation) while the Google Sheets and Excel functions calculate the unbiased standard deviation (and variation). While I do not fully appreciate correcting for biases, I am happy to know why the results did not match.
In your existing recipe, I did the following:
def mean: add / length;
. * .
Here is where I ended up:
The text was updated successfully, but these errors were encountered: