Commit Graph
6 Commits
Author SHA1 Message Date
Kevin Johnson a159e5cf99 ENH #164 #162 rolling cont inc/dec check for increasing decreasing DOC update 2020-11-24 10:47:42 -08:00
Kevin Johnson b567e35c7b STY #142 formatting update MAINT refactor minor code 2020-10-05 14:55:50 -07:00
James Sawyer 99973f3611 formatting fixes, PEP8 etc 2020-10-01 16:18:01 +01:00
Kevin Johnson e643a9847d ENH var and stdev ddof addition MAINT refactoring 2020-07-25 11:51:21 -07:00
YuvalWeinandGitHub 4cf1d86996 Update stdev.py
Same as variance explanation, since std = sqrt(variance):

When calculation variance we can divide the calculation by N, or by N-1.
When calculating sample variance we divide by N-1 (like in the current code).(https://towardsdatascience.com/why-sample-variance-is-divided-by-n-1-89821b83ef6d)
Sometimes We want to divide by N like the basis formula, to calculate population variance. (https://en.wikipedia.org/wiki/Variance#Discrete_random_variable)
For me its useful to add another parameter that will make it possible to calculate both of then using one function.
Is it useful for you?
2020-07-23 10:26:04 +03:00
Kevin Johnson d79562b75a statistics refactor 2019-05-20 08:14:17 -07:00