{"ap-statistics-descriptive-stats":{"title":"Describing Distributions: SOCS","lesson":"t_aps_descriptive","steps":[{"title":"Shape and outliers","text":["Shape: symmetric, skewed left or skewed right, and how many peaks.","Outliers: values far from the rest. A common rule: more than 1.5 IQRs beyond the quartiles."],"math":[],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_descriptive-1.webp","width":1143,"height":525}},{"title":"Center and spread","text":["Symmetric data: report the mean and standard deviation.","Skewed data or outliers: report the median and interquartile range, which resist extreme values."],"math":["symmetric → mean, SD","skewed → median, IQR"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_descriptive-2.webp","width":1130,"height":450}},{"title":"Always in context","text":["Describe with the variable and units: The distribution of commute times is skewed right, with a median of 18 minutes."],"math":["\"commute times … median 18 min\""],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_descriptive-3.webp","width":1358,"height":450}}],"tryIt":{"q":"Incomes in a town have a few very high values. Which measure of center should you report?","show":"skewed right, with outliers","answer":"median","why":"The median: it resists the extreme incomes!","work":[]},"mistake":{"title":"Use context","tip":"Answers without the variable and units lose points.","wrong":"\"skewed right, median 18\"","right":"\"commute times … 18 minutes\"","img":{"src":"/math-data/notes/img/t_aps_descriptive-5.webp","width":1578,"height":1127}},"recap":{"text":["SOCS: shape, outliers, center, spread, always in context."],"math":["S · O · C · S"]},"hook":{"big":"SOCS","q":"How do you describe a distribution on the AP exam?","a":"Shape, outliers, center, spread!"}},"ap-statistics-normal-distribution":{"title":"Normal Distributions and z-Scores","lesson":"t_aps_normal","steps":[{"title":"The empirical rule","text":["In a normal distribution, about 68 percent of values are within 1 standard deviation of the mean.","About 95 percent within 2, and 99.7 percent within 3."],"math":["68%","95% within 2 SD"],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_normal-1.webp","width":1403,"height":770}},{"title":"z-scores","text":["A z-score counts standard deviations from the mean: z equals x minus mu, over sigma.","A test score of 85, with mean 70 and standard deviation 10, has z equal to 1.5."],"math":["z = (x − μ)/σ","(85 − 70)/10 = 1.5"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_normal-2.webp","width":1050,"height":552}},{"title":"Areas from z","text":["Use a table or calculator to find the area to the left of a z-score.","Left of z equals 1.5 is about 0.933, so about 93 percent scored lower."],"math":["P(z < 1.5) ≈ 0.933"],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_normal-3.webp","width":1403,"height":776}}],"tryIt":{"q":"Heights have mean 64 inches and standard deviation 3. What is the z-score of 70 inches?","show":"μ = 64,  σ = 3,  x = 70","answer":"z = 2","why":"70 minus 64 is 6. 6 over 3 is 2!","work":[]},"mistake":{"title":"Normal only","tip":"The 68, 95, 99.7 rule is only for approximately normal data.","wrong":"any data: 68%","right":"normal data: 68%","img":{"src":"/math-data/notes/img/t_aps_normal-5.webp","width":1578,"height":1127}},"recap":{"text":["z equals x minus mu over sigma. Use the normal curve for areas."],"math":["z = (x − μ)/σ"]},"hook":{"big":"🔔","q":"How likely is a value in a bell curve?","a":"Use z-scores!"}},"ap-statistics-regression":{"title":"Least-Squares Regression","lesson":"t_aps_regression","steps":[{"title":"The line and the residuals","text":["The least-squares line makes the sum of squared residuals as small as possible.","A residual is actual minus predicted."],"math":[],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_regression-1.webp","width":1170,"height":794}},{"title":"Interpret slope and intercept","text":["Slope: for each extra unit of x, the predicted y changes by b.","Say predicted, and use context."],"math":["ŷ = 1.2 + 0.84x","each +1 hour → +0.84 points predicted"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_regression-2.webp","width":1421,"height":450}},{"title":"r and r squared","text":["r measures the strength and direction of a linear relationship, from negative 1 to 1.","r squared is the fraction of variation in y explained by the line."],"math":["r: −1 to 1","r²: % of variation explained"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_regression-3.webp","width":1274,"height":450}}],"tryIt":{"q":"A student scored 70 and the line predicted 74. What is the residual?","show":"actual 70,  predicted 74","answer":"−4","why":"70 minus 74 is negative 4!","work":[]},"mistake":{"title":"Association, not causation","tip":"A strong regression line does not prove that x causes y.","wrong":"r = 0.9 → x causes y","right":"r = 0.9 → strong association","img":{"src":"/math-data/notes/img/t_aps_regression-5.webp","width":1578,"height":1127}},"recap":{"text":["The least-squares line minimizes squared residuals. Interpret in context with \"predicted\"."],"math":["residual = y − ŷ"]},"hook":{"big":"ŷ = a + bx","q":"What line best fits the data?","a":"The least-squares regression line!"}},"ap-statistics-sampling":{"title":"Sampling Distributions","lesson":"t_aps_sampling","steps":[{"title":"Many samples","text":["Take many random samples and compute each sample mean. Plot them all.","That plot is the sampling distribution of the sample mean."],"math":[],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_sampling-1.webp","width":1140,"height":593}},{"title":"Center and spread","text":["It is centered at the population mean. Its standard deviation is sigma over the square root of n.","Bigger samples give less variability."],"math":["mean of x̄ = μ","SD of x̄ = σ/√n"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_sampling-2.webp","width":1050,"height":467}},{"title":"The central limit theorem","text":["For a large sample, about 30 or more, the sampling distribution of the mean is approximately normal, even if the population is not."],"math":["n ≥ 30 → approximately normal"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_sampling-3.webp","width":1403,"height":809}}],"tryIt":{"q":"A population has sigma equal to 20. What is the standard deviation of sample means for n equals 100?","show":"σ = 20,  n = 100","answer":"2","why":"20 over the square root of 100 is 2!","work":[]},"mistake":{"title":"Divide by root n","tip":"The spread of sample means is sigma over the square root of n, not sigma over n.","wrong":"σ/n = 0.2","right":"σ/√n = 2","img":{"src":"/math-data/notes/img/t_aps_sampling-5.webp","width":1578,"height":1127}},"recap":{"text":["Sample means center at mu, spread sigma over root n, and are near normal for large n."],"math":["σ/√n"]},"hook":{"big":"x̄","q":"How much do sample results vary?","a":"Look at the sampling distribution!"}},"ap-statistics-experimental-design":{"title":"Experiments and Observational Studies","lesson":"t_aps_design","steps":[{"title":"Observational study or experiment","text":["An observational study watches without changing anything. An experiment assigns treatments.","Only a well-designed experiment can show cause and effect."],"math":["observe → association","experiment → causation"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_design-1.webp","width":1185,"height":450}},{"title":"Principles of a good experiment","text":["Compare two or more treatments, including a control.","Randomly assign subjects, replicate on enough subjects, and control other variables."],"math":["compare · randomize","replicate · control"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_design-2.webp","width":1082,"height":450}},{"title":"Blocking and blinding","text":["Blocking groups similar subjects before randomizing. Blinding keeps people from knowing who got which treatment."],"math":["block → then randomize","blind → no bias"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_design-3.webp","width":1169,"height":450}}],"tryIt":{"q":"Researchers record what students eat and their grades, without changing anything. Can they conclude cause and effect?","show":"record diets and grades","answer":"no: observational","why":"No. It is an observational study, so it shows association only!","work":[]},"mistake":{"title":"Random sampling versus random assignment","tip":"Random sampling lets you generalize. Random assignment lets you claim causation.","wrong":"sampling proves cause","right":"assignment shows cause","img":{"src":"/math-data/notes/img/t_aps_design-5.webp","width":1578,"height":1127}},"recap":{"text":["Experiments with random assignment show causation; observational studies show association."],"math":["randomize → causation"]},"hook":{"big":"🧪","q":"When can we say one thing causes another?","a":"Only with a randomized experiment!"}},"probability-rules":{"title":"Probability Rules","lesson":"t_aps_prob_rules","steps":[{"title":"The addition rule","text":["The probability of A or B is P of A plus P of B minus P of A and B.","Subtract the overlap so it is not counted twice."],"math":["P(A ∪ B) = P(A) + P(B) − P(A ∩ B)"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_prob_rules-1.webp","width":1107,"height":791}},{"title":"The multiplication rule","text":["For independent events, P of A and B equals P of A times P of B.","Two coin flips both heads: one half times one half, one fourth."],"math":["P(A ∩ B) = P(A)·P(B)","½ · ½ = ¼"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_prob_rules-2.webp","width":1050,"height":450}},{"title":"Complements","text":["P of not A equals 1 minus P of A. Useful for at least one."],"math":["P(at least one) = 1 − P(none)"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_prob_rules-3.webp","width":1197,"height":450}}],"tryIt":{"q":"P of A is 0.5, P of B is 0.4, and P of A and B is 0.2. Find P of A or B.","show":"0.5 + 0.4 − 0.2","answer":"0.7","why":"0.5 plus 0.4 minus 0.2 is 0.7!","work":[]},"mistake":{"title":"Subtract the overlap","tip":"Adding P of A and P of B counts the overlap twice.","wrong":"0.5 + 0.4 = 0.9","right":"0.9 − 0.2 = 0.7","img":{"src":"/math-data/notes/img/t_aps_prob_rules-5.webp","width":1578,"height":1127}},"recap":{"text":["Or: add and subtract the overlap. And, if independent: multiply."],"math":["or → add,  and → multiply"]},"hook":{"big":"P(A or B)","q":"How do probabilities combine?","a":"Addition and multiplication rules!"}},"conditional-probability":{"title":"Conditional Probability","lesson":"t_aps_conditional","steps":[{"title":"Given that","text":["P of A given B is the probability of A when we already know B happened.","It equals P of A and B, divided by P of B."],"math":["P(A | B) = P(A ∩ B)/P(B)"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_conditional-1.webp","width":1050,"height":450}},{"title":"From a two-way table","text":["Of 200 students, 80 play sports, and 30 of those also play music.","P of music given sports is 30 over 80, which is 0.375."],"math":["30/80 = 0.375"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_conditional-2.webp","width":1050,"height":450}},{"title":"Independence check","text":["A and B are independent when P of A given B equals P of A."],"math":["P(A | B) = P(A)?"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_conditional-3.webp","width":1050,"height":450}}],"tryIt":{"q":"In a class, 12 of 20 girls wear glasses. What is P of glasses given girl?","show":"12 of 20 girls","answer":"0.6","why":"12 over 20 is 0.6!","work":[]},"mistake":{"title":"Divide by the given group","tip":"Given B means divide by the size of B, not by everyone.","wrong":"12/total","right":"12/20 girls","img":{"src":"/math-data/notes/img/t_aps_conditional-5.webp","width":1578,"height":1127}},"recap":{"text":["P of A given B equals P of A and B over P of B."],"math":["P(A|B) = P(A∩B)/P(B)"]},"hook":{"big":"P(A | B)","q":"How does knowing one thing change a probability?","a":"Conditional probability!"}},"ap-statistics-probability-distributions":{"title":"Random Variables and Probability Distributions","lesson":"t_aps_prob_dist","steps":[{"title":"A probability distribution","text":["A random variable X lists outcomes with probabilities that add to 1.","X equals 0, 1, 2 with probabilities 0.2, 0.5, 0.3."],"math":[],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_prob_dist-1.webp","width":1050,"height":722}},{"title":"Expected value","text":["Multiply each value by its probability and add: 0 times 0.2 plus 1 times 0.5 plus 2 times 0.3 equals 1.1."],"math":["E(X) = Σ x·P(x)","= 0 + 0.5 + 0.6 = 1.1"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_prob_dist-2.webp","width":1050,"height":450}},{"title":"Binomial","text":["A binomial counts successes in n independent tries with the same chance p.","Its mean is n times p."],"math":["mean = np","SD = √(np(1 − p))"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_prob_dist-3.webp","width":1050,"height":450}}],"tryIt":{"q":"You flip a fair coin 50 times. What is the expected number of heads?","show":"n = 50,  p = 0.5","answer":"25","why":"50 times one half is 25!","work":[]},"mistake":{"title":"Probabilities add to 1","tip":"Check that the probabilities sum to 1 before computing anything.","wrong":"0.2 + 0.5 + 0.4","right":"0.2 + 0.5 + 0.3 = 1","img":{"src":"/math-data/notes/img/t_aps_prob_dist-5.webp","width":1578,"height":1127}},"recap":{"text":["Expected value: sum of x times its probability. Binomial mean: n p."],"math":["E(X) = Σ x·P(x)"]},"hook":{"big":"E(X)","q":"What do we expect on average?","a":"The expected value!"}},"ap-statistics-confidence-intervals":{"title":"Confidence Intervals","lesson":"t_aps_confidence","steps":[{"title":"Estimate plus or minus margin","text":["A confidence interval is the sample estimate, plus or minus a margin of error.","Margin equals a critical value times the standard error."],"math":["estimate ± (critical value)(SE)"],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_confidence-1.webp","width":1292,"height":578}},{"title":"An example","text":["In a sample of 400, 52 percent support a plan. For 95 percent confidence, z star is 1.96.","Standard error: the square root of 0.52 times 0.48 over 400, about 0.025. Interval: 0.52 plus or minus 0.049."],"math":["0.52 ± 1.96(0.025)","(0.471, 0.569)"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_confidence-2.webp","width":1050,"height":450}},{"title":"The interpretation","text":["We are 95 percent confident that the interval from 47.1 to 56.9 percent captures the true proportion who support the plan."],"math":["95% confident … captures the true p"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_confidence-3.webp","width":1344,"height":450}}],"tryIt":{"q":"What happens to the margin of error if the sample size gets bigger?","show":"n ↑ → margin ?","answer":"smaller","why":"It gets smaller: more data, more precision!","work":[]},"mistake":{"title":"Confidence is about the method","tip":"Do not say there is a 95 percent chance the true value is in this interval.","wrong":"95% chance p is inside","right":"confident it captures p","img":{"src":"/math-data/notes/img/t_aps_confidence-5.webp","width":1578,"height":1127}},"recap":{"text":["Estimate plus or minus critical value times standard error, interpreted in context."],"math":["estimate ± margin"]},"hook":{"big":"± margin","q":"How sure can we be about a population value?","a":"Build a confidence interval!"}},"ap-statistics-hypothesis-testing":{"title":"Hypothesis Testing","lesson":"t_aps_hypothesis","steps":[{"title":"The hypotheses","text":["The null hypothesis says nothing changed. The alternative says something did.","A coin: null, p equals 0.5. Alternative: p is not 0.5."],"math":["H₀: p = 0.5","Hₐ: p ≠ 0.5"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_hypothesis-1.webp","width":1050,"height":450}},{"title":"The p-value","text":["Assume the null is true. The p-value is the chance of getting a result at least as extreme as ours.","A small p-value, below alpha such as 0.05, is evidence against the null."],"math":["p-value = red area"],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_hypothesis-2.webp","width":1403,"height":804}},{"title":"The conclusion","text":["If p is less than alpha, reject the null: there is convincing evidence for the alternative.","Otherwise, fail to reject the null. We never prove the null true."],"math":["p < α → reject H₀","p ≥ α → fail to reject"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_hypothesis-3.webp","width":1050,"height":450}}],"tryIt":{"q":"A test gives p equal to 0.003 with alpha 0.05. What do you conclude?","show":"p = 0.003,  α = 0.05","answer":"reject H₀","why":"Reject the null: there is convincing evidence for the alternative!","work":[]},"mistake":{"title":"Never accept the null","tip":"A large p-value means not enough evidence, not proof that the null is true.","wrong":"accept H₀","right":"fail to reject H₀","img":{"src":"/math-data/notes/img/t_aps_hypothesis-5.webp","width":1578,"height":1127}},"recap":{"text":["State hypotheses, find the p-value, compare to alpha, conclude in context."],"math":["H₀ · p-value · α"]},"hook":{"big":"H₀ vs Hₐ","q":"Is a result real or just chance?","a":"Run a significance test!"}},"chi-square":{"title":"Chi-Square Tests","lesson":"t_aps_chi_square","steps":[{"title":"Observed versus expected","text":["A die is rolled 60 times. If fair, each face is expected 10 times.","Compare what we observed to what we expected."],"math":[],"visual":true,"img":{"src":"/math-data/notes/img/t_aps_chi_square-1.webp","width":1254,"height":666}},{"title":"The statistic","text":["Chi-square is the sum of observed minus expected, squared, over expected.","A bigger value means a bigger mismatch."],"math":["χ² = Σ (O − E)²/E"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_chi_square-2.webp","width":1050,"height":450}},{"title":"Which test?","text":["Goodness of fit: one variable against a claimed distribution.","Independence or homogeneity: two variables in a two-way table."],"math":["1 variable → goodness of fit","2 variables → independence"],"visual":false,"img":{"src":"/math-data/notes/img/t_aps_chi_square-3.webp","width":1218,"height":450}}],"tryIt":{"q":"Observed 15, expected 10. What does this cell add to chi-square?","show":"O = 15,  E = 10","answer":"2.5","why":"5 squared is 25. 25 over 10 is 2.5!","work":[]},"mistake":{"title":"Divide by expected","tip":"Each term divides by the expected count, not the observed.","wrong":"(15 − 10)²/15","right":"(15 − 10)²/10","img":{"src":"/math-data/notes/img/t_aps_chi_square-5.webp","width":1578,"height":1127}},"recap":{"text":["Chi-square adds observed minus expected squared, over expected."],"math":["Σ (O − E)²/E"]},"hook":{"big":"χ²","q":"Do observed counts match what we expected?","a":"A chi-square test!"}}}