and discrete models
Data, events, and random variables
Meaning
Categorical variables label groups. Quantitative variables measure amounts. An event collects outcomes. A random variable assigns a number to each outcome.
When to use it
“Describe the data” calls for a statistic. “How likely?” calls for an event. “Number of…” often defines a count X.
Mean and median
Meaning
The mean is the arithmetic balance point. After sorting, xj is the jth observation and the median x~ divides the data into lower and upper halves.
When to use it
Use the mean for an arithmetic average. Use the median for a resistant center when skew or extreme observations matter.
Changes to a dataset
Meaning
The original total is nxˉ. Update that total and the number of observations, then divide to find the new mean.
When to use it
Use for adding, removing, or replacing data values. To update the median, re-sort and locate the new middle position or positions.
Quartiles and the five-number summary
Meaning
The five-number summary is minimum, Q1, median x~, Q3, maximum. The quartiles mark the lower and upper quarters.
When to use it
For a noninteger position, move fraction d of the way from observation j to observation j+1. At an integer position, use that observation.
IQR and outlier boxplots
Meaning
The box runs from Q1 to Q3, with a line at the median. Whiskers end at the most extreme observed values inside the fences.
When to use it
Use a boxplot to compare center, middle-half spread, asymmetry, and possible outliers across quantitative distributions.
Population and sample variance
Meaning
Variance averages squared deviations from the relevant mean. SD is the square root: σ=σ2 and s=s2.
When to use it
Choose the denominator from the task: a complete population, an estimated population variance, or a probability model.
Shifts, scales, and standardized values
Meaning
A shift changes the center. Scaling by a multiplies SD by ∣a∣ and variance by a2. A z-score measures distance from the mean in SD units.
When to use it
Use these rules for unit conversions, adding a constant, or comparing relative position. Standardization requires positive SD.
Covariance
Meaning
Covariance averages products of paired deviations. Same-direction deviations contribute positively. Units are x-units times y-units.
When to use it
Use it to quantify joint direction, compute correlation, or build the least-squares slope. Keep each observed pair intact.
Correlation
Meaning
Correlation gives the direction and strength of linear association. It is unitless. A larger ∣r∣ means a closer linear relationship.
When to use it
Use r to compare linear association across scales. Inspect the scatterplot for curvature and influential observations first.
r=0 does not imply independence. Correlation alone does not establish causation.
Least-squares regression
Meaning
x is the explanatory variable and y is the response. The slope gives predicted y change per x unit. A positive residual means observed y exceeds predicted y.
When to use it
Use the line for linear prediction with variation in x. Least squares minimizes ∑iei2 and the fitted line passes through (xˉ,yˉ).
Events and set operations
Meaning
S is the sample space. An event is a subset of S. Ac contains outcomes outside A. Disjoint events have A∩B=∅.
When to use it
“And” suggests an intersection. Inclusive “or” suggests a union. “Neither” means Ac∩Bc. “Exactly one” excludes the overlap.
Probability rules
Meaning
The union formula subtracts the overlap counted twice. For disjoint events, the overlap is empty and probabilities add.
When to use it
“At least one” is often easiest as one minus “none.” For finite equally likely outcomes only, P(A)=#A/#S.
Counting by the sampling mechanism
Meaning
The product rule multiplies the number of choices at successive stages. Add counts when alternatives are disjoint.
When to use it
“Arrange” or “sequence” makes order matter. “Choose a group” usually makes order irrelevant. Replacement keeps objects available.
Conditional probability and multiplication
Meaning
Conditioning keeps outcomes in B and rescales their total probability to one. The denominator is the group named after “given.”
When to use it
Use conditional probabilities when earlier outcomes change later chances, or when the question restricts the reference group.
Independence
Meaning
Independence means learning one event occurred does not change the probability of the other. Disjointness means both cannot occur.
When to use it
Use a product of marginal probabilities only when independence follows from the model or has been established.
Law of total probability
Meaning
Each term is the probability of one route into A: first belong to group Bi, then satisfy A within that group.
When to use it
Use when a population or experiment splits into distinct groups, mechanisms, or starting states with different conditional chances.
Bayes’ rule
Meaning
Prior P(Bj): group probability before evidence. Likelihood P(A∣Bj): evidence probability within the group. Posterior: group probability after evidence.
When to use it
Use when evidence is observed and the question asks which group or source produced it. Work from the known conditioning direction.
Discrete random variables and PMFs
Meaning
The support lists possible values with positive mass. Multiple experimental outcomes can contribute to the same value of X.
When to use it
Define X in words, list its support, and translate the question into a set of values. Then sum the corresponding masses.
Expectation
Meaning
Expectation is a probability-weighted average. E[g(X)] averages the transformed values using the original probabilities.
When to use it
Use for a long-run average, expected count, or average value after a transformation. The mean need not be a possible outcome.
Variance of a random variable
Meaning
Variance is the weighted mean squared distance from the mean. It is nonnegative. σX=V(X) returns to the original units.
When to use it
Use the definition to interpret spread. Use the second-moment identity when E(X) and E(X2) are easier to compute.
Linear combinations: means and variances
Meaning
Expectations add without independence. Variance also contains a covariance term. A constant shift contributes no variance.
When to use it
Use for totals, differences, weighted combinations, and changes of units. Retain the covariance term unless it is zero.
Covariance, sums, and averages
Meaning
Independent variables have E(XY)=E(X)E(Y) and zero covariance. Zero covariance alone does not establish independence.
When to use it
Use the sum formula to track dependence. For an average of n independent equal-variance measurements, σX=σ/n
Bernoulli variables and indicators
Meaning
An indicator records whether an event occurs. “Success” is simply the outcome chosen for counting, and 0≤p≤1.
When to use it
Use Bernoulli for one yes/no outcome. Write a count as X=∑iIi to compute E(X)=∑iP(Ai), even with dependence.
Independent indicators with different probabilities
Meaning
Let independent Ii be 1 with probability pi and 0 otherwise, with 0≤pi≤1. X=∑iIi counts the successes.
When to use it
Use for independent trials with different success chances. Each J names a success pattern. Add the weights for all patterns with k successes.
Binomial distribution
Meaning
(kn) chooses the success positions. The powers give the probability of one arrangement with k successes and n−k failures.
When to use it
Use when there are a fixed n binary trials, mutual independence, and the same success probability p at every trial.
Translating count questions
Meaning
For integer counts: “fewer than k” means X≤k−1. “More than k” means X≥k+1. “At least one” is the complement of zero.
When to use it
Use the chosen model’s PMF inside the sum. Limit the summation to its valid support, then use a complement if that is simpler.
Hypergeometric distribution
Meaning
N objects contain K successes. A uniformly random sample of n distinct objects gives X successes. The draws are generally dependent.
When to use it
Use for a fixed-size sample without replacement from a known finite population. The numerator chooses both successes and failures.
Poisson distribution
Meaning
λ is the expected count for the stated exposure. Under a homogeneous Poisson process, r is the constant rate and t is the exposure length.
When to use it
Use for event counts under a model with independent disjoint increments and rare single events in very small intervals.
Choosing a discrete model
Meaning
The sampling mechanism determines the distribution. The desired event then determines a PMF term, sum, or complement.
When to use it
Identify what X counts, its support, the parameters, and which assumptions the wording actually supplies.
A reliable setup and answer check
Identify the object
A statistic, an event, or a random variable
Translate the wording
The reference group, support, and event endpoints
Justify the formula
The sampling mechanism and required assumptions
Interpret and check
Probability bounds, units, signs, and plausibility