← Module 15 overview
Module 15 · Project 7 · Due the date on Canvas · Synthesis Portfolio & Evidence Workshop · adaptive competency DV23

Concept review — Probability, distributions and sampling

This page is a compact reference for selected mathematical concepts from the course, intended for review before the portfolio defense. Each entry states what the concept is and when it applies, with its defining equation where one exists.

Probability & Random Variables

Random Variable
A function that assigns a real number to each outcome of a random process. A discrete random variable takes countably many values, such as 0, 1 and 2; a continuous random variable assigns probability zero to each single value. Modules 3–5 use random variables to model uncertainty in data.
Sample Space
The set of all possible outcomes of a random experiment. A probability is defined relative to a sample space, so the outcomes must be specified before a probability can be computed.
Probability Mass Function (PMF)
For a discrete random variable, the PMF gives \( P(X = x) \) for each possible value \( x \). Its values are nonnegative and sum to 1. In Module 3, the reactive probability table lets you edit the probability column and see the PMF, CDF and moments update.
Cumulative Distribution Function (CDF)
The CDF is \( F(x) = P(X \le x) \). It is nondecreasing and right-continuous, with limit 0 as \( x \to -\infty \) and limit 1 as \( x \to \infty \). A discrete distribution has a CDF with jumps; a continuous distribution has a continuous CDF, which need not be smooth. For a distribution with a density, interval probabilities are integrals of that density.
Probability Density Function (PDF)
For a continuous probability distribution, probabilities are represented by areas under the probability density function, rather than by the height of the density curve at a particular point. The total area under the PDF equals 1.
Expected Value
The population mean, when the expectation exists. For a discrete variable, \( E[X] = \sum_x x\,P(X = x) \); for a continuous variable with density \( f \), \( E[X] = \int x\,f(x)\,dx \). It is the center of mass of the distribution, the point at which the distribution balances.
Variance and Standard Deviation
Variance \( \operatorname{Var}(X) = E[(X - \mu)^2] \) measures spread around the mean. Standard deviation \( \sigma = \sqrt{\operatorname{Var}(X)} \) is in the same units as the data, making it more interpretable. Together with the mean, these two numbers summarize the center and spread of a distribution.

Discrete Distribution Models

Bernoulli Distribution
A single trial with two outcomes: success (1) with probability \( p \) and failure (0) with probability \( 1-p \). Its mean is \( p \) and its variance is \( p(1-p) \). The binomial model is built from independent Bernoulli trials.
Binomial Distribution
Counts successes in \( n \) independent Bernoulli trials with a common success probability \( p \): \( P(X=k) = \binom{n}{k} p^k (1-p)^{n-k} \) for \( k = 0, 1, \ldots, n \). Its mean is \( np \) and its variance is \( np(1-p) \). Unequal probabilities or dependent trials require a different model.
Geometric Distribution
For independent Bernoulli trials with a common success probability \( 0 < p \le 1 \), the number of trials \( T \) until the first success has \( P(T=k) = (1-p)^{k-1}p \) for \( k = 1, 2, \ldots \), and mean \( 1/p \). R’s dgeom() and rgeom() instead count the failures \( F = T-1 \), starting at 0, with mean \( (1-p)/p \). Add 1 to an R draw when reporting trials.
Poisson Distribution
A count model with mean and variance \( \lambda \): \( P(X=k) = \lambda^k e^{-\lambda}/k! \) for \( k = 0, 1, \ldots \). A homogeneous Poisson process motivates counts over a fixed exposure through a constant rate and independent increments. Events need not be rare. Exposure and dispersion should be checked before the model is applied to observed counts.

Continuous Distributions

Normal Distribution
The symmetric distribution \( N(\mu, \sigma^2) \), with \( \sigma > 0 \). Approximately 68% of its probability lies within one standard deviation of \( \mu \) and approximately 95% within two. These percentages are properties of the model, not guarantees for arbitrary observed data.
Z-Score
Standardizes a value: \( z=(x-\mu)/\sigma \). A z-score tells you how many standard deviations an observation is above or below the mean, and lets you compare values from different normal distributions on a common scale.
Percentile
For a probability \( q \), the \( q \) quantile is the smallest \( x \) with \( F(x) \ge q \); a discrete distribution may place more than that proportion at or below the quantile. The 50th percentile is the median. Percentiles are read from the CDF and locate a value within a distribution, as in the reporting of standardized test scores.
Exponential Distribution
For a Poisson process with rate \( \lambda > 0 \), the waiting time between events has density \( f(x)=\lambda e^{-\lambda x} \) for \( x\ge 0 \). It is memoryless: \( P(X > s + t \mid X > s) = P(X > t) \), so the distribution of the remaining wait does not depend on the time already elapsed. Module 5 uses it as the skewed parent distribution in the Central Limit Theorem simulation.

Sampling and Inference

Central Limit Theorem (CLT)
For independent, identically distributed observations with finite mean \( \mu \) and finite, positive variance \( \sigma^2 \), the standardized sample mean converges in distribution to \( N(0,1) \). A normal approximation may therefore be useful for sufficiently large \( n \). Heavy tails can slow convergence even when the variance is finite, and there is no universal sufficient sample size. The theorem does not repair biased sampling or justify ignoring dependence.
Sampling Distribution
The distribution of a statistic (like the sample mean) over all possible samples of the same size. A justified CLT can approximate the sampling distribution of a mean; it does not describe every statistic or every design. Sampling distributions support uncertainty calculations under stated assumptions.
Standard Error (SE)
The standard deviation of a statistic’s sampling distribution. For the mean of an independent, identically distributed sample with variance \( \sigma^2 \), \( \mathrm{SE} = \sigma / \sqrt{n} \), estimated by \( s / \sqrt{n} \). Dependence or unequal variances require different uncertainty calculations, and a larger biased sample does not remove selection bias.
Confidence Interval
For independent observations from a normal population with unknown standard deviation, the classical interval for the mean is \( \bar{x} \pm t^*_{n-1}\, s/\sqrt{n} \). Its nominal coverage is exact under those assumptions; approximate use requires justification. A \( z \) critical value is appropriate when the population standard deviation is known under the normal model or for a justified approximation. A 95% confidence procedure covers the fixed parameter in 95% of repeated samples under its model; it does not assign a 95% probability to the parameter lying in the observed interval (Hoekstra et al., 2014).
Bootstrap
Resamples the observed data with replacement to approximate the sampling distribution of a statistic (Efron, 1979). The ordinary nonparametric bootstrap treats observations as independent draws and requires conditions appropriate to the statistic. It does not resolve heavy tails, nonrepresentative sampling or dependence; dependent data may require a block bootstrap or a model-based method.
Monte Carlo Simulation
Estimates a specified quantity using repeated simulated draws. For independent, identically distributed draws with finite variance, the Monte Carlo standard error of an average is proportional to \( 1 / \sqrt{B} \), where \( B \) is the number of replications. More draws reduce simulation error, not model bias, selection bias or uncertainty about the population.