# 3: Numerical Methods for Describing Data Distributions

Source: https://cca.twango.dev/AP-Statistics/chapter-3

# 3: Numerical Methods for Describing Data Distributions

## Center and spread

| Quantity | Definition |
| --- | --- |
| Sample mean $\bar x$ | Average of the sample values |
| Population mean $\mu$ | Average of the population values |
| Median | Middle ordered value; average the middle two for an even number of observations |
| IQR | $Q_3-Q_1$, the spread of the middle 50% |
| Standard deviation | Typical distance from the mean, calculated from squared deviations |
| Variance | Square of the standard deviation |

For a sample of size $n$:

$$
s=\sqrt{\frac{\sum_{i=1}^n(x_i-\bar x)^2}{n-1}}.
$$

For a finite population of size $N$:

$$
\sigma=\sqrt{\frac{\sum_{i=1}^N(x_i-\mu)^2}{N}}.
$$

> [!warning] Review correction
> The original formula labeled $\sqrt{\sum(x-\bar x)^2/(n-1)}$ as population $\sigma$. It is the **sample** standard deviation $s$. Standard deviation is not the arithmetic average of absolute deviations.

## Interpretation

- Mean: “The mean of [value and unit] represents the average [variable].”
- Standard deviation: “Values typically differ from the mean by about [value and unit].”
- Median: about half the observations lie at or below it and half at or above it; ties prevent an exact strict split.
- IQR: “The middle 50% span [value and unit].”

## Box plots

A basic box plot shows the minimum, $Q_1$, median, $Q_3$, and maximum. A **modified** box plot marks outliers separately and extends whiskers to the most extreme non-outliers.

For a continuous density $f$, a median $m$ divides probability equally:

$$
\int_{-\infty}^{m}f(x)\,dx=\int_m^{\infty}f(x)\,dx=\frac12.
$$

If the distribution is supported only on $[a,c]$, those limits can be replaced by $a,c$.

## IQR outlier rule

$$
x<Q_1-1.5\,\mathrm{IQR}\quad\text{or}\quad x>Q_3+1.5\,\mathrm{IQR}.
$$

> [!warning] Review correction
> The lower fence uses **minus**, not the plus sign in the original notes. A point equal to a fence is not outside it. Quartile conventions can differ, so state the convention when borderline values matter.

## Normal curves and the empirical rule

A normal distribution is symmetric and bell shaped with total area 1. Approximately:

$$
P(\mu-\sigma<X<\mu+\sigma)\approx0.68,
$$

$$
P(\mu-2\sigma<X<\mu+2\sigma)\approx0.95,
$$

$$
P(\mu-3\sigma<X<\mu+3\sigma)\approx0.997.
$$

The intervals are centered at **$\mu$**, not necessarily at zero.

## Standardization and percentiles

$$
z=\frac{x-\mu}{\sigma}.
$$

A $z$-score gives the number of standard deviations above or below the mean. The standard normal distribution has mean 0 and standard deviation 1. Standardizing data does not make a nonnormal distribution normal.

The $k$th percentile is a cutoff with approximately $k\%$ at or below it. A high percentile is not always desirable, such as for a race time.

Related: [[chapter-2|Graphical summaries]] · [[chapter-8|Sampling distributions]]
