Data C102 Midterm 2 Study Guide: Parametric Modeling, Inference, Sampling, and GLMs

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering the core concepts, philosophies, estimators, algorithms, and models from Lectures 8 through 17 of Data C102.

49 Terms

1
New cards

Frequentist Philosophy (Concept of Randomness)

A statistical philosophy assuming the parameter θ\theta is an unknown fixed constant and observed data XX is a random sample from likelihood p(X∣θ)p(X|\theta), where probability represents long-run relative frequency across repeated trials.

2
New cards

Bayesian Philosophy (Concept of Randomness)

A statistical philosophy assuming both parameter Θ\Theta and data XX are jointly random variables drawn from p(θ,x)=p(x∣θ)p(θ)p(\theta, x) = p(x|\theta)p(\theta), where probability quantifies epistemic belief or uncertainty conditional on available evidence.

3
New cards

Prior Distribution (p(θ)p(\theta))

A probability distribution that mathematically specifies prior beliefs or uncertainty regarding parameter Θ\Theta before observing the dataset XX.

4
New cards

Likelihood Function (p(x∣θ)p(x|\theta))

A function that computes the probability density or probability mass of observing dataset xx given a specific fixed parameter value θ\theta.

5
New cards

Posterior Distribution (p(θ∣x)p(\theta|x))

The conditional probability distribution over parameter Θ\Theta after conditioning on observed sample data X=xX = x, calculated via Bayes' Rule as p(θ∣x)=p(x∣θ)p(θ)p(x)p(\theta|x) = \frac{p(x|\theta)p(\theta)}{p(x)}.

6
New cards

Bayesian Evidence (Marginal Likelihood)

The total marginal probability of observing dataset xx integrated over all parameter values, defined as p(x)=∫p(x∣θ)p(θ) dθp(x) = \int p(x|\theta)p(\theta)\,d\theta, serving as the normalizing constant in Bayes' rule.

7
New cards

Conjugate Prior

A family of prior distributions P\mathcal{P} where, for a given likelihood model, the resulting posterior p(θ∣x)p(\theta|x) belongs to the exact same parametric family P\mathcal{P} for all possible data outcomes, bypassing numerical integration.

8
New cards

Exponential Family (Canonical Density Form)

A distribution family defined by p(x∣η)=h(x)exp⁡(ηTT(x)−A(η))p(x|\eta) = h(x)\exp\left(\eta^T T(x) - A(\eta)\right), where η\eta is the canonical parameter vector, T(x)T(x) is the sufficient statistic vector, A(η)A(\eta) is the log-partition function, and h(x)h(x) is the base measure.

9
New cards

Log-Partition Function (A(η)A(\eta)) Properties

The normalizing cumulant function in an exponential family whose derivatives generate the moments of the sufficient statistics: first derivative A′(η)=E[T(X)]A'(\eta) = \mathbb{E}[T(X)] and second derivative A′′(η)=Var(T(X))A''(\eta) = \text{Var}(T(X)).

10
New cards

Point Estimator vs. Interval Estimator

A point estimator θ^(X)\hat{\theta}(X) maps an observed sample to a single coordinate in parameter space, whereas an interval estimator maps data to a set or range [L(X),U(X)][L(X), U(X)] expressing parameter uncertainty.

11
New cards

Maximum Likelihood Estimator (MLE) and Minimized Risk

The estimator defined by θ^MLE(x)=arg⁡max⁡θlog⁡(p(x∣θ))\hat{\theta}_{\text{MLE}}(x) = \arg\max_\theta \log(p(x|\theta)), which selects the parameter maximizing data likelihood and asymptotically minimizes Frequentist risk under 0-1 loss.

12
New cards

Maximum A Posteriori (MAP) Estimator and Minimized Risk

The estimator defined by θ^MAP(x)=arg⁡max⁡θ[log⁡(p(x∣θ))+log⁡(p(θ))]\hat{\theta}_{\text{MAP}}(x) = \arg\max_\theta [\log(p(x|\theta)) + \log(p(\theta))], which yields the posterior mode and minimizes Bayes risk under 0-1 loss L(θ,θ^)=I(θ≠θ^)L(\theta, \hat{\theta}) = I(\theta \ne \hat{\theta}).

13
New cards

Posterior Mean Estimator and Minimized Risk

