Statistics Module
Import statistics as st
Command | Description |
---|---|
st.mean(my_list) |
|
st.harmonic_mean(my_list) |
|
st.median(my_list) |
|
st-median_low(mylist) |
|
st.median_high(mylist) |
|
st.mode(mylist) |
|
st.pstdev(mylist, mu=None) |
Population standard deviation, mu = mean, if mu = none, it calculates mean itself |
st.pvariance(mylist, mu=none) |
|
st.stdev(data, xbar=None) |
If full population is used, use pstdev() method |
st.variance(data, xbar=None) |
Returns Variance of the data |