scipy.stats.variation
The coefficient of variation – Standard deviation divided by the mean.
Python3
# importing the stats module from scipy import stats as st # sample input array array = [[ 2 , 3 ], [ 3 , 1 ], [ 1 , 3 ],\ [ 3 , 3 ], [ 4 , 2 ], [ 4 , 4 ],\ [ 1 , 2 ], [ 5 , 6 ]] # calling the function print (st.variation(array, ddof = 1 )) |
Output:
[0.5070393 0.50395263]
SciPy – Stats
The scipy.stats is the SciPy sub-package. It is mainly used for probabilistic distributions and statistical operations. There is a wide range of probability functions.
There are three classes:
Class | Description |
rv_continuous | For continuous random variables, we can create specialized distribution subclasses and instances. |
rv_discrete | For discrete random variables, we can create specialized distribution subclasses and instances. |
rv_histogram | generate specific distribution histograms. |
Contact Us