deviationfrom independance python code example
Example: 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