July 2017
Beginner to intermediate
420 pages
10h 56m
English
Let's play around in Python and actually compute these moments and see how you do that. To play around with this, go ahead and open up the Moments.ipynb, and you can follow along with me here.
Let's again create that same normal distribution of random data. Again, we're going to make it centered around zero, with a 0.5 standard deviation and 10,000 data points, and plot that out:
import numpy as np import matplotlib.pyplot as plt vals = np.random.normal(0, 0.5, 10000) plt.hist(vals, 50) plt.show()
So again, we get a randomly generated set of data with a normal distribution around zero.

Now, we find the mean and ...
Read now
Unlock full access