The Bayesian estimator defined by θ^mean(x)=E[Θ∣X=x]=∫θp(θ∣x) dθ\hat{\theta}_{\text{mean}}(x) = \mathbb{E}[\Theta|X = x] = \int \theta p(\theta|x)\,d\theta, which minimizes Bayes risk under squared error loss (L2L_2 loss) L(θ,θ^)=(θ−θ^)2L(\theta, \hat{\theta}) = (\theta - \hat{\theta})^2.

14
New cards

Posterior Median Estimator and Minimized Risk

The Bayesian estimator defined by P(Θ≤θ^median∣X=x)=0.5P(\Theta \le \hat{\theta}_{\text{median}}|X = x) = 0.5, which minimizes Bayes risk under absolute error loss (L1L_1 loss) L(θ,θ^)=∣θ−θ^∣L(\theta, \hat{\theta}) = |\theta - \hat{\theta}|.

15
New cards

Conditional Frequentist Bias of the Posterior Mean

In the Normal-Normal model, the estimator conditional bias is EX∣θ[θ^mean−θ]=λ(μθ−θ)\mathbb{E}_{X|\theta}[\hat{\theta}_{\text{mean}} - \theta] = \lambda(\mu_\theta - \theta), showing systematic shrinkage toward prior mean μθ\mu_\theta with shrinkage factor λ\lambda.

16
New cards

Joint Bayesian Bias of the Posterior Mean

When evaluated across the joint distribution of parameters and data, the expected error is EΘ,X[θ^mean−Θ]=0\mathbb{E}_{\Theta, X}[\hat{\theta}_{\text{mean}} - \Theta] = 0, proving the posterior mean is strictly unbiased in the Bayesian framework.

17
New cards

Bayes Risk Trade-Off of Posterior Mean vs. MLE

The posterior mean trades off conditional bias to drastically reduce estimation variance, achieving strictly lower overall Bayes risk than the MLE (RB(θ^mean)<RB(θ^MLE)R_B(\hat{\theta}_{\text{mean}}) < R_B(\hat{\theta}_{\text{MLE}})) for any finite prior variance.

18
New cards

Empirical Bayes (EB) Optimization Target

A hybrid framework where prior hyperparameters β=(a,b)\beta = (a, b) are learned directly from observed data by maximizing marginal likelihood: β^EB=arg⁡max⁡β∫p(X∣θ)p(θ∣β) dθ\hat{\beta}_{\text{EB}} = \arg\max_\beta \int p(X|\theta)p(\theta|\beta)\,d\theta.

19
New cards

Empirical Bayes Kidney Cancer Application

Low-population counties display extreme false-positive death rates under naive MLE; Empirical Bayes fits a shared prior across all counties, shrinking high-variance small county estimates toward national averages while preserving large county data.

20
New cards

Prior Predictive Distribution Formula

The marginal distribution of unobserved future data before observing any current training dataset, defined as p(xnew)=∫p(xnew∣θ)p(θ) dθp(x_{\text{new}}) = \int p(x_{\text{new}}|\theta)p(\theta)\,d\theta.

21
New cards

Posterior Predictive Distribution (PPD) Formula

The distribution of future unobserved data conditioned on an observed training set, defined as p(xnew∣xobs)=∫p(xnew∣θ)p(θ∣xobs) dθp(x_{\text{new}}|x_{\text{obs}}) = \int p(x_{\text{new}}|\theta)p(\theta|x_{\text{obs}})\,d\theta.

22
New cards

Two-Step Simulation from the PPD

To sample future observations xnew∼PPDx_{\text{new}} \sim \text{PPD}, first sample parameter values from the posterior θ(s)∼p(θ∣xobs)\theta^{(s)} \sim p(\theta|x_{\text{obs}}), then sample replicated data from the likelihood xnew(s)∼p(x∣θ(s))x_{\text{new}}^{(s)} \sim p(x|\theta^{(s)}).

23
New cards

Prior Predictive Check vs. Posterior Predictive Check

A prior predictive check simulates data from the prior predictive to see if modeling assumptions generate domain-plausible values before fitting; a PPC simulates synthetic datasets from the PPD to check if the fitted model recovers observed sample features.

24
New cards

Posterior Predictive Check (PPC) Procedure

