Normal distribution & z-score
About this app
Bell curve N(μ,σ): drag μ and σ, drag the threshold x directly → z-score and tail probability P(X>x) live, with shaded area. The 68-95-99.7 rule as bands; presets for US male height with "taller than LeBron/Yao Ming?".
The idea
A normal distribution N(μ, σ) is fixed by two numbers: the mean μ, where the bell peaks, and the standard deviation σ, which sets its width. The total area under the curve is always 1, and probabilities are areas: P(X > x) is the area to the right of a threshold x. The z-score z = (x − μ) / σ counts how many standard deviations x lies from the mean, which makes values from different normal distributions comparable.
What you see
The app draws the density curve with a threshold line that you move with a slider or by dragging it on the curve. The area to its right is shaded, and a panel shows the z-score together with P(X > x) and P(X < x). You can switch on the bands of the 68-95-99.7 rule. The “Body height” preset turns the abstract curve into the height distribution of adult US men, and a sentence translates the area into odds such as “1 in n”.
Things to try
Start with the standard normal and set the threshold to z = 1, 2 and 3: the right tail shrinks from about 16 % to roughly 2.3 % and 0.13 %. Then switch to body height and place the threshold at the height of a professional basketball player. Change σ slightly and notice how much a small change in spread moves the probability far out in the tail, while the centre barely changes.
Frequently asked questions
- How do you calculate a z-score?
- The z-score is z = (x − μ) / σ: subtract the mean μ from the value x and divide by the standard deviation σ. A z-score of 2 means x lies two standard deviations above the mean. Negative z-scores lie below the mean.
- What is the 68-95-99.7 rule?
- For a normal distribution, about 68 % of values fall within μ ± 1σ, about 95 % within μ ± 2σ and about 99.7 % within μ ± 3σ. Values beyond three standard deviations are correspondingly rare. The rule gives a quick estimate without a table.
- Why is the area under the bell curve a probability?
- The bell curve is a probability density. The probability that X falls in a range is the integral of the density over that range, which is the area underneath. The total area is 1 because some value is certain to occur.
- What can I adjust in this app?
- You set μ, σ and the threshold x and see the z-score, the right and left tail probabilities and the shaded area. The 68-95-99.7 bands can be switched on. The body height preset uses realistic values for US men.
Subject: Data & decisions
More from Data & decisions
- Anchoring effect
- Benford's law
- Berkson's paradox
- Cherry-picking: base period
- Cherry-picking: base period 2.0
- The three-cowboy duel (truel)
- The three-cowboy duel 2.0
- The three means
A VisuApp by heyprof: interactive, free in your browser, no sign-up. What is a VisuApp? · All apps