Login
📚 Statistical Inference for Everyone
Chapters ▾

6.6 Quartiles

Given that we are dealing most often with continuous distributions, and thus need to look at areas under the curve from one point to another, it is useful to make a table for a distribution of these areas. Typically we look at the values of the parameter at which we have a given area under the curve from the minimum possible value of the parameter up to to that value. For example, we might be interested in the value of θ (i.e. how skewed the coin is) such that we have an area of 50% from 0 up to θ, shown in Figure 6.8. This point (called the median) represents the point where we would be just as confident (given our data) that the coin is more skewed than this as less skewed.

The posterior density for θ given 3 heads and 9 tails with the region from θ=0 to θ=0.28 shaded; the shaded area is 0.5, marking θ=0.28 as the median of the distribution.
Figure 6.8. Posterior probability distribution for the θ values of the bent coin - the probability that the coin will land heads. The distribution is shown for data 3 heads and 9 tails. The area under the curve from θ=0 (the “all heads” coin) to θ=0.28 is 0.5 - half the area. This represents the median of the distribution.

A table of these values for a distribution can be very useful. For example, consider the table and plot shown in Figure 6.9. Shown are the various points where the area under the curve up to those points is specified. For example, the area under the curve from θ=0 up to θ=0.11 is 5%. This means, given the data of 3 heads and 9 tails, there is a probability P=5% of the coin having less than θ=0.11, or an extreme skew towards tails.

Quartiles The term quartiles refers to the values of the parameter which result in an area of 25%, 50%, or 75%, or one, two, or three quarters of the area.

When we wish to refer to a non-quarter percentage, then we'll call it a percentile.

Percentiles The term percentile refers to the value of the parameter which result in a particulare area under the curve.

For example, we can say from Figure 6.9 that the 99% percentile is 0.59. Thus, it is extremely unlikely to have the coin skewed towards heads more than θ=0.59 given the observation that we flipped 3 heads and 9 tails with this coin.

The posterior density for θ given 3 heads and 9 tails overlaid with dashed vertical quartile lines: 1% at 0.07, 5% at 0.11, 25% at 0.20, 50% at 0.28, 75% at 0.36, 95% at 0.49 and 99% at 0.59.
Figure 6.9. Posterior probability distribution for the θ values of the bent coin - the probability that the coin will land heads. The distribution is shown for data 3 heads and 9 tails. The various quartiles are shown in the plot, and summarized in the accompanying table.
Beta( heads=3, tails=9)
ValueArea
0.070.01
0.110.05
0.140.10
0.200.25
0.280.50
0.360.75
0.440.90
0.490.95
0.590.99

Adapted from Statistical Inference for Everyone, by Brian Blais (Bryant University), licensed under CC BY-SA 4.0 (dual-licensed under the GNU FDL 1.2 or later; this adaptation uses the CC BY-SA grant). Changes were made; this adaptation is distributed under the same license. License: CC-BY-SA-4.0.