Statistics · Statistics · Quick reference

Statistics1 · 2 · COLLEGE

Grades 10–12 · College6 pages

Data, displays, center & spread, normal curve, probability, distributions, CLT, intervals, tests, power, regression, z and t tables.

1Data2Displays3Center & spread4Normal5Probability6Random variables7Sampling dist.8Intervals9Tests10Errors & power11Regression12Tests & tables

1Data & Samplingwho you ask decides what you can say

Population
every individual you want to describe
Sample
the part you actually measure
Parameter
a number about the population: μ, σ, p
Statistic
a number from the sample: x̄, s, p̂
Variable
a trait recorded for each individual

P goes with P, S goes with S

Parameter ↔ Population (Greek μ, σ); Statistic ↔ Sample (x̄, s).

Types of variables
TypeKindExample
Categoricalnominaleye color
ordinalshirt size
Quantitativediscrete (counts)siblings
continuousheight
Levels of measurement
LevelAddsExample
Nominallabelsjersey color
Ordinalorderfinishing place
Intervalequal gaps, no true 0°F, year
Ratiotrue zero; ratios workweight, time

NOIR

French for black: Nominal, Ordinal, Interval, Ratio, each adding one power.

Sampling methods
MethodHow (school of 1,200)
SRSevery set of 60 names equally likely
Stratifiedrandom 15 from each grade
Cluster2 random homerooms, everyone in them
Systematicrandom start, then every 20th name
Convenience ✗whoever is in the cafeteria
Voluntary ✗whoever answers a web poll

Strata: some from all · Clusters: all from some

Stratified: some from every group. Cluster: all of some groups.

Sources of bias

  • Undercoverage: some can never be chosen
  • Nonresponse: chosen people do not answer
  • Response bias: wording steers answers
  • A bigger biased sample is still biased.

Observational study vs experiment

Observational: watch only → association. Experiment: assign treatments → cause and effect. A confounding variable tied to both x and y blurs their link; random assignment spreads it out.

Principles of experimental design

  • Control: a control or placebo group
  • Randomize: chance assigns treatments
  • Replicate: enough subjects per group
  • Block similar subjects; double-blind when possible

Design it Worked

40 tomato plants: random 20 get A, 20 get B; compare yields

2Displaying Datagraph first, then compute

146211101520253035404570minutes to finish a puzzle
Histogram: bars touch; a class holds its left end (20 ≤ x < 25).
1257882012224573041key: 2 | 4 = 24 minutes
Stem-and-leaf keeps every value.
246810books read over the summer
Dot plot: one dot per student (10 students).
41 outlierQ1 18Q3 25median 2212301015202530354045
Box plot: whiskers stop at the last non-outlier.
Pick the display
DataUse
Categoricalbar chart (gaps), pie chart
Quantitativedot, stem, histogram, box
Two categoricaltwo-way table
Two quantitativescatterplot (§11)
skewed leftmean < mediansymmetricmean ≈ medianskewed rightmean > median

The tail tells the skew

Skew is named for the long tail, not the peak, and the mean is pulled toward the tail.

SOCS

Describe a distribution by Shape, Outliers, Center and Spread, in context.

Frequency language

  • relative frequency = countn: class 20–25 has 6/15 = 40%
  • cumulative: count at or below a value
StatisticsStatistics · Statistics · continued

3Center & Spreadwhere the data sit and how far they wander

The 15 puzzle times (§2)
MeasureRulePuzzle times
Mean x̄Σxn33415 ≈ 22.27
Medianmiddle value (n odd) or mean of the middle two8th value = 22
Modemost frequent22
Rangemax − min41 − 12 = 29
IQRQ3 − Q125 − 18 = 7
SD ssee formula≈ 6.93

Sample standard deviation

Population: σ = √(Σ(x − μ)²N). Variance = SD².

s = √(Σ(x − x̄)²n − 1)

Mean from a frequency table Worked

pets: 1, 2, 3 with frequencies 4, 5, 1
x̄ = 1·4 + 2·5 + 3·110 = 1710 = 1.7Σxf ÷ Σf