Draw SS posterior samples θ(s)∼p(θ∣Xobs)\theta^{(s)} \sim p(\theta|X_{\text{obs}}), generate synthetic datasets Xsim(s)∼p(x∣θ(s))X_{\text{sim}}^{(s)} \sim p(x|\theta^{(s)}), compute test statistic values Tsim(s)=T(Xsim(s))T_{\text{sim}}^{(s)} = T(X_{\text{sim}}^{(s)}), and compare to observed test statistic Tobs=T(Xobs)T_{\text{obs}} = T(X_{\text{obs}}).

25
New cards

Posterior Predictive p-Value Interpretation

Calculated as pPPC=1S∑s=1SI(Tsim(s)≥Tobs)p_{\text{PPC}} = \frac{1}{S}\sum_{s=1}^S I(T_{\text{sim}}^{(s)} \ge T_{\text{obs}}), where values near 0.50.5 indicate good fit, while extreme values (<0.025< 0.025 or >0.975> 0.975) indicate severe model misspecification.

26
New cards

Conditional Independence in Directed Graphs

The factorization condition p(A,B∣C)=p(A∣C)p(B∣C)p(A, B|C) = p(A|C)p(B|C), which holds if all directional paths between AA and BB are blocked by conditioning set CC via d-separation rules.

27
New cards

Plate Notation Conventions

A graphical representation where unshaded circles represent unobserved/latent random variables, shaded circles represent observed data, solid dots denote fixed hyperparameters, and rectangular boxes (plates) denote conditionally independent replications.

28
New cards

Joint Factorization Rule for Directed Graphical Models

The theorem stating the joint density of all graph nodes decomposes into the product of each variable conditioned on its direct parent nodes: p(v1,…,vK)=∏k=1Kp(vk∣parents(vk))p(v_1, \dots, v_K) = \prod_{k=1}^K p(v_k|\text{parents}(v_k)).

29
New cards

Ancestral Sampling (Graphical Models)

A forward generative process that simulates samples by following the directed acyclic graph in topological order, sampling parent nodes from their marginals before sampling child nodes conditional on parent draws.

30
New cards

Complete, No, and Partial Pooling

Complete pooling forces a single global parameter onto all groups (high bias); no pooling estimates independent parameters per group (high variance for small groups); partial pooling places a shared hierarchical prior over group parameters (optimal balance).

31
New cards

Monte Carlo Integration

A computational technique approximating intractable continuous expectations Ep[f(X)]=∫f(x)p(x) dx\mathbb{E}_p[f(X)] = \int f(x)p(x)\,dx with sample mean 1S∑s=1Sf(x(s))\frac{1}{S}\sum_{s=1}^S f(x^{(s)}) using independent draws x(s)∼p(x)x^{(s)} \sim p(x).

32
New cards

Inverse CDF Sampling Algorithm

An exact sampling method that draws standard uniform variates u∼Uniform(0,1)u \sim \text{Uniform}(0, 1) and applies the target's continuous inverse cumulative distribution function to yield x=F−1(u)∼Fx = F^{-1}(u) \sim F.

33
New cards

Rejection Sampling Envelope Condition

The strict criterion requiring a proposal distribution q(x)q(x) and finite constant MM such that Mq(x)≥p(x)M q(x) \ge p(x) (or Mq(x)≥p~(x)M q(x) \ge \tilde{p}(x) for unnormalized target p~(x)\tilde{p}(x)) across all points in the support.

34
New cards

Rejection Sampling for Unnormalized Targets

Iteratively generate candidate Y∼q(x)Y \sim q(x) and draw u∼Uniform(0,1)u \sim \text{Uniform}(0, 1); accept candidate YY if u≤p~(Y)Mq(Y)u \le \frac{\tilde{p}(Y)}{M q(Y)}, repeating until SS accepted draws are collected.

35
New cards

Stationary Distribution of a Markov Chain

A probability distribution π\pi satisfying π(x)=∑yπ(y)T(y→x)\pi(x) = \sum_y \pi(y) T(y \rightarrow x) (or πTT=πT\pi^T T = \pi^T) that is preserved asymptotically under the transition kernel TT.

36
New cards

Markov Chain Mixing Time and Burn-In

Mixing time is the number of transition steps necessary for the chain to approach its target stationary distribution; burn-in denotes the initial non-stationary iterations discarded to prevent initial-state bias.

37
New cards

Detailed Balance Condition

The reversibility condition π(x)T(x→y)=π(y)T(y→x)\pi(x) T(x \rightarrow y) = \pi(y) T(y \rightarrow x) for all pairs x,yx, y, which provides a sufficient guarantee that π\pi is the unique stationary distribution of kernel TT.

