Statistical Thinking in Python (Part 1)
Justin Bois
Teaching Professor at the California Institute of Technology
import numpy as np
np.mean(dem_share_PA)
45.476417910447765
$$mean = \bar{x} = \frac{1}{n}\sum_{i=1}^{n}x_i$$
np.median(dem_share_UT)
22.469999999999999
Statistical Thinking in Python (Part 1)