Cheat sheets

Statistics / Chapter 1

Exploring One-Variable Data and Collecting Data

Cheat sheet

Studies and variables

  • Population: the target collection. Sample: observed subset. Parameter: numerical population summary. Statistic: numerical sample summary.
  • An observational unit has recorded variables. Categorical values identify groups; quantitative values measure or count. A numerical identifier is still categorical.
  • A statistical question anticipates variation and identifies the population, measured variable and purpose (estimate, compare or examine association).

Read distributions

  • Categorical bars encode counts or proportions; start the count axis at zero. Pie sectors encode shares of a whole that sum to 1.
  • Dotplots and keyed stemplots preserve individual values. Histograms group values: state bin endpoints; for unequal widths, area rather than height must encode frequency.
  • Cumulative proportions never decrease. Subtract the proportions at two cutoffs to recover the share between them, respecting endpoints.
  • Describe shape, center, spread and unusual features in context and units. Name skewness by the long tail; symmetry does not require one peak.

Numerical summaries

  • xˉ=∑xi/n\bar x=\sum x_i/n The median is the ordered middle. Extreme values move the mean more than the median.
  • IQR=Q3−Q1IQR=Q_3-Q_1 Flag values below Q1−1.5IQRQ_1-1.5IQR or above Q3+1.5IQRQ_3+1.5IQR Modified-boxplot whiskers reach extreme unflagged observations, not the fences.
  • s2=∑(xi−xˉ)2/(n−1)s^2=\sum(x_i-\bar x)^2/(n-1) and s=s2s=\sqrt{s^2} SD uses original measurement units; variance uses squared units.
  • For y=a+bxy=a+bx mean becomes a+bxˉa+b\bar x and SD becomes ∣b∣s|b|s A standardized score is z=(x−μ)/σz=(x-\mu)/\sigma (or use sample mean and SD for a sample description).
  • Compare groups on a common scale. Use proportions when sizes differ; compare center and spread directly. Boxplots conceal modes, gaps and many individual details.

Sampling and bias

  • An SRS gives each possible sample of the specified size equal chance. Stratify by meaningful groups, then sample within each; cluster sampling randomly selects whole groups. A systematic sample uses a random start and a regular interval, with periodicity checked.
  • Undercoverage, voluntary response, nonresponse and response bias are design/measurement problems. Increasing sample size reduces random variability but does not automatically fix bias.
  • Prospective studies follow forward from explanatory information; retrospective studies look back at records or past exposures. Neither timing alone establishes causality.

Experiments and conclusions

  • An experiment assigns treatments; an observational study records existing conditions. Confounding prevents separating an explanatory effect from another variable’s effect.
  • Random sampling supports population generalization. Random treatment assignment supports causal comparisons under a sound study; neither substitutes for the other.
  • Specify factors, levels and treatment combinations. Use comparison/control, randomization and replication. Placebos and blinding address expectation or measurement effects where appropriate.
  • Block by a relevant source of variation, then randomize within blocks. Matched pairs use related units or repeated conditions; randomize condition order where possible. Keep causal and population scope within the design.

Diagrams

Modified boxplot
Q1=3, median=5 and Q3=7 give IQR=4 and fences −3 and 13 (dashed). Observed unflagged endpoints are 1 and 11; 18 is plotted separately. Whiskers end at observations, not at fences.
Q1=3, median=5 and Q3=7 give IQR=4 and fences −3 and 13 (dashed). Observed unflagged endpoints are 1 and 11; 18 is plotted separately. Whiskers end at observations, not at fences. Source
Distribution shapes
Schematic histograms show a long right tail, a long left tail and two symmetric peaks. The last distribution is symmetric but not bell-shaped; axes compare shape rather than a particular measured dataset.
Schematic histograms show a long right tail, a long left tail and two symmetric peaks. The last distribution is symmetric but not bell-shaped; axes compare shape rather than a particular measured dataset. Source

Sign in