Cheat sheets

Statistics / Chapter 2

Probability, Random Variables, and Probability Distributions

Cheat sheet

Two categorical variables

  • Joint proportion = cell/grand total; marginal proportion = row or column total/grand total; conditional proportion = cell/conditioning-group total.
  • Compare conditional distributions for association. Segmented bars use equal total height; mosaic widths encode group shares and rectangle areas encode joint shares. Association is not causation.

Probability rules

  • P(Ac)=1−P(A)P(A^c)=1-P(A) P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B) Disjoint events have zero intersection.
  • P(A∣B)=P(A∩B)/P(B)P(A\mid B)=P(A\cap B)/P(B) for P(B)>0P(B)>0 Independence means P(A∩B)=P(A)P(B)P(A\cap B)=P(A)P(B) positive-probability disjoint events are not independent.
  • Multiply conditional probabilities along a path, then add disjoint paths. P(A∣B)P(A\mid B) and P(B∣A)P(B\mid A) generally differ.
  • Long-run relative frequency tends toward probability under the model, without guaranteeing compensation on the next trial. A simulation must match probabilities, dependence, sample size and the statistic.

Discrete random variables

  • Probabilities are nonnegative and sum to 1. μX=∑xP(X=x)\mu_X=\sum xP(X=x) σX2=∑(x−μX)2P(X=x)\sigma_X^2=\sum(x-\mu_X)^2P(X=x) SD is the square root.
  • Binomial: fixed nn independent trials, two outcomes per trial, constant success probability pp P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom nk p^k(1-p)^{n-k}
  • For binomial counts, μ=np\mu=np and σ=np(1−p)\sigma=\sqrt{np(1-p)} Counts range from 0 to n; sampling without replacement requires checking whether independence is reasonable.
  • F(x)=P(X≤x)F(x)=P(X\le x) For integer counts, P(X=k)=F(k)−F(k−1)P(X=k)=F(k)-F(k-1) and P(X≥k)=1−F(k−1)P(X\ge k)=1-F(k-1) Keep strict and inclusive endpoints distinct.

Normal calculations

  • Normal density has total area 1; interval area is probability, while height is density. Under a continuous model, an exact point has probability zero.
  • z=(x−μ)/σz=(x-\mu)/\sigma and x=μ+zσx=\mu+z\sigma Normal shape is a modeling condition; standardization does not make skewed data normal.
  • For a normal model, approximately 68%, 95% and 99.7% lie within 1, 2 and 3 SDs of the mean. For precise probabilities use the normal CDF, a table or calculator with explicit bounds.
  • P(a<X<b)=F(b)−F(a)P(a<X<b)=F(b)-F(a) and P(X>b)=1−F(b)P(X>b)=1-F(b) Inverse normal converts a left-tail proportion into its cutoff.

Sampling distributions

  • A data distribution describes observations; a sampling distribution describes a statistic over repeated samples of fixed size. For independent observations, E(Xˉ)=μE(\bar X)=\mu and SD(Xˉ)=σ/nSD(\bar X)=\sigma/\sqrt n
  • The CLT concerns the distribution of averages, not a transformation of the population. Required n depends on skewness and outliers; n=30 is a guideline, not a universal guarantee.
  • Sampling without replacement is approximately independent when n is at most 10% of the population. Larger n stabilizes estimates but does not repair a biased design.

Diagrams

Conditional and joint shares
Bus contains 30 of 50 hypothetical travelers (width 0.60); walk contains 20 (width 0.40). Early counts are 18 and 16; late counts are 12 and 4. Each rectangle’s area equals its count divided by 50. Compare these unequal widths with the equal-width segmented bars.
Bus contains 30 of 50 hypothetical travelers (width 0.60); walk contains 20 (width 0.40). Early counts are 18 and 16; late counts are 12 and 4. Each rectangle’s area equals its count divided by 50. Compare these unequal widths with the equal-width segmented bars. Source
Normal right tail
Standard normal density with z greater than 1.5 shaded. Its probability is approximately 0.0668; the left area is 0.9332.
Standard normal density with z greater than 1.5 shaded. Its probability is approximately 0.0668; the left area is 0.9332. Source

Sign in