Frequentist Hypothesis Testing and Bayesian Statistical Inference

Foundations of Statistical Inference: Frequentist vs. Bayesian Paradigms

  • Core Objective of Inference:

    • Statistical inference seeks to learn about an underlying, unobservable parameter θ\theta from an observed set of data XX.
    • The fundamental distinction between the frequentist (classical) and Bayesian frameworks lies in the mathematical interpretation and ontological treatment of the parameter θ\theta.
  • The Frequentist (Classical) Approach:

    • The parameter θ\theta is modeled as a fixed but unknown constant.
    • Randomness in frequentist analysis arises exclusively from the data generation process, sampling variability, or experimental noise.
    • Probabilistic statements describe the long-run behavior of estimators, statistics, or decision procedures across repeated realizations of the dataset XX, rather than describing θ\theta directly.
  • The Bayesian Approach:

    • The unknown parameter is treated explicitly as a random variable, designated as Θ\Theta, with realized or potential values denoted by θ\theta.
    • Prior Distribution: Before collecting or observing experimental data, beliefs and existing uncertainties regarding Θ\Theta are formalized via a prior distribution, denoted PΘ(θ)P_{\Theta}(\theta) in the discrete case or fΘ(θ)f_{\Theta}(\theta) in the continuous case.
    • Posterior Distribution: After observing the empirical realization X=xX = x, Bayes' rule updates the prior distribution to yield the posterior distribution, denoted PΘ∣X(θ∣x)P_{\Theta|X}(\theta \mid x) or fΘ∣X(θ∣x)f_{\Theta|X}(\theta \mid x).
    • Inference Pipeline: From the posterior distribution, point estimates (such as the mode or mean), credible intervals, and optimal Bayesian decisions are systematically extracted.
  • Notational Conventions for Bayesian Modeling:

    • Observed data are represented by the random variable XX, taking realization values xx.
    • Unknown parameters are represented by the random variable Θ\Theta, taking values θ\theta.
    • Probability Mass Functions (PMF) for discrete random variables are denoted by PXP_X, whereas Probability Density Functions (PDF) for continuous random variables are denoted by fXf_X.
    • Conditional PMF and PDF Specifications:
    • Distribution of XX given Θ=θ\Theta = \theta:
      • Discrete: PX∣Θ(x∣θ)=P(X=x∣Θ=θ)P_{X|\Theta}(x \mid \theta) = P(X = x \mid \Theta = \theta)
      • Continuous: fX∣Θ(x∣θ)f_{X|\Theta}(x \mid \theta)
    • Distribution of Θ\Theta given X=xX = x:
      • Discrete: PΘ∣X(θ∣x)=P(Θ=θ∣X=x)P_{\Theta|X}(\theta \mid x) = P(\Theta = \theta \mid X = x)
      • Continuous: fΘ∣X(θ∣x)f_{\Theta|X}(\theta \mid x)
    • Joint distribution of (Θ,X)(\Theta, X):
      • Discrete: PΘX(θ,x)=P(Θ=θ,X=x)P_{\Theta X}(\theta, x) = P(\Theta = \theta, X = x)
      • Continuous: fΘX(θ,x)f_{\Theta X}(\theta, x)

Frequentist Hypothesis Testing: Mathematical Framework and Decision Theory

  • Definition and Real-World Motivation:

    • Hypothesis testing addresses decision problems with binary outcomes based on stochastic observations.
    • Practical domains include:
    • Medicine: Determining whether a novel therapeutic agent is clinically effective or ineffective.
    • Radar signal processing: Discerning whether an aircraft or target is present in radar echo noise, or whether only ambient noise is received.
    • Industrial quality control: Evaluating whether a manufacturing process, coin, or machine is fair, calibrated, or defective.
  • Two Competing Hypotheses:

    • Null Hypothesis (H0H_0): The default baseline assertion, presumed true until empirical evidence demonstrates substantial incompatibility. Examples: "the drug has no effect", "no aircraft is present", "the coin is fair".
    • Alternative Hypothesis (H1H_1): The complementary assertion that contradicts H0H_0. Examples: "the drug is effective", "an aircraft is present", "the coin is biased".
    • Decision Outcomes: Based on data XX, the researcher either rejects H0H_0 (accepting H1H_1) or does not reject H0H_0.
  • Structural Asymmetry of Hypotheses:

    • H0H_0 and H1H_1 are not treated symmetrically.
    • Statistical tests are designed primarily to strictly cap and control the probability of erroneously rejecting the null hypothesis H0H_0.
    • In classical frequentist statistics, H0H_0 and H1H_1 are non-random statements rather than random events. Consequently, expressions of the form P(⋅∣H0)P(\cdot \mid H_0) strictly represent "the probability computed under the mathematical model where H0H_0 holds true".
  • Mathematical Partitioning of the Parameter Space:

    • Let θ\theta be an unknown parameter belonging to the parameter space Θ\Theta.
    • The parameter space is partitioned into two disjoint subsets, Θ0\Theta_0 and Θ1\Theta_1, such that:     Θ=Θ0∪Θ1\Theta = \Theta_0 \cup \Theta_1Θ0∩Θ1=∅\Theta_0 \cap \Theta_1 = \emptyset
    • The hypothesis testing problem is formally posed as:     H0:θ∈Θ0versusH1:θ∈Θ1H_0 : \theta \in \Theta_0 \quad \text{versus} \quad H_1 : \theta \in \Theta_1
    • Simple vs. Composite Hypotheses:
    • A hypothesis is classified as simple if its associated parameter set contains exactly one point (θ=θ0\theta = \theta_0).
    • A hypothesis is classified as composite if its associated parameter set contains multiple points.
    • By convention, H0H_0 is typically formulated as a simple hypothesis.
  • Test Statistics, Acceptance Regions, and Rejection Regions:

    • A statistic is a measurable real-valued function of the data, such as the sample average:     X‾=1n∑i=1nXi\overline{X} = \frac{1}{n} \sum_{i=1}^n X_i
    • A test statistic W=W(X1,X2,…,Xn)W = W(X_1, X_2, \dots, X_n) is the specific functional summary upon which the statistical decision is based.
    • The acceptance region A⊂RA \subset \mathbb{R} is the set of test statistic values for which H0H_0 is maintained.
    • The rejection region (also known as the critical region) is the complementary set R=R∖AR = \mathbb{R} \setminus A.
    • Decision Rule:W∈A  ⟹  do not reject H0W \in A \implies \text{do not reject } H_0W∈R  ⟹  reject H0W \in R \implies \text{reject } H_0