SD by hand: 2, 4, 4, 5, 10 Worked

x̄ = 255 = 5; deviations −3, −1, −1, 0, 5
squares 9 + 1 + 1 + 0 + 25 = 36sum = 0 check ✓ on deviations
s² = 364 = 9 → s = 3n − 1 = 4

Divide by n − 1 for a sample

x̄ used up one degree of freedom. Whole population known? Divide by N.

Quartiles & five-number summary

  • Q1, Q3 = medians of the lower and upper halves (median left out when n is odd)
  • Puzzle times: 12, 18, 22, 25, 41
  • p-th percentile: p% of values at or below it

1.5 × IQR outlier rule Worked

IQR = 25 − 18 = 7; 1.5 × 7 = 10.5
fences 18 − 10.5 = 7.5 and 25 + 10.5 = 35.5
41 > 35.5 → 41 is an outlier

Resistant or not?

  • Resistant: median, IQR. Not: mean, SD, range.
  • Drop the 41: mean 22.27 → 20.93; median 22 → 21.5
  • Skewed → median & IQR; symmetric → mean & SD

Median stands firm, mean gets pulled

An extreme value drags the mean; the median barely moves.

Shifting and scaling data

  • Add c to every value: center + c, spread unchanged.
  • Multiply by k: center × k, spread × |k|.
  • EX°C to °F (× 1.8, + 32): mean 20 °C → 68 °F; SD 5 °C → 9 °F

Weighted mean Worked

tests 60% (avg 85), homework 40% (avg 95)
0.6 · 85 + 0.4 · 95 = 51 + 38 = 89

4z-Scores & the Normal Curvebell-shaped, symmetric, set by μ and σ

34%34%13.5%13.5%2.35%2.35%−3σ90−2σ110−1σ130μ150+1σ170+2σ190+3σ21068%95%99.7%
150 g180 g0.9332
P(X < 180) = Φ(1.5)
1301700.6827
P(130 < X < 170)

z-score

x = μ + zσ. Sample: z = x − x̄s.

z = x − μσ

z counts σ-steps from home

z = 2: two SDs above the mean. Unitless, so z compares apples to oranges.

Compare with z Worked

Quiz A: 85 (μ 75, σ 5) → z = 2.0
Quiz B: 90 (μ 80, σ 8) → z = 1.25
A is the stronger scorerelative standing

Empirical rule (68-95-99.7)

  • EXapples μ = 150 g, σ = 20 g: 95% weigh 110–190 g; 2.5% weigh more than 190 g.

Normal calculations (apples) Worked

P(X < 180): z = 180 − 15020 = 1.5 → 0.9332table
P(X > 180) = 1 − 0.9332 = 0.0668complement
P(130 < X < 170) = Φ(1) − Φ(−1) = 0.6827
90th percentile: z = 1.282 → 150 + 1.282 · 20 ≈ 175.6 ginverse

Reading Φ(z) (area to the left)

  • right of z: 1 − Φ(z) · between: Φ(b) − Φ(a)
  • Φ(−z) = 1 − Φ(z); table in §12

Chebyshev's rule (any shape)

At least 1 − 1k² of values lie within k SDs. k = 2: at least 75%; k = 3: at least 88.9%.

Normal approximation to the binomial

If np ≥ 10 and n(1 − p) ≥ 10, use μ = np, σ = √(np(1 − p)).

StatisticsStatistics · Statistics · continued

5Probability & Counting0 = impossible · 1 = certain

Sample space
all possible outcomes
Event
a set of outcomes
P(A)
favorabletotal when outcomes are equally likely
Complement
Aᶜ: A does not happen
HeartsFace cards1039neither 30
52 cards: 13 hearts, 12 face cards, 3 both. P(heart or face) = 13 + 12 − 352 = 2252 ≈ 0.423.
Probability rules
RuleFormula
ComplementP(Aᶜ) = 1 − P(A)
AdditionP(A or B) = P(A) + P(B) − P(A and B)
DisjointP(A and B) = 0 (dependent)
MultiplicationP(A and B) = P(A) · P(B | A)
IndependentP(B | A) = P(B)
ConditionalP(B | A) = P(A and B)P(A)

