Improve descriptive statistics class#3071
Conversation
|
Hi @arthurits, thanks so much for this PR! This is fantastic, and I look forward to merging it in a few minutes!
Note that I'll keep it |
|
Thinking out loud about performance... I'm tempted to make this an Similarly, I'll probably make the overloads private that accept the Also I'm going to remove the parallel code here because parallel processing can be significantly slower for small datasets. If we benchmark it and I'm incorrect, we can add it back |
|
One more thought, rather than passing a flag to switch between population or sample standard deviation, I'll probably make it two functions to mimic python |
|
[sorry about the message bomb here lol] ... thinking more out loud, In researching Microsoft's naming of this stuff, it looks like they favor
|
A few minutes turned into a few hours - what a rabbit hole! I think this ended in a fantastic place though and I'm merging now. Thanks again for your help getting this started @arthurits! There's room for benchmark-driven micro-optimization in the future, but I'm happy where this is. |
|
Hi @swharden. Although it looked quite straightforward, it turns out there were many points to address. |

Purpose:
IEnumerable<T>instead ofdouble.IEnumerable<T>.Average()to compute the data average.StDevare renamed toStdDev.StdDevis modified:asSampleis added to compute both the population and the sample standard deviations.mean.StdErr(standard error of the mean) is added.