Probability Statistics Study Guide

Table of contents

  1. Basics of probability
  2. Counting
  3. Discrete Random Variables
  4. Continuous Random Variables
  5. Joint Distributions
  6. Inequalities and Moment-Generating Functions
  7. Limit Theorems
  8. Statistics: from Data to Decisions
  9. Confidence interval for a mean
  10. One-Page Formula Cheat Sheet

1. Basics of probability

Probability quantifies the likelihood of an event, ranging from 0 (impossible) to 1 (certain), and represents the long-run frequency of an event in repeated experiments 2.

1.1 Vocabulary

Key terms define the components of probability theory, helping to describe random phenomena 2.

  • Random experiment: an action with an unpredictable outcome.
  • Sample space (S): the complete set of all possible outcomes of a random experiment.
  • Event: a specific collection of outcomes, forming a subset of the sample space.
WordMeaningExample (roll one die)
Random experimentAn action whose result you cannot predict for sureRolling the die
Sample space SThe set of ALL possible outcomesS = {1, 2, 3, 4, 5, 6}
EventA group of outcomes you care about (a subset of S)A = “even number” = {2, 4, 6}

1.2 Rules of probability

Several fundamental rules govern how probabilities are calculated and combined 2.

  • Probability range: The probability of any event A, P(A)P(A), must be between 0 and 1, inclusive (0≤P(A)≤10 \le P(A) \le 1).
  • Sample space probability: The probability of the entire sample space is 1 (P(S)=1P(S) = 1).
  • Disjoint events: If two events A and B cannot occur simultaneously (they are disjoint), the probability of A or B occurring is the sum of their individual probabilities (P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)).
  • Complement rule: The probability that an event A does not occur, denoted P(Ac)P(A^c), is 1 minus the probability that A does occur (P(Ac)=1−P(A)P(A^c) = 1 - P(A)).
  • General addition rule: For any two events A and B, the probability of A or B occurring is P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B).
  • Equally likely outcomes: If all outcomes in the sample space are equally likely, the probability of an event A is the ratio of the number of outcomes in A to the total number of outcomes in S (P(A)=(number of outcomes in A)/(number of outcomes in S)P(A) = \text{(number of outcomes in A)} / \text{(number of outcomes in S)}).

📝 When rolling a fair die, the probability of getting an even number or a number greater than 4 is calculated by identifying the outcomes: Even = {2, 4, 6}, Greater than 4 = {5, 6}. The union is {2, 4, 5, 6}, so P(even or > 4)=4/6P(\text{even or > 4}) = 4/6. Using the formula: P(even)+P(> 4)−P(even and > 4)=3/6+2/6−1/6=4/6P(\text{even}) + P(\text{> 4}) - P(\text{even and > 4}) = 3/6 + 2/6 - 1/6 = 4/6 2.

1.3 Conditional probability and independence

Conditional probability assesses the likelihood of an event given that another event has already occurred, while independence describes events that do not influence each other 3.

  • Conditional probability: P(A∣B)P(A | B) is the probability of event A happening given that event B has already happened. It is calculated as P(A∣B)=P(A∩B)/P(B)P(A | B) = P(A \cap B) / P(B), provided P(B)>0P(B) > 0.
  • Multiplication rule: This rule relates the probability of the intersection of two events to their conditional probabilities: P(A∩B)=P(A∣B)⋅P(B)P(A \cap B) = P(A | B) \cdot P(B).
  • Independent events: Two events A and B are independent if the occurrence of one does not affect the probability of the other. This means P(A∣B)=P(A)P(A | B) = P(A), or equivalently, P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B).
  • Chain rule: For multiple events, the probability of their intersection can be expanded using conditional probabilities: P(A∩B∩C)=P(A)⋅P(B∣A)⋅P(C∣A∩B)P(A \cap B \cap C) = P(A) \cdot P(B | A) \cdot P(C | A \cap B).
  • Disjoint vs. independent: Disjoint events are not independent; if two disjoint events are possible, knowing one occurred means the other cannot, indicating strong dependence.

📝 If you flip two fair coins, the outcome of the first coin flip (e.g., heads) does not affect the outcome of the second coin flip. These are independent events 3.

1.4 Total probability and Bayes’ rule

These rules provide frameworks for calculating probabilities when events are partitioned or for updating probabilities based on new information 3.

  • Law of total probability: This law states that the probability of an event A can be found by summing the probabilities of A occurring under each possible condition of a partition of the sample space. If B1,B2,…,BnB_1, B_2, \dots, B_n form a partition, then P(A)=∑i=1nP(A∣Bi)P(Bi)P(A) = \sum_{i=1}^n P(A | B_i)P(B_i).
  • Bayes’ rule: This rule allows for the calculation of a conditional probability P(Bi∣A)P(B_i | A) when P(A∣Bi)P(A | B_i) is known. It is given by P(Bi∣A)=P(A∣Bi)⋅P(Bi)P(A)P(B_i | A) = \frac{P(A | B_i) \cdot P(B_i)}{P(A)}. It is often used to "reverse" conditional probabilities, such as finding the probability of a disease given a positive test result.