OR adds, AND multiplies

Or: add, minus the overlap. And: multiply (use P(B | A) if dependent).

At least one Worked

P(at least one 6 in 4 rolls) = 1 − (56)⁴complement
= 1 − 0.482 = 0.518
Two-way table: 200 library visitors
FictionNonfictionTotal
Adult7050120
Teen602080
Total13070200

Conditional from the table Worked

P(teen | fiction) = 60130 ≈ 0.462row ÷ column total
P(teen) = 80200 = 0.40 ≠ 0.462 → not independent

Counting

  • Multiply choices: 3 shirts × 4 pants = 12 outfits; 4-digit PIN: 10⁴ = 10,000
  • n! = n(n − 1)⋯1; 0! = 1; 5! = 120
  • Permutations (order matters): ₙPᵣ = n!(n − r)!; 1st–2nd–3rd among 8 runners: ₈P₃ = 336
  • Combinations (order ignored): ₙCᵣ = n!r!(n − r)!; 3-person committee from 8: ₈C₃ = 56

Permutation = Position · Combination = Committee

Swapping two picks makes a new result (gold vs silver)? Permutation. Not (a committee)? Combination.

0.6A0.02D→ 0.0120.98ok→ 0.5880.4B0.05D→ 0.020.95ok→ 0.38
Machine A makes 60% of bolts (2% defective); B makes 40% (5% defective).

Bayes' rule from the tree Worked

P(D) = 0.6 · 0.02 + 0.4 · 0.05 = 0.012 + 0.020 = 0.032all D paths
P(A | D) = 0.0120.032 = 0.375A path ÷ all D

Wanted path over all paths

P(A | D) = the A-then-D path ÷ every path ending in D.

6Discrete Random Variablesa number decided by chance

Spinner game (P’s sum to 1)
x (prize $)025
P(x)0.50.30.2

Mean & SD of X Worked

μ = Σx·P(x) = 0 + 0.6 + 1.0 = $1.60expected value
σ² = Σ(x − μ)²P(x) = 1.28 + 0.048 + 2.312 = 3.64
σ = √3.64 ≈ $1.91

Combining random variables

  • E(X ± Y) = E(X) ± E(Y); E(a + bX) = a + bμ
  • independent: Var(X ± Y) = Var(X) + Var(Y)
  • SD(a + bX) = |b|σ

Variances always add

Independent X, Y: Var(X − Y) = Var X + Var Y. Add variances, never SDs.

BINS

Binary outcomes, Independent trials, fixed Number, Same p.

Binomial

μ = np, σ = √(np(1 − p))

P(X = k) = ₙCₖ pᵏ(1 − p)ⁿ⁻ᵏ

0.00.10.20.30.40123456789100.2335makes in 10 free throws, p = 0.7

Free throws, p = 0.7, n = 10 Worked

P(8) = ₁₀C₈(0.7)⁸(0.3)² ≈ 0.2335
P(X ≥ 9) = P(9) + P(10) ≈ 0.1493
μ = 10 · 0.7 = 7; σ = √2.1 ≈ 1.45

Geometric (trials until the first success)

P(X = k) = (1 − p)ᵏ⁻¹p; μ = 1p

EXfirst 6 on the 3rd roll: (56)²(16) = 25216 ≈ 0.116; mean wait 6 rolls

Poisson (count in a fixed interval)

P(X = k) = e−λλkk!; mean = variance = λ

EXλ = 3 online orders per hour: P(2) = e−3 · 92 ≈ 0.224; P(0) ≈ 0.0498

Continuous random variables

Probability = area under a density curve, so P(X = a) = 0.

EXuniform on 0 to 10: P(2 < X < 5) = 310 = 0.3

StatisticsStatistics · Statistics · continued

7Sampling Distributions & the CLTstatistics vary from sample to sample, predictably

