Mathematical theory review
This review summarizes selected mathematical constructs from Modules 1–14. The synthesis narrative must identify, explain and defend the constructs on which its evidence relies, stating for each what it is, when it applies and what it cannot establish.
1. Description, Missingness and Visual Encoding (Modules 1–2)
An analysis begins by fixing the population, the observational unit and the variables, and by recording how values went missing. Values are missing completely at random when the probability that a value is missing depends on no value in the data, observed or unobserved; when missingness depends on the outcome itself, deleting incomplete rows can bias every summary computed from the rows that remain (Rubin, 1976). For \( n \) observations the sample mean is \( \bar x = n^{-1}\sum_i x_i \) and the sample standard deviation is \( s = \sqrt{\sum_i (x_i - \bar x)^2/(n-1)} \). The median and the interquartile range \( Q_3 - Q_1 \) describe center and spread without being moved by a few extreme values, and a box plot displays them together (McGill et al., 1978). A chart is read through its encoding: readers judge position along a common scale more accurately than length, angle or area (Cleveland & McGill, 1984), so a bar's length must be proportional to its value from a zero baseline.
2. Probability Foundations and Discrete Distributions (Modules 3–5)
A random variable \(X\) maps outcomes from a sample space to real numbers. A probability mass function (PMF) \( f(x) = P(X = x) \) assigns probability to each discrete outcome and must satisfy two conditions: \( f(x) \geq 0 \) for every \( x \), and \( \sum_x f(x) = 1 \). The cumulative distribution function (CDF) is \( F(x) = P(X \leq x) \). The expected value is \( E[X] = \sum_x x \, f(x) \), and the variance is \( \mathrm{Var}(X) = E[X^2] - (E[X])^2 \), with standard deviation \( \sigma = \sqrt{\mathrm{Var}(X)} \).
Module 3 studied three discrete models: the binomial and geometric distributions, both built on independent Bernoulli trials, and the Poisson distribution for counts over a fixed exposure. A Bernoulli trial has outcomes 0 and 1 with \( P(X=1) = p \), giving \( E[X] = p \) and \( \mathrm{Var}(X) = p(1-p) \). The binomial distribution counts successes in \( n \) independent Bernoulli trials with the same success probability \( p \): \( P(X=k) = \binom{n}{k} p^k (1-p)^{n-k} \), with \( E[X] = np \) and \( \mathrm{Var}(X) = np(1-p) \). The geometric distribution counts trials until the first success: \( P(X=k) = (1-p)^{k-1} p \), with \( E[X] = 1/p \), for \( k = 1, 2, \ldots \) and \( 0 < p \le 1 \). R’s geometric functions index the number of failures before the first success: add 1 to an rgeom() draw to obtain the trial count, and evaluate \( P(X=k) \) as dgeom(k - 1, p). The Poisson distribution models event counts over a fixed exposure with mean \( \lambda \): \( P(X=k) = \frac{\lambda^k e^{-\lambda}}{k!} \), with \( E[X] = \mathrm{Var}(X) = \lambda \). A homogeneous Poisson process assumes a constant rate and independent increments; the events need not be rare. Check exposure and dispersion.
3. Continuous Distributions and Normal Models (Modules 4–5)
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. For \( f(x) \), \( P(a \leq X \leq b) = \int_a^b f(x)\,dx \) and the total area equals 1. The normal distribution \( N(\mu, \sigma^2) \) has density \( f(x) = \frac{1}{\sigma\sqrt{2\pi}} \, e^{-(x-\mu)^2 / (2\sigma^2)} \). A z-score standardizes any normal variable: \( z = \frac{x - \mu}{\sigma} \), mapping it to the standard normal \( N(0, 1) \). Percentiles and tail probabilities are read from the standard normal CDF \( \Phi(z) \).
4. Sampling Distributions and the Central Limit Theorem (Module 5)
The Central Limit Theorem (CLT) states that for independent and identically distributed observations with finite mean \( \mu \) and finite positive variance \( \sigma^2 \), the sample mean converges in distribution:
\[ \sqrt{n}\,\frac{\bar{X}_n - \mu}{\sigma} \;\xrightarrow{d}\; N(0,\,1) \]
Equivalently, for large \( n \), \( \bar{X}_n \stackrel{\text{approx}}{\sim} N\!\left(\mu,\, \frac{\sigma^2}{n}\right) \). The standard error of the mean is \( \mathrm{SE} = \frac{\sigma}{\sqrt{n}} \). The CLT justifies normal-based inference for means even when the underlying distribution is non-normal, provided the sampling assumptions hold and the sample is large enough for the population tail behavior. It does not repair biased sampling, dependent observations, or heavy-tailed distributions with infinite variance.
When \( \sigma \) is unknown, a classical confidence interval for a normal-population mean is \( \bar{x} \pm t^*_{n-1} \frac{s}{\sqrt{n}} \). When \( \sigma \) is known, use \( \bar{x} \pm z^* \frac{\sigma}{\sqrt{n}} \); \( z^* \approx 1.96 \) for 95%. Large-sample procedures may use the normal approximation when its conditions are defensible. The bootstrap resamples the observed data with replacement to approximate the sampling distribution empirically (Efron, 1979) — valid only under conditions appropriate to the sampling design and statistic; it does not automatically resolve infinite variance, dependence or biased sampling. Monte Carlo simulation estimates quantities of interest by repeated random sampling with simulation error distinct from sampling and model uncertainty. For independent replications with finite variance, Monte Carlo standard error decreases in proportion to the inverse square root of the replication count.
5. Correlation, Regression, and Model Claims (Module 4)
Covariance measures linear co-movement: \( \mathrm{Cov}(X, Y) = E[(X - \mu_X)(Y - \mu_Y)] \). The population Pearson correlation is \( \rho = \frac{\mathrm{Cov}(X, Y)}{\sigma_X \sigma_Y} \), defined when both variances are finite and positive and bounded to \([-1, 1]\); its sample analog is \( r=s_{XY}/(s_Xs_Y) \). Ordinary least squares (OLS) regression fits a line \( \hat{y} = \hat{\beta}_0 + \hat{\beta}_1 x \) by minimizing the residual sum of squares \( \sum (y_i - \hat{y}_i)^2 \). For simple OLS with an intercept and nonzero predictor variation, the slope is \( \hat{\beta}_1 = s_{XY}/s_X^2 \), which equals \( r \cdot \frac{s_Y}{s_X} \) when \( s_Y > 0 \). Residuals \( e_i = y_i - \hat{y}_i \) are assessed for systematic structure; an apparently patternless plot does not prove model validity. Heteroscedasticity (non-constant conditional variance) makes conventional homoscedastic standard errors unreliable; they may be too small or too large. Leverage measures how unusual an observation is in predictor space; high leverage creates the potential for influence, while actual influence also depends on the residual — a single high-leverage observation can reverse the slope. You learned to diagnose these issues visually and to defend when a regression claim is justified versus an overreach.
6. Bayesian Updating and Model Criticism (Module 9)
Bayes’ theorem updates a prior belief with observed evidence:
\[ P(\theta \mid \text{data}) = \frac{P(\text{data} \mid \theta) \, P(\theta)}{P(\text{data})} \]
The prior \( P(\theta) \) encodes belief before seeing data. The likelihood is the observed-data probability mass or density treated as a function of the parameter. In the formula, \( P \) denotes mass or density as appropriate; for continuous parameters, the posterior is a density. The posterior \( P(\theta \mid \text{data}) \) is the updated belief. With a conjugate prior, the posterior falls in the same family as the prior — for example, a Beta prior paired with a binomial likelihood yields a Beta posterior: \( \mathrm{Beta}(\alpha, \beta) \to \mathrm{Beta}(\alpha + k, \, \beta + n - k) \). Posterior predictive checks draw parameters from the posterior and replicate data under the observation model (Gabry et al., 2019). Compare specified features of those replicates with the observed data. A discrepancy warrants investigation; agreement on selected features does not prove the model true. State whether the comparison uses fitted or held-out data.
7. Linear Algebra and Principal Component Analysis (Module 10; standardization in Module 6)
PCA reduces dimensionality by finding orthogonal directions of maximum variance (Jolliffe & Cadima, 2016). Starting from a centered data matrix—usually standardized as well when variables use incomparable units—PCA can be expressed through the eigenvalues and eigenvectors of the sample covariance matrix \( \mathbf{S} \). Each eigenvalue \( \lambda_i \) gives the variance of the scores along the corresponding unit eigenvector; the eigenvector is a direction, not a score. The proportion of variance explained by component \( i \) is \( \lambda_i / \sum_j \lambda_j \). A scree plot displays eigenvalues or their variance proportions in descending order to help decide how many components to retain. Loadings measure how much each original variable contributes to a component; a biplot overlays scores and loadings to visualize both observations and variables in the reduced space. Rotation can improve interpretability. Rotating a fixed retained subspace preserves the total variance represented by that subspace, although variance assigned to individual rotated axes changes; oblique rotation also permits correlated axes and requires more careful variance accounting.
8. Time-Series Structure (Modules 6, 11)
An additive time-series model may separate trend (long-term direction), seasonality (repeating cycles), and an irregular component; annual seasonality needs evidence and is not implied by a 12-point smoother. A moving average smooths short-term fluctuation: \( m_t = \frac{1}{k} \sum_{i=0}^{k-1} x_{t-i} \). Autocorrelation measures correlation between a series and a lagged version of itself; statistically detectable autocorrelation is evidence against independence (Ljung & Box, 1978). It can invalidate independence-based standard errors and make apparent trend evidence appear stronger than it is unless the dependence is modeled.
9. Hypothesis Testing and Inference (Modules 3–5, 9)
A hypothesis test compares a null hypothesis \( H_0 \) to an alternative \( H_1 \). The p-value is the probability, assuming \( H_0 \) and the test model, of a test statistic at least as extreme as the observed one in the direction(s) specified by the alternative. A Type I error rejects a true null (false positive); a Type II error fails to reject a false null (false negative). Statistical power, at a specified alternative, is the probability of rejecting \( H_0 \), that is \( 1 - P(\text{Type II error}) \) (Cohen, 1992). An effect size describes a population contrast or association; its estimate and uncertainty depend on sampling and design. You learned that a small p-value alone does not imply a practically meaningful effect, and that failure to reject \( H_0 \) is not evidence for the null; it may reflect insufficient power (Greenland et al., 2016).
10. Rates, Weighting, Fairness and Privacy (Modules 7, 12–13)
A group proportion is \( \hat p_g = x_g/n_g \). The pooled proportion is a weighted mean of the group proportions, \( \hat p = \sum_g x_g / \sum_g n_g = \sum_g w_g \hat p_g \) with weights \( w_g = n_g/N \), so it differs from the unweighted mean of the group proportions whenever group size and group proportion vary together. Because each population's weights come from its own composition, two populations can rank one way within every subgroup and the opposite way when pooled (Simpson, 1951); direct standardization compares them at one common set of subgroup shares (Keiding & Clayton, 2014). For a single proportion, the Wilson score interval stays close to its stated coverage at small \( n \), where the familiar \( \hat p \pm z\sqrt{\hat p(1-\hat p)/n} \) interval does not (Wilson, 1927; Brown et al., 2001). When a classifier is applied to groups whose base rates \( p \) differ, the identity \( \mathrm{FPR} = \frac{p}{1-p}\cdot\frac{1-\text{precision}}{\text{precision}}\cdot\mathrm{TPR} \) shows that equal precision and equal true positive rates force unequal false positive rates (Chouldechova, 2017). A randomized mechanism \( M \) is \( \varepsilon \)-differentially private when \( P[M(D) \in S] \le e^{\varepsilon} P[M(D') \in S] \) for every pair of datasets \( D, D' \) that differ in one person's record and every set \( S \) of outputs (Dwork et al., 2006); a minimum cell size offers no such guarantee.
11. Robustness and Reproducibility (Modules 8, 14)
The breakdown point of an estimator is the smallest fraction of the observations that, replaced by arbitrary values, can carry the estimate arbitrarily far (Hampel, 1971): \( 1/n \) for the mean, about one half for the median, and \( (g+1)/n \) for a mean trimmed by \( g \) observations in each tail. A random seed makes a stochastic computation repeatable, not exact: over \( B \) bootstrap resamples whose means have standard deviation \( s_B \), the Monte Carlo standard error of the bootstrap mean is \( s_B/\sqrt{B} \), the amount by which a different seed would typically move it (Efron, 1979). A cryptographic checksum changes when any byte of a file changes, so a match shows that the input is unchanged, not that the analysis is correct; MD5 admits deliberately constructed collisions, so a manifest that must resist tampering records SHA-256 (Wang & Yu, 2005).
How to use this review
As you select evidence for your synthesis, identify which of these mathematical constructs each artifact relies on. Your defense should be able to answer: What distribution or model underlies this analysis? What assumptions does it require? Were those assumptions checked? What would violate them? What does the math allow you to claim — and what does it stop you from claiming? These answers support review; the calculation, provenance and scope of each claim still require independent checks.