📝 Consider a disease affecting 1% of people. A test is positive for 95% of sick people and 5% of healthy people. To find the probability of being sick given a positive test result, first calculate the total probability of a positive test: P(+)=P(+∣sick)P(sick)+P(+∣healthy)P(healthy)=(0.95)(0.01)+(0.05)(0.99)=0.0095+0.0495=0.059P(+) = P(+ | \text{sick})P(\text{sick}) + P(+ | \text{healthy})P(\text{healthy}) = (0.95)(0.01) + (0.05)(0.99) = 0.0095 + 0.0495 = 0.059. Then, apply Bayes' rule: P(sick∣+)=P(+∣sick)P(sick)P(+)=0.00950.059≈0.161P(\text{sick} | +) = \frac{P(+ | \text{sick})P(\text{sick})}{P(+)} = \frac{0.0095}{0.059} \approx 0.161. This shows that even with a positive test, the probability of being sick is only about 16.1% due to the low prevalence of the disease and false positives among healthy individuals 4.

2. Counting

2.1 Counting principles

Counting principles are used to determine the number of possible outcomes in various scenarios, which is crucial for calculating probabilities when outcomes are equally likely. Before selecting a formula, it is essential to determine if order matters and if repeats are allowed 5.

ScenarioOrder Matters?Repeats Allowed?Calculation Example
Choosing a committeeNoNoC(10,3)=120C(10,3) = 120 (3 people from 10)
Awarding prizes in a raceYesNo5⋅4⋅3=605 \cdot 4 \cdot 3 = 60 (gold, silver, bronze for 5 runners)
Creating a PINYesYes104=10 00010^4 = 10\,000 (4-digit PIN)

📝 To find the probability of getting exactly two heads when tossing a coin four times, first determine the number of favorable outcomes by choosing which two tosses are heads, C(4,2)=6C(4,2) = 6. The total number of outcomes is 24=162^4 = 16. The probability is then 6/16=0.3756/16 = 0.375 5.

3. Discrete Random Variables

3.1 The distributions you must know

Discrete random variables are described by specific probability distributions, each applicable to different scenarios involving counts or trials. Understanding when to use each distribution is crucial for calculating probabilities, means, and variances 6.

NameUse it when…PMF P(X = k)MeanVariance
Bernoulli(p)One trial, success or failureP(1)=p,P(0)=1−pP(1) = p, P(0) = 1-pppp(1−p)p(1-p)
Binomial(n, p)Count successes in n independent trialsC(n,k)pk(1−p)n−k,k=0…nC(n,k) p^k (1-p)^{n-k}, k = 0…nnpnpnp(1−p)np(1-p)
Geometric(p)Trial number of the first success(1−p)k−1p,k=1,2,…(1-p)^{k-1} p, k = 1, 2, …1/p1/p(1−p)/p2(1-p)/p^2
Pascal / Neg. Binomial(r, p)Trial number of the r-th successC(k−1,r−1)pr(1−p)k−rC(k-1, r-1) p^r (1-p)^{k-r}r/pr/pr(1−p)/p2r(1-p)/p^2
HypergeometricDraw n items without replacement from N items, b of them “special”C(b,k)C(N−b,n−k)/C(N,n)C(b,k) C(N-b, n-k) / C(N, n)n⋅b/Nn \cdot b/N—
Poisson(λ\lambda)Count of random events in a fixed time/space (calls, defects, arrivals); λ\lambda = averagee−λλk/k!,k=0,1,2,…e^{-\lambda} \lambda^k / k!, k = 0, 1, 2, …λ\lambdaλ\lambda
  • Choosing a distribution: The context of the problem dictates which distribution to use.
  • Binomial: Use for a fixed number of trials where you count successes.
  • Geometric: Use when waiting for the first success in a series of trials.
  • Poisson: Use for counting random events over a fixed interval of time or space, without a fixed number of trials 6.

📝 If a call center receives an average of λ=3\lambda = 3 calls per minute, the probability of receiving no calls in a minute is P(X=0)=e−3≈0.0498P(X=0) = e^{-3} \approx 0.0498. The probability of receiving at least two calls is 1−P(0)−P(1)=1−e−3(1+3)≈0.8011 - P(0) - P(1) = 1 - e^{-3}(1 + 3) \approx 0.801. When using Poisson, ensure λ\lambda matches the interval specified in the question 6.

4. Continuous Random Variables

4.1 Introduction to continuous random variables