Sampling distribution
the distribution of a statistic over all samples of size n
Standard error (SE)
the SD of a sampling distribution
Unbiased
the statistic is centered on the parameter
Two sampling distributions
StatisticCenterSENormal when
x̄μσ√npopulation normal, or n ≥ 30 (CLT)
p̂p√(p(1 − p)/n)np ≥ 10 and n(1 − p) ≥ 10

10% condition

When sampling without replacement, keep n ≤ 10% of the population so the SE formulas hold.

SD or SE?

SD describes individuals; SE describes a statistic. SE = SD/√n is always smaller.

μpopulationx̄, n = 4x̄, n = 25
Skewed population (dashed). Means of samples pile up around μ, narrower and more normal as n grows.

Central Limit Theorem

For a large enough random sample (rule of thumb n ≥ 30), x̄ is approximately normal with mean μ and SE σ/√n, whatever the population shape.

Thirty makes it normal

n ≥ 30 lets the CLT take over for means; strongly skewed populations may need more.

Difference of two means

x̄₁ − x̄₂ centers on μ₁ − μ₂ with SE √(σ₁²n₁ + σ₂²n₂); independent samples.

√n lives downstairs

SE = σ/√n: 4 times the sample halves the spread. n = 25 → SE = 20/5 = 4; n = 100 → SE = 20/10 = 2.

Mean of 25 apples Worked

μ = 150, σ = 20 → SE = 20√25 = 4
P(x̄ > 156): z = 156 − 1504 = 1.5 → 1 − 0.9332 = 0.0668

p̂ with p = 0.3, n = 100 Worked

np = 30, n(1 − p) = 70: both ≥ 10 ✓
SE = √(0.3 · 0.7100) ≈ 0.0458
P(p̂ > 0.39): z = 0.090.0458 ≈ 1.96 → 0.025

Bias vs variability

  • Bias: aim is off (fix the method).
  • Variability: shots scatter (fix with a bigger sample).

8Confidence Intervalsestimate ± margin of error

Every interval

Margin of error ME = critical value × SE.

estimate ± (critical value)(SE)

Common intervals
ParameterInterval
μ (σ known)x̄ ± z*σ√n
μx̄ ± t*s√n, df = n − 1
pp̂ ± z*√(p̂(1 − p̂)n)
μ₁ − μ₂(x̄₁ − x̄₂) ± t*√(s₁²n₁ + s₂²n₂)
p₁ − p₂(p̂₁ − p̂₂) ± z*√(p̂₁q̂₁n₁ + p̂₂q̂₂n₂)
μd (paired)d̄ ± t*sd√n, df = n − 1

Sample size for a proportion Worked

ME 0.03 at 95%, no guess for p → use 0.5
n = (1.960.03)² (0.5)(0.5) = 1,067.1 → 1,068always round up

t interval for a mean Worked

n = 16, x̄ = 52.0, s = 8 → SE = 84 = 2
95%, df 15: t* = 2.131 → ME = 4.26t table
(47.74, 56.26)

Interval for a proportion Worked

240 of 400 like a new recipe: p̂ = 0.600
SE = √(0.6 · 0.4400) ≈ 0.0245; ME = 1.96 · 0.0245 ≈ 0.048
95% CI (0.552, 0.648)

Two-sample t interval Worked

A: x̄ = 2.4 kg, s = 0.3; B: x̄ = 2.1, s = 0.4; n = 10 each
SE = √(0.0910 + 0.1610) ≈ 0.158; df ≈ 16.7 → t* ≈ 2.11 (course convention: df = 9, t* = 2.262)software df
0.3 ± 0.33 → (−0.03, 0.63): 0 is inside
true μmiss
20 simulated 95% intervals: 19 capture μ; one (red, dashed) misses.

What 95% confidence means

If we repeated the sampling many times, about 95% of the intervals built this way would capture the true parameter. The 95% describes the method, not one interval.

More confidence, wider net; more data, tighter net

Raise the confidence level → bigger critical value → wider interval. Quadruple n → half the margin of error.

StatisticsStatistics · Statistics · continued

9Hypothesis Testsis the evidence strong enough to doubt H₀?

