Stanford Introduction to Statistics Notes

35 mins

A complete study guide with worked examples, formulas, flashcards, and practice questions for Stanford Online’s Coursera course.

Original notes

Used Templates in this Note

Summary

From describing a dataset to testing a claim: one path through center, chance, samples, and inference.

Statistics starts with the data you have. Match the picture to the question — histogram for shape, boxplot for the five-number summary, scatterplot for a relationship — and pick a center and a spread that fit: mean and standard deviation when the data are roughly symmetric, median and IQR when they are skewed or have outliers. Sample standard deviation divides by n−1; the population formula divides by N.

What you can conclude is capped by how the data were produced. A random sample fights selection bias; a bigger volunteer poll does not. Observational studies support association. Random assignment is what licenses a causal claim.

Probability is the language of uncertainty: add after subtracting overlap, multiply along a chain of conditions, and invert with Bayes so a rare-condition positive is not treated as a diagnosis. The normal curve turns every “how unusual is this value?” question into a z-score. Counts of successes live in the binomial, which needs four conditions and a normal approximation only when np and n(1−p) are large enough.

A statistic wiggles from sample to sample. Its standard error shrinks like 1/√n. The Central Limit Theorem says the sampling distribution of the mean becomes approximately normal for large n, even when the population is not. That engine drives confidence intervals — estimate ± critical value × SE, a statement about the method, not a probability that this interval contains μ — and significance tests. A p-value is how surprising the data would be if H₀ were true, not P(H₀ is true).

Regression summarizes a linear relationship with r, r², and a least-squares line, then asks whether residuals look like noise. When formulas are awkward, resampling lets the computer estimate SE and percentile intervals: Monte Carlo for a process, bootstrap for a sample. Categorical tables use χ²; several means use ANOVA’s F. Test often enough and luck finds “significance.” Bonferroni and FDR are the course’s answer to that trap.

Key points

  • Right-skewed → mean > median; use median and IQR with outliers
  • Sample sd uses n−1; population uses N
  • Bigger n does not fix a biased design
  • Observation → association; random assignment → causation
  • Independent ≠ mutually exclusive
  • Base rates dominate screening-test conclusions
  • Binomial needs four conditions; no replacement usually is not binomial
  • The CLT is about the sampling distribution of the mean, not the population becoming bell-shaped
  • “95% confident” describes the method’s long-run capture rate
  • A p-value is not P(H₀ is true); fail to reject is not proof
  • Correlation is not causation; r = 0 does not rule out a curve
  • Extra tests inflate false alarms; Bonferroni uses α/m

Common traps

  • Reporting variance instead of sd
  • Using N on a sample
  • Claiming causation from an observational study
  • Adding probabilities without subtracting overlap
  • Treating P(+|D) as if it were P(D|+)
  • Thinking the population becomes normal
  • “95% probability μ is in THIS interval”
  • “Accept H₀” language
  • Feeding percentages into χ² instead of counts
  • Reading 40 “significant at 0.05” results at face value

More from this Note's tags