Q–Q Plot
Variant: Standard
Made-up data, for demonstration only
Variants
4 types · click one to see it in the frame above- Difference from standard
- The recommended type; use it as a starting point
- Use when
- Check a distribution against a reference distribution
Q–Q Plot is a chart that compares the values you observed with the values you would expect if the data followed an assumed distribution. Most often the reference is the normal distribution. If the points lie along the reference line, the data is close to that distribution. Use it to check whether data is normal, such as the delivery times of 24 orders.
How to read a Q–Q Plot
- The horizontal axis is the value expected if the data were normal. It is calculated from the rank of each point and is measured in standard deviations (from −2.5 to 2.5).
- The vertical axis is the value actually observed. Here it is delivery time in minutes, sorted from smallest to largest.
- The dashed line is the reference line. The example code draws it from the mean and standard deviation of the data: expected value in minutes = mean + standard deviation × the normal quantile on the horizontal axis. A point near the line is therefore near the value expected from a normal distribution. This line is not a regression line.
- The points in this example lie very close to the line. The largest gap between an observed value and the line is about 2.1 minutes, and the correlation between the two axes is about 0.99, so the data looks close to normal.
- A point that leaves the line differs from what was expected. Bends at the left and right ends often mean the tails of the data are heavier or lighter than normal.
When to use it
- You need to check whether data or residuals are normal. A Q–Q plot is useful when you want to see how closely data follows a given distribution.
- You want to compare the distributions of two data sets. A Q–Q plot compares the quantiles of one set with another, and the sample sizes need not be equal. It helps you see shifts in location, changes of scale, symmetry and outliers.
- You want to see every point without choosing bins. A Q–Q plot does not need a bin width like a histogram, but you must choose a reference distribution first.
When not to use it
- The audience is general readers. This chart is harder to read than a histogram and rarely seen outside technical work. For general readers use a Histogram or a Density Plot.
- You want to see the shape directly. A Q–Q plot says how the data differs from normal but does not draw the shape.
- There is very little data. A few points can wander from the line by chance, which makes it hard to judge.
- You want percentile values directly. Use an ECDF Plot.
Common mistakes
1. Reading the reference line as a regression line
The line shows the values expected from the reference distribution after matching its location and scale to the data. It is not computed by regression. Try the "No reference line" variant and you will see how much harder the chart is to read.
2. Overlooking the pattern of the deviation
A curve that bends upward at the right end means a right skew. Try the "Right-skewed data" variant, where the points bend upward away from the line.
3. Reading a few stray points as "not normal" for the whole set
Try the "Highlight outliers" variant. The made-up data lowers the smallest value by 24 minutes and raises the largest by 26 minutes, so both ends depart from the line. Check the cause of stray points in the real data before drawing a conclusion.
4. Choosing the wrong reference distribution
If the data is skewed, try transforming it, for example with a logarithm. If the data is log-normal, the log-transformed values should fall on the line.
5. Not saying which distribution is the reference
In this example the horizontal axis is labelled "Theoretical quantiles (normal)".
Compared with similar charts
| Chart | How it differs | Choose it when |
|---|---|---|
| Q–Q Plot | Points compared with a reference distribution | You check normality or compare two data sets |
| ECDF Plot | A cumulative line | You answer percentile questions |
| Histogram | Bars that count values per range | You want the shape, easy to communicate |
| Density Plot | A smooth curve | You want the shape and to compare groups |
| Box Plot | A box of summary values | You want a compact summary |
Frequently asked questions
Is a Q–Q Plot different from a Probability Plot?
A probability plot is the case where the quantiles of the data are compared with the quantiles of a theoretical distribution. The chart in this example compares the data with the normal distribution.
How many points on the line make it normal?
There is no fixed rule. Look at whether the points follow the line overall and whether the deviation has a pattern (a curve, or stray ends). For a formal decision, use a statistical test alongside it.
What does a deviation at the ends mean?
The tails of the data may be heavier or lighter than the reference distribution, or there may be outliers. Consider the limits of the measurement and check the real data too.
Can I use it with little data?
You can, but it is hard to judge. With a few dozen points, deviation from the line is normal.
References
- Fundamentals of Data Visualization, ch. 8: Visualizing distributions: Empirical cumulative distribution functions and q-q plots · Claus O. Wilke · clauswilke.comUsed to confirm: ECDFs and Q–Q plots
- 1.3.3.24 Quantile-Quantile Plot · NIST/SEMATECH e-Handbook of Statistical Methods · www.itl.nist.govUsed to confirm: the definition of a Q–Q plot and how to read it
Last updated 28 Nov 2026