Worked example
Example: Illustrative nine readings with a high value. The inputs, in the units selected above:
| Input | Value |
|---|---|
| Number of values used (3–12) | 9.0000 - |
| Value 1 | 12.100 - |
| Value 2 | 14.500 - |
| Value 3 | 11.800 - |
| Value 4 | 13.200 - |
| Value 5 | 19.700 - |
| Value 6 | 12.900 - |
| Value 7 | 13.600 - |
| Value 8 | 12.400 - |
| Value 9 | 14.000 - |
| Value 10 | 0 - |
| Value 11 | 0 - |
| Value 12 | 0 - |
Applying the formula below gives:
| Result | Value |
|---|---|
| Minimum | 11.800 |
| First quartile | 12.400 |
| Median | 13.200 |
| Third quartile | 14.000 |
| Maximum | 19.700 |
| Interquartile range | 1.6000 |
| Lower fence Q₁ − 1.5 IQR | 10.000 |
| Upper fence Q₃ + 1.5 IQR | 16.400 |
| Values outside the fences | 1.0000 |
Open this example in the calculator and change any input.
Formula
\(Q(p) = x_{(\lfloor h\rfloor)} + (h - \lfloor h\rfloor)(x_{(\lfloor h\rfloor+1)} - x_{(\lfloor h\rfloor)}), \; h = (n-1)p, \quad F = Q_1 - 1.5\,IQR,\; Q_3 + 1.5\,IQR\)
Variables
| Symbol | Meaning | SI unit |
|---|---|---|
| \(n\) | Number of values used (3–12) | - |
| \(x_{1}\) | Value 1 | - |
| \(x_{2}\) | Value 2 | - |
| \(x_{3}\) | Value 3 | - |
| \(x_{4}\) | Value 4 | - |
| \(x_{5}\) | Value 5 | - |
| \(x_{6}\) | Value 6 | - |
| \(x_{7}\) | Value 7 | - |
| \(x_{8}\) | Value 8 | - |
| \(x_{9}\) | Value 9 | - |
| \(x_{10}\) | Value 10 | - |
| \(x_{11}\) | Value 11 | - |
| \(x_{12}\) | Value 12 | - |
| \(x_{min}\) | Minimum | - |
| \(Q_1\) | First quartile | - |
| \(\tilde x\) | Median | - |
| \(Q_3\) | Third quartile | - |
| \(x_{max}\) | Maximum | - |
| \(IQR\) | Interquartile range | - |
| \(F_L\) | Lower fence Q₁ − 1.5 IQR | - |
| \(F_U\) | Upper fence Q₃ + 1.5 IQR | - |
| \(n_{out}\) | Values outside the fences | - |
Method and standards
Quartiles.
Where it is used
- Summarising test data robustly.
- Screening readings for outliers.
Common mistakes
- Comparing quartiles computed by different methods.
- Deleting flagged values without investigation.
Assumptions and limits
- Up to 12 values; quantile type 7.
References
- Sample quantiles
- type 7
Questions and answers
Why does my software give a different Q1?
There are nine common quantile definitions; this uses the linear interpolation one (type 7).
Is a value outside the fences an error?
Not necessarily: it is unusual for the rest of the data and worth checking.
What do the defaults represent?
Nine illustrative readings with one high value at 19.7.
Method and article reviewed by FireCAD engineering on 17 November 2026. Every result is checked against an independent calculation on each release: how we verify our calculators.
Sources
Hyndman and Fan, Sample Quantiles in Statistical Packages, Am. Stat. 50 (1996)