38
New cards

Metropolis Acceptance Probability (Symmetric Proposal)

For symmetric proposals where q(x→y)=q(y→x)q(x \rightarrow y) = q(y \rightarrow x), candidate yy is accepted from state xx with probability α(x,y)=min⁡(1,p~(y)p~(x))\alpha(x, y) = \min\left(1, \frac{\tilde{p}(y)}{\tilde{p}(x)}\right).

39
New cards

Metropolis-Hastings Acceptance Probability (Asymmetric)

For asymmetric proposals, candidate yy is accepted with probability α(x,y)=min⁡(1,p~(y)q(x∣y)p~(x)q(y∣x))\alpha(x, y) = \min\left(1, \frac{\tilde{p}(y)q(x|y)}{\tilde{p}(x)q(y|x)}\right), correcting proposal asymmetry to satisfy detailed balance with unnormalized target p~\tilde{p}.

40
New cards

Gibbs Sampling Algorithm

An MCMC algorithm that samples a vector θ=(θ1,…,θD)\theta = (\theta_1, \dots, \theta_D) by iteratively updating each scalar dimension from its full conditional distribution θd∼p(θd∣θ−d,X)\theta_d \sim p(\theta_d|\theta_{-d}, X) with acceptance probability 11.

41
New cards

Prediction Task vs. Estimation Task

Estimation infers unobservable latent parameters θ\theta and evaluates quality through parameter loss, whereas prediction forecasts new observable outcomes YnewY_{\text{new}} and evaluates quality via predictive loss on test data.

42
New cards

Bayesian Point Prediction under Squared Error Loss

Under loss L(y,y^)=(y−y^)2L(y, \hat{y}) = (y - \hat{y})^2, the optimal Bayesian point prediction is the posterior predictive mean y^∗=E[Ynew∣xnew,D]\hat{y}^* = \mathbb{E}[Y_{\text{new}}|x_{\text{new}}, D].

43
New cards

Bayesian Point Prediction under Absolute Error Loss

Under loss L(y,y^)=∣y−y^∣L(y, \hat{y}) = |y - \hat{y}|, the optimal Bayesian point prediction is the posterior predictive median y^∗=Median(Ynew∣xnew,D)\hat{y}^* = \text{Median}(Y_{\text{new}}|x_{\text{new}}, D).

44
New cards

Bayesian Point Prediction under Asymmetric Weighted Loss

When penalizing overestimation and underestimation at different linear rates, the loss-minimizing prediction is a specified percentile or quantile of the posterior predictive distribution.

45
New cards

Six Core Components of a Generalized Linear Model

The six components are feature vector xx, regression weights β\beta, linear predictor η=βTx\eta = \beta^T x, link function g(μ)g(\mu) with inverse g−1(η)g^{-1}(\eta), prediction parameter μ\mu, and exponential family likelihood Y∼Distribution(μ,θ)Y \sim \text{Distribution}(\mu, \theta).

46
New cards

Linearity in Parameters Requirement (GLMs)

A GLM requires that the linear predictor must be strictly linear in the coefficients β\beta (η=βTϕ(x)\eta = \beta^T \phi(x)), which fully permits non-linear transformations of input features ϕ(x)\phi(x) while disallowing non-linear parameter forms.

47
New cards

Logit Link Function in Logistic Regression

The link function mapping success probability p∈(0,1)p \in (0, 1) to the unconstrained real line via log-odds: g(p)=logit(p)=log⁡(p1−p)=βTxg(p) = \text{logit}(p) = \log\left(\frac{p}{1 - p}\right) = \beta^T x.

48
New cards

Logistic Inverse Link Function

The inverse link function mapping linear predictor η∈R\eta \in \mathbb{R} back onto the valid probability interval (0,1)(0, 1): g−1(η)=logistic(η)=11+exp⁡(−η)g^{-1}(\eta) = \text{logistic}(\eta) = \frac{1}{1 + \exp(-\eta)}.

49
New cards

Softmax Inverse Link (Multi-Class Logistic Regression)

The inverse link function mapping class linear predictor vectors to valid categorical probability distributions across KK classes: πk(x)=exp⁡(βkTx)∑j=1Kexp⁡(βjTx)\pi_k(x) = \frac{\exp(\beta_k^T x)}{\sum_{j=1}^K \exp(\beta_j^T x)}.