python stats code example
Example 1: numpy cumulative distribution function normal
>>> vals = norm.ppf([0.001, 0.5, 0.999])
>>> np.allclose([0.001, 0.5, 0.999], norm.cdf(vals))
True
Example 2: python statistics
# Probably the most convenient set of statistics functions are found
# in the Numpy package
# Basic syntax:
import numpy as np
np.mean(your_list) # Calculate mean
np.median() # Calculate median
np.std() # Calculate standard deviation
np.var() # Calculate variance