The pieces

  • H₀ (null): no effect, uses =. Hₐ (alternative): <, > or ≠.
  • α: significance level, often 0.05.
  • p-value: chance of a result at least this extreme if H₀ is true.
  • p ≤ α → reject H₀. p > α → fail to reject H₀ (never “accept”).

If p is low, the null must go

Traditional: small p = data rare if H₀ were true, so reject H₀.

Claim · Check · Compute · Conclude

Hypotheses · conditions · statistic and p-value · conclusion in context.

−2.202.2p ≈ 0.038 (both tails)
Test statistics
TestStatisticdfTestStatisticdf
1 mean, σ knownz = x̄ − μ₀σ/√n—2 proportionsz = p̂₁ − p̂₂√(p̂q̂(1/n₁ + 1/n₂)), pooled p̂—
1 meant = x̄ − μ₀s/√nn − 1χ²Σ(O − E)²Ek − 1; (r − 1)(c − 1)
1 proportionz = p̂ − p₀√(p₀q₀/n)—ANOVAF = MSBMSWk − 1, N − k
2 meanst = x̄₁ − x̄₂√(s₁²/n₁ + s₂²/n₂)software*slopet = bSEbn − 2
pairedt = d̄sd/√nn − 1* or min(n₁, n₂) − 1 (safe)

One-sample t (bottle filler) Worked

H₀: μ = 500 mL vs ≠; n = 25, x̄ = 497.8, s = 5
t = 497.8 − 5005/√25 = −2.2, df 24
p ≈ 0.038 < 0.05 → reject H₀: mean fill is off

One-proportion z (fair coin?) Worked

115 heads in 200 flips: p̂ = 0.575; H₀: p = 0.5
z = 0.575 − 0.5√(0.25/200) ≈ 2.12
p ≈ 0.034 (two-sided) → reject at α = 0.05

Paired t (after − before) Worked

d: 3, 5, −1, 4, 2, 5 → d̄ = 3, sd ≈ 2.28
t = 32.28/√6 ≈ 3.22, df 5
one-sided p ≈ 0.012 → scores rose

χ² goodness of fit (fair die?) Worked

60 rolls: 5, 8, 9, 8, 10, 20; expected 10 each
χ² = 25 + 4 + 1 + 4 + 0 + 10010 = 13.4, df 5
p ≈ 0.020 → evidence the die is unfair

χ² independence (library table) Worked

expected = row total × column totalgrand total: 78, 42, 52, 28
χ² = 8²78 + 8²42 + 8²52 + 8²28 ≈ 5.86, df 1
p ≈ 0.015 → age group and genre are associated

χ² conditions

Counts (not percents), random sample, every expected count ≥ 5.

ANOVA: 4,5,6 · 6,7,8 · 8,9,10
SourceSSdfMSF
Between2421212
Within661
Total308

ANOVA overview

Tests H₀: all k means are equal. Large F (between-group spread ≫ within) → small p; here p ≈ 0.008. A follow-up (e.g., Tukey) finds which means differ.

Two-sample t (tomatoes) Worked

t = 2.4 − 2.10.158 ≈ 1.90, df ≈ 16.7 (course convention: df = 9, p ≈ 0.09)
p ≈ 0.075 → fail to reject (the §8 CI held 0)

10Errors & Powerevery decision can be wrong

Decision vs truth
DecisionH₀ trueH₀ false
Reject H₀Type I error (prob. α)correct: power = 1 − β
Fail to rejectcorrectType II error (prob. β)

The boy who cried wolf

Aesop: villagers first believe a false alarm (Type I: reject a true “no wolf”), then ignore a real wolf (Type II).

H₀ trueHₐ truereject H₀ →← fail to rejectαβpower
Effect of 2.5 SE, one-sided α = 0.05: power ≈ 0.80.

Tests and intervals agree

A two-sided test at α = 0.05 rejects H₀: μ = μ₀ exactly when μ₀ lies outside the 95% CI.

Raise power by

  • a larger sample n
  • a larger α (more Type I risk)
  • a bigger true effect
  • less variability (better measurement, blocking)