Statistical Errors, Significance Level, and Power

  • Classification of Decision Outcomes:

    • Decision Table:
    • When H0H_0 is true and the decision is "Do not reject H0H_0": Correct decision.
    • When H0H_0 is true and the decision is "Reject H0H_0": Type I error (false positive).
    • When H0H_0 is false (H1H_1 is true) and the decision is "Do not reject H0H_0": Type II error (false negative).
    • When H0H_0 is false (H1H_1 is true) and the decision is "Reject H0H_0": Correct decision.
  • Type I Error and Significance Level (α\alpha):

    • A Type I error occurs when H0H_0 is rejected despite being true.
    • For any specific parameter value θ∈Θ0\theta \in \Theta_0:     P(type I error∣θ)=P(reject H0∣θ)=P(W∈R∣θ)P(\text{type I error} \mid \theta) = P(\text{reject } H_0 \mid \theta) = P(W \in R \mid \theta)
    • A statistical procedure is defined as a level-α\alpha test (having significance level α\alpha) if the probability of committing a Type I error never exceeds α\alpha across the entire null set:     P(W∈R∣θ)≤αfor all θ∈Θ0P(W \in R \mid \theta) \le \alpha \quad \text{for all } \theta \in \Theta_0
    • Typical choices for α\alpha include 0.050.05, 0.010.01, or 0.0010.001.
  • Type II Error (β\beta) and Power of a Test:

    • A Type II error occurs when H0H_0 is accepted (not rejected) when it is false.
    • Because H1H_1 is generally composite, the probability of a Type II error depends on the specific parameter value θ∈Θ1\theta \in \Theta_1:     β(θ)=P(accept H0∣θ)=P(W∈A∣θ),θ∈Θ1\beta(\theta) = P(\text{accept } H_0 \mid \theta) = P(W \in A \mid \theta), \quad \theta \in \Theta_1
    • The power of the test at θ∈Θ1\theta \in \Theta_1 is defined as the complementary probability of correctly rejecting a false null hypothesis:     Power(θ)=1−β(θ)=P(W∈R∣θ)\text{Power}(\theta) = 1 - \beta(\theta) = P(W \in R \mid \theta)
  • The Fundamental Trade-off Between α\alpha and β\beta:

    • In any sample of fixed size nn, it is mathematically impossible to make both α\alpha and β\beta arbitrarily small simultaneously.
    • Shifting the critical decision threshold to reduce α\alpha forces the acceptance region AA to expand, which invariably inflates β\beta, and vice versa.
    • Standard statistical practice fixes the maximum allowable Type I error at a predetermined tolerance α\alpha and subsequently seeks a test configuration that minimizes β(θ)\beta(\theta) (maximizing power).

Trade-off between Type I error alpha and Type II error beta under two normal distributions

  • Worked Example: Radar Signal Detection:

    • Model Formulation: A radar receiver observes X=θ+NX = \theta + N, where ambient noise is distributed as N∼N(0,σ2=19)N \sim N\left(0, \sigma^2 = \frac{1}{9}\right).
    • The underlying state parameter is binary:     θ=0(aircraft absent)\theta = 0 \quad (\text{aircraft absent})θ=1(aircraft present)\theta = 1 \quad (\text{aircraft present})
    • The testing problem consists of two simple hypotheses:     H0:θ=0  ⟹  X∼N(0,19)H_0 : \theta = 0 \implies X \sim N\left(0, \frac{1}{9}\right)H1:θ=1  ⟹  X∼N(1,19)H_1 : \theta = 1 \implies X \sim N\left(1, \frac{1}{9}\right)
    • Designing a Level-α\alpha Decision Rule:
    • Because higher values of XX favor θ=1\theta = 1, the intuitive decision rule rejects H0H_0 when X>cX > c.
    • The significance level constraint dictates:       α=P(X>c∣H0)=P(N>c)=P(3N>3c)=1−Φ(3c)\alpha = P(X > c \mid H_0) = P(N > c) = P\left(3N > 3c\right) = 1 - \Phi(3c)
    • Inverting this relationship using the standard normal quantile z1−αz_{1-\alpha}:       3c=z1−α  ⟹  c=13z1−α3c = z_{1-\alpha} \implies c = \frac{1}{3} z_{1-\alpha}
    • For α=0.05\alpha = 0.05, utilizing z0.95=1.645z_{0.95} = 1.645:       c=13(1.645)≈0.548c = \frac{1}{3} (1.645) \approx 0.548
    • Calculating Type II Error Probability (β\beta):
    • The probability of missing a present aircraft is:       β=P(X≤c∣H1)=P(1+N≤c)=P(N≤c−1)=Φ(3(c−1))\beta = P(X \le c \mid H_1) = P(1 + N \le c) = P(N \le c - 1) = \Phi\left(3(c - 1)\right)
    • Substituting c≈0.548c \approx 0.548:       β=Φ(3(0.548−1))=Φ(−1.355)≈0.088\beta = \Phi\left(3(0.548 - 1)\right) = \Phi(-1.355) \approx 0.088
    • Evaluation of an Observed Datum:
    • If the sensor registers an observation of x=0.6x = 0.6:
    • At α=0.05\alpha = 0.05, the threshold is c≈0.548c \approx 0.548. Since 0.6>0.5480.6 > 0.548, H0H_0 is rejected.
    • At α=0.01\alpha = 0.01, the threshold becomes:       c=13z0.99=13(2.326)≈0.775c = \frac{1}{3} z_{0.99} = \frac{1}{3} (2.326) \approx 0.775       Since 0.6≤0.7750.6 \le 0.775, the test fails to reject H0H_0 at the 1%1\% significance level.
    • Determining Achievable Error Bounds:
    • To guarantee that the miss probability satisfies β≤0.05\beta \le 0.05:       Φ(3(c−1))≤0.05  ⟺  3(c−1)≤z0.05=−1.645\Phi\left(3(c - 1)\right) \le 0.05 \iff 3(c - 1) \le z_{0.05} = -1.645c≤1−1.6453≈0.452c \le 1 - \frac{1.645}{3} \approx 0.452
    • The minimum associated significance level is evaluated at c=0.452c = 0.452:       α=1−Φ(3c)≥1−Φ(3×0.452)=1−Φ(1.355)≈0.0877≈0.088\alpha = 1 - \Phi(3c) \ge 1 - \Phi(3 \times 0.452) = 1 - \Phi(1.355) \approx 0.0877 \approx 0.088
    • Thus, the smallest significance level compatible with β≤0.05\beta \le 0.05 is approximately 0.0880.088.
  • Motivating Example: Coin Fairness and Normal Approximations:

    • Let θ=P(Heads)\theta = P(\text{Heads}). We test whether a coin is fair:     H0:θ=θ0=12versusH1:θ≠12H_0 : \theta = \theta_0 = \frac{1}{2} \quad \text{versus} \quad H_1 : \theta \ne \frac{1}{2}
  • Experiment: Toss the coin n=100n = 100 times; observe heads count X∼Binomial(100,θ)X \sim \text{Binomial}(100, \theta).

  • Symmetric Rejection Rule: Under H0H_0, the expected count is 5050. The decision rule takes the form:   ∣X−50∣≤t  ⟹  do not reject H0\lvert X - 50 \rvert \le t \implies \text{do not reject } H_0∣X−50∣>t  ⟹  reject H0\lvert X - 50 \rvert > t \implies \text{reject } H_0

  • Central Limit Theorem Approximation:

    • Under H0H_0, E[X]=100(0.5)=50E[X] = 100(0.5) = 50 and Var(X)=100(0.5)(0.5)=25\text{Var}(X) = 100(0.5)(0.5) = 25.
    • Standardized random variable:     Y=X−nθ0nθ0(1−θ0)=X−505≈N(0,1)Y = \frac{X - n\theta_0}{\sqrt{n\theta_0(1 - \theta_0)}} = \frac{X - 50}{5} \approx N(0, 1)
    • Let c=t5c = \frac{t}{5}. The decision rule transforms into rejecting H0H_0 if and only if ∣Y∣>c\lvert Y \rvert > c.
  • Threshold Computation:α=P(∣Y∣>c∣H0)=2(1−Φ(c))  ⟹  c=Φ−1(1−α2)=z1−α2\alpha = P(\lvert Y \rvert > c \mid H_0) = 2(1 - \Phi(c)) \implies c = \Phi^{-1}\left(1 - \frac{\alpha}{2}\right) = z_{1 - \frac{\alpha}{2}}

    • Setting α=0.05\alpha = 0.05 yields c=z0.975=1.96c = z_{0.975} = 1.96.
    • In terms of raw counts XX:     t=5c=5(1.96)=9.8t = 5c = 5(1.96) = 9.8
    • Acceptance interval: [50−9.8,50+9.8]=[40.2,59.8][50 - 9.8, 50 + 9.8] = [40.2, 59.8].
    • Integers in acceptance set: X∈{41,42,…,59}X \in \{41, 42, \dots, 59\}.
    • Rejection region: X≤40X \le 40 or X≥60X \ge 60.

Standard normal acceptance region A and rejection regions of size alpha/2

  • "Accept" versus "Fail to Reject":
    • If an experiment produces 5555 heads in 100100 tosses, the test statistic falls into the acceptance region.
    • This observation does not prove that the coin is fair (i.e., that θ=0.5\theta = 0.5 exactly).
    • It indicates solely that the data are not statistically incompatible with the null hypothesis at the chosen significance level.
    • Hence, formal scientific reporting mandates the phrase "fail to reject H0H_0" over "accept H0H_0".

Hypothesis Testing for Normal Means

  • Classification of Testing Problems for Independent Samples:

    • Let X1,X2,…,XnX_1, X_2, \dots, X_n be an independent and identically distributed (i.i.d.) sample from a normal distribution N(μ,σ2)N(\mu, \sigma^2), with specified reference mean μ0\mu_0.
    • Three distinct hypothesis pairs arise:
    • Two-sided: H0:μ=μ0versusH1:μ≠μ0H_0 : \mu = \mu_0 \quad \text{versus} \quad H_1 : \mu \ne \mu_0
    • One-sided (right-tailed): H0:μ≤μ0versusH1:μ>μ0H_0 : \mu \le \mu_0 \quad \text{versus} \quad H_1 : \mu > \mu_0
    • One-sided (left-tailed): H0:μ≥μ0versusH1:μ<μ0H_0 : \mu \ge \mu_0 \quad \text{versus} \quad H_1 : \mu < \mu_0
  • Standardized Test Statistics:

    • When variance σ2\sigma^2 is known:     W=X‾−μ0σ/nW = \frac{\overline{X} - \mu_0}{\sigma / \sqrt{n}}
    • When variance σ2\sigma^2 is unknown, utilizing the sample variance S2S^2:     W=X‾−μ0S/nW = \frac{\overline{X} - \mu_0}{S / \sqrt{n}}     where:     S2=1n−1∑k=1n(Xk−X‾)2=1n−1(∑k=1nXk2−nX‾2)S^2 = \frac{1}{n - 1} \sum_{k=1}^n (X_k - \overline{X})^2 = \frac{1}{n - 1} \left( \sum_{k=1}^n X_k^2 - n \overline{X}^2 \right)
    • Under H0H_0, these statistics represent pivotal quantities with exact standard normal N(0,1)N(0, 1) or Student's t(n−1)t(n - 1) distributions, enabling exact error computations.
    • Notation: zpz_p and tp(k)t_p(k) denote the lower pp-th quantiles (area pp to the left).
  • Two-Sided Tests (H0:μ=μ0H_0 : \mu = \mu_0 vs. H1:μ≠μ0H_1 : \mu \ne \mu_0):

    • Known σ\sigma (z-test):
    • Rejection criterion: Reject H0H_0 if ∣W∣>z1−α2\lvert W \rvert > z_{1 - \frac{\alpha}{2}}; do not reject if:       ∣X‾−μ0σ/n∣≤z1−α2\left\lvert \frac{\overline{X} - \mu_0}{\sigma / \sqrt{n}} \right\rvert \le z_{1 - \frac{\alpha}{2}}
    • Unknown σ\sigma (t-test):
    • Rejection criterion: Reject H0H_0 if ∣W∣>t1−α2(n−1)\lvert W \rvert > t_{1 - \frac{\alpha}{2}}(n - 1); do not reject if:       ∣W∣≤t1−α2(n−1)\lvert W \rvert \le t_{1 - \frac{\alpha}{2}}(n - 1)
    • Large Samples with Non-Normal Data (n→∞n \to \infty):
    • By the Central Limit Theorem, W=X‾−μ0S/n≈N(0,1)W = \frac{\overline{X} - \mu_0}{S / \sqrt{n}} \approx N(0, 1). The normal critical value z1−α2z_{1 - \frac{\alpha}{2}} is used.
  • Mathematical Duality Between Tests and Confidence Intervals:

    • The acceptance condition of the two-sided level-α\alpha z-test can be algebraically inverted:     ∣X‾−μ0σ/n∣≤z1−α2  ⟺  μ0∈[X‾−z1−α2σn,  X‾+z1−α2σn]\left\lvert \frac{\overline{X} - \mu_0}{\sigma / \sqrt{n}} \right\rvert \le z_{1 - \frac{\alpha}{2}} \iff \mu_0 \in \left[ \overline{X} - z_{1 - \frac{\alpha}{2}} \frac{\sigma}{\sqrt{n}}, \; \overline{X} + z_{1 - \frac{\alpha}{2}} \frac{\sigma}{\sqrt{n}} \right]
    • Thus, a null hypothesis H0:μ=μ0H_0 : \mu = \mu_0 is maintained at significance level α\alpha if and only if the hypothesized parameter value μ0\mu_0 lies within the corresponding (1−α)(1 - \alpha) confidence interval.
  • Type II Error Function for the Two-Sided z-Test:

    • If the true population mean is μ≠μ0\mu \ne \mu_0, then X‾∼N(μ,σ2n)\overline{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right).
  • Derivation of β(μ)\beta(\mu), the probability of failing to reject H0H_0:   β(μ)=P(∣X‾−μ0σ/n∣≤z1−α2  |  μ)\beta(\mu) = P\left( \left\lvert \frac{\overline{X} - \mu_0}{\sigma / \sqrt{n}} \right\rvert \le z_{1 - \frac{\alpha}{2}} \;\middle|\; \mu \right)β(μ)=P(μ0−z1−α2σn≤X‾≤μ0+z1−α2σn  |  μ)\beta(\mu) = P\left( \mu_0 - z_{1 - \frac{\alpha}{2}} \frac{\sigma}{\sqrt{n}} \le \overline{X} \le \mu_0 + z_{1 - \frac{\alpha}{2}} \frac{\sigma}{\sqrt{n}} \;\middle|\; \mu \right)β(μ)=P(−z1−α2+μ0−μσ/n≤X‾−μσ/n≤z1−α2+μ0−μσ/n  |  μ)\beta(\mu) = P\left( -z_{1 - \frac{\alpha}{2}} + \frac{\mu_0 - \mu}{\sigma / \sqrt{n}} \le \frac{\overline{X} - \mu}{\sigma / \sqrt{n}} \le z_{1 - \frac{\alpha}{2}} + \frac{\mu_0 - \mu}{\sigma / \sqrt{n}} \;\middle|\; \mu \right)

  • Because X‾−μσ/n∼N(0,1)\frac{\overline{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1), this evaluates to:   β(μ)=Φ(z1−α2+μ0−μσ/n)−Φ(−z1−α2+μ0−μσ/n)\beta(\mu) = \Phi\left( z_{1 - \frac{\alpha}{2}} + \frac{\mu_0 - \mu}{\sigma / \sqrt{n}} \right) - \Phi\left( -z_{1 - \frac{\alpha}{2}} + \frac{\mu_0 - \mu}{\sigma / \sqrt{n}} \right)

  • Boundary Behavior and Asymptotics:

    • At μ=μ0\mu = \mu_0:     β(μ0)=Φ(z1−α2)−Φ(−z1−α2)=(1−α2)−α2=1−α\beta(\mu_0) = \Phi\left( z_{1 - \frac{\alpha}{2}} \right) - \Phi\left( -z_{1 - \frac{\alpha}{2}} \right) = \left( 1 - \frac{\alpha}{2} \right) - \frac{\alpha}{2} = 1 - \alpha
    • As the discrepancy ∣μ−μ0∣→∞\lvert \mu - \mu_0 \rvert \to \infty or sample size n→∞n \to \infty (for fixed μ≠μ0\mu \ne \mu_0):       β(μ)→0  ⟹  Power (1−β(μ))→1\beta(\mu) \to 0 \implies \text{Power } (1 - \beta(\mu)) \to 1
  • Worked Example: Urban Average Height:

    • Problem: The national average height of adult males is 170 cm170\,\text{cm}. To test if a specific city has a divergent average, a sample of n=9n = 9 men is measured (assuming normal distributions):     176.2,  157.9,  160.1,  180.9,  165.1,  167.2,  162.9,  155.7,  166.2176.2, \; 157.9, \; 160.1, \; 180.9, \; 165.1, \; 167.2, \; 162.9, \; 155.7, \; 166.2
    • Hypotheses: H0:μ=170H_0 : \mu = 170 versus H1:μ≠170H_1 : \mu \ne 170 at α=0.05\alpha = 0.05.
    • Sample Statistics:x‾=19∑i=19xi=165.8 cm\overline{x} = \frac{1}{9} \sum_{i=1}^9 x_i = 165.8\,\text{cm}s2=18∑k=19(xk−165.8)2≈68.01  ⟹  s≈8.25 cms^2 = \frac{1}{8} \sum_{k=1}^9 (x_k - 165.8)^2 \approx 68.01 \implies s \approx 8.25\,\text{cm}
    • Observed Test Statistic:w=x‾−μ0s/n=165.8−1708.25/3=−4.22.75≈−1.53w = \frac{\overline{x} - \mu_0}{s / \sqrt{n}} = \frac{165.8 - 170}{8.25 / 3} = \frac{-4.2}{2.75} \approx -1.53∣w∣≈1.53\lvert w \rvert \approx 1.53
    • Critical Value and Decision:
    • Quantile from Student's tt with n−1=8n - 1 = 8 degrees of freedom: t0.975(8)≈2.306t_{0.975}(8) \approx 2.306.
    • Because ∣w∣=1.53≤2.306\lvert w \rvert = 1.53 \le 2.306, we do not reject H0H_0.
    • Confidence Interval Verification:
    • The 95%95\% Student's tt confidence interval is:       165.8±2.306(8.253)=165.8±6.34=[159.46,  172.14]165.8 \pm 2.306 \left(\frac{8.25}{3}\right) = 165.8 \pm 6.34 = [159.46, \; 172.14]
    • Since 170∈[159.46,172.14]170 \in [159.46, 172.14], the conclusion aligns with the hypothesis test.
  • One-Sided Tests for the Mean:

    • Right-Tailed Test (H0:μ≤μ0H_0 : \mu \le \mu_0 vs. H1:μ>μ0H_1 : \mu > \mu_0):
    • Large positive values of W=X‾−μ0σ/nW = \frac{\overline{X} - \mu_0}{\sigma / \sqrt{n}} support H1H_1.
    • Decision rule: Reject H0H_0 if and only if W>cW > c.
    • For any μ≤μ0\mu \le \mu_0:       P(W>c∣μ)=P(X‾−μσ/n>c+μ0−μσ/n  |  μ)≤P(X‾−μσ/n>c  |  μ)=1−Φ(c)P(W > c \mid \mu) = P\left( \frac{\overline{X} - \mu}{\sigma / \sqrt{n}} > c + \frac{\mu_0 - \mu}{\sigma / \sqrt{n}} \;\middle|\; \mu \right) \le P\left( \frac{\overline{X} - \mu}{\sigma / \sqrt{n}} > c \;\middle|\; \mu \right) = 1 - \Phi(c)
    • The maximum Type I error occurs at the boundary μ=μ0\mu = \mu_0.
    • Equating 1−Φ(c)=α1 - \Phi(c) = \alpha gives c=z1−αc = z_{1 - \alpha}.
    • Do not reject H0:μ≤μ0H_0 : \mu \le \mu_0 if W≤z1−αW \le z_{1 - \alpha}; reject otherwise.
    • Left-Tailed Test (H0:μ≥μ0H_0 : \mu \ge \mu_0 vs. H1:μ<μ0H_1 : \mu < \mu_0):
    • Do not reject H0:μ≥μ0H_0 : \mu \ge \mu_0 if W≥zα=−z1−αW \ge z_\alpha = -z_{1 - \alpha}; reject otherwise.
    • Comprehensive Decision Rules for One-Sided Tests:
    • Right-tailed (H1:μ>μ0H_1 : \mu > \mu_0, reject for large WW):
      • Normal, σ\sigma known: Do not reject if W≤z1−αW \le z_{1-\alpha}
      • Large sample, non-normal: Do not reject if W≤z1−αW \le z_{1-\alpha}
      • Normal, σ\sigma unknown: Do not reject if W≤t1−α(n−1)W \le t_{1-\alpha}(n-1)
    • Left-tailed (H1:μ<μ0H_1 : \mu < \mu_0, reject for small WW):
      • Normal, σ\sigma known: Do not reject if W≥−z1−αW \ge -z_{1-\alpha}
      • Large sample, non-normal: Do not reject if W≥−z1−αW \ge -z_{1-\alpha}
      • Normal, σ\sigma unknown: Do not reject if W≥−t1−α(n−1)W \ge -t_{1-\alpha}(n-1)

P-Values: Definition, Interpretation, and Computation

  • Motivation and Theoretical Definition:

    • Standard tests deliver a binary output ("reject" or "do not reject"), obscuring whether the data were borderline or decisively extreme.
    • The P-value is defined as the smallest significance level α\alpha at which the observed data would result in rejecting the null hypothesis H0H_0.
    • Interpretation: The P-value measures the probability, computed assuming H0H_0 is true, of obtaining a test statistic at least as extreme as the observed value ww.
    • Universal Decision Rule:Reject H0 at significance level α  ⟺  P-value≤α\text{Reject } H_0 \text{ at significance level } \alpha \iff \text{P-value} \le \alpha
  • Mathematical Formulas for P-Value Calculation:

    • Let WW be the test statistic and ww its observed value from experimental data. Assuming H0H_0 holds at the boundary:
    • Right-tailed test (H1:μ>μ0H_1 : \mu > \mu_0):P-value=P(W≥w∣H0)\text{P-value} = P(W \ge w \mid H_0)
    • Left-tailed test (H1:μ<μ0H_1 : \mu < \mu_0):P-value=P(W≤w∣H0)\text{P-value} = P(W \le w \mid H_0)
    • Two-sided test (H1:μ≠μ0H_1 : \mu \ne \mu_0, where the null distribution of WW is symmetric around zero):P-value=P(∣W∣≥∣w∣∣H0)=2P(W≥∣w∣∣H0)\text{P-value} = P(\lvert W \rvert \ge \lvert w \rvert \mid H_0) = 2 P(W \ge \lvert w \rvert \mid H_0)
  • Illustrative Calculations:

    • One-Sided Coin Example: Test H0:θ=12H_0 : \theta = \frac{1}{2} vs. H1:θ>12H_1 : \theta > \frac{1}{2}. In n=100n = 100 tosses, 6060 heads are observed.
    • Under H0H_0, W=X−505∼N(0,1)W = \frac{X - 50}{5} \sim N(0, 1).
    • Observed value:       w=60−505=2w = \frac{60 - 50}{5} = 2
    • At α=0.05\alpha = 0.05, z0.95=1.645<2  ⟹  reject H0z_{0.95} = 1.645 < 2 \implies \text{reject } H_0.
    • At α=0.01\alpha = 0.01, z0.99=2.326≥2  ⟹  do not reject H0z_{0.99} = 2.326 \ge 2 \implies \text{do not reject } H_0.
    • P-value computation:       P-value=P(W≥2∣H0)=1−Φ(2)≈1−0.9772=0.0228≈0.023\text{P-value} = P(W \ge 2 \mid H_0) = 1 - \Phi(2) \approx 1 - 0.9772 = 0.0228 \approx 0.023
    • Rejection occurs for any α≥0.023\alpha \ge 0.023.
    • Two-Sided Height Example: In the city height sample, w≈−1.53w \approx -1.53 with W∼t(8)W \sim t(8).     P-value=2P(T≥1.53∣T∼t(8))≈0.165\text{P-value} = 2 P(T \ge 1.53 \mid T \sim t(8)) \approx 0.165
    • Because 0.165>0.050.165 > 0.05, H0H_0 cannot be rejected at the 5%5\% level, nor at any α≤0.165\alpha \le 0.165.

Likelihood Ratio Tests (LRT) and Generalized LRT

  • Sample Likelihood Function:

    • Let X1,X2,…,XnX_1, X_2, \dots, X_n be drawn from a distribution parameterized by θ\theta, with observed values x1,x2,…,xnx_1, x_2, \dots, x_n.
    • For discrete data:     L(x1,…,xn;θ)=PX1…Xn(x1,…,xn;θ)L(x_1, \dots, x_n; \theta) = P_{X_1 \dots X_n}(x_1, \dots, x_n; \theta)
    • For continuous data:     L(x1,…,xn;θ)=fX1…Xn(x1,…,xn;θ)L(x_1, \dots, x_n; \theta) = f_{X_1 \dots X_n}(x_1, \dots, x_n; \theta)
    • Under i.i.d. sampling, the likelihood decomposes into the product:     L(x1,…,xn;θ)=∏i=1nf(xi;θ)L(x_1, \dots, x_n; \theta) = \prod_{i=1}^n f(x_i; \theta)
  • Likelihood Ratio Test for Simple Hypotheses:

    • Consider testing simple vs. simple hypotheses: H0:θ=θ0H_0 : \theta = \theta_0 versus H1:θ=θ1H_1 : \theta = \theta_1.
    • The likelihood ratio measures the relative plausibility of the observed sample under the two competing states:     λ(x1,…,xn)=L(x1,…,xn;θ0)L(x1,…,xn;θ1)\lambda(x_1, \dots, x_n) = \frac{L(x_1, \dots, x_n; \theta_0)}{L(x_1, \dots, x_n; \theta_1)}
    • Small values of λ\lambda signify that the observed data are substantially more probable under θ1\theta_1 than under θ0\theta_0.
    • Decision Rule: For a critical constant c>0c > 0 chosen to satisfy the significance level α\alpha:     λ<c  ⟹  reject H0\lambda < c \implies \text{reject } H_0λ≥c  ⟹  do not reject H0\lambda \ge c \implies \text{do not reject } H_0
  • Worked Example: Deriving the Radar LRT:

    • In the radar problem, X=θ+NX = \theta + N with N∼N(0,19)N \sim N\left(0, \frac{1}{9}\right), testing H0:θ=0H_0 : \theta = 0 against H1:θ=1H_1 : \theta = 1.
    • Likelihoods:     L(x;0)=12π(1/9)exp⁡(−x22(1/9))=32πexp⁡(−9x22)L(x; 0) = \frac{1}{\sqrt{2\pi (1/9)}} \exp\left( -\frac{x^2}{2(1/9)} \right) = \frac{3}{\sqrt{2\pi}} \exp\left( -\frac{9x^2}{2} \right)L(x;1)=32πexp⁡(−9(x−1)22)L(x; 1) = \frac{3}{\sqrt{2\pi}} \exp\left( -\frac{9(x - 1)^2}{2} \right)
    • Constructing the ratio λ(x)\lambda(x):     λ(x)=L(x;0)L(x;1)=exp⁡(−9x22+9(x−1)22)=exp⁡(9(1−2x)2)\lambda(x) = \frac{L(x; 0)}{L(x; 1)} = \exp\left( -\frac{9x^2}{2} + \frac{9(x - 1)^2}{2} \right) = \exp\left( \frac{9(1 - 2x)}{2} \right)
    • Simplifying the test inequality:     λ(x)≥c  ⟺  9(1−2x)2≥ln⁡(c)  ⟺  1−2x≥29ln⁡(c)  ⟺  x≤12(1−29ln⁡(c))=:c′\lambda(x) \ge c \iff \frac{9(1 - 2x)}{2} \ge \ln(c) \iff 1 - 2x \ge \frac{2}{9} \ln(c) \iff x \le \frac{1}{2} \left( 1 - \frac{2}{9} \ln(c) \right) =: c'
    • Hence, the LRT is functionally equivalent to maintaining H0H_0 whenever X≤c′X \le c', matching the intuitive threshold test.
  • Generalized Likelihood Ratio Test (GLRT) for Composite Hypotheses:

    • For general composite hypotheses H0:θ∈Θ0H_0 : \theta \in \Theta_0 versus H1:θ∈Θ1H_1 : \theta \in \Theta_1, where Θ=Θ0∪Θ1\Theta = \Theta_0 \cup \Theta_1:
    • Define the restricted and global maximum likelihoods:     l0=sup⁡θ∈Θ0L(x1,…,xn;θ)l_0 = \sup_{\theta \in \Theta_0} L(x_1, \dots, x_n; \theta)l=sup⁡θ∈ΘL(x1,…,xn;θ)l = \sup_{\theta \in \Theta} L(x_1, \dots, x_n; \theta)
    • Because Θ0⊂Θ\Theta_0 \subset \Theta, it follows that 0≤l0l≤10 \le \frac{l_0}{l} \le 1.
    • The generalized likelihood ratio statistic is:     λ(x1,…,xn)=sup⁡θ∈Θ0L(x1,…,xn;θ)sup⁡θ∈ΘL(x1,…,xn;θ)∈[0,1]\lambda(x_1, \dots, x_n) = \frac{\sup_{\theta \in \Theta_0} L(x_1, \dots, x_n; \theta)}{\sup_{\theta \in \Theta} L(x_1, \dots, x_n; \theta)} \in [0, 1]
    • Decision Mechanism: Select threshold c∈[0,1]c \in [0, 1]:     λ<c  ⟹  reject H0\lambda < c \implies \text{reject } H_0λ≥c  ⟹  do not reject H0\lambda \ge c \implies \text{do not reject } H_0
    • The denominator is the unrestricted maximum likelihood (evaluated at the unconstrained MLE θ^\hat{\theta}), while the numerator evaluates the likelihood constrained to H0H_0.
  • Algorithmic Execution of a Hypothesis Test:

    • 1. Formulate H0H_0 and H1H_1 unambiguously within the parameter space.
    • 2. Identify a test statistic WW with a known null probability distribution under H0H_0.
    • 3. Determine the structural shape of the rejection region (∣W∣>c\lvert W \rvert > c, W>cW > c, or W<cW < c) based on H1H_1.
    • 4. Select significance level α\alpha and compute critical value cc via P(W∈R∣H0)=αP(W \in R \mid H_0) = \alpha.
    • 5. Evaluate the observed statistic ww, render the formal decision, and report the P-value.

Bayesian Statistical Inference: Mathematical Foundations

  • The Three Operational Steps of Bayesian Inference:

    • 1. Prior Specification: Assign a probability distribution to Θ\Theta prior to data collection (fΘ(θ)f_\Theta(\theta) or PΘ(θ)P_\Theta(\theta)).
    • 2. Posterior Computation: Upon observing empirical data X=xX = x, evaluate the posterior distribution using Bayes' rule (fΘ∣X(θ∣x)f_{\Theta|X}(\theta \mid x) or PΘ∣X(θ∣x)P_{\Theta|X}(\theta \mid x)).
    • 3. Estimation and Decision: Extract posterior summaries, including point estimates (MAP, MMSE) and credible intervals.
  • Bayes' Rule for Conditional Distributions:

    • Both Variables Discrete:PΘ∣X(θ∣x)=PX∣Θ(x∣θ)PΘ(θ)PX(x)P_{\Theta|X}(\theta \mid x) = \frac{P_{X|\Theta}(x \mid \theta) P_\Theta(\theta)}{P_X(x)}     where the normalizing constant is the marginal PMF:     PX(x)=∑θPX∣Θ(x∣θ)PΘ(θ)P_X(x) = \sum_\theta P_{X|\Theta}(x \mid \theta) P_\Theta(\theta)
    • Both Variables Continuous:fΘ∣X(θ∣x)=fX∣Θ(x∣θ)fΘ(θ)fX(x)f_{\Theta|X}(\theta \mid x) = \frac{f_{X|\Theta}(x \mid \theta) f_\Theta(\theta)}{f_X(x)}     where the normalizing constant is the marginal density:     fX(x)=∫−∞∞fX∣Θ(x∣θ)fΘ(θ) dθf_X(x) = \int_{-\infty}^\infty f_{X|\Theta}(x \mid \theta) f_\Theta(\theta) \, d\theta
    • Continuous Parameter Θ\Theta, Discrete Data XX:fΘ∣X(θ∣x)=PX∣Θ(x∣θ)fΘ(θ)PX(x)f_{\Theta|X}(\theta \mid x) = \frac{P_{X|\Theta}(x \mid \theta) f_\Theta(\theta)}{P_X(x)}     where the denominator integrates over parameter space:     PX(x)=∫−∞∞PX∣Θ(x∣θ)fΘ(θ) dθP_X(x) = \int_{-\infty}^\infty P_{X|\Theta}(x \mid \theta) f_\Theta(\theta) \, d\theta
  • Core Terminology of Bayesian Components:

    • Prior (PΘ(θ),fΘ(θ)P_\Theta(\theta), f_\Theta(\theta)): Represents the probability distribution over Θ\Theta prior to data observation.
    • Likelihood (PX∣Θ(x∣θ),fX∣Θ(x∣θ)P_{X|\Theta}(x \mid \theta), f_{X|\Theta}(x \mid \theta)): Represents the forward data-generating process as a function of the parameter θ\theta.
    • Posterior (PΘ∣X(θ∣x),fΘ∣X(θ∣x)P_{\Theta|X}(\theta \mid x), f_{\Theta|X}(\theta \mid x)): Represents the updated belief distribution over Θ\Theta conditional on X=xX = x.
    • Normalizing Constant (PX(x),fX(x)P_X(x), f_X(x)): The marginal probability of the data; a constant with respect to θ\theta that scales the posterior area/sum to unity.
  • Worked Example: Political Election Polling:

    • Frequentist Setup: Estimate the voter support proportion θ∈[0,1]\theta \in [0, 1] for Party A. A random sample of n=20n = 20 voters contains X=6X = 6 supporters. Model: X∣θ∼Binomial(20,θ)X \mid \theta \sim \text{Binomial}(20, \theta).
    • Likelihood:       L(θ;6)=(206)θ6(1−θ)14L(\theta; 6) = \binom{20}{6} \theta^6 (1 - \theta)^{14}
    • Log-likelihood:       ℓ(θ)=ln⁡(206)+6ln⁡(θ)+14ln⁡(1−θ)\ell(\theta) = \ln\binom{20}{6} + 6 \ln(\theta) + 14 \ln(1 - \theta)
    • Differentiating and solving for the maximum:       dℓdθ=6θ−141−θ=0  ⟹  6(1−θ)=14θ  ⟹  θ^MLE=620=0.3\frac{d\ell}{d\theta} = \frac{6}{\theta} - \frac{14}{1 - \theta} = 0 \implies 6(1 - \theta) = 14\theta \implies \hat{\theta}_{\text{MLE}} = \frac{6}{20} = 0.3
    • Incorporating Historical Information:
    • In the previous election cycle, Party A secured 40%40\% of the vote. We construct a prior distribution concentrated around E[Θ]=0.4E[\Theta] = 0.4.
    • Model prior as a Beta(6,9)\text{Beta}(6, 9) distribution over 0≤θ≤10 \le \theta \le 1:       fΘ(θ)=18018 θ5(1−θ)8f_\Theta(\theta) = 18018 \, \theta^5 (1 - \theta)^8
    • Deriving the Posterior Distribution:
    • Invoking Bayes' rule in proportional form (dropping factors independent of θ\theta):       fΘ∣X(θ∣6)∝PX∣Θ(6∣θ)fΘ(θ)f_{\Theta|X}(\theta \mid 6) \propto P_{X|\Theta}(6 \mid \theta) f_\Theta(\theta)fΘ∣X(θ∣6)∝[θ6(1−θ)14]×[θ5(1−θ)8]=θ11(1−θ)22f_{\Theta|X}(\theta \mid 6) \propto \left[ \theta^6 (1 - \theta)^{14} \right] \times \left[ \theta^5 (1 - \theta)^8 \right] = \theta^{11} (1 - \theta)^{22}
    • Recognizing the kernel of a Beta distribution, the posterior is:       Θ∣X=6∼Beta(12,23)\Theta \mid X = 6 \sim \text{Beta}(12, 23)
    • Posterior Expectation:E[Θ∣X=6]=αα+β=1212+23=1235≈0.343E[\Theta \mid X = 6] = \frac{\alpha}{\alpha + \beta} = \frac{12}{12 + 23} = \frac{12}{35} \approx 0.343
    • Interpretation: The posterior mean (≈0.343\approx 0.343) is a compromise between the empirical sample proportion (θ^MLE=0.300\hat{\theta}_{\text{MLE}} = 0.300) and the prior mean (E[Θ]=0.400E[\Theta] = 0.400).
  • Worked Example: Geometric Sampling with Uniform Prior:

    • Let Θ∼Uniform(0,1)\Theta \sim \text{Uniform}(0, 1), with prior density fΘ(θ)=1f_\Theta(\theta) = 1 for 0≤θ≤10 \le \theta \le 1.
    • Conditional on Θ=θ\Theta = \theta, let X∣Θ=θ∼Geometric(θ)X \mid \Theta = \theta \sim \text{Geometric}(\theta):     PX∣Θ(x∣θ)=θ(1−θ)x−1,x=1,2,3,…P_{X|\Theta}(x \mid \theta) = \theta (1 - \theta)^{x - 1}, \quad x = 1, 2, 3, \dots
    • Data: The first success occurs on trial two (X=2X = 2). Likelihood:     PX∣Θ(2∣θ)=θ(1−θ)P_{X|\Theta}(2 \mid \theta) = \theta (1 - \theta)
    • Denominator (Marginal Probability via Total Probability Theorem):     PX(2)=∫−∞∞PX∣Θ(2∣θ)fΘ(θ) dθ=∫01θ(1−θ)⋅1 dθ=[θ22−θ33]01=12−13=16P_X(2) = \int_{-\infty}^\infty P_{X|\Theta}(2 \mid \theta) f_\Theta(\theta) \, d\theta = \int_0^1 \theta (1 - \theta) \cdot 1 \, d\theta = \left[ \frac{\theta^2}{2} - \frac{\theta^3}{3} \right]_0^1 = \frac{1}{2} - \frac{1}{3} = \frac{1}{6}
    • Posterior Density:     fΘ∣X(θ∣2)=θ(1−θ)⋅11/6=6θ(1−θ),0≤θ≤1f_{\Theta|X}(\theta \mid 2) = \frac{\theta (1 - \theta) \cdot 1}{1/6} = 6\theta (1 - \theta), \quad 0 \le \theta \le 1

Prior uniform density versus posterior density after observing X = 2

  • Observing X=2X = 2 suppresses posterior density near the boundaries θ=0\theta = 0 and θ=1\theta = 1, centering probability mass in the interior.

Point Estimation in Bayesian Inference: MAP and MMSE

  • Maximum A Posteriori (MAP) Estimation:
    • Formal Definition: The MAP point estimate θ^MAP\hat{\theta}_{\text{MAP}} is defined as the mode of the posterior distribution, representing the parameter value that maximizes the posterior density or probability mass:     θ^MAP=arg⁡max⁡θfΘ∣X(θ∣x)(Θ continuous)\hat{\theta}_{\text{MAP}} = \arg\max_\theta f_{\Theta|X}(\theta \mid x) \quad (\Theta \text{ continuous})θ^MAP=arg⁡max⁡θPΘ∣X(θ∣x)(Θ discrete)\hat{\theta}_{\text{MAP}} = \arg\max_\theta P_{\Theta|X}(\theta \mid x) \quad (\Theta \text{ discrete})
    • Computational Simplification:
    • Because the marginal density fX(x)f_X(x) (the normalizing constant) is strictly positive and invariant to θ\theta:       θ^MAP=arg⁡max⁡θ[fX∣Θ(x∣θ)fΘ(θ)fX(x)]=arg⁡max⁡θ[fX∣Θ(x∣θ)fΘ(θ)]\hat{\theta}_{\text{MAP}} = \arg\max_\theta \left[ \frac{f_{X|\Theta}(x \mid \theta) f_\Theta(\theta)}{f_X(x)} \right] = \arg\max_\theta \left[ f_{X|\Theta}(x \mid \theta) f_\Theta(\theta) \right]
    • Computing the marginal denominator is unnecessary when solving for the MAP estimate.

Maximum A Posteriori (MAP) estimate corresponding to the mode of the posterior distribution

  • Worked MAP Calculation:

    • Let the parameter have linear prior density fΘ(θ)=2θf_\Theta(\theta) = 2\theta for 0≤θ≤10 \le \theta \le 1, and observation model X∣Θ=θ∼Geometric(θ)X \mid \Theta = \theta \sim \text{Geometric}(\theta).

    • Assume X=3X = 3 is observed. The likelihood is:       PX∣Θ(3∣θ)=θ(1−θ)2P_{X|\Theta}(3 \mid \theta) = \theta (1 - \theta)^2

    • Form the unnormalized posterior product:       g(θ)=PX∣Θ(3∣θ)fΘ(θ)=[θ(1−θ)2](2θ)=2θ2(1−θ)2g(\theta) = P_{X|\Theta}(3 \mid \theta) f_\Theta(\theta) = \left[ \theta (1 - \theta)^2 \right] (2\theta) = 2\theta^2 (1 - \theta)^2

    • Differentiate g(θ)g(\theta) with respect to θ\theta:       g′(θ)=2[2θ(1−θ)2+θ2⋅2(1−θ)(−1)]=4θ(1−θ)[(1−θ)−θ]=4θ(1−θ)(1−2θ)g'(\theta) = 2 \left[ 2\theta (1 - \theta)^2 + \theta^2 \cdot 2(1 - \theta)(-1) \right] = 4\theta (1 - \theta) \left[ (1 - \theta) - \theta \right] = 4\theta (1 - \theta) (1 - 2\theta)

    • Critical points on the open interval (0,1)(0, 1) occur exclusively where 1−2θ=0  ⟹  θ=121 - 2\theta = 0 \implies \theta = \frac{1}{2}.

    • Analysis of the first derivative:

      • For θ∈(0,12)\theta \in \left(0, \frac{1}{2}\right), g′(θ)>0g'(\theta) > 0.
      • For θ∈(12,1)\theta \in \left(\frac{1}{2}, 1\right), g′(θ)<0g'(\theta) < 0.
      • Boundary values: g(0)=0g(0) = 0 and g(1)=0g(1) = 0.
    • The global maximum on [0,1][0, 1] occurs at:       θ^MAP=12\hat{\theta}_{\text{MAP}} = \frac{1}{2}

    • While the exact posterior is normalized to fΘ∣X(θ∣3)=30θ2(1−θ)2f_{\Theta|X}(\theta \mid 3) = 30\theta^2(1 - \theta)^2, evaluating the normalizing factor 3030 was not required.

    • Minimum Mean Squared Error (MMSE) Estimation:

  • Formal Definition: The MMSE estimate (also termed the Bayes estimate or least mean squares estimate), denoted θ^M\hat{\theta}_M, is the conditional expectation of the parameter given the data:     θ^M=E[Θ∣X=x]\hat{\theta}_M = E[\Theta \mid X = x]

  • Optimality Property: θ^M\hat{\theta}_M uniquely minimizes the conditional expected squared error:     θ^M=arg⁡min⁡cE[(Θ−c)2  |  X=x]\hat{\theta}_M = \arg\min_c E\left[ (\Theta - c)^2 \;\middle|\; X = x \right]

  • Step-by-Step MMSE Derivation Example:

    • Consider prior fΘ(θ)=2θf_\Theta(\theta) = 2\theta for 0≤θ≤10 \le \theta \le 1, with conditional likelihood model:       fX∣Θ(x∣θ)=2θx−θ+1,0≤x≤1f_{X|\Theta}(x \mid \theta) = 2\theta x - \theta + 1, \quad 0 \le x \le 1
    • Step 1: Compute the Marginal Density fX(x)f_X(x):fX(x)=∫01fX∣Θ(x∣θ)fΘ(θ) dθ=∫01(2θx−θ+1)(2θ) dθf_X(x) = \int_0^1 f_{X|\Theta}(x \mid \theta) f_\Theta(\theta) \, d\theta = \int_0^1 (2\theta x - \theta + 1)(2\theta) \, d\thetafX(x)=∫01(4xθ2−2θ2+2θ) dθ=[4x3θ3−23θ3+θ2]01=4x3−23+1=4x+13f_X(x) = \int_0^1 (4x \theta^2 - 2\theta^2 + 2\theta) \, d\theta = \left[ \frac{4x}{3} \theta^3 - \frac{2}{3} \theta^3 + \theta^2 \right]_0^1 = \frac{4x}{3} - \frac{2}{3} + 1 = \frac{4x + 1}{3}
    • Step 2: Construct the Full Posterior Distribution:fΘ∣X(θ∣x)=(2θx−θ+1)(2θ)(4x+1)/3=6θ(2θx−θ+1)4x+1,0≤θ≤1f_{\Theta|X}(\theta \mid x) = \frac{(2\theta x - \theta + 1)(2\theta)}{(4x + 1)/3} = \frac{6\theta (2\theta x - \theta + 1)}{4x + 1}, \quad 0 \le \theta \le 1
    • Step 3: Evaluate Conditional Expectation (MMSE Estimate):θ^M=E[Θ∣X=x]=∫01θfΘ∣X(θ∣x) dθ=64x+1∫01θ2(2θx−θ+1) dθ\hat{\theta}_M = E[\Theta \mid X = x] = \int_0^1 \theta f_{\Theta|X}(\theta \mid x) \, d\theta = \frac{6}{4x + 1} \int_0^1 \theta^2 (2\theta x - \theta + 1) \, d\thetaθ^M=64x+1∫01(2xθ3−θ3+θ2) dθ\hat{\theta}_M = \frac{6}{4x + 1} \int_0^1 (2x \theta^3 - \theta^3 + \theta^2) \, d\theta
      • Evaluating the definite integral:         ∫01(2xθ3−θ3+θ2) dθ=[2x4θ4−14θ4+13θ3]01=x2−14+13=x2+112\int_0^1 (2x \theta^3 - \theta^3 + \theta^2) \, d\theta = \left[ \frac{2x}{4} \theta^4 - \frac{1}{4} \theta^4 + \frac{1}{3} \theta^3 \right]_0^1 = \frac{x}{2} - \frac{1}{4} + \frac{1}{3} = \frac{x}{2} + \frac{1}{12}
      • Final product:         θ^M=64x+1(x2+112)=3x+124x+1=6x+12(4x+1)\hat{\theta}_M = \frac{6}{4x + 1} \left( \frac{x}{2} + \frac{1}{12} \right) = \frac{3x + \frac{1}{2}}{4x + 1} = \frac{6x + 1}{2(4x + 1)}