A continuous random variable can assume any value within a given interval, such as waiting time, height, or weight. Unlike discrete variables, the probability of a continuous random variable taking an exact value is zero due to the infinite number of possible values 7.

  • Probability density function (PDF), f(x)f(x): This curve describes the relative likelihood for a continuous random variable to take on a given value.
  • The PDF must satisfy f(x)≥0f(x) \ge 0 for all xx, and the total area under the curve must equal 1, i.e., ∫f(x) dx=1\int f(x)\,dx = 1.
  • The probability P(a≤X≤b)P(a \le X \le b) is calculated as the area under the PDF between aa and bb, which is ∫abf(x) dx\int_a^b f(x)\,dx.
  • Cumulative distribution function (CDF), F(x)F(x): This function gives the probability that a random variable XX will take a value less than or equal to xx, defined as F(x)=P(X≤x)=∫−∞xf(t) dtF(x) = P(X \le x) = \int_{-\infty}^x f(t)\,dt.
  • The PDF can be derived from the CDF by differentiation: f(x)=F′(x)f(x) = F'(x).
  • Mean (E[X]E[X]) and variance (Var(X)Var(X)): These are calculated using integrals, similar to how sums are used for discrete variables.
  • E[X]=∫xf(x) dxE[X] = \int x f(x)\,dx.
  • Var(X)=E[X2]−(E[X])2Var(X) = E[X^2] - (E[X])^2 7.

📝 If a continuous random variable XX has a PDF f(x)f(x), the probability of XX falling between aa and bb is F(b)−F(a)F(b) - F(a), which represents the area under the PDF curve from aa to bb 7.

4.2 Uniform and exponential distributions

The Uniform and Exponential distributions are common types of continuous random variables, each used in specific scenarios 7.

NameUse when...PDFMeanVariance
Uniform(a, b)Any value in [a,b][a, b] is equally likely (e.g., random arrival time)f(x)=1b−af(x) = \frac{1}{b-a} for a≤x≤ba \le x \le ba+b2\frac{a+b}{2}(b−a)212\frac{(b-a)^2}{12}
Exponential(λ\lambda)Waiting time until the next random event (e.g., Poisson events)f(x)=λe−λxf(x) = \lambda e^{-\lambda x}, x≥0x \ge 01λ\frac{1}{\lambda}1λ2\frac{1}{\lambda^2}
  • Exponential distribution properties:
  • CDF: F(x)=1−e−λxF(x) = 1 - e^{-\lambda x}.
  • Survival probability: P(X>x)=e−λxP(X > x) = e^{-\lambda x} 7.
  • Memoryless property: The probability of waiting an additional amount of time does not depend on how long one has already waited. This means the remaining waiting time has the same distribution as the initial waiting time 8.

📝 For an Exponential distribution with λ=0.2\lambda = 0.2 (e.g., a machine fails after an average of 5 hours), the probability that the machine lasts more than 10 hours is P(X>10)=e−0.2⋅10=e−2≈0.135P(X > 10) = e^{-0.2 \cdot 10} = e^{-2} \approx 0.135 8.

4.3 The Normal distribution

The Normal distribution, often called the bell curve, is the most important continuous distribution due to its prevalence in natural phenomena and statistical theory. It is characterized by its mean (μ\mu) and variance (σ2\sigma^2) 8.

  • PDF: The probability density function for a Normal distribution X∼N(μ,σ2)X \sim N(\mu, \sigma^2) is given by f(x)=1σ2π⋅e−(x−μ)22σ2f(x) = \frac{1}{\sigma\sqrt{2\pi}} \cdot e^{-\frac{(x-\mu)^2}{2\sigma^2}}.
  • Standardization: Any Normal random variable XX can be transformed into a standard Normal variable ZZ using the formula Z=X−μσZ = \frac{X - \mu}{\sigma}.
  • The standard Normal distribution, N(0,1)N(0, 1), has a mean of 0 and a variance of 1.
  • Probabilities for XX can be found using the standard Normal CDF, Φ(z)\Phi(z): P(X≤x)=Φ(x−μσ)P(X \le x) = \Phi\left(\frac{x - \mu}{\sigma}\right).
  • Symmetry: The standard Normal distribution is symmetric around 0, meaning Φ(−z)=1−Φ(z)\Phi(-z) = 1 - \Phi(z).
  • Sum of independent normals: The sum of independent Normal random variables is also a Normal random variable.
  • If X∼N(μX,σX2)X \sim N(\mu_X, \sigma_X^2) and Y∼N(μY,σY2)Y \sim N(\mu_Y, \sigma_Y^2), then X+Y∼N(μX+μY,σX2+σY2)X+Y \sim N(\mu_X+\mu_Y, \sigma_X^2+\sigma_Y^2) 8.