p-value traps

  • p is not the chance H₀ is true.
  • Significant ≠ important: huge n makes tiny effects significant.
StatisticsStatistics · Statistics · continued

11Correlation & Regressiontwo quantitative variables

55606570758085900123456residualŷ = 55.9 + 5.7xpractice hours (x) vs words per minute (y)

DOFS

Describe a scatterplot by Direction, Outliers, Form (linear or curved), Strength, in context.

Correlation r

  • −1 ≤ r ≤ 1; sign = direction, size = strength of a linear pattern.
  • Unitless; swapping x and y keeps r.
  • Not resistant: one outlier can change it a lot.

Least-squares line

b = rsysx, a = ȳ − b x̄; the line passes through (x̄, ȳ).

ŷ = a + bx

Typing practice (5 students) Worked

x̄ = 3, ȳ = 73; Σ(x − x̄)(y − ȳ) = 57, Σ(x − x̄)² = 10
b = 5710 = 5.7; a = 73 − 5.7 · 3 = 55.9
r ≈ 0.992, r² ≈ 0.985
x = 3: residual = 71 − 73 = −2y − ŷ

Residual = O − P

Observed minus Predicted. Positive: the point sits above the line.

Read the output in context

  • Slope: each extra practice hour adds about 5.7 wpm to predicted speed.
  • r² = 0.985: 98.5% of the variation in speed is explained by the line.
  • Residual plot with no pattern → a line fits.

Regression cautions

  • Correlation is not causation: a lurking variable may drive both.
  • Extrapolation: x = 6 gives ŷ = 90.1 but lies past the data; do not trust it.
  • Check for curved patterns and influential points.

Test for the slope

H₀: β = 0 (no linear relationship). t = bSEb, df = n − 2.

12Which Test? · z and t Tablesstart at the left, follow the question

What does thequestion compare?Means1 groupσ known: 1-sample z · else 1-sample t, df n − 12 groupspaired: t on differences · independent: 2-sample t3+ groupsone-way ANOVA, F = MSB / MSWProportions1 group1-prop z, SE from p₀2 groups2-prop z, pooled p̂Category counts1 variableχ² goodness of fit, df k − 12 variablesχ² independence, df (r − 1)(c − 1)Two quantitativerelationshipt for slope (r), df n − 2
z table (computed): Φ(z) = area left of z
zΦ(z)zΦ(z)zΦ(z)
0.00.50001.00.84132.00.9772
0.10.53981.10.86432.10.9821
0.20.57931.20.88492.20.9861
0.30.61791.30.90322.30.9893
0.40.65541.40.91922.40.9918
0.50.69151.50.93322.50.9938
0.60.72571.60.94522.60.9953
0.70.75801.70.95542.70.9965
0.80.78811.80.96412.80.9974
0.90.81591.90.97132.90.9981

Conditions for every inference

  • Random: a random sample or random assignment.
  • Independent: n ≤ 10% of the population.
  • Normal/large: n ≥ 30, or a roughly symmetric sample; np, n(1 − p) ≥ 10; expected counts ≥ 5.
t* table (computed): two-sided confidence; ∞ row = z*
df90%95%98%99%
16.31412.70631.82163.657
22.9204.3036.9659.925
32.3533.1824.5415.841
42.1322.7763.7474.604
52.0152.5713.3654.032
61.9432.4473.1433.707
71.8952.3652.9983.499
81.8602.3062.8963.355
91.8332.2622.8213.250
101.8122.2282.7643.169
121.7822.1792.6813.055
151.7532.1312.6022.947
201.7252.0862.5282.845
301.6972.0422.4572.750
601.6712.0002.3902.660
∞ (z)1.6451.9602.3262.576
zt, df = 3
t curves are flatter with heavier tails; they approach z as df grows.

Interval or test?

  • “How big is it?” → confidence interval.
  • “Is there an effect?” → test.
  • Paired data (same subject twice) → analyze the differences.

Paired is one sample in disguise

Subtract within each pair first; then it is a one-sample t on the differences.