Three questions, three uncertainty distributions
Each row is independently peak-scaled to compare widths; heights and shaded areas cannot be compared as probabilities between rows. Thick bars enclose 95% probability in their own distribution.
More data pin down a population mean, not the next member's individual velocity.
Each row is independently peak-scaled to compare widths; heights and shaded areas cannot be compared as probabilities between rows. Thick bars enclose 95% probability in their own distribution.
| Question | Variance (km/s)² | Central 95% interval (km/s) |
|---|
Same colours as above. The vertical line marks n; the asymptotic floors are 0, intrinsic SD, and √(intrinsic² + measurement²).
Member velocities follow Normal(μ, τ²); measurements add independent Normal(0, σ²) noise. Both dispersions are known, the true simulated mean is 2 km/s, and the proper prior is μ ~ Normal(0, 5²).
Let S = τ² + σ². The posterior mean variance is V = 1/[1/25 + n/S], and its mean is m = V Σxi/S. The three distributions all centre on m:
These Normal formulas specify variances, not SDs. The law of total variance separates posterior uncertainty about the mean from the irreducible dispersion of a new observation. As n grows, V approaches zero; the predictive variances retain their scatter terms.
The central 95% intervals are m ± Φ−1(0.975) times the relevant SD. Only the first is a credible interval for the mean. The other two are predictive intervals for different future quantities, not frequentist confidence intervals or measurement error bars on the mean.
The R model and nested 300-star design are retained. The browser uses its own seeded generator; changing n or hiding the observations does not redraw any star. Changing a dispersion transforms the same underlying Normal deviates and deliberately changes the data-generating model. “New realisation” changes the random stream.
For the interval endpoints, the browser uses the Normal 97.5% quantile (1.9599639845…) rather than R's plotted approximation 1.96. An additional learning curve shows analytic SDs, not extra simulated datasets. Selection, membership ambiguity and uncertainty in the dispersions are excluded, as in the R lesson.