Today we used Jupyter to write up code. The code we wrote works out Standard Deviation, and we used it to check our answers. I, however, got all mine wrong, but I know I can catch up fast.
this is the script we used.
import numpy as np
from scipy import stats
a = np.array([100, 111, 123, 124, 132, 132, 154, 160])
print(np.std(a))
print(np.mean(a))
print(stats.mode(a))
print(np.median(a))
print(np.ptp(a))
Comments