📝 If human heights are normally distributed with a mean of 170 cm and a standard deviation of 10 cm (N(170,102)N(170, 10^2)), the probability that a person's height is between 160 cm and 185 cm is calculated by standardizing the values: z1=(160−170)/10=−1z_1 = (160-170)/10 = -1 and z2=(185−170)/10=1.5z_2 = (185-170)/10 = 1.5. Then P(160<X<185)=Φ(1.5)−Φ(−1)=0.9332−0.1587=0.7745P(160 < X < 185) = \Phi(1.5) - \Phi(-1) = 0.9332 - 0.1587 = 0.7745 8.

5. Joint Distributions

When studying two random variables simultaneously, such as hours studied (XX) and exam grade (YY), their relationship can be analyzed using joint probability distributions. This approach allows for understanding how variables interact, including their independence, covariance, and correlation 9.

5.1 Joint probability mass function (PMF)

The joint PMF PXY(x,y)P_{XY}(x, y) gives the probability that two discrete random variables XX and YY take on specific values xx and yy simultaneously. The sum of all possible joint probabilities must equal 1 9.

  • Joint PMF: PXY(x,y)=P(X=x and Y=y)P_{XY}(x, y) = P(X = x \text{ and } Y = y).
  • Total sum: ∑x∑yPXY(x,y)=1\sum_x \sum_y P_{XY}(x, y) = 1 9.

5.2 Marginal and conditional probabilities

Marginal probabilities are derived by summing the joint PMF over all possible values of one variable, yielding the probability distribution of the other variable alone. Conditional probabilities describe the likelihood of one variable taking a specific value given that the other variable has already taken a specific value 9.

  • Marginal PMF: PX(x)=∑yPXY(x,y)P_X(x) = \sum_y P_{XY}(x, y) (for discrete variables).
  • Conditional probability: P(X=x∣Y=y)=PXY(x,y)PY(y)P(X = x | Y = y) = \frac{P_{XY}(x, y)}{P_Y(y)} 9.

5.3 Independence of random variables

Two random variables XX and YY are independent if the occurrence of one does not affect the probability of the other. This condition simplifies calculations for expected values and variances 9.

  • Independence condition: PXY(x,y)=PX(x)⋅PY(y)P_{XY}(x, y) = P_X(x) \cdot P_Y(y) for all pairs (x,y)(x, y).
  • Expected value of product: If XX and YY are independent, then E[XY]=E[X]E[Y]E[XY] = E[X] E[Y] 9.

5.4 Covariance and correlation

Covariance measures the extent to which two random variables change together. Correlation is a standardized measure of the linear relationship between two variables, always ranging between -1 and +1 9.

MeasureFormulaInterpretation
CovarianceCov(X,Y)=E[XY]−E[X]E[Y]Cov(X, Y) = E[XY] - E[X] E[Y]Measures how X and Y vary together
Correlationρ=Cov(X,Y)σXσY\rho = \frac{Cov(X, Y)}{\sigma_X \sigma_Y}Standardized linear relationship (between -1 and +1)
  • Relationship: Independence implies a covariance of zero, but a covariance of zero does not necessarily imply independence. Correlation only captures linear relationships 9.

📝 If XX and YY are independent with Var(X)=4Var(X) = 4 and Var(Y)=9Var(Y) = 9, then Var(X+Y)=4+9=13Var(X + Y) = 4 + 9 = 13. For Var(2X−Y)Var(2X - Y), it is 22⋅4+(−1)2⋅9=16+9=252^2 \cdot 4 + (-1)^2 \cdot 9 = 16 + 9 = 25 9.

5.5 Variance of sums of random variables

The variance of a sum or difference of random variables depends on their individual variances and their covariance. If the variables are independent, the covariance term becomes zero 9.

ExpressionVariance Formula
Var(X+Y)Var(X + Y)Var(X)+Var(Y)+2Cov(X,Y)Var(X) + Var(Y) + 2 Cov(X, Y)
Var(X−Y)Var(X - Y)Var(X)+Var(Y)−2Cov(X,Y)Var(X) + Var(Y) - 2 Cov(X, Y)
Var(aX+bY)Var(aX + bY)a2Var(X)+b2Var(Y)+2abCov(X,Y)a^2 Var(X) + b^2 Var(Y) + 2ab Cov(X, Y)
  • Independent variables: If XX and YY are independent, Cov(X,Y)=0Cov(X, Y) = 0, simplifying the variance formulas.
  • Sums of independent variables:
  • Binomial + Binomial (with same pp) is Binomial.
  • Poisson(λ1\lambda_1) + Poisson(λ2\lambda_2) = Poisson(λ1+λ2\lambda_1 + \lambda_2).
  • Normal + Normal is Normal 9.

6. Inequalities and Moment-Generating Functions

6.1 Bounds from limited information

When the full probability distribution is unknown, Markov's and Chebyshev's inequalities provide guaranteed upper bounds on the likelihood of extreme values, using only the mean and variance. These bounds are generally rough but always hold true 10.

