Statistics
How spread out are the marks?
The Case. Two classes both averaged 70% on the maths test โ so they did equally well, right? Not so fast. In one class nearly everyone scored around 70; in the other, half aced it and half flopped. The average hides how spread out the marks were โ which is exactly why exam boards never look at the average alone.
Your tools. numpy finds the middle with .mean() and np.median(), and the spread with .std() and np.percentile.
Investigate. Press Run. The histogram shows the shape; the dashed line is the average.
- Is the mean above or below the median? A gap means a few outliers pulled it.
- Change the marks and watch the spread change.
This case is part of the Family plan
Unlock every 12โ15 case and the full AI, machine-learning, and deep-learning path โ one subscription for the whole family.
Need a hint?
std (standard deviation) is the typical distance from the average. Small std = everyone scored similarly.