1.22 Summary Statistics

The Normal Distribution

A cartoon normal distribution wearing sunglasses and a bowtie

The Normal Distribution

\[ P(a < x \leq b) = \int_{a}^b \frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} dx\]

Which means…

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel says that the shaded area = 0.95, and a = $-2\sigma$, b = $2\sigma$ are labeled.

The Normal Distribution

\[ P(a < x \leq b) = \int_{a}^b \frac{1}{\sqrt{2\pi}\sigma}e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2} dx\]

Which means…

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel says that the shaded area = 0.84, and a = -3, b = 1.

The Normal Distribution

Usually, we care about:

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel provides the area which is shaded, with a and b marked on the plot.

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel provides the area which is shaded, with a and b marked on the plot.

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel provides the area which is shaded, with a and b marked on the plot.

A plot of the standard normal density, with x-axis broken into $\mu-3\sigma, \mu-2\sigma, \mu-1\sigma, \mu, \mu+1\sigma, \mu+2\sigma, \mu+3\sigma$ and the area between $\mu\pm 2\sigma$ shaded. Text at the top of the plot panel provides the area which is shaded, with a and b marked on the plot.

The Normal Distribution

  • 2 parameters:

    • \(\mu\), the mean/center/top of the curve
    • \(\sigma\), the standard deviation (or \(\sigma^2\), the variance)
  • Symmetric around \(\mu\)

  • Predictable probability based on \(\sigma\)

    • 68.27% of the area is within \(\pm \sigma\)
    • 95.45% of the area is within \(\pm 2\sigma\)
    • 99.73% of the area is within \(\pm 3\sigma\)

This works for every normal distribution, whatever the values of \(\mu\) and \(\sigma\)

Normally Distributed Data

Density plots of 100 samples of male and female heights, with values taken from https://www.andorville.com.au/AdultHeightDistrib.html.

  • Sample mean \(\bar{x} = \frac{\sum_{i=1}^n x_i}{n} = \hat\mu_x\)
    (add up all the observations, divide by the number of observations)

  • Sample standard deviation
    how far away is each observation from the sample mean?
    Square it (so that positive and negative things don’t cancel out),
    add ’em up, divide by \(n\), and then take the square root

Normally Distributed Data

Density plots of 100 samples of male and female heights, with values taken from https://www.andorville.com.au/AdultHeightDistrib.html.

  • Sample mean \(\bar{x} = \frac{\sum_{i=1}^n x_i}{n} = \hat\mu_x\) (164.17, 179.31)
    mean(x, na.rm = T)

  • Sample standard deviation \(\hat{s} = \sqrt{\frac{1}{n}\sum_{i=1}^n (x_i-\mu_x)^2} = \hat\sigma_x\), (6.97, 7.08)
    sd(x, na.rm = T)

sd(x) uses \(\hat{s} = \sqrt{\frac{1}{n-1}\sum_{i=1}^n (x_i-\mu_x)^2}\) (technically more correct)

Standard Normal Distribution

\(z = \frac{x-\bar{x}}{s}\) has a \(N(\mu = 0, \sigma = 1)\) distribution

  • Converting from \(x\) to \(z\) is standardizing \(x\)

  • Makes the Normal distribution easier to write (\(P(a < z \leq b) = \int_{a}^b \frac{1}{\sqrt{2\pi}}e^{-\frac{z^2}{2}} dz\))

  • Unit-less distribution

Robust Summaries & Outliers

Consider Robert Wadlow and Trijntje Keever

Density plots for 100 observations sampled from normal distributions of height for males and females, with the tallest person on record in each category added to the distribution as an outlier.

A painting of Trijntje Keever, circa 1630, height of 2.60 m

A photo of Robert Wadlow (8' 11.1") with his father (5' 11.5")

Figure 1: The mean without these outliers is 179.31 cm (males) and 164.17 cm (females).
With the outliers, it is 180.23 cm (males) and 165.12 cm (females).
Including outliers moves the average height by almost 1cm, with 100 other observations!

Robust Summaries & Outliers

Other options:

Center of the Distribution:

  • median – the middle observation.

Variability in the Distribution:

  • Median absolute Deviation (MAD) - \(\displaystyle\text{med}\left(\left|x_i - \text{med} (x_i) \right|\right)\)

  • Interquartile Range (IQR) - \(p_{75}(x_i) - p_{25}(x_i)\) where \(p_y(x)\) is the \(y\)th percentile of \(x\), \(0 \leq y \leq 100\)