2.1–2.2 Two Categorical Variables
Two-Way Tables
| Sport | No sport | Total | |
|---|---|---|---|
| 9th | 45 | 55 | 100 |
| 12th | 30 | 70 | 100 |
| Total | 75 | 125 | 200 |
Joint = cell ÷ table total: P(9th & sport) = 45/200 = 0.225 of all 200 students in the table.
Marginal = row or column total ÷ table total: P(sport) = 75/200 = 0.375 overall.
Conditional = cell ÷ its own row or column total: P(sport | 9th) = 45/100 = 0.45.
Reverse it: P(9th | sport) = 45/75 = 0.60. Different denominator → different answer.
Graphs
Side-by-side bars compare counts or %s for each group, placed right next to each other.
Segmented bar + mosaic plots split each group into conditional %s to compare groups.
Association
Associated: conditional %s differ across groups (45% of 9th vs 30% of 12th play).
Not associated: conditional %s are about the same for every group being compared.
Right denominator: "of 9th graders" means divide by the 9th-grade total (100), not by 200.
2.3–2.4 Simulation & Probability Basics
Key Terms
Random process: results by chance. Outcome: 1 result. Event: a group of outcomes.
Probability: the long-run relative frequency of an event over very many repeated trials.
Law of large numbers: more trials → relative frequency gets closer to the true probability.
Simulation Steps
Model: assign digits to outcomes to match the chances (0–2 = hit → P(hit) = 0.3).
Run + record: do many trials w/ a random number generator + count the outcomes.
Estimate: P(event) ≈ # trials w/ the event ÷ total # of trials. More trials = a closer estimate.
| Sim. trials | Estimate |
|---|---|
| 50 | 0.38 |
| 500 | 0.336 |
| 5,000 | 0.302 |
Probability Rules
Sample space: the list of every possible outcome; all their probabilities add up to 1.
Equally likely: P(E) = # outcomes in E ÷ total # of outcomes (die: P(even) = 3/6 = 0.5).
Complement: P(not E) = 1 − P(E). At least 1 = 1 − P(none), e.g., 1 − 0.710 ≈ 0.97 for 10 tries.
2.5–2.7 Probability Rules
Joint & Mutually Exclusive
Joint: P(A ∩ B) = the chance A AND B both happen (the overlap of A + B in a Venn diagram).
Mutually exclusive: A + B can't happen at the same time, so P(A ∩ B) = 0 (roll a 2 + a 5).
Conditional & Multiplication
Conditional: P(A | B) = P(A ∩ B) ÷ P(B). The "|" means "given" that B already happened.
Multiplication rule: P(A ∩ B) = P(A) · P(B | A). This works for any 2 events, linked or not.
Tree e.g.: P(rain) = 0.3, P(late | rain) = 0.4 → P(rain & late) = 0.3 × 0.4 = 0.12 on any day.
Independence & Union
Independent if P(A | B) = P(A). Only then can you use P(A ∩ B) = P(A) · P(B) to multiply.
Union: P(A ∪ B) = P(A) + P(B) − P(A ∩ B). Subtract the overlap so it's counted only once.
| Word | Rule |
|---|---|
| not | 1 − P(A) |
| or | P(A) + P(B) − P(A ∩ B) |
| and | P(A) · P(B | A) |
E.g.: P(A) = 0.5, P(B) = 0.4, P(A ∩ B) = 0.2 → P(A ∪ B) = 0.5 + 0.4 − 0.2 = 0.7 for A or B.
Check w/ the table: P(sport | 9th) = 0.45 ≠ P(sport) = 0.375 → not independent.
2.8–2.9 Discrete Random Variables
Probability Distributions
Random variable X: number that comes from a chance process (# of late buses).
| x | 0 | 1 | 2 | 3 |
|---|---|---|---|---|
| P(X = x) | 0.1 | 0.3 | 0.4 | 0.2 |
Rules: list every value + its probability; the probabilities must add up to exactly 1.
Cumulative: P(X ≤ 1) = 0.1 + 0.3 = 0.4, so P(X ≥ 2) = 1 − 0.4 = 0.6 (2 or more late).
Missing P? Use the add-to-1 rule: if the other probabilities sum to 0.85, the missing 1 is 0.15.
Mean & Standard Deviation
Mean: μX = Σ x · P(x) = 0(0.1) + 1(0.3) + 2(0.4) + 3(0.2) = 1.7 late buses per day.
SD: σX = √[Σ (x − μX)² · P(x)] = √0.81 = 0.9.
Parameters: μX + σX are fixed numbers that describe the whole distribution.
Interpret in Context
Mean: "Over many, many days, the avg # of late buses is about 1.7 per day." Long-run avg.
SD: "The # of late buses on a day typically varies by about 0.9 from the mean of 1.7."
Calculator: x in L1, P in L2 → 1-Var Stats L1, L2 gives the mean + SD of the distribution.
2.10 The Binomial Distribution
Is It Binomial? (BINS)
| Letter | Condition |
|---|---|
| B | only success or failure |
| I | independent trials |
| N | fixed # of trials n |
| S | same p every trial |
Binomial X counts the number of successes in n trials, each w/ the same success chance p.
Not binomial: no set # of trials ("until the 1st success") or p changes trial to trial.
Formulas
P(X = x) = nCx · px · (1 − p)n − x, x = 0, 1, …, n.
Mean = np. SD = √[np(1 − p)]. n = 10, p = 0.3 → mean = 3 successes, SD ≈ 1.45.
E.g.: n = 10, p = 0.3: P(X = 2) = 45(0.3)²(0.7)8 ≈ 0.233 (exactly 2 successes in 10 trials).
Calculator
binompdf(n, p, x) = P(X = x), exactly x. binomcdf(n, p, x) = P(X ≤ x), at most x.
At least 3: P(X ≥ 3) = 1 − P(X ≤ 2) ≈ 1 − 0.383 = 0.617. Use the complement trick.
Interpret mean: "Over many sets of 10 shots, about 3 are made on average."
2.11 The Normal Distribution
Continuous Random Variables
Continuous: can take any value in a range. Probability = area under the curve.
Total area under the curve is 1, + P(X = 1 exact value) = 0, so < and ≤ give the same area.
Normal Curves
Normal: bell-shaped, symmetric + unimodal; it's set by its mean μ + its standard deviation σ.
Small σ → tall, narrow curve (values close to μ). Large σ → short, wide, spread-out curve.
Standard normal: μ = 0, σ = 1. Convert any value w/ z = (x − μ) ÷ σ (# of SDs from μ).
Empirical Rule (68–95–99.7)
| Within | % | μ = 170, σ = 8 |
|---|---|---|
| 1σ | 68% | 162 to 178 |
| 2σ | 95% | 154 to 186 |
| 3σ | 99.7% | 146 to 194 |
Tails: 16% of values are above μ + 1σ (178 cm); 2.5% are above μ + 2σ (186 cm).
Sketch: draw the bell, label μ + each σ mark, then shade the area you need to find.
Use the rule only for values exactly 1, 2 or 3 SDs from μ; otherwise use a calculator.
In context: "Heights here are approx. N(170 cm, 8 cm)." Name the variable + units.
2.11 Normal Calculations
Area From a Value
Steps: name N(μ, σ) → sketch + shade → z or calculator → answer in context.
E.g.: X ~ N(170, 8). P(X > 180): z = (180 − 170)/8 = 1.25 → area ≈ 0.106 (10.6% taller).
Calculator: normalcdf(lower, upper, μ, σ). Use 1E99 for "no upper limit" (−1E99 for lower).
z-table gives area to the LEFT of z; for area to the right, use 1 − the table value (1 − 0.894).
Value From an Area
invNorm(area to the LEFT, μ, σ). 90th percentile: invNorm(0.90, 170, 8) ≈ 180.3 cm.
| Want | Area to enter |
|---|---|
| Lowest p% | p/100 |
| Highest p% | 1 − p/100 |
| Middle 95% | 0.025 + 0.975 |
Middle 95%: 2.5% in each tail → invNorm gives 154.3 to 185.7 cm for these heights.
Compare Positions
Higher z = relatively higher within its own distribution (z = 1.5 beats z = 1.2).
Percentile: % of values at or below a value; the 90th percentile is above 90% of values.
Unknown μ or σ: use z = (x − μ)/σ w/ a known z (1.28 for the 90th percentile) + solve.
2.12 Sampling Distributions & CLT
Sampling Distributions
Sampling distribution: values of a statistic (x̄, p̂) from all samples of the same size n.
Simulate it: take many random samples, find the statistic each time + graph them.
Randomization distribution: reshuffle responses into groups many times + record each result.
Use: shows how much a statistic varies by chance alone, so you can spot unusual results.
| Distribution of | Shows |
|---|---|
| Population | all individuals |
| 1 sample | values in that sample |
| Sampling dist. | a statistic over samples |
Central Limit Theorem
CLT: the sampling distribution of x̄ is approx. normal in shape for random samples.
Bigger n → closer to a normal shape, even when the population itself is skewed.
Bigger n also → less variability in the statistic from 1 sample to the next one (narrower).
Is It Unusual?
Check: few simulated values as extreme as the observed one → unusual by chance.
E.g.: only 3 of 200 simulated p̂'s ≥ 0.62 → about 1.5% → 0.62 is unusual by chance.