InequalityConditionFormula
Markov's InequalityFor a non-negative random variable XXP(X≥a)≤E[X]aP(X \ge a) \le \frac{E[X]}{a}
Chebyshev's InequalityFor any random variable XX with mean μ\mu and standard deviation σ\sigmaP(∣X−μ∣≥kσ)≤1k2P(\vert X - \mu\vert \ge k\sigma) \le \frac{1}{k^2} or P(∣X−μ∣≥c)≤σ2c2P(\vert X - \mu\vert \ge c) \le \frac{\sigma^2}{c^2}

📝 For a factory with an average of 2 defects per batch, Markov's inequality states that the probability of having 10 or more defects is P(X≥10)≤210=0.2P(X \ge 10) \le \frac{2}{10} = 0.2 10.

6.2 Moment-generating functions

A moment-generating function (MGF), denoted as MX(s)M_X(s), is used to find the moments of a random variable XX 10.

  • Definition: The MGF is defined as MX(s)=E[esX]M_X(s) = E[e^{sX}].
  • Moments: The nn-th moment of XX, E[Xn]E[X^n], can be found by taking the nn-th derivative of MX(s)M_X(s) with respect to ss and evaluating it at s=0s=0.
  • Independence property: If XX and YY are independent random variables, the MGF of their sum is the product of their individual MGFs: MX+Y(s)=MX(s)⋅MY(s)M_{X+Y}(s) = M_X(s) \cdot M_Y(s) 10.

7. Limit Theorems

7.1 Law of Large Numbers (LLN)

The Law of Large Numbers (LLN) states that as the number of trials in an experiment increases, the observed sample average of a random variable converges to its true expected value or mean.

  • Convergence: The fraction of successes in repeated independent trials approaches the true probability of success as the number of trials grows 11.

📝 In a fair coin flip experiment, the fraction of heads approaches 0.5 as the number of flips increases significantly 11.

7.2 Central Limit Theorem (CLT)

The Central Limit Theorem (CLT) states that the distribution of sample means (or sums) of a large number of independent and identically distributed random variables approaches a normal distribution, regardless of the original distribution of the individual variables.

  • Conditions: The CLT applies when X1,…,XnX_1, \dots, X_n are independent random variables with the same mean μ\mu and standard deviation σ\sigma.
  • Rule of thumb: The CLT is generally applicable when the sample size nn is large, typically n≥30n \ge 30 11.
StatisticMeanStandard Deviation
Sample mean (average)μ\muσ/n\sigma / \sqrt{n}
Sum Sn=X1+⋯+XnS_n = X_1 + \dots + X_nnμn\muσn\sigma\sqrt{n}
  • Normal approximation formulas:
  • P(Sn≤x)≈Φ(x−nμσn)P(S_n \le x) \approx \Phi\left( \frac{x - n\mu}{\sigma\sqrt{n}} \right).
  • P(mean≤m)≈Φ(m−μσ/n)P(\text{mean} \le m) \approx \Phi\left( \frac{m - \mu}{\sigma/\sqrt{n}} \right) 11.

📝 If you average 30 values from any distribution, their average will already resemble a bell-shaped normal distribution 11.

7.3 Continuity correction

Continuity correction is applied when approximating a discrete probability distribution (like the binomial distribution) with a continuous one (like the normal distribution).

  • Purpose: It accounts for the fact that a discrete value is represented by an interval in a continuous distribution 11.
Discrete ProbabilityContinuity Correction
P(X≤k)P(X \le k)Use k+0.5k + 0.5
P(X≥k)P(X \ge k)Use k−0.5k - 0.5

📝 To approximate P(X≤k)P(X \le k) for a binomial distribution using the normal distribution, you would calculate the probability for k+0.5k + 0.5 in the normal distribution 11.

7.4 Normal approximation of binomial distribution

The normal distribution can approximate the Binomial(n,pn, p) distribution for large nn.

  • Formula: P(X≤k)≈Φ(k+0.5−npnp(1−p))P(X \le k) \approx \Phi\left( \frac{k + 0.5 - np}{\sqrt{np(1-p)}} \right).
  • Parameters: The mean of the binomial distribution is npnp, and its standard deviation is np(1−p)\sqrt{np(1-p)} 11.

📝 For 100 fair coin flips, to find P(at least 60 heads)P(\text{at least 60 heads}), the mean is 100×0.5=50100 \times 0.5 = 50 and σ=100×0.5×0.5=5\sigma = \sqrt{100 \times 0.5 \times 0.5} = 5. Using continuity correction for P(X≥60)P(X \ge 60), we use 59.559.5. The z-score is (59.5−50)/5=1.9(59.5 - 50) / 5 = 1.9, so P=1−Φ(1.9)≈0.029P = 1 - \Phi(1.9) \approx 0.029 11.

8. Statistics: from Data to Decisions

Statistics involves drawing conclusions about an unknown population model based on observed data, contrasting with probability, which predicts data from a known model 12.

8.1 Estimating the mean and variance

When estimating population parameters from a sample, specific formulas are used for the sample mean and variance 12.

  • Sample mean (xˉ\bar{x}): This is the average of the sample data points, calculated as the sum of all observations divided by the number of observations. It serves as an estimate for the population mean (μ\mu). xˉ=x1+⋯+xnn\bar{x} = \frac{x_1 + \dots + x_n}{n}
  • Sample variance (s2s^2): This measures the spread of data points in a sample around the sample mean. It is calculated by summing the squared differences between each observation and the sample mean, then dividing by (n−1)(n-1) to provide an unbiased estimate of the population variance (σ2\sigma^2). s2=∑(xi−xˉ)2n−1s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1}
  • Standard error of the mean: This estimates the variability of sample means if multiple samples were taken. It is calculated as the population standard deviation (σ\sigma) divided by the square root of the sample size (nn), or estimated using the sample standard deviation (ss) 12. σnorsn\frac{\sigma}{\sqrt{n}} \quad \text{or} \quad \frac{s}{\sqrt{n}}

8.2 Confidence interval for a mean

A confidence interval provides a range within which the true population mean is likely to fall, based on sample data and a chosen confidence level 12.

  • Interpretation: If the sampling process were repeated many times, approximately 95% of the confidence intervals constructed would contain the true population mean.
  • Interval width: A larger sample size (nn) or a lower confidence level results in a narrower confidence interval 12.
ConditionFormula for Confidence Interval
σ\sigma known, or nn largexˉ±z⋅σn\bar{x} \pm z \cdot \frac{\sigma}{\sqrt{n}}
σ\sigma unknown, small nn (data roughly normal)xˉ±t⋅sn\bar{x} \pm t \cdot \frac{s}{\sqrt{n}}
Confidence Levelz-value
90%1.645
95%1.96
99%2.576
  • t-value: When the population standard deviation (σ\sigma) is unknown and the sample size (nn) is small, the t-distribution is used. The t-value is obtained from a t-table using (n−1)(n-1) degrees of freedom 12.

📝 For a sample of n=36n=36 with a sample mean (xˉ\bar{x}) of 100 and a sample standard deviation (ss) of 12, a 95% confidence interval is calculated as 100±1.96⋅1236=100±1.96⋅2=100±3.92100 \pm 1.96 \cdot \frac{12}{\sqrt{36}} = 100 \pm 1.96 \cdot 2 = 100 \pm 3.92. This results in an interval of (96.08,103.92)(96.08, 103.92) 12.

9. Confidence interval for a mean

This section focuses on hypothesis testing, a statistical method used to make decisions about a population based on sample data. It outlines a five-step process for conducting a hypothesis test, which involves comparing a test statistic to a critical value or p-value to determine whether to reject the null hypothesis 13.

9.1 Hypothesis testing – the 5 steps

Hypothesis testing involves a structured approach to evaluate a claim about a population parameter using sample data. The process typically includes stating hypotheses, setting a significance level, computing a test statistic, determining a p-value or critical value, and making a decision 13.

StepAction
1State the null hypothesis (H0H_0) and the alternative hypothesis (H1H_1).
2Choose a significance level (α\alpha), typically 0.05.
3Compute the test statistic, such as z=(xˉ−μ0)/(σ/n)z = (\bar{x} - \mu_0) / (\sigma/\sqrt{n}) or a t-statistic if σ\sigma is unknown and n is small.
4Find the p-value or compare the test statistic with the critical value (e.g., ±1.96\pm 1.96 for α=0.05\alpha = 0.05, two-sided).
5Reject H0H_0 if the p-value < α\alpha or if ∣z∣\vert z\vert > critical value; otherwise, do not reject H0H_0.

📝 Consider a test where H0:μ=50H_0: \mu = 50 and H1:μ≠50H_1: \mu \neq 50. Given a sample size n=25n = 25, sample mean xˉ=53\bar{x} = 53, and population standard deviation σ=10\sigma = 10, the z-statistic is calculated as z=(53−50)/(10/25)=3/(10/5)=3/2=1.5z = (53 - 50) / (10/\sqrt{25}) = 3 / (10/5) = 3/2 = 1.5. For a two-sided test with α=0.05\alpha = 0.05, the p-value is 2⋅(1−0.9332)=0.1342 \cdot (1 - 0.9332) = 0.134. Since 0.134>0.050.134 > 0.05, we do not reject H0H_0, indicating insufficient evidence that the mean differs from 50 13.

Errors in hypothesis testing:

  • Type I error: This occurs when the null hypothesis (H0H_0) is rejected even though it is true, with a probability equal to the significance level α\alpha.
  • Type II error: This occurs when the null hypothesis (H0H_0) is not rejected even though it is false.
  • Interpretation: "Do not reject H0H_0" does not mean H0H_0 is proven true; it simply means there is not enough evidence to reject it 13.

9.2 Linear regression and Bayesian estimation (short)

Linear regression is a statistical method used to model the relationship between a dependent variable (yy) and one or more independent variables (xx) by fitting a linear equation to observed data.

  • Regression line: The line y=β0+β1xy = \beta_0 + \beta_1 x is chosen to minimize the sum of squared vertical errors between the observed data points and the line.
  • Coefficients: The slope β1\beta_1 and y-intercept β0\beta_0 are calculated using specific formulas:
  • β1=Σ(xi−xˉ)(yi−yˉ)/Σ(xi−xˉ)2\beta_1 = \Sigma (x_i - \bar{x})(y_i - \bar{y}) / \Sigma (x_i - \bar{x})^2.
  • β0=yˉ−β1⋅xˉ\beta_0 = \bar{y} - \beta_1 \cdot \bar{x} 13.

Bayesian estimation is an approach to statistical inference where prior knowledge about a parameter is combined with observed data to produce a posterior distribution.

  • Bayes' rule: It is applied to an unknown parameter θ\theta, stating that the posterior probability is proportional to the likelihood multiplied by the prior probability: P(θ∣data)=P(data∣θ)P(θ)/P(data)P(\theta | \text{data}) = P(\text{data} | \theta) P(\theta) / P(\text{data}) 13.

10. One-Page Formula Cheat Sheet

10.1 Key probability formulas

This section summarizes fundamental probability concepts and their associated formulas, essential for calculating event likelihoods and relationships between events.

  • Basic probability:
  • P(Ac)=1−P(A)P(A^c) = 1 - P(A) for the complement of event A.
  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B) for the union of events A and B.
  • P(A∣B)=P(A∩B)/P(B)P(A|B) = P(A \cap B) / P(B) for conditional probability.
  • Independent events: P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B) when events A and B do not affect each other.
  • Total probability and Bayes' theorem:
  • P(A)=∑P(A∣Bi)P(Bi)P(A) = \sum P(A|B_i)P(B_i) for the total probability of event A.
  • P(Bi∣A)=P(A∣Bi)P(Bi)/P(A)P(B_i|A) = P(A|B_i)P(B_i) / P(A) for Bayes' theorem, calculating posterior probability 14.

10.2 Counting principles

Counting principles determine the number of possible arrangements or selections of items, considering whether order matters and if repeats are allowed.

  • Factorial: n!n! calculates the number of ways to arrange nn distinct items.
  • Permutations (ordered, no repeat): n!/(n−k)!n! / (n-k)! calculates arrangements of kk items from nn where order matters and items are not replaced.
  • Combinations (unordered, no repeat): C(n,k)=n!/(k!(n−k)!)C(n,k) = n! / (k!(n-k)!) calculates selections of kk items from nn where order does not matter.
  • Ordered with repeat: nkn^k calculates arrangements of kk items from nn where order matters and items can be repeated 14.

10.3 Mean and variance

The mean (expected value) and variance are fundamental measures describing the central tendency and spread of a random variable.

  • Expected value: E[X]=∑xP(x)E[X] = \sum x P(x) for discrete variables, or E[X]=∫xf(x)dxE[X] = \int x f(x)dx for continuous variables.
  • Variance: Var=E[X2]−(E[X])2Var = E[X^2] - (E[X])^2 measures the spread of the distribution.
  • Linear transformation of variance: Var(aX+b)=a2Var(X)Var(aX+b) = a^2Var(X) shows how scaling and shifting affect variance 14.

10.4 Probability distributions

Various probability distributions model different types of random phenomena, each with specific formulas for probability, mean, and variance.

DistributionProbability FormulaMeanVariance
Binomial(n,p)C(n,k)pk(1−p)n−kC(n,k)p^k(1-p)^{n-k}npnpnp(1−p)np(1-p)
Geometric(p)(1−p)k−1p(1-p)^{k-1}p1/p1/p(1−p)/p2(1-p)/p^2
Poisson(λ\lambda)e−λλk/k!e^{-\lambda}\lambda^k/k!λ\lambdaλ\lambda
Uniform(a,b)f=1/(b−a)f = 1/(b-a)(a+b)/2(a+b)/2(b−a)2/12(b-a)^2/12
Exponential(λ\lambda)f=λe−λxf = \lambda e^{-\lambda x}1/λ1/\lambda1/λ21/\lambda^2
  • Normal distribution (μ,σ2\mu, \sigma^2):
  • Standardization: Z=(X−μ)/σZ = (X-\mu)/\sigma transforms a normal variable into a standard normal variable.
  • Probability: P(X≤x)=Φ(z)P(X \le x) = \Phi(z) uses the cumulative distribution function Φ\Phi.
  • Symmetry: Φ(−z)=1−Φ(z)\Phi(-z) = 1 - \Phi(z).
  • Empirical rule: Approximately 68%, 95%, and 99.7% of data fall within 1, 2, and 3 standard deviations of the mean, respectively 14.

10.5 Joint distributions and inequalities 14

Joint distributions describe the behavior of multiple random variables, while inequalities provide bounds on probabilities.

  • Covariance: Cov=E[XY]−E[X]E[Y]Cov = E[XY] - E[X]E[Y] measures the linear relationship between two variables.
  • Correlation coefficient: ρ=Cov/(σXσY)\rho = Cov / (\sigma_X \sigma_Y) normalizes covariance to a value between -1 and 1.
  • Variance of sum: Var(X+Y)=VarX+VarY+2CovVar(X+Y) = Var X + Var Y + 2Cov for the sum of two variables.
InequalityFormulaPurpose
Markov's InequalityP(X≥a)≤E[X]/aP(X \ge a) \le E[X]/aBounds probability for non-negative random variables
Chebyshev's InequalityP(∣X−μ∣≥kσ)≤1/k2P(\vert X-\mu\vert \ge k\sigma) \le 1/k^2Bounds probability of deviation from the mean for any distribution

10.6 Central Limit Theorem (CLT) and statistics

The Central Limit Theorem is crucial for approximating sample means and sums with a normal distribution, and statistics provides tools for inference.

  • CLT for mean: The sample mean of nn independent observations has a mean of μ\mu and a standard deviation of σ/n\sigma/\sqrt{n}.
  • CLT for sum: The sum of nn independent observations has a mean of nμn\mu and a standard deviation of σn\sigma\sqrt{n}.
  • Binomial approximation: Use a continuity correction of ±0.5\pm 0.5 when approximating a binomial distribution with a normal distribution.
  • Sample variance: s2=∑(x−xˉ)2/(n−1)s^2 = \sum(x-\bar{x})^2 / (n-1) is an unbiased estimator of population variance.
  • Confidence interval (CI): xˉ±z(σ/n)\bar{x} \pm z (\sigma/\sqrt{n}) estimates a population mean.
  • Z-test statistic: (xˉ−μ0)/(σ/n)(\bar{x}-\mu_0) / (\sigma/\sqrt{n}) tests hypotheses about a population mean.
  • Rejection rule: Reject the null hypothesis if the p-value is less than the significance level α\alpha 14.

10.7 Common mistakes to avoid

Avoiding common errors is critical for accurate problem-solving in probability and statistics.

  • Counting: Do not confuse combinations (C(n,k)C(n,k)) with permutations when order matters, and always verify if repeats are allowed.
  • Event types: Distinguish between disjoint events (cannot occur simultaneously) and independent events (occurrence of one does not affect the other).
  • Complement trick: Remember to use the complement rule for "at least one" probability problems.
  • Standard deviation: Use σ/n\sigma/\sqrt{n} for the standard deviation of an average, not σ\sigma.
  • Normal distribution: Always standardize (Z=(X−μ)/σZ = (X-\mu)/\sigma) before using the normal table, and correctly interpret Φ(−z)\Phi(-z) as 1−Φ(z)1 - \Phi(z).
  • Poisson/Exponential: Ensure consistency in the units of λ\lambda across problems.
  • Sample variance: Divide by n−1n-1 for the sample variance (s2s^2), not nn 14.

10.8 Practice questions

These questions test understanding of key concepts and formula application.

  • 1. Probability without replacement: A bag has 3 red and 2 blue balls. Two balls are drawn without replacement. What is the probability that both are red?
  • 2. Permutations: How many different 3-letter codes can be made from the letters A–Z if repeats are NOT allowed?
  • 3. Binomial distribution: X ~ Binomial(8, 0.25). Find P(X=2)P(X = 2), E[X]E[X], and Var(X)Var(X).
  • 4. Poisson distribution: Emails arrive at an average of 4 per hour (Poisson). What is the probability of no email in one hour?
  • 5. Exponential distribution: Waiting time ~ Exponential with mean 10 minutes. What is the probability of waiting more than 20 minutes?
  • 6. Normal distribution: Test scores ~ N(60, 10210^2). What is P(X>75)P(X > 75)?
  • 7. Central Limit Theorem: 50 independent values, each with mean 20 and σ=5\sigma = 5. What is P(average<19)P(\text{average} < 19)?

📝 For question 1, the probability of drawing two red balls without replacement is calculated as (3/5)×(2/4)=3/10=0.3(3/5) \times (2/4) = 3/10 = 0.3 14.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also