Stat Inference Compendium
Stat Inference Compendium
Instructor: Prof. Shilpa Gondhali Textbook: Rohatgi & Saleh (3rd ed., Wiley 2015)
2026–27
Preface
This compendium is designed to be the only document you need for MATH F315 (Introduction
to Statistical Inference). Every major theorem is stated precisely and proved in full, with every
algebraic step written out. Before each formal statement, there is conceptual motivation explaining
why the result matters and what problem it solves. After each theorem, worked examples show
you exactly how to apply it — including the thought process: “how do I know to do this?”
How to use this document. Read the motivation first to build intuition. Then work through
the proof carefully — cover it and try to reconstruct each step. Finally, attempt the worked
examples before reading the solutions.
Reference texts:
• T1: Rohatgi & Saleh, Introduction to Probability & Statistics (3rd ed., Wiley 2015)
• R1: Casella & Berger, Statistical Inference
• R2: Hogg, McKean & Craig (8th ed.)
Contents
iii
iv CONTENTS
II Interval Estimation 41
8 Confidence Intervals 43
8.1 Pivotal Quantity Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
8.2 Confidence Interval for Normal Mean — σ 2 Known . . . . . . . . . . . . . . . . . 43
8.3 Confidence Interval for Normal Mean — σ 2 Unknown: The t-Interval . . . . . . . 44
8.4 Confidence Interval for Variance: χ2 -Interval . . . . . . . . . . . . . . . . . . . . 45
8.5 Large-Sample Confidence Intervals . . . . . . . . . . . . . . . . . . . . . . . . . . 45
1
Chapter 1
P = {Pθ : θ ∈ Θ}
3
4 CHAPTER 1. STATISTICAL MODELS AND ESTIMATORS
iid
X1 , . . . , Xn ∼ fθ is a random sample of size n from the model fθ . The joint density of
(X1 , . . . , Xn ) is
n
Y
fθ (x) = fθ (xi ).
i=1
The word estimator refers to the random variable T (X1 , . . . , Xn ) (before data are observed).
Once we plug in observed values x1 , . . . , xn , we get the estimate T (x1 , . . . , xn ), a fixed
number. The distinction matters: statistical theory (bias, variance, MSE) refers to the
distribution of the estimator over all possible samples.
Chapter 2
Properties of Estimators:
Unbiasedness, MSE, Consistency,
BLUE
These criteria are used constantly throughout the rest of the course.
2.1 Unbiasedness
Unbiased Estimator
Bias(T, θ) = Eθ [T ] − ψ(θ).
A parametric function ψ(θ) is called estimable if there exists an unbiased estimator for
it.
Unbiasedness means that if we could repeat the experiment infinitely many times and
average our estimates, we would converge to the true value. This is a desirable long-run
frequency property. However, it is not the only criterion — sometimes a slightly biased
estimator with much lower variance is preferable (the bias-variance tradeoff, Section 2.2).
5
6 CHAPTER 2. PROPERTIES OF ESTIMATORS: UNBIASEDNESS, MSE, CONSISTENCY, BLUE
1 Pn
Claim 2: S 2 = (X − X̄)2 is unbiased for σ 2 .
n−1 h i
i=1 i
(Xi − X̄)2 . Use the identity:
P
Proof: First compute E
n
X n
X
(Xi − X̄)2 = Xi2 − nX̄ 2 .
i=1 i=1
Taking expectations:
" n # n
X X
Xi2 E[Xi2 ] = n σ 2 + µ2 ,
E =
i=1 i=1
!
h i σ2
E nX̄ 2 = n E[X̄ 2 ] = n Var X̄ + (E[X̄])2 =n + µ2 = σ 2 + nµ2 .
n
Therefore " n #
X
2
E (Xi − X̄) = n(σ 2 + µ2 ) − (σ 2 + nµ2 ) = (n − 1)σ 2 .
i=1
(n−1)σ 2
Hence E[S 2 ] = n−1 = σ2. ✓
Why divide by n − 1 and not n? If we used σ̂ 2 = n1 (Xi − X̄)2 , then E[σ̂ 2 ] = n−1 2
n σ ̸=
P
2 2
σ — it underestimates σ because we’ve used the data to estimate µ with X̄, which “uses
up” one degree of freedom.
Bias-Variance Decomposition
iid
Let X1 , . . . , Xn ∼ N (µ, σ 2 ). Compare:
c2 σ 2
MSE(T2 ) = + (c − 1)2 µ2 .
n
2.3 Consistency
Consistent Estimator
Proof
Corollary
n ) → 0, then Tn is consistent.
In particular, if Tn is unbiased (so MSE = Var(Tn )) and Var(T
This is why X̄ is consistent for µ: it is unbiased and Var X̄ = σ 2 /n → 0.
iid
Let X1 , . . . , Xn ∼ with mean µ and variance σ 2 <∞. Then X̄ is consistent for µ.
Proof 1 (via Theorem 2.3): MSE(X̄, µ) = Var X̄ = σ 2 /n → 0. ✓
Proof 2 (via Chebyshev): By Chebyshev’s inequality:
Var X̄ σ2
P (|X̄ − µ| > ε) ≤ = → 0. ✓
ε2 nε2
Proof 3 (Weak Law of Large Numbers): This is precisely the statement of the
WLLN.
Consistency of S 2
1
S2 = (Xi − X̄)2 is consistent for σ 2 .
P
n−1
E[S 2 ] = σ 2 (unbiased). For the variance: one can show Var S 2 = n1 µ4 − n−3 4 where
n−1 σ
µ4 = E[(X − µ)4 ]. Assuming µ4 < ∞, Var S 2 → 0, so S 2 is consistent for σ 2 .
2.4. BEST LINEAR UNBIASED ESTIMATORS (BLUE) 9
Proof
P P
Among all linear unbiased estimators T = ai Xi with ai = 1:
n
X n
X
Var(T ) = a2i σ 2 =σ 2
a2i .
i=1 i=1
multipliers):
n
!2 n
!2 n
! n
! n
X X X X X
1= ai = ai · 1 ≤ a2i 1 2
=n a2i ,
i=1 i=1 i=1 i=1 i=1
Proof
λ( ai − 1):
P
∂L λ 1
= 2ai σi2 − λ = 0 =⇒ ai = 2 ∝ 2 = wi .
∂ai 2σi σi
P P
The constraint ai = 1 gives ai = wi / j wj .
10CHAPTER 2. PROPERTIES OF ESTIMATORS: UNBIASEDNESS, MSE, CONSISTENCY, BLUE
3. Solve for θ.
µ = m′1 = X̄,
1X 2
σ 2 + µ2 = m′2 = Xi .
n
2 = n1 Xi2 − X̄ 2 = n1 (Xi − X̄)2 .
P P
Solving: µ̂MoM = X̄ and σ̂MoM
Note this is the biased estimator (divides by n, not n − 1).
Properties of MoM
• Completeness: a stronger property that kills all “irrelevant” unbiased estimators of zero.
• Basu’s theorem: complete sufficient statistics are independent of every ancillary statistic.
3.1 Sufficiency
Sufficient Statistic
Intuition
Once you know T = t, knowing θ gives you no additional information about the individual
observations. All the information about θ has been “compressed” into T .
11
12 CHAPTER 3. SUFFICIENCY, COMPLETENESS, AND ANCILLARITY
iid
X1 , . . . , Xn ∼ Bernoulli(p). Let T = ni=1 Xi .
P
P
For any sequence (x1 , . . . , xn ) with xi = t:
Pp (X = x, T = t) Pp (X = x) X
Pp (X = x | T = t) = = (since T = xi = t given X = x)
Pp (T = t) Pp (T = t)
Qn x 1−x
p i (1 − p) i
= i=1n t n−t
t p (1 − p)
pt (1 − p)n−t 1
= n t n−t
= n .
t p (1 − p) t
P
This does not depend on p! So T = Xi is sufficient for p.
Meaning: Once you know the total number of successes, the arrangement of those
successes among the n trials contains no additional information about p.
Let fθ (x) be the joint PMF or PDF of X = (X1 , . . . , Xn ). Then T (X) is sufficient for θ if
and only if there exist functions g(t, θ) and h(x) such that
Pθ (X = x)
Pθ (X = x | T = t) =
Pθ (T = t)
g(t, θ)h(x)
=P ′
x′ :T (x′ )=t g(t, θ)h(x )
g(t, θ)h(x)
= P ′)
g(t, θ) x′ :T (x′ )=t h(x
h(x)
=P ′)
.
x′ :T (x′ )=t h(x
Pθ (X = x) = Pθ (X = x | T = t) · Pθ (T = t) = P (X = x | T = t) · qθ (t) .
| {z } | {z }
free of θ, = h(x) = g(t,θ)
iid
X1 , . . . , Xn ∼ Bernoulli(p). The joint PMF is:
n
Y P P
fp (x) = pxi (1 − p)1−xi = p xi
(1 − p)n− xi
i=1
= pt (1 − p)n−t · |{z}
1 .
| {z }
xi h(x)
P
g(t, p) with t=
P
By the Factorization Theorem, T = Xi is sufficient for p. ✓
iid
X1 , . . . , Xn ∼ N (µ, σ 2 ). Joint PDF:
n
!
1 X
fµ,σ2 (x) = (2πσ 2 )−n/2 exp − 2 (xi − µ)2 .
2σ i=1
(xi − µ)2 =
P 2
xi − 2µ xi + nµ2 . So:
P P
Expand:
P 2 !
xi − 2µ xi + nµ2
P
2 −n/2
fµ,σ2 (x) = (2πσ ) exp − · |{z}
1 .
2σ 2
| P P{z 2 } h(x)
g(( xi , xi ), (µ,σ 2 ) )
iid
X1 , . . . , Xn ∼ U (0, θ). Joint PDF:
n
Y 1 1 1
fθ (x) = 1(0 < xi < θ) = 1 0 < x(1) , x (n) < θ = n 1(x(n) < θ) · 1(x(1) > 0).
i=1
θ θn θ
14 CHAPTER 3. SUFFICIENCY, COMPLETENESS, AND ANCILLARITY
1
fθ (x) = n
1(T < θ) · 1(x(1) > 0) .
θ
| {z } | {z }
g(T,θ) h(x)
iid
X1 , . . . , Xn ∼ Exp(λ) with PDF fλ (x) = λe−λx , x > 0.
n P
λe−λxi = λn e−λ n −λT
Y
xi
fλ (x) = | e{z } · |{z}
=λ 1 ,
i=1 g(T,λ) h(x)
P P
where T = Xi . So Xi (equivalently X̄) is sufficient for λ.
P P
By the Factorization Theorem, T(X) = ( T1 (Xi ), . . . , Tk (Xi )) is a sufficient statistic for
θ.
Exponential Family Examples
3.3 Completeness
Completeness is a property of a family of distributions, not of a particular distribution. Intuitively,
a statistic T is complete for a family if the only function of T that is unbiased for zero (for all θ)
is the zero function.
Complete Statistic
A statistic T is complete for the family {Pθ : θ ∈ Θ} if, for every measurable function g:
Since eC(Q) ̸= 0, the function Q 7→ g(t)h∗ (t)eQt dt (the Laplace transform of g(t)h∗ (t))
R
Completeness: Poisson
iid
X1 , . . . , Xn ∼ Poisson(λ), λ > 0. The family is one-parameter exponential with T =
P
Xi .
Since λ ranges over (0, ∞), by Theorem 3.3, T = Xi is complete for λ.
P
16 CHAPTER 3. SUFFICIENCY, COMPLETENESS, AND ANCILLARITY
This is a power series in λ that is identically zero, so every coefficient must be zero:
g(t)nt /t! = 0 =⇒ g(t) = 0 for all t = 0, 1, 2, . . . . Hence T is complete.
iid
Let X1 , . . . , Xn ∼ U (0, θ) and consider the pair T = (X(1) , X(n) ). Note Eθ [X(n) − X(1) ] =
n−1
n+1 θ and this is not zero for θ > 0.
n−1 X +X
Now let g(X(1) , X(n) ) = X(n) − X(1) − n+1 · (n) 1 (1) ... Actually the classic example:
Eθ [X(n) − X(1) ] = n+1 θ and Eθ [X(n) ] = n+1 θ, so g = (X(n) − X(1) ) − n−1
n−1 n
n · X(n) ...
n−1 n−1 n−1 n
Simpler: Eθ [X(n) − X(1) ] = n+1 θ and Eθ [ n+1 X(n) ] = n+1 · n+1 θ. These are not equal to
zero identically, so the incomplete example must be constructed differently.
The clearest example is this: consider X ∼ U (θ − 12 , θ + 12 ). Then X itself is sufficient and
R θ+1/2
minimal sufficient for θ. But g(x) = sin(2πx) satisfies Eθ [g(X)] = θ−1/2 sin(2πx) dx = 0
for all θ, yet g(x) ̸≡ 0. So X is not complete for this family.
Ancillary Statistic
Intuition
Ancillary Statistics
iid
1. X1 , . . . , Xn ∼ N (µ, 1): A = (n − 1)S 2 = (Xi − X̄)2 ∼ χ2 (n − 1), distribution free
P
of µ. So S 2 is ancillary for µ.
iid
2. X1 , . . . , Xn ∼ N (0, σ 2 ): A = X̄/S ∼ t(n − 1), free of σ 2 .
iid
3. X1 , . . . , Xn ∼ f (x−θ) (location family): A = (X1 −Xn , . . . , Xn−1 −Xn ) (differences)
is ancillary.
iid
4. X1 , . . . , Xn ∼ from PDF f (x/θ)/θ (scale family): A = X1 /Xn , X2 /Xn , . . . (ratios)
are ancillary.
3.5. MINIMAL SUFFICIENT STATISTICS 17
Suppose the family has PDF/PMF fθ . Define x ∼ y (likelihood equivalent) if the ratio
fθ (x)/fθ (y) does not depend on θ. Then any statistic T that is constant on equivalence
classes of ∼ (and takes different values on different classes) is minimal sufficient.
Practical criterion: T (X) is minimal sufficient if T (x) = T (y) if and only if fθ (x)/fθ (y)
is free of θ.
fµ (x) 1X 2
X
= exp − (xi − yi2 ) + µ (xi − yi ) .
fµ (y) 2
P P P
This is free of µ iff xi = yi iff x̄ = ȳ. So T = X̄ (equivalently Xi ) is minimal
sufficient for µ.
Basu’s Theorem
Proof
Pθ (A ∈ B | S) = p(B) = Pθ (A ∈ B) a.s.
iid
X1 , . . . , Xn ∼ Exp(θ).
P
• T = Xi is complete sufficient for θ.
Xi ⊥
⊥ X1 /
P P
By Basu’s theorem: Xj .
Chapter 4
Find a complete sufficient statistic T −→ Find any unbiased estimator h(X) −→ Compute E[h(X) | T ] =
Uniqueness of UMVUE
Proof
T0 +T1
Suppose T0 and T1 are both UMVUEs of ψ(θ). Then 2 is also unbiased, and by the
19
20 CHAPTER 4. UMVUE THEORY: RAO-BLACKWELL AND LEHMANN-SCHEFFÉ
parallelogram law:
T0 + T1 1
Var = Var(T0 + T1 )
2 4
1
= (Var(T0 ) + 2Cov(T0 , T1 ) + Var(T1 ))
4
1 q
≤ Var(T0 ) + 2 Var(T0 ) Var(T1 ) + Var(T1 ) (Cauchy-Schwarz)
4
2
1 q
q
= Var(T0 ) + Var(T1 ) .
4
Since T0 is UMVUE and (T0 + T1 )/2 is unbiased: Var(T0 ) ≤ Var((T0 + T1 )/2). Since T1 is
UMVUE: Var(T1 ) ≤ Var(T0 ), and by symmetry Var(T p 0 ) ≤ Var(T1 ), so Var(T0 ) = Var(T1 ).
The Cauchy-Schwarz inequality Cov(T0 , T1 ) ≤ Var(T0 ) Var(T1 ) holds with equality iff
T1 = aT0 + b a.s. for some constants. Since both are unbiased for ψ(θ): b = (1 − a)ψ(θ)
for all θ. If ψ is non-constant, this forces a = 1, b = 0, so T0 = T1 a.s.
Rao-Blackwell Theorem
Let T be a sufficient statistic for θ and let h(X) be any unbiased estimator of ψ(θ) with
Eθ [h2 (X)] < ∞. Define
ϕ(T ) = Eθ [h(X) | T ].
(Note: ϕ(T ) is free of θ by sufficiency, so this is well-defined.) Then:
Proof
The theorem tells you: any unbiased estimator that is not already a function of the sufficient
statistic can be improved by conditioning on that statistic. After Rao-Blackwellization,
you need only consider estimators that are functions of the sufficient statistic.
Rao-Blackwell: Poisson
iid
X1 , . . . , Xn ∼ Poisson(λ). Estimate ψ(λ) = e−λ = P (X = 0).
Naive estimator: h(X) = 1(X1 = 0). Then E[h] = P (X1 = 0) = e−λ , so h is unbiased.
But Var(h) = e−λ (1 − e−λ ) is large.
Sufficient statistic: T = Xi ∼ Poisson(nλ).
P
Rao-Blackwell improvement:
Pn
ϕ(T ) = E[h(X) | T ] = P (X1 = 0 | i=1 Xi = T ).
P (X1 = 0, ni=2 Xi = t)
P
Pn
P (X1 = 0 | i=1 Xi = t) =
P ( ni=1 Xi = t)
P
t
e−λ · e−(n−1)λ ((n−1)λ)
t!
= t
e−nλ (nλ)
t!
t
(n − 1)t λt n−1
= = .
nt λt n
T P Xi
1 n−1
So ϕ(T ) = 1 − n = n .
T
n−1
Verification: Eλ [ϕ(T )] = E n where T ∼ Poisson(nλ). Using the MGF of the
s −1)
Poisson: E[esT ] = enλ(e , so with s = log n−1
n :
" T #
n−1 n−1
E = enλ( n
−1 ) = enλ·(−1/n) = e−λ . ✓
n
Proof
2. Find any function ϕ(T ) that is unbiased for ψ(θ). — Option A: Guess directly. —
Option B: Take a simple unbiased estimator h and compute E[h | T ].
s
2 Γ(n/2)
E[S] = σ · .
n − 1 Γ((n − 1)/2)
q
2 Γ(n/2)
So the UMVUE of σ is S/c(n) where c(n) = n−1 · Γ((n−1)/2) .
UMVUE of µ2 : We need an unbiased function of (X̄, S 2 ). E[X̄ 2 ] = Var X̄ + µ2 =
σ 2 /n + µ2 , so X̄ 2 − S 2 /n is unbiased for µ2 . By Lehmann-Scheffé: UMVUE of µ2 is
X̄ 2 − S 2 /n.
UMVUE: Bernoulli/Binomial
iid
X1 , . . . , Xn ∼ Bernoulli(p). CSS: T = Xi ∼ Binomial(n, p).
P
T (n − T ) 1 1
E = n · np − E[T 2 ] = n2 p − np(1 − p) − n2 p2 = p(1−p).
n(n − 1) n(n − 1) n(n − 1)
T (n−T )
So the UMVUE of p(1 − p) is n(n−1) .
4.3. THE LEHMANN-SCHEFFÉ THEOREM 23
iid
X1 , . . . , Xn ∼ Exp(θ) (mean θ). CSS: T = Xi ∼ Γ(n, θ).
P
Since X1 |
P
Xi = t has distribution Beta-related, one can show:
x0 n−1
(
1− T if T > x0
ϕ(T ) =
0 if T ≤ x0 .
The Rao-Blackwell + Lehmann-Scheffé approach finds the UMVUE but requires a complete
sufficient statistic. What if none exists? More fundamentally, what is the smallest variance any
unbiased estimator can possibly have?
The Cramér-Rao lower bound (CRLB) answers this. It provides a universal lower bound
for the variance of any unbiased estimator, in terms of the Fisher information — a quantity
that measures how much “information” the data contains about θ.
If an unbiased estimator achieves the CRLB, it is called efficient. Often the UMVUE is also
efficient, but not always.
Score Function
For a family with log-density ℓ(θ; x) = log fθ (x), the score function is
∂ f ′ (x)
s(θ; x) = log fθ (x) = θ .
∂θ fθ (x)
∂ Pn
For a sample X, the score is s(θ; X) = ∂θ log fθ (X) = i=1 s(θ; Xi ) (for iid data).
Proof
R
We use the fact that fθ (x) dx = 1 for all θ. Differentiating both sides with respect to θ
25
26 CHAPTER 5. FISHER INFORMATION AND THE CRAMÉR-RAO LOWER BOUND
d ∂fθ (x)
Z Z
0= fθ (x) dx = dx
dθ ∂θ
∂ log fθ (x)
Z
= fθ (x) · dx
∂θ
∂ log fθ (X)
= Eθ = Eθ [s(θ; X)]. ✓
∂θ
Proof
d
Z
0= s(θ; x)fθ (x) dx
dθ
∂s(θ; x) ∂fθ (x)
Z Z
= fθ (x) dx + s(θ; x) dx
"
∂θ #
∂θ
∂ 2 log fθ (X) h
2
i
= Eθ + Eθ s(θ; X)
∂θ2
" #
∂ 2 log fθ (X)
= Eθ + I(θ).
∂θ2
∂ 2 log fθ (X)
h i
Therefore I(θ) = −Eθ ∂θ2
.
iid
If X1 , . . . , Xn ∼ fθ , the Fisher information in the entire sample X is
In (θ) = n I(θ).
5.2. FISHER INFORMATION 27
Proof
Pn Pn
The log-likelihood is log fθ (X) = i=1 log fθ (Xi ). The score is sn (θ; X) = i=1 s(θ; Xi ).
Since the Xi are iid:
n n
!
X X
In (θ) = Var(sn ) = Var s(θ; Xi ) = Var(s(θ; Xi )) = nI(θ).
i=1 i=1
∂ log fλ x x−λ
= −1= .
∂λ λ λ
∂ 2 log fλ
Using the alternative formula: ∂λ2
= − λx2 .
X E[X] λ 1
I(λ) = −E − 2
= 2
= 2 = .
λ λ λ λ
1 1
I(µ) = −E − 2 = 2 .
σ σ
Fisher information for n observations: In (µ) = n/σ 2 .
28 CHAPTER 5. FISHER INFORMATION AND THE CRAMÉR-RAO LOWER BOUND
iid
Let X1 , . . . , Xn ∼ fθ satisfying regularity conditions. Let T (X) be any unbiased estimator
of ψ(θ) with Eθ [T 2 ] < ∞. Then
[ψ ′ (θ)]2
Var([) θ]T (X) ≥ .
n I(θ)
Key idea: We will use the Cauchy-Schwarz inequality applied to the covariance of T (X)
and the score function sn (θ; X).
Step 1: Compute Covθ (T (X), sn (θ; X)).
Since Eθ [sn ] = 0 and Eθ [T ] = ψ(θ):
∂fθ (x)/∂θ
Z
Cov(T, sn ) = T (x) · · fθ (x) dx
fθ (x)
∂fθ (x)
Z
= T (x) · dx
∂θ
∂
Z Z
= T (x)fθ (x) dx (interchange ∂/∂θ and )
∂θ
d d
= Eθ [T (X)] = ψ(θ) = ψ ′ (θ).
dθ dθ
Step 2: Apply Cauchy-Schwarz.
The Cauchy-Schwarz inequality states: [Cov(T, sn )]2 ≤ Var(T ) · Var(sn ).
We know:
Therefore:
[ψ ′ (θ)]2 ≤ Var(T ) · nI(θ),
which gives
[ψ ′ (θ)]2
Var(T ) ≥ . ✓
nI(θ)
5.3. THE CRAMÉR-RAO LOWER BOUND 29
Efficient Estimator
′ 2
An unbiased estimator T is efficient if it attains the CRLB: Var(T ) = [ψnI(θ)
(θ)]
.
An efficient estimator is automatically the UMVUE (since no unbiased estimator can have
smaller variance).
The Cauchy-Schwarz bound is attained (with equality) if and only if the score function is
a linear function of T :
∂ log fθ (X)
sn (θ; X) = = c(θ) T (X) − ψ(θ)
∂θ
for some function c(θ) not depending on X.
Proof
Cauchy-Schwarz holds with equality iff T − E[T ] and sn − E[sn ] = sn are proportional:
T − ψ(θ) = k · sn for some k possibly depending on θ. Solving for sn gives the result.
iid
X1 , . . . , Xn ∼ U (0, θ).
The Uniform(0, θ) family does not satisfy regularity conditions (the support depends on
30 CHAPTER 5. FISHER INFORMATION AND THE CRAMÉR-RAO LOWER BOUND
[−e−λ ]2 λe−2λ
CRLB = = .
n/λ n
The UMVUE was ϕ(T ) = (1 − 1/n)T . Can compute Var(ϕ(T )) and check whether it
equals the CRLB. In general, for this problem, the UMVUE does not achieve the CRLB —
the CRLB is not always tight.
Chapter 6
31
32 CHAPTER 6. MAXIMUM LIKELIHOOD ESTIMATION
iid
X1 , . . . , Xn ∼ Bernoulli(p).
n
X
ℓ(p) = [xi log p + (1 − xi ) log(1 − p)] = t log p + (n − t) log(1 − p),
i=1
P
where t = xi .
Differentiating:
dℓ t n−t t
= − = 0 =⇒ t(1 − p) = (n − t)p =⇒ t = np =⇒ p̂ = = x̄.
dp p 1−p n
d ℓ 2t n−t
Second derivative: dp 2 = − p2 − (1−p)2 < 0 (when 0 < t < n). So p̂ = X̄ is the MLE.
MLE: Poisson(λ)
iid
X1 , . . . , Xn ∼ Poisson(λ).
n
X
ℓ(λ) = [xi log λ − λ − log(xi !)] = t log λ − nλ − C,
i=1
P
where t = xi and C is constant in λ.
dℓ t t
= − n = 0 =⇒ λ̂ = = x̄.
dλ λ n
d2 ℓ
dλ2
= −t/λ2 < 0. So λ̂ = X̄ is the MLE.
iid
X1 , . . . , Xn ∼ N (µ, σ 2 ).
n
n n 1 X
ℓ(µ, σ 2 ) = − log(2π) − log σ 2 − 2 (xi − µ)2 .
2 2 2σ i=1
iid
X1 , . . . , Xn ∼ U (0, θ).
L(θ; x) = θ1n ni=1 1(0 < xi < θ) = 1
Q
θn 1(θ > x(n) ).
So for fixed x: (
θ−n if θ > x(n)
L(θ) =
0 if θ ≤ x(n) .
The function θ−n is decreasing in θ for θ > 0. So L(θ) is maximized at the smallest possible
θ, which is θ = x(n) = maxi xi .
Properties:
nxn−1
PDF of X(n) : fX(n) (x; θ) = , 0 < x < θ.
θn
n
E[X(n) ] = θ,
n+1
n θ
Bias: = θ−θ =− < 0. (biased)
n+1 n+1
n+1
The UMVUE is n X(n) (unbiased), but the MLE is X(n) (biased but consistent).
MLE: Exponential(λ)
iid
X1 , . . . , Xn ∼ Exp(λ) with PDF λe−λx .
X
ℓ(λ) = n log λ − λ xi .
dℓ n X n 1
= − xi = 0 =⇒ λ̂ = P = .
dλ λ Xi X̄
Note: E[λ̂] = E[1/X̄] ̸= 1/θ in general (MLE can be biased). The MLE of the mean
θ = 1/λ is X̄ by invariance.
If θ̂ is the MLE of θ, then for any function g, the MLE of g(θ) is g(θ̂).
Proof
Define the induced likelihood: L∗ (g(θ)) = supθ:g(θ)=ϕ L(θ). The MLE of ϕ = g(θ) maximizes
L∗ (ϕ) over all ϕ.
Since g(θ̂) achieves this maximum (L∗ (g(θ̂)) = L(θ̂) ≥ L(θ) for all θ), the MLE of g(θ) is
g(θ̂).
34 CHAPTER 6. MAXIMUM LIKELIHOOD ESTIMATION
• MLE of µ2 is X̄ 2 .
c−µ c−X̄
• MLE of P (X ≤ c) = Φ σ is Φ σ̂ .
Sketch
The MLE solves the score equation ℓ′ (θ̂) = 0. Taylor-expand ℓ′ around the true θ0 :
√ √1 ℓ′ (θ0 )
N (0, I(θ0 )) 1
n d
n(θ̂ − θ0 ) ≈ − 1 ′′ → − = N 0, . ✓
n ℓ (θ0 )
−I(θ0 ) I(θ0 )
• The asymptotic variance 1/(nI(θ)) equals the CRLB. So the MLE is asymptotically
efficient — no unbiased estimator can have lower asymptotic variance.
q
• This gives approximate confidence intervals: θ̂ ± zα/2 nI(θ̂).
For a one-parameter exponential family fθ (x) = exp{Q(θ)T (x) + D(θ) + S(x)}, the MLE
θ̂ satisfies: hX i X
Eθ̂ T (Xi ) = T (xi ),
i.e., the expected value of the sufficient statistic under θ̂ equals its observed value. The
MLE is a function of the sufficient statistic.
By Bayes’ theorem:
f (x|θ) π(θ)
Z
π(θ|x) = , m(x) = f (x|θ)π(θ) dθ.
m(x)
A loss function L(θ, δ) measures the cost of using estimate δ when the true value is θ.
The risk (frequentist) is R(θ, δ) = Eθ [L(θ, δ(X))].
The Bayes risk is r(π, δ) = Eπ [R(θ, δ)] = Eπ Eθ [L(θ, δ)].
The Bayes estimator minimizes the Bayes risk, equivalently minimizes the posterior
expected loss Eθ [L(θ, δ)|X = x] for each x.
Under L(θ, δ) = (θ − δ)2 (squared error loss), the Bayes estimator is the posterior mean:
θ̂Bayes = E[θ|X].
37
38 CHAPTER 7. BAYES AND MINIMAX ESTIMATION
Proof
−2E[θ|x] + 2δ = 0 =⇒ δ = E[θ|x]. ✓
iid
X1 , . . . , Xn ∼ Bernoulli(p), prior p ∼ Beta(α, β).
Prior: π(p) ∝ pα−1 (1 −P p)β−1 . P
Likelihood: f (x|p) = p xi (1 − p)n− xi = pt (1 − p)n−t .
Posterior:
π(p|x) ∝ pα+t−1 (1 − p)β+n−t−1 ,
which is Beta(α + t, β + n − t).
Bayes estimator (posterior mean):
α+t
p̂Bayes = E[p|x] = .
α+β+n
Interpretation: Prior contributes α “pseudo-successes” and β “pseudo-failures”. As n → ∞,
p̂Bayes → x̄ = p̂M LE .
Gamma-Poisson Conjugacy
iid
X1 , . . . , Xn ∼ Poisson(λ), prior λ ∼ Γ(α, β) (mean αβ).
Prior: π(λ) ∝ λα−1 e−λ/β . P
Likelihood: f (x|λ) = e−nλ λ xi .
Posterior: P
π(λ|x) ∝ λα+ xi −1 e−λ(n+1/β) ,
P 1 β
which is Γ α + xi , n+1/β = Γ α + t, nβ+1 .
Bayes estimator (posterior mean):
(α + t)β αβ + nx̄β
λ̂Bayes = = → x̄ as n → ∞.
nβ + 1 nβ + 1
7.3. MINIMAX ESTIMATION 39
Normal-Normal Conjugacy
iid
X1 , . . . , Xn ∼ N (θ, σ 2 ) (σ 2 known), prior θ ∼ N (µ0 , τ 2 ).
Posterior: !
µ0 /τ 2 + nX̄/σ 2 1
θ|X ∼ N , .
1/τ 2 + n/σ 2 1/τ 2 + n/σ 2
Bayes estimator (posterior mean) — the precision-weighted average:
If δπ is the Bayes estimator for prior π and its risk is constant in θ (i.e., R(θ, δπ ) = c for
all θ), then δπ is minimax.
Proof
Interval Estimation
41
Chapter 8
Confidence Intervals
Pivotal Quantity
A function Q(X, θ) is a pivot (or pivotal quantity) if its distribution is completely known
(free of all unknown parameters).
Confidence Interval
43
44 CHAPTER 8. CONFIDENCE INTERVALS
!
X̄ − µ σ σ
P −zα/2 ≤ √ ≤ zα/2 = P X̄ − zα/2 √ ≤ µ ≤ X̄ + zα/2 √ = 1 − α.
σ/ n n n
σ
X̄ ± zα/2 · √
n
where zα/2 = Φ−1 (1 − α/2). E.g., z0.025 = 1.96 for 95% CI.
1. X̄ ∼ N (µ, σ 2 /n).
2. (n − 1)S 2 /σ 2 ∼ χ2 (n − 1).
4. Therefore: √
X̄ − µ (X̄ − µ)/(σ/ n)
T = √ =p ∼ t(n − 1).
S/ n (n − 1)S 2 /σ 2 /(n − 1)
The complete sufficient statistic for (µ, σ 2 ) is (X̄, S 2 ). But wait — we need to be more
careful. When σ 2 is fixed: X̄ is CSS for µ, and (n − 1)S 2 /σ 2 ∼ χ2 (n − 1) is ancillary for
µ. By Basu’s theorem, X̄ ⊥ S 2 .
Alternatively, use the explicit computation: since Xi ∼ N (µ, σ 2 ), write Xi = µ + σZi
iid
where Zi ∼ N (0, 1). X̄ = µ + σ Z̄ and (n − 1)S 2 /σ 2 = (Zi − Z̄)2 . These are independent
P
because Z̄ and (Zi − Z̄) are uncorrelated (hence independent for normal) jointly normal
random variables.
S
X̄ ± tn−1, α/2 · √
n
where tn−1,α/2 is the upper α/2 quantile of t(n − 1).
Then: ! !
2 (n − 1)S 2 2 (n − 1)S 2 2 (n − 1)S 2
P χL ≤ ≤ χU = P ≤σ ≤ = 1 − α.
σ2 χ2U χ2L
χ2 -interval for σ 2
" #
(n − 1)S 2 (n − 1)S 2
, .
χ2n−1, α/2 χ2n−1, 1−α/2
CI Worked Example
15 × 4.2 15 × 4.2
, = [2.292, 10.061].
27.488 6.262
Hypothesis Testing
47
Chapter 9
A test is a decision rule based on data: given X, decide H0 or H1 . The critical region
(rejection region) C is the set of values of X for which we reject H0 :
Reject H0 ⇐⇒ X ∈ C.
49
50 CHAPTER 9. FOUNDATIONS OF HYPOTHESIS TESTING
Reducing the critical region C reduces α (Type I error) but increases β (Type II error).
They cannot both be minimized simultaneously (for fixed n). The Neyman-Pearson
approach: fix α at an acceptable level (say 0.05), then find the most powerful test
(minimize β).
• At µ = 0: π(0) = 1 − Φ(zα ) = α. ✓
f1 (x)
∗
C = x: >k ,
f0 (x)
1. (Sufficiency) The LRT C ∗ is the most powerful (MP) test at level α: for any other
level-α test with critical region C,
2. (Necessity) Any MP test at size α must be of the form C ∗ (with possible random-
ization on the boundary).
51
52 CHAPTER 10. THE NEYMAN-PEARSON THEORY: OPTIMAL TESTS
= f1 dµ − f1 dµ.
C ∗ \C C\C ∗
On C ∗ \ C ⊆ C ∗ : f1 ≥ kf0 . On C \ C ∗ ⊆ (C ∗ )c : f1 ≤ kf0 .
Therefore:
Z Z
∗
π1 (C ) − π1 (C) ≥ kf0 dµ − kf0 dµ
C ∗ \C C\C ∗
= k (π0 (C ∗ \ C) − π0 (C \ C ∗ ))
= k (π0 (C ∗ ) − π0 (C ∗ ∩ C) − π0 (C) + π0 (C ∗ ∩ C))
= k (π0 (C ∗ ) − π0 (C))
= k(α − π0 (C)) ≥ 0, since π0 (C) ≤ α.
So π1 (C ∗ ) ≥ π1 (C). ✓
Proof of Necessity: If π1 (C) = π1 (C ∗ ) (both MP), then all inequalities above are
equalities. The equality k(π0 (C ∗ ) − π (C)) = 0 with k > 0 gives π (C) = π (C ∗ ) = α.
0 0 0
And equality in C ∗ \C f1 ≥ k C ∗ \C f0 requires f1 = kf0 on C ∗ \ C (a.e.), i.e., C differs
R R
from C ∗ only on the boundary {f1 /f0 = k} (which has measure zero for continuous
distributions).
iid
X1 , . . . , Xn ∼ N (µ, 1). Test H0 : µ = 0 vs. H1 : µ = 1 at size α.
Likelihood ratio:
1 hX
X i
= exp − (xi − 1)2 − x2i
2
1h X
i
= exp − −2 xi + n
2
n
X
= exp xi −
2
nx̄−n/2
=e .
The LRT rejects when enx̄−n/2 > k, i.e., when x̄ > c for some c.
√
Under H0 : X̄ ∼ N (0, 1/n), so nX̄ ∼ N (0, 1). The size condition: P0 (X̄ > c) = α =⇒
√
c = zα / n.
√ √
Result: Reject H0 ifX̄ > zα / n,i.e., if Z = nX̄ > zα . This is the one-sided z-test.
√ √ √
Power at µ = 1: P1 X̄ > zα / n = P (Z > zα − n) = 1 − Φ(zα − n).
10.2. UNIFORMLY MOST POWERFUL TESTS 53
iid
X1 , . . . , Xn ∼ Exp(θ) (mean θ). Test H0 : θ = θ0 vs. H1 : θ = θ1 where θ1 > θ0 .
Likelihood ratio:
P
θ−n e− xi /θ1
n
fθ (x) θ0 1 1
X
Λ(x) = 1 = 1−n P = exp − xi − .
fθ0 (x) θ0 e− xi /θ0 θ1 θ1 θ 0
For composite hypotheses H1 : θ > θ0 , we want a test that is MP for every specific θ1 > θ0 . Such
a test is called UMP.
UMP Test
A level-α test with power function π(θ) is Uniformly Most Powerful (UMP) if for
every level-α test with power function π ′ (θ):
A family {fθ } has Monotone Likelihood Ratio in statistic T if for all θ1 > θ0 , the
ratio fθ1 (x)/fθ0 (x) is a monotone non-decreasing function of T (x).
Sketch
Step 1: For fixed θ1 > θ0 , the NP lemma gives MP test against θ1 . The NP test rejects
when fθ1 /fθ0 > k, which (by MLR) is equivalent to T > c for some c. So the rejection
region is {T > c} regardless of θ1 .
Step 2: Since {T > c} is MP against every specific θ1 > θ0 , it is UMP for the composite
H1 : θ > θ0 .
Step 3: For θ ≤ θ0 : Power is Pθ (T > c) ≤ Pθ0 (T > c) = α (power is increasing in θ for
MLR families), so the test has level α.
54 CHAPTER 10. THE NEYMAN-PEARSON THEORY: OPTIMAL TESTS
For a one-parameter exponential family with Q(θ) increasing in θ and T (x) as the sufficient
statistic:
fθ1 (x) n X o
= exp (Q(θ1 ) − Q(θ0 )) T (Xi ) + n(D(θ1 ) − D(θ0 )) .
fθ0 (x)
P
If Q is increasing, then Q(θ1 ) > Q(θ0 ), so the ratio is increasing in T (Xi ). This shows
P
all one-parameter exponential families with increasing Q have MLR in T (Xi ).
Consequences:
P
• Bernoulli(p), test H1 : p > p0 : UMP rejects when Xi > c (i.e., X̄ > c/n).
P
• Poisson(λ), test H1 : λ > λ0 : UMP rejects when Xi > c.
A level-α test is Locally Most Powerful (LMP) at θ0 if there exists δ > 0 such that it
maximizes power for all θ1 with |θ1 − θ0 | < δ (or for all θ1 in a neighborhood).
For testing H0 : θ = θ0 vs. H1 : θ > θ0 , the LMP test rejects for large values of the score
statistic:
∂
s(θ0 ; X) = log fθ (X) .
∂θ θ=θ0
Sketch
supθ∈Θ0 L(θ; X)
Λ(X) = .
supθ∈Θ L(θ; X)
The GLRT rejects H0 when Λ(X) < c (small ratio = data inconsistent with H0 ).
Equivalently, many texts write −2 log Λ(X) and reject for large values.
Wilks’ Theorem
Sketch
Let θ̂0 = arg maxθ∈Θ0 L(θ) and θ̂ = arg max L(θ). Taylor-expand:
55
56 CHAPTER 11. GENERALIZED LIKELIHOOD RATIO TESTS AND STANDARD TESTS
X̄ − µ0
t= √ ∼ t(n − 1) under H0 : µ = µ0 .
S/ n
Reject H0 : µ = µ0 vs. H1 : µ ̸= µ0 at size α if |t| > tn−1,α/2 .
For one-sided H1 : µ > µ0 : reject if t > tn−1,α .
A company claims its batteries last 100 hours (mean). A sample of n = 25 batteries has
x̄ = 97.2 and s = 8.4. Test at α = 0.05.
H0 : µ = 100 vs. H1 : µ ̸= 100.
Step 1: Test statistic:
97.2 − 100 −2.8
t= √ = = −1.667.
8.4/ 25 1.68
Step 2: Critical value: t24,0.025 = 2.064.
Step 3: Decision: |t| = 1.667 < 2.064, so fail to reject H0 .
Conclusion: Insufficient evidence that the mean battery life differs from 100 hours.
p-value: p = 2 · P (t24 > 1.667) ≈ 0.109 > 0.05.
(n − 1)S 2
Q= < χ2n−1, 1−α/2 or Q > χ2n−1, α/2 .
σ02
59
Chapter 12
Pearson’s χ2 test answers both. Kendall’s τ measures rank correlation and tests association
between two ordinal or continuous variables, without assuming a distributional form (non-
parametric).
Chi-Squared Statistic
P
Suppose we have k categories with observed counts O1 , . . . , Ok (with Oi = n) and
expected counts Ei = nπi under H0 (where πi is the hypothesized probability for category
P
i, πi = 1).
The Pearson χ2 statistic is:
k
X (Oi − Ei )2
χ2 = .
i=1
Ei
Asymptotic Distribution of χ2
If m parameters are estimated from the data to compute Ei , then the limiting distribution
is χ2 (k − 1 − m).
61
62 CHAPTER 12. PEARSON’S CHI-SQUARED TEST AND KENDALL’S TAU
Let Oi = nπ̂i where π̂i = Oi /n is the sample proportion for category i. By the multinomial
√ d
CLT: n(π̂ − π0 ) → N (0, Σ), where Σii = πi (1 − πi ) and Σij = −πi πj (i ̸= j).
Write Oi − Ei = n(π̂i − πi ). Then:
k k
X (Oi − Ei )2 X n(π̂i − πi )2
χ2 = = = Z T Z,
i=1
Ei i=1
πi
√ √
where Zi = n(π̂i − πi )/ πi . The vector Z is asymptotically multivariate normal with a
rank-(k − 1) covariance matrix (since π̂i = 1 imposes one linear constraint). A quadratic
P
Roll a die 120 times, observe: 1:18, 2:22, 3:17, 4:21, 5:20, 6:22. Test H0 : die is fair
(πi = 1/6 for all i).
Ei = 120/6 = 20 for all i.
(18 − 20)2 (22 − 20)2 (17 − 20)2 (21 − 20)2 (20 − 20)2 (22 − 20)2
χ2 = + + + + +
20 20 20 20 20 20
4 4 9 1 4 22
= + + + +0+ = = 1.1.
20 20 20 20 20 20
Under H0 : χ2 ∼ χ2 (5). Critical value at α = 0.05: χ25,0.05 = 11.07.
Since 1.1 < 11.07, fail to reject H0 . No evidence the die is unfair.
• H0 : Variables A and B are independent, i.e., pij = pi· · p·j where pi· = P (A = i),
p·j = P (B = j).
Ri ·Cj
• Under H0 , estimated expected count: Eij = n .
has the asymptotic null distribution χ2 ((r − 1)(c − 1)) under H0 . The degrees of freedom
is (r − 1)(c − 1) because we estimated r − 1 row marginal probabilities and c − 1 column
marginal probabilities (each losing one df to the sum-to-1 constraint), from the rc − 1 free
parameters total.
Under the general model: rc − 1 free parameters pij (minus 1 for sum-to-1). Under H0
(independence): (r − 1) + (c − 1) free parameters. Number of restrictions: (rc − 1) − [(r −
1) + (c − 1)] = rc − r − c + 1 = (r − 1)(c − 1). By Wilks’ theorem, the limiting χ2 df equals
the number of restrictions.
A B C Total
Male 40 35 25 100
Female 20 50 30 100
Total 60 85 55 200
• Discordant if (Xi − Xj )(Yi − Yj ) < 0 (one increases while the other decreases).
Kendall’s τ
Kendall’s τ is:
P −Q P −Q
τ= n = ,
2 n(n − 1)/2
ranging from −1 (perfectly discordant) to +1 (perfectly concordant). τ = 0 suggests no
monotone association.
Population version: τ = P (concordant) − P (discordant) = E[sgn((Xi − Xj )(Yi − Yj ))].
Data: (X, Y ): (1, 2), (2, 4), (3, 3), (4, 5), (5, 1).
Sort by X (already sorted). For each pair (i, j) with i < j, compare Yi and Yj :
5
P = 5 concordant, Q = 5 discordant, 2 = 10.
5−5
τ= = 0.
10
Kendall’s τ = 0 suggests no monotone association — consistent with the data not being
monotonically related (it goes up then comes back down).
Sketch
2
i<j h(Xi , Xj , Yi , Yj ) where h = sgn((Xi − Xj )(Yi − Yj )). Under H0 ,
P
Write τ = n(n−1)
each h has mean 0 and each pair is uncorrelated with non-overlapping pairs. The variance
follows from computing E[h2 ] = 1 and accounting for pairs sharing one observation
(Cov(hij , hik ) ̸= 0). The asymptotic normality follows from the theory of U -statistics (the
Hoeffding projection / CLT for U -statistics).
2(2n+5)
The exact variance formula 9n(n−1) is derived by careful enumeration of covariances
between overlapping pairs.
A researcher observes rankings (X, Y ) for n = 15 subjects and computes τ = 0.43. Test
H0 : τ = 0 vs. H1 : τ > 0 at α = 0.05.
Step 1: Compute standard deviation under H0 :
s
√
r r
2(2 · 15 + 5) 2 · 35 70
SD(τ̂ ) = = = = 0.03704 = 0.1925.
9 · 15 · 14 1890 1890
67
Chapter 13
iid
Let X1 , . . . , Xn ∼ Exp(θ) with mean θ > 0. Find the UMVUE of ψ(θ) = θ2 .
Solution
Solution
69
70 CHAPTER 13. POINT ESTIMATION: PROBLEMS WITH FULL SOLUTIONS
∂ log f x α
s(β; x) = = 2− .
∂β β β
Verify E[s] = 0: E[s] = E[X]/β 2 − α/β = αβ/β 2 − α/β = 0. ✓
Step 3: Fisher information via second derivative.
∂ 2 log f 2x α
2
= − 3 + 2.
∂β β β
2X α 2E[X] α 2αβ α 2α α α
I(β) = −E − 3 + 2 = 3
− 2 = 3 − 2 = 2 − 2 = 2.
β β β β β β β β β
Step 4: CRLB for unbiased estimators of β.
ψ(β) = β, ψ ′ (β) = 1.
1 1 β2
CRLB = = = .
nI(β) n · α/β 2 nα
Step 5: Check if X̄/α is efficient.
E[X̄]
= αβ,
so E[X̄/α] =2 β (unbiased). ✓
Var(X) αβ β2
Var X̄/α = α2 n = α2 n = αn .
2
β
Since Var X̄/α = αn = CRLB, the estimator X̄/α attains the CRLB and is therefore
efficient (and is the UMVUE).
iid
Let X1 , . . . , Xn ∼ f (x; µ, σ) = σ1 e−(x−µ)/σ for x > µ, σ > 0 (two-parameter exponential,
shifted). Find the MLE of (µ, σ) and identify the sufficient statistic.
Solution
Step 1: Log-likelihood.
log f = − log σ − (x − µ)/σ for x > µ.
n
1X
ℓ(µ, σ) = −n log σ − (xi − µ),
σ i=1
valid only when µ < mini xi = x(1) (since all xi > µ).
Step 2: MLE of µ.
For fixed σ > 0: ℓ decreases as µ decreases, increases as µ increases, but is only defined
for µ < x(1) . Taking the limit as µ ↗ x(1) :
µ̂ = X(1) = min(X1 , . . . , Xn ).
(The likelihood is increasing in µ over its domain, so MLE is at the supremum of the
domain.)
Step 3: MLE of σ.
With µ̂ = x(1) : ℓ(x(1) , σ) = −n log σ − σ1 (xi − x(1) ).
P
Differentiating:
Pn
(xi − x(1) ) − X(1) )
P
∂ℓ n i=1 (Xi
=− + = 0 =⇒ σ̂ = = X̄ − X(1) .
∂σ σ σ2 n
MLEs: µ̂ = X(1) , σ̂ = X̄ − X(1) .
71
nT2 /n − nµ
−n
f =σ exp − 1(T1 > µ) · |{z}
1 .
σ
| {z } h(x)
g(T,µ,σ)
P
(X(1) , Xi ) (equivalently (X(1) , X̄)) is sufficient for (µ, σ).
X ∼ Binomial(n, p). Use prior p ∼ Uniform(0, 1). Find the Bayes estimator of p under
squared error loss. Show it lies between the MLE p̂ = X/n and the prior mean 1/2.
Solution
x+1 X +1
p̂Bayes = E[p|X] = = .
(x + 1) + (n − x + 1) n+2
Step 3: Show it lies between X/n and 1/2.
Write:
X +1 X n 1 2 n 2 1
= · + · = · p̂M LE + · .
n+2 n n+2 2 n+2 n+2 n+2 2
This is a convex combination (weights n/(n + 2) and 2/(n + 2) sum to 1) of p̂M LE = X/n
̸ n/2).
and the prior mean 1/2. So p̂Bayes lies strictly between p̂M LE and 1/2 (whenever X =
Intuition: The Bayes estimator shrinks the MLE toward the prior mean. As n → ∞, the
data overwhelms the prior and p̂Bayes → p̂M LE .
72 CHAPTER 13. POINT ESTIMATION: PROBLEMS WITH FULL SOLUTIONS
Chapter 14
Solution
c − µ0 σ
Pµ0 (X̄ > c) = α =⇒ P Z > √ = α =⇒ c = µ0 + zα √ .
σ/ n n
Note: for µ < µ0 , Pµ (X̄ > c) < α (power is increasing in µ for the normal with MLR), so
the size is indeed α.
UMP test: Reject H0 if
X̄ − µ0
Z= √ > zα .
σ/ n
iid
X1 , . . . , Xn ∼ Poisson(λ). Derive the GLRT for H0 : λ = λ0 vs. H1 : λ ̸= λ0 . What is the
asymptotic distribution of the test statistic?
73
74 CHAPTER 14. TESTING: PROBLEMS WITH FULL SOLUTIONS
Solution
Solution
P (X = x; λ = 4) e−4 4x /x!
Λ(x) = = −1 x = e−3 · 4x .
P (X = x; λ = 1) e 1 /x!
This is increasing in x. NP test: reject when x > c.
Step 2: Find c for size α = 0.05.
Under H0 : X ∼ Poisson(1). P (X ≥ c) ≤ 0.05. Compute cumulative probabilities:
P (X ≤ 3) = e−1 (1+1+1/2+1/6) = e−1 (8/3) ≈ 0.9810. P (X ≥ 4) = 1−0.9810 = 0.0190 <
0.05. P (X ≥ 3) = 1 − P (X ≤ 2) = 1 − e−1 (1 + 1 + 1/2) ≈ 1 − 0.9197 = 0.0803 > 0.05.
So we take c = 4: reject when X ≥ 4.
Actual size: P1 (X ≥ 4) = 0.0190 < 0.05. ✓
Step 3: Power.
Power = P4 (X ≥ 4) = 1 − P4 (X ≤ 3).
P4 (X ≤ 3) = e−4 (1 + 4 + 8 + 32/6) = e−4 (1 + 4 + 8 + 32/6).
k
More carefully: P4 (X ≤ 3) = e−4 3k=0 4k! = e−4 (1 + 4 + 8 + 32/3) ≈ 0.01832 × 18.33 ≈
P
0.2381.
Power = 1 − 0.2381 = 0.762.
Interpretation: The test detects the difference λ = 4 vs. λ = 1 with probability ≈ 76%
when based on a single observation.
Appendix A
Z
Z ∼ N (0, 1), V ∼ χ2 (k), Z ⊥ V =⇒ p ∼ t(k).
V /k
U/m
U ∼ χ2 (m), V ∼ χ2 (n), U ⊥ V =⇒ ∼ F (m, n).
V /n
iid (n − 1)S 2
X1 , . . . , Xn ∼ N (µ, σ 2 ) =⇒ ∼ χ2 (n − 1), X̄ ⊥ S 2 .
σ2
t(k)2 ∼ F (1, k).
75
76 APPENDIX A. KEY DISTRIBUTIONS AND REFERENCE FORMULAS
UMVUE Roadmap