You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add standard deviation formula and enhance PMF/CDF visualizations
- Add SD formula: SD(X) = √(np(1-p))
- PMF: Add mean line (red dashed) and mean±1SD shaded region (orange)
- CDF: Add mean line (red dashed)
- Include legends with calculated values
- Update descriptions to explain visual elements
- Increase figure size to 10x5 for better readability
This helps readers understand the distribution's center and spread visually.
The PMF shows the probability distribution for the number of heads in 10 coin flips. The distribution is symmetric around the mean (np = 5) since p = 0.5.
645
+
The PMF shows the probability distribution for the number of heads in 10 coin flips. The distribution is symmetric around the mean ($np = 5$) since $p = 0.5$. The shaded region shows mean ± 1 standard deviation ($\sqrt{np(1-p)} = \sqrt{2.5} \approx 1.58$).
0 commit comments