Skip to content

Statistics Review

This review pulls together everything from the Statistics section. Use it to test yourself across all four areas before moving on.

  • Population is everyone of interest; sample is who you measured. Parameter describes a population, statistic describes a sample.
  • Descriptive statistics summarizes data you have; inferential statistics generalizes beyond it with stated uncertainty.
  • Bias is worse than small size. A big biased sample beats nothing but loses to a small fair one.
  • Categorical data records groups; quantitative records amounts. Quantitative splits into discrete (countable) and continuous (measurable).
  • Four levels: nominal (names), ordinal (ordered), interval (equal gaps, no true zero), ratio (true zero, ratios valid).
  • Bar charts have gaps for categories; histogram bars touch for a continuum.
  • xˉ=xn\bar{x} = \frac{\sum x}{n}. The mean is the balance point and is sensitive to outliers.
  • The median is positional and resistant to outliers. The mode is the only center for categorical data.
  • Skew is named for the tail. Right-skewed means mean > median.
  • s=(xxˉ)2n1s = \sqrt{\frac{\sum(x-\bar{x})^2}{n-1}}. Deviations always sum to zero, which is why we square them.
  • Divide by n1n-1 for samples (Bessel’s correction) because deviations from xˉ\bar{x} run small.
  • Five-number summary: min, Q1, median, Q3, max. IQR=Q3Q1IQR = Q_3 - Q_1.
  • Outlier fences: Q11.5IQRQ_1 - 1.5 \, IQR and Q3+1.5IQRQ_3 + 1.5 \, IQR.
  • Pair mean with standard deviation, or median with IQR.
  • P(A)=n(A)n(S)P(A) = \frac{n(A)}{n(S)} when outcomes are equally likely, and 0P(A)10 \leq P(A) \leq 1.
  • P(A)=1P(A)P(A') = 1 - P(A). Use the complement for “at least one.”
  • Addition: P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B).
  • Multiplication: P(AB)=P(A)P(BA)P(A \cap B) = P(A)P(B \mid A), simplifying to P(A)P(B)P(A)P(B) when independent.
  • Mutually exclusive means both can’t happen; independent means one doesn’t affect the other. These are nearly opposites.
  • Conditional: P(AB)=P(AB)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}. Conditioning changes the denominator.
  • P(AB)P(BA)P(A \mid B) \neq P(B \mid A). Confusing them is the prosecutor’s fallacy.
  • Bayes: P(AB)=P(BA)P(A)P(B)P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}. Posterior ∝ likelihood × prior.
  • For rare conditions the base rate dominates, so a positive test often means low probability of disease.
  • E(X)=xP(X=x)E(X) = \sum x \, P(X=x), the long-run average. It need not be a possible outcome.
  • Var(X)=E(X2)[E(X)]2\text{Var}(X) = E(X^2) - [E(X)]^2 is the usual shortcut.
  • Binomial requires BINS: binary, independent, fixed nn, same pp. Then P(X=k)=(nk)pk(1p)nkP(X=k) = \binom{n}{k}p^k(1-p)^{n-k}, with μ=np\mu = np and σ=np(1p)\sigma = \sqrt{np(1-p)}.
  • Normal distributions are symmetric with mean = median = mode. μ\mu shifts, σ\sigma stretches. Probability is area, so exact values have probability zero.
  • z=xμσz = \frac{x - \mu}{\sigma}, dimensionless, so it compares across scales.
  • Empirical rule: 68-95-99.7 within 1, 2, 3 standard deviations. Requires approximate normality.
  • Income, waiting times, and stock returns are not normal.
  • CLT: sample means are approximately normal for large nn whatever the population shape, with μxˉ=μ\mu_{\bar{x}} = \mu and SE=σnSE = \frac{\sigma}{\sqrt{n}}.
  • Quadruple nn to halve SESE. Precision is expensive.
  • Confidence interval: xˉ±zσn\bar{x} \pm z^* \frac{\sigma}{\sqrt{n}}, with z=1.96z^* = 1.96 for 95%.
  • “95% confident” describes the method’s long-run success, not the probability for one interval.
  • Higher confidence gives a wider interval. Use the t-distribution when σ\sigma is unknown.
  • H0H_0 carries the equality and concerns parameters, never statistics.
  • pαp \leq \alpha rejects. Otherwise fail to reject, which never means “accept.”
  • p-value =P(data this extremeH0)= P(\text{data this extreme} \mid H_0). It is not P(H0data)P(H_0 \mid \text{data}).
  • Type I = false positive (rate α\alpha); Type II = false negative (rate β\beta). Power =1β= 1 - \beta.
  • Significance ≠ importance. Large samples make tiny effects significant.
  • rr measures linear association only; r2r^2 is the proportion of variation explained.
  • Correlation admits reverse causation, confounding, coincidence, and selection effects.

Example 1: Center and spread.

Data: 6, 9, 9, 12, 14

Mean: 505=10\frac{50}{5} = 10. Median: 9. Mode: 9.

Squared deviations: 16,1,1,4,1616, 1, 1, 4, 16, summing to 38.

s=384=9.53.08s = \sqrt{\frac{38}{4}} = \sqrt{9.5} \approx 3.08

Example 2: Outlier check.

Data with Q1=18Q_1 = 18, Q3=30Q_3 = 30. Is 50 an outlier?

IQR=12IQR = 12, so the upper fence is 30+1.5(12)=4830 + 1.5(12) = 48. Since 50>4850 > 48, yes.

Example 3: Complement rule.

Five dice are rolled. Find P(at least one 4)P(\text{at least one } 4).

1(56)5=1312577760.5981 - \left(\frac{5}{6}\right)^5 = 1 - \frac{3125}{7776} \approx 0.598

Example 4: Conditional probability.

Of 300 people, 120 exercise and 45 of those sleep well. Find P(sleeps wellexercises)P(\text{sleeps well} \mid \text{exercises}).

45120=0.375\frac{45}{120} = 0.375

Example 5: Bayes by counts.

Prevalence 2%, sensitivity 95%, specificity 90%. Find the positive predictive value.

Per 10,000: diseased 200 → 190 true positives. Healthy 9,800 → 980 false positives.

190190+980=19011700.162\frac{190}{190 + 980} = \frac{190}{1170} \approx 0.162

About 16%, despite a good test, because healthy people vastly outnumber sick ones.

Example 6: Expected value.

A game pays 8 dollars with probability 0.25 and loses 2 dollars otherwise. Find EE.

E=8(0.25)+(2)(0.75)=21.5=+0.50E = 8(0.25) + (-2)(0.75) = 2 - 1.5 = +0.50

Example 7: Binomial.

n=8n = 8, p=0.5p = 0.5. Find P(X=6)P(X = 6).

(86)(0.5)8=28×1256=282560.109\binom{8}{6}(0.5)^8 = 28 \times \frac{1}{256} = \frac{28}{256} \approx 0.109

Example 8: Z-score comparison.

Score 92 where μ=80,σ=6\mu = 80, \sigma = 6 versus score 65 where μ=50,σ=10\mu = 50, \sigma = 10.

z1=126=2.0z2=1510=1.5z_1 = \frac{12}{6} = 2.0 \qquad z_2 = \frac{15}{10} = 1.5

The first is stronger relative to its distribution.

Example 9: Standard error.

σ=18\sigma = 18, n=81n = 81.

SE=189=2SE = \frac{18}{9} = 2

Example 10: Confidence interval.

xˉ=44\bar{x} = 44, σ=12\sigma = 12, n=144n = 144, 95% confidence.

SE=1212=1,ME=1.96(42.04,  45.96)SE = \frac{12}{12} = 1, \quad ME = 1.96 \quad \Rightarrow \quad (42.04, \; 45.96)

Example 11: Hypothesis test.

H0:μ=20H_0: \mu = 20, xˉ=22.4\bar{x} = 22.4, σ=8\sigma = 8, n=100n = 100, two-tailed at α=0.05\alpha = 0.05.

z=22.4200.8=3.0z = \frac{22.4 - 20}{0.8} = 3.0

Two-tailed p-value 0.00270.05\approx 0.0027 \leq 0.05, so reject H0H_0.

Example 12: Correlation.

r=0.7r = -0.7. Direction is negative, strength is strong, and r2=0.49r^2 = 0.49, so 49% of variation is explained.

A value computed from a sample, such as the mean of 200 survey responses, is called what?
Zip codes stored as integers are what type of data?
Find the median of 8, 3, 12, 7, 15, 6.
A distribution has a mean of 95 and a median of 72. What shape is it?
Why does the sample standard deviation divide by n − 1?
With Q1 = 40 and Q3 = 60, which value is an outlier by the 1.5 x IQR rule?
If P(A) = 0.7, what is P(not A)?
A card is drawn from a standard deck. What is P(face card or club)?
Two events cannot both occur. What are they called?
A disease affects 1 in 500 people, and a test is 98% accurate in both directions. A positive result implies roughly what probability of disease?
A game pays 15 dollars with probability 0.2 and loses 3 dollars otherwise. What is the expected value?
Which condition is required for a binomial distribution?
For a binomial variable with n = 50 and p = 0.3, what is the standard deviation?
A value has a z-score of −2.5. What does this mean?
According to the empirical rule, about what percentage of a normal distribution lies within one standard deviation of the mean?
What does the Central Limit Theorem guarantee?
A population has sigma = 20. For samples of size 100, what is the standard error?
What does a 95% confidence interval actually mean?
Rejecting a null hypothesis that is actually true is which kind of error?
Ice cream sales and drowning deaths are strongly correlated. What does this demonstrate?