Statistical Inference
Statistical Inference
1 Introduction to Inference
The fundamental process of statistics flows between the Population and the Sample. We
use the partial information derived from the sample to understand the total information of
the population.
Analysis
Statistics
Estimation
(Calculation)
Inference x̄, s2
11 + 2 + 139 152
x̄ = = ≈ 50.67
3 3
• Sample Range:
Max − Min = 139 − 2 = 137
2.1 Definitions
• Frequency: The count of occurrences of an event.
• Relative Frequency:
Frequency
≈ Probability (Ratio between 0 and 1)
Total Count
Consider the population of all 18-year-old boys in India in 2025. Let their height be repre-
sented by a variable X. We can characterize this population using a function g( x ), known
as the Probability Density Function (PDF).
Properties of g( x ):
1. g( x ) ≥ 0 (Non-negative).
R∞
2. −∞ g( x ) dx = 1 (Total probability is 1).
To find the proportion of boys with height between 4 and 4.25 units:
Z 4.25
P(4 ≤ X ≤ 4.25) = g( x ) dx
4
2
S TATISTICAL I NFERENCE L ECTURE N OTES
g( x ) Area = Probability
4 .25 (x)
Height
If we know only the function of the graph (the theoretical model), can we derive properties of the data?
Will these match the calculations from the observed data?
Answer
Yes, we can derive theoretical properties (Parameters like µ, σ2 ) from the function
g( x ). However, these will not be exactly the same as the values calculated from a
finite sample.
3
S TATISTICAL I NFERENCE L ECTURE N OTES
4 Sampling Distributions
Population Characteristics:
Xi ∼ g ( x )
5 Inference on Parameters
Estimators
To find these unknown parameters, we use Estimators derived from our sample data:
1. Estimator for Mean (µ): We use the Sample Mean (X̄):
1 n
n i∑
µ̂ = X̄ = Xi
=1
2. Estimator for Variance (σ2 ): We use the Sample Variance (S2 ). Note the division by
n − 1 to make it an unbiased estimator:
n
1
n − 1 i∑
σ̂2 = S2 = ( Xi − X̄ )2
=1
4
S TATISTICAL I NFERENCE L ECTURE N OTES
6 Parametric Inference
Scenario: A 25-acre land is split into 10,000 plots. A seed is planted in each. We want to
find the proportion of germination.
7.1 Methodology
Data Collection:
Plot # 1 2 ... 15
Variable X1 X2 ... X15
Outcome 0 1 ... 1
Xi ∼ Bernoulli(θ ); θ ∈ [0, 1]
P( Xi = 1) = θ, P ( Xi = 0 ) = 1 − θ
5
S TATISTICAL I NFERENCE L ECTURE N OTES
0.8
Probability
0.6
0.6
0.4
0.4
0.2
0
Fail (0) Success (1)
Outcome
7.3 Estimation
1 n
n i∑
Estimate of θ ≈ X̄n = Xi
=1
2. Realizations (x1 , . . . , xn ): These are obtained AFTER the experiment. These are
fixed numbers. We talk about their specific values.
9.1 Data
6
S TATISTICAL I NFERENCE L ECTURE N OTES
Model: N (µ, σ2 )
4 Mean
Theoretical Model
Observed xi
3
Density
0
1.6 µ̂ 1.85
Time (s)
Step 1: Estimate the Period (T̂) We estimate the true period µ using the sample mean x̄:
1.82 + 1.68 + 1.61 + 1.76 6.87
T̂ = x̄ = = = 1.7175 sec
4 4
Conclusion
Based on our sample of 4 measurements, our point estimate for gravity is 10.03 m/s2 .
The difference from the standard 9.81 m/s2 is likely due to measurement error (vari-
ance) or systematic bias in the pendulum length.
7
S TATISTICAL I NFERENCE L ECTURE N OTES
Model:
X1 , X2 , . . . , X n ∼ G ( θ )
where θ is a parameter (Unknown Constant).
Goal: Need to infer θ based on X = ( X1 , X2 , . . . , Xn ).
Example: Bernoulli Statistic Example
• θ: Population proportion of germinated seeds.
# 1s in X1 ...Xn 1
• Statistic Tn (X) = n = n ∑ Xi (Sample Proportion).
T:X →R
Examples:
• X has 2n components.
8
S TATISTICAL I NFERENCE L ECTURE N OTES
12 Sampling Distribution
T (X) T (X)
iid
Let Xi ∼ Uniform(0, θ ) for i = 1, 2. We visualize the sample space as a square of side θ:
x2
(θ, θ )
θ
x2 > x1
x2
=
x1
x1 > x2
x1
θ
9
S TATISTICAL I NFERENCE L ECTURE N OTES
iid
Example: Oscillation Time Xi ∼ N ( T0 , σ2 ).
σ2
T (X) = X̄n ∼ N T0 ,
n
Let T = ∑in=1 ai Xi . h i
MT (t) = E[etT ] = E et ∑ ai Xi
M T ( t ) = M X1 ( a 1 t ) · M X2 ( a 2 t ) . . . M X n ( a n t )
2 2 2 /2 2 2 2 /2
= e a1 µ1 t+a1 σ1 t . . . e an µn t+an σn t
t2 2 2
= et(∑ ai µi )+ 2 (∑ ai σi )
14 Order Statistics
iid
• Xi ∼ Bin(mi , θ ) =⇒ ∑ Xi ∼ Bin(∑ mi , θ )
10
S TATISTICAL I NFERENCE L ECTURE N OTES
ind
• Xi ∼ Poisson(λi ) =⇒ ∑ Xi ∼ Poisson(∑ λi )
ind
• Xi ∼ Gamma(αi , β) =⇒ ∑ Xi ∼ Gamma(∑ αi , β)
iid
Order Statistics Definitions: Let X1 , . . . , Xn ∼ G (θ ).
GT ( t ) = P( T (X) ≤ t) = P(max{ X1 . . . Xn } ≤ t)
= P( X1 ≤ t, X2 ≤ t, . . . , Xn ≤ t)
= P( X1 ≤ t) · P( X2 ≤ t) . . . P( Xn ≤ t) (by independence)
= [ FX (t)]n
iid t
Example: Uniform Max Let Xi ∼ U (0, θ ). The CDF is FX (t) = θ for 0 ≤ t ≤ θ.
n
t
GT ( t ) =
θ
PDF of T:
d tn ntn−1
d
g T ( t ) = GT ( t ) = = , 0≤t≤θ
dt dt θ n θn
Definition: Population
A Population is a collection of measures. It is non-random and represents the com-
plete set of data we are interested in.
• F (−∞) = 0
• F (+∞) = 1
• F is a non-decreasing function.
11
S TATISTICAL I NFERENCE L ECTURE N OTES
1 F(x)
Non-decreasing
0.5
x
−1 1 2 3 4 5
Example: Let the population P follow a Gamma distribution: P = Gamma(2, 5). The
relative frequency of P in the interval (4, 4.5) is given by the integral of the PDF:
Z 4.5
constant × x2−1 e−5x dx
4
While we don’t know the exact value, we calculate the probability of the value falling in a
range using the CDF:
P( Xi ∈ [ a, b]) = F (b) − F ( a)
1. Identically Distributed: They follow the same distribution (e.g., X ∼ N (0, 1)).
Often, the population function F is unknown. We use domain knowledge to guess the
shape. This "art of deriving a shape" is called Modeling.
12
S TATISTICAL I NFERENCE L ECTURE N OTES
X ∼ p · δ(·) + (1 − p) f (· | Gamma)
Definition: Inference
The task of parametric inference is to estimate the parameters (or functions of param-
eters) from the sample X1 , . . . , Xn .
A function of the sample X1 , . . . , Xn is called a Statistic (e.g., the sample mean θ̂).
Crucial Note: Since the samples are random, a statistic is also a random variable. The
distribution of this statistic is called the Sampling Distribution.
The distribution of a statistic Tn (X) is called its sampling distribution. Since the distribu-
tion of the data X depends on parameters θ, the sampling distribution of Tn also typically
depends on θ.
13
S TATISTICAL I NFERENCE L ECTURE N OTES
0.4 µ = 0, σ2 = 1
µ = 2, σ2 = 2.2
f (x)
0.2
0
−4 −2 0 2 4 6
x
Just as the PDF changes shape, the distribution of any statistic derived from X will
change.
This is a fundamental method involving first finding the Cumulative Distribution Function
(CDF) and then differentiating it to find the PDF.
Steps:
14
S TATISTICAL I NFERENCE L ECTURE N OTES
d 1
f T (t) = FT (t) = p , 0<t<1
dt π t (1 − t )
Observation: This is the PDF of the Beta 12 , 12 distribution (Arcsine distribution).
2
1
0
0 0.2 0.4 0.6 0.8 1
t
15
S TATISTICAL I NFERENCE L ECTURE N OTES
While the CDF technique is universal, it can be cumbersome. For continuous random
variables with smooth, one-to-one mappings, we use the Transformation Technique (also
known as the Change of Variable method).
16
S TATISTICAL I NFERENCE L ECTURE N OTES
y = h( x )
dy
x
dx
17
S TATISTICAL I NFERENCE L ECTURE N OTES
dx 1 1
f Y (y) = f X ( x ) · = ·p , −1 < y < 1
dy π 1 − y2
Conclusion: Z ∼ Beta(1/2, 1/2). This confirms the result we saw earlier with the
Cauchy distribution!
20 Expectation of Functions
Often we do not need the full distribution of Y = h( X ), but only its expected value E[Y ].
18
S TATISTICAL I NFERENCE L ECTURE N OTES
1
Z π/2
E[sin X ] = sin( x ) · dx
−π/2 π
Since sin( x ) is an odd function and the domain is symmetric around 0, the integral
is exactly 0.
We often have multiple statistics (estimators) that could serve as a guess for a parameter θ.
• Example: To estimate center θ, we could use Sample Mean X̄ or Sample Median X̃.
MSE( Tn ) = E[( Tn − θ )2 ]
It measures the average squared distance between the estimator and the truth.
True θ
Density
T1
T2
Value
When sampling from Normal populations, three derived distributions appear repeatedly.
These form the backbone of hypothesis testing and interval estimation.
19
S TATISTICAL I NFERENCE L ECTURE N OTES
Properties:
n 1
• Relation to Gamma: χ2(n) ≡ Gamma 2, 2 .
• PDF: f ( x ) = 1
2n/2 Γ(n/2)
x n/2−1 e− x/2 , x > 0.
• Moments:
E [Y ] = n and Var(Y ) = 2n
U/n
F= ∼ Fn,m
V/m
follows an F-distribution with degrees of freedom (n, m).
1
Property: If Z ∼ Fn,m , then Z ∼ Fm,n .
Z
T= √ ∼ t(n)
U/n
Key Relationships:
20
S TATISTICAL I NFERENCE L ECTURE N OTES
• T 2 ∼ F1,n .
0.4 N (0, 1)
t (2) (Fatter Tails)
Density
0.2
0
−4 −3 −2 −1 0 1 2 3 4
x
iid
Let X1 , . . . , Xn ∼ N (µ, σ2 ). We wish to estimate the population variance g(θ ) = σ2 .
∑( Xi − X̄n )2
∼ χ2(n−1)
σ2
Let Y ∼ χ2(n−1) . Then ∑( Xi − X̄n )2 = σ2 Y.
Using E[Y ] = n − 1:
21
S TATISTICAL I NFERENCE L ECTURE N OTES
h i
σ2 Y σ2 n −1 2
• E[Sn2 ] = E n = n E [Y ] = n σ .
h i
σ2 Y σ2
• E[Sn∗2 ] = E n −1 = n − 1 E [Y ] = σ2 .
1. MSE of Unbiased Estimator (Sn∗2 ): Since bias is 0, MSE is just variance. Using Var(Y ) =
2( n − 1):
2
∗2 σ Y σ4 σ4 2σ4
MSE(Sn ) = Var = Var ( Y ) = · 2 ( n − 1 ) =
n−1 ( n − 1)2 ( n − 1)2 n−1
n −1 2 2
2. MSE of Biased Estimator (Sn2 ): Here, Bias = E[Sn2 ] − σ2 = n σ − σ2 = − σn .
The Verdict
2n−1 2
We compare n2
vs n −1 .
2n − 1 2
2
< ⇐⇒ (2n − 1)(n − 1) < 2n2
n n−1
22
S TATISTICAL I NFERENCE L ECTURE N OTES
Conclusion: The Biased Estimator (Sn2 ) has a smaller MSE than the Unbiased Estimator.
In the context of MSE, minimizing variance is often more valuable than eliminating bias
perfectly.
When dealing with parameters θ, we often wish to estimate a specific function of the pa-
rameter, denoted as g(θ ).
True g(θ )
PDF of Tn
Distribution of Tn
Tn
iid
Let X1 , . . . , Xn ∼ Bernoulli(θ ). We use Tn = ∑in=1 Xi ∼ Binomial(n, θ ).
We define the Error as Ψ T (θ ) = Tn − θ, and the Squared Error as Ψ2T (θ ) = ( Tn − θ )2 . The
distributions can be tabulated as follows:
23
S TATISTICAL I NFERENCE L ECTURE N OTES
Value of Tn 0 1 ... n
The Selection Problem: An estimator with a smaller MSE is preferred. The one with the
smallest MSE in a given class is the "best" estimator. However, the class of all estimators
is infinitely large, making it impossible to find a global minimum for all θ. Therefore, we
restrict our focus to a smaller, sensible sub-class: Unbiased Estimators.
Class of
Unbiased
Estimators
24
S TATISTICAL I NFERENCE L ECTURE N OTES
1. T1n = X̄n = 1
n ∑in=1 Xi .
1 1
E[ T1n ] =
n ∑ E[ Xi ] = (nθ ) = θ
n
=⇒ T1n is unbiased.
2. T2n = 2
n ∑in=2 ( Xi − Xi−1 ).
2 n 2 n
n i∑ ∑ (θ − θ ) = 0
E[ T2n ] = ( E [ X i ] − E [ X i −1 ]) =
=2
n i =2
=⇒ T2n is NOT unbiased (it only equals θ if θ = 0, not for all θ).
25
S TATISTICAL I NFERENCE L ECTURE N OTES
1. T1n = X̄n = 1
n ∑in=1 Xi (Uses all data)
X2 + X4 +···+ X2m
2. T2n = m (Uses only even-indexed data)
Both have Bias = 0. Let’s compare their variances (noting Xi are independent, so
covariance terms are 0):
∑ Xi nθ (1 − θ ) `(1 − `)
1
Varθ ( T1n ) = Var = 2 ∑ Var( Xi ) = 2
=
n n n n
∑even Xi mθ (1 − θ ) θ (1 − θ )
1
Varθ ( T2n ) = Var = 2 ∑ Var( Xi ) = 2
=
m m even m m
1
Since n = 2m, m = n2 , so:
2`(1 − `)
Varθ ( T2n ) =
n
Conclusion: Var( T1n ) < Var( T2n ). Using all the data (T1n ) provides a lower vari-
ance, making it a better estimator than T2n .
Comparing two estimators is straightforward, but proving one is better than all possible
unbiased estimators requires advanced theory.
26
S TATISTICAL I NFERENCE L ECTURE N OTES
iid
Example: Let Xi ∼ Bernoulli(θ ). We know that the sum Y = ∑in=1 Xi is a Complete Suffi-
cient Statistic (CSS) for θ.
What is the UMVUE for θ? We know E[Y ] = nθ. If we define h(Y ) = Yn = X̄n , then
E[h(Y )] = θ.
Because X̄n is an unbiased function of the CSS, X̄n is the UMVUE for θ.
Previously, we found that the UMVUE is the unbiased estimator with the smallest possible
variance. However, checking the variance against an infinite number of other estimators is
impractical. We need a constructive method to find it.
27
S TATISTICAL I NFERENCE L ECTURE N OTES
Eθ [h( T ∗ )] = g(θ )
Proving Completeness and Sufficiency from scratch is mathematically rigorous. The Expo-
nential Family provides a structural template. If a distribution fits this template, we can
identify the CSS instantly.
where:
28
S TATISTICAL I NFERENCE L ECTURE N OTES
2. Open Set Condition: The parameter space Θ ⊆ Rk must contain an open set
(e.g., an open 2D region, not just a line). This ensures the analytical properties
needed for completeness.
β
Contains Open Set
α=β
• Cauchy(θ, 1): f ( x ) ∝ 1+(x1−θ )2 . Cannot be factored into the required exponential form.
(Note: No CSS exists other than the full order statistics).
CSS: ∑in=1 Xi .
29
S TATISTICAL I NFERENCE L ECTURE N OTES
CSS: ∑ Xi .
UMVUE for λ: Since E[ X̄n ] = λ, X̄n is the UMVUE.
4. Gamma Distribution (Xi ∼ Gamma(α, β)): Support x > 0 is independent of θ = (α, β).
iid
Let X1 , . . . , Xn ∼ N (µ, σ2 ), with parameters µ ∈ R, σ2 > 0. Taking the logarithm of the joint
PDF and moving it to the exponent:
( )
n
n 1
f X (x) = exp − log(2πσ2 ) − 2 ∑ ( xi2 − 2µxi + µ2 )
2 2σ i=1
2
n
nµ µ 1
= exp − log(2πσ ) − 2 + 2 ∑ xi + − 2 ∑ xi
2 2
| 2
{z 2σ } | σ 2σ | {z }
{z } | {z } | {z
T } T
A(θ) C 1 2
1 C2
30
S TATISTICAL I NFERENCE L ECTURE N OTES
31
S TATISTICAL I NFERENCE L ECTURE N OTES
• Mean Squared Error (MSE): E[( Tn − g(θ))2 ] = Bias2 + Var( Tn ). For unbiased estima-
tors, MSE = Var( Tn ).
32
S TATISTICAL I NFERENCE L ECTURE N OTES
33
S TATISTICAL I NFERENCE L ECTURE N OTES
Substitute α
β = m1′ :
m1′ m1′
m2′ − (m1′ )2 = =⇒ β̂ MoM = ′
β m2 − (m1′ )2
(m1′ )2
α̂MoM = m1′ β̂ MoM =
m2′ − (m1′ )2
2. Estimate for σ2 :
1
n∑ i
m2′ = σ2 + µ2 =⇒ X 2 = σ2 + ( X̄n )2
1 1 n
n∑ i n i∑
2 2 2
σ̂MoM = X − X̄ n = ( Xi − X̄n )2 = s2n
=1
Conclusion: The MoM estimator yields the sample mean and the biased sample vari-
ance. (Valid/Logical Estimator)
34
S TATISTICAL I NFERENCE L ECTURE N OTES
Value
θ̂× Logical
MoM = 2X̄Impossibility!
n
MoM Estimate Domain 2X̄n < X(n) is possible.
If MoM is prone to logical errors, how do we find a better estimate? We ask a different
question: Which parameter value makes our observed data the most mathematically probable?
35
S TATISTICAL I NFERENCE L ECTURE N OTES
1. If θ = 1:
1 −14.2/1
f 1 (x) = 4
e ≈ 6.8 × 10−7 (Rank 3: Least Likely)
1
2. If θ = 3:
1 −14.2/3 1
f 3 (x) = 4
e = e−4.733 ≈ 0.000108 (Rank 1: Most Likely)
3 81
3. If θ = 6:
1 −14.2/6 1 −2.366
f 6 (x) = 4
e = e ≈ 0.000072 (Rank 2)
6 1296
Conclusion: The parameter θ = 3 yields the highest probability density for the
specific sample we observed. Therefore, the Maximum Likelihood Estimate (MLE)
among the choices provided is 3.
In our previous intuitive example, we saw that MLE asks a fundamental question: "Out of
all possible parameter values, which one makes the data we actually observed the most probable?"
Let’s formalize this powerful concept.
36
S TATISTICAL I NFERENCE L ECTURE N OTES
Products (∏) are notoriously difficult to differentiate when applying calculus. To find the
maximum of L(θ; x), we rely on a brilliant mathematical convenience: the natural logarithm.
[1] It is a true statistic: As θ̂ML is the argmax of the likelihood, it depends purely on the
observed sample x and not on any unknown parameters.
[2] Validity: Because the search is restricted to θ ∈ Θ, the resulting estimator is guar-
anteed to lie within the valid parameter space (unlike MoM, which sometimes falls
outside it).
37
S TATISTICAL I NFERENCE L ECTURE N OTES
L(θ; x)
θ
θ̂ ML
Argmax
Log-Likelihood (Sum)
is preserved
ℓ(θ; x) = log L θ
θ̂ ML
If the likelihood function is differentiable and the maximum does not lie on the boundary of
the parameter space, we can find the MLE by finding the roots of the First Order Condition
(F.O.C.) and verifying concavity using the Second Order Condition.
38
S TATISTICAL I NFERENCE L ECTURE N OTES
2. First Order Condition (F.O.C.): Take the derivative with respect to θ and set it to
0.
∂ℓ n
= − + θ −2 ∑ x i = 0
∂θ θ
n ∑x
= 2i
θ θ
∑ xi
nθ = ∑ xi =⇒ θ̂ ML =
n
= x̄n
3. Verify the Maximum (Second Derivative): We must ensure this critical point is a
peak, not a valley.
∂2 ℓ n
2
= 2 − 2θ −3 ∑ xi
∂θ θ
Evaluate at θ̂ = x̄:
∂2 ℓ n 2n x̄ n 2n n
= − 3 = 2− 2 =− 2
∂θ 2 x̄ 2 x̄ x̄ x̄ x̄
θ = x̄
Since n > 0 and x̄2 > 0, the second derivative is strictly negative (< 0). Therefore,
θ̂ ML = x̄n is indeed the global maximum!
39
S TATISTICAL I NFERENCE L ECTURE N OTES
n n 1 n
ℓ(µ, σ2 ; x) = − log(2π ) − log(σ2 ) − 2 ∑ ( xi − µ)2
2 2 2σ i=1
2. First Order Conditions (Set Partial Derivatives to 0): For µ:
∂ℓ 1 1
= − 2 × 2 ∑( xi − µ)(−1) = 2 ∑ ( xi − µ ) = 0 =⇒ ∑ xi = nµ =⇒ ˆ¯ = x̄
∂µ 2σ σ
1
−nσ2 + ∑( xi − µ)2 = 0 =⇒ œ̂2 =
n∑
(xi − ˆ¯)2
Note: As seen previously with MoM, the MLE for variance is the biased sample
variance s2n .
To confirm (µ̂, σ̂2 ) is a maximum, we calculate the Hessian matrix H, which holds all second-
order partial derivatives:
∂2 ℓ ∂2 ℓ
H(µ, σ2 ) = 22
∂µ ∂µ∂σ2
∂ ℓ ∂2 ℓ
∂σ2 ∂µ ∂ ( σ 2 )2
40
S TATISTICAL I NFERENCE L ECTURE N OTES
Now, we evaluate the Hessian exactly at our critical point (µ̂, σ̂2 ). Since ∑( xi − µ̂) = 0, the
cross-diagonal terms vanish. Furthermore, substituting ∑( xi − µ̂)2 = nσ̂2 into the bottom
2
right term gives 2nσ̂4 − nσ̂σ̂6 = − 2nσ̂4 .
− σ̂n2
2 0
H(µ̂, σ̂ ) =
0 − 2nσ̂4
1. a < 0
The calculus-based approach only works when the maximum lies in the interior of the pa-
rameter space Θ. But what if the support of the distribution depends entirely on the param-
eter itself?
41
S TATISTICAL I NFERENCE L ECTURE N OTES
θ (Parameter space)
x1 x2 x n −1
X( n )
Generalizing the Uniform Bounds
iid
Consider X1 , . . . , Xn ∼ U (α, β) where α < β. We must simultaneously estimate both
bounds. The likelihood is ( β−1α)n provided that all data falls within the bounds.
Constraints: 1. All xi ≥ α =⇒ α ≤ X(1) (The minimum) 2. All xi ≤ β =⇒ β ≥ X(n)
(The maximum)
To maximize ( β−1α)n , we must make the interval ( β − α) as small as possible.
ˆ ML = X(1) .
• We make α as large as possible: ff
42
S TATISTICAL I NFERENCE L ECTURE N OTES
In our previous discussion, we looked at U (0, θ ). Let us elevate this and look at the general
Uniform distribution where both boundaries are unknown.
The Joint Likelihood Function demands that every single observation falls within the
interval [α, β]. If even one observation falls outside, the entire product becomes
zero. We can express this using the order statistics X(1) (the minimum) and X(n) (the
maximum):
(
1
n if α ≤ X(1) ≤ X(n) ≤ β
L(α, β; x) = ( β−α)
0 otherwise
To truly understand how to maximize this, let’s map out the likelihood space based on the
constraints.
β condition
β < X(n) β ≥ X(n)
α condition
1
α ≤ X (1) 0 ( β−α)n
α > X (1) 0 0
1
The Optimization Logic: To maximize ( β−α)n
, we must make the denominator ( β − α) as
small as legally possible.
43
S TATISTICAL I NFERENCE L ECTURE N OTES
L(α, β; x) α̂ ML L(α, β; x) β̂ ML
α→ β→
Valid α X (1) X( n ) X (1) X( n ) Valid β
Now, let’s examine a distribution where the calculus works, but requires careful handling
of absolute values. This is a classic example that proves why the median is statistically
significant.
iid
Let X1 , . . . , Xn ∼ Double Exponential(µ, β). The parameter vector is θ = (µβ), where µ ∈ R
and β > 0.
| x − µ|
1
f θ(x) = exp −
2β β
2. Maximize with respect to β: Taking the partial derivative with respect to β and setting it
to 0 (First Order Condition):
n
∂ℓ n 1
∂β
=− + 2
β β ∑ | xi − µ | = 0
i =1
1 n
n i∑
=⇒ β̂ ML = | xi − µ | [Solution to F.O.C.]
=1
∂2 ℓ n 2
∂β 2
= 2− 3
β β ∑ | xi − µ |
Plugging in β̂ = 1
n ∑ | xi − µ|, we get n
β̂2
− 2n
β̂3
β̂
= − β̂n2 < 0. This confirms it is a maximum.
44
S TATISTICAL I NFERENCE L ECTURE N OTES
This equation implies we need an equal number of positive and negative signs. In
other words, an equal number of data points must lie to the left of µ as to the right of
µ. This is the exact definition of the Median!
µ̂ ML = Median
| x (5) − µ |
| x (1) − µ |
Suppose we have prior knowledge that the dispersion parameter is bounded, e.g., fi ≥ 1.
How does this modify our result?
If our calculated β̂ unconstrained = n1 ∑ | xi − µ̂| happens to be less than 1, we cannot use it.
Because the likelihood function is concave (shaped like a downward parabola), if the un-
constrained peak is outside our valid region, the maximum within the valid region occurs
exactly at the boundary.
( )
1 n
n i∑
β̂ ML = max 1, | xi − µ̂ ML |
=1
As powerful as MLE is, it is not flawless. We must recognize its limitations mathematically:
45
S TATISTICAL I NFERENCE L ECTURE N OTES
One of the greatest algebraic advantages of Maximum Likelihood Estimation is its invari-
ance to transformations. This makes calculating estimates for complex functions of param-
eters incredibly easy.
ψ̂ ML = g(θ̂ML )
46
S TATISTICAL I NFERENCE L ECTURE N OTES
∂ℓ ∑ xi
= −n + = 0 =⇒ θ̂ ML = X̄n
∂θ θ
∂ ℓ 2 ∑ xi
*(Checking S.O.C: ∂θ 2 = − θ 2 < 0, so it is a maximum).*
Step 2: Estimate a Function Suppose we want to estimate the probability that ex-
actly 1 event occurs:
e−θ θ 1
ψ = Pθ ( X = 1) = = θe−θ
1!
By the Invariance Property, the MLE for this probability is trivially:
Professor’s Note: While easy to calculate, X̄n e−X̄n is not an unbiased estimator for
ψ! If we wanted an unbiased estimator, we could define an indicator function T =
I ({ X1 = 1}). Since E[ T ] = 1 · P( X1 = 1) + 0 = ψ, T is unbiased.
As we move toward understanding the asymptotic (large sample) behaviors of these esti-
mators, we must build a bridge using mathematical inequalities. These inequalities allow
us to bound probabilities even when we do not know the exact distribution!
This inequality gives an upper bound on the probability that a non-negative random vari-
able is exceptionally large.
E( X )
P( X ≥ t) ≤
t
Proof (for Continuous Case): Since X is non-negative, its PDF f ( x ) = 0 for x < 0. By
47
S TATISTICAL I NFERENCE L ECTURE N OTES
definition of Expectation:
Z ∞
E( X ) = x f ( x ) dx
0
Z t Z ∞
= x f ( x ) dx + x f ( x ) dx
0 t
Rt
Since X is non-negative, the first integral 0 x f ( x ) dx ≥ 0. Therefore, dropping it makes the
right side smaller:
Z ∞
E( X ) ≥ x f ( x ) dx
t
Inside this integral, the smallest value x can take is t. If we replace x with the constant t, we
make the integral smaller still:
Z ∞
E( X ) ≥ t f ( x ) dx
t
Z ∞
E( X ) ≥ t f ( x ) dx
t
E(X)
E( X ) ≥ t · P( X ≥ t) =⇒ P(X ≥ t) ≤ ■
t
While Markov relies only on the mean, Chebyshev uses the variance to provide a much
tighter bound regarding how far data strays from the center.
σ2
P(| X − µ| > t) ≤
t2
E[| X −µ|r ]
Extension: This can be extended to higher moments. P(| X − µ| > t) ≤ tr for r =
1, 2, 3 . . . provided the r th moment exists.
48
S TATISTICAL I NFERENCE L ECTURE N OTES
Inequalities are immensely practical. We can use them to guarantee estimation precision
without knowing the underlying distribution.
Example: Ensuring Precision via Sample Size
iid
Let X1 , . . . , Xn ∼ Fθ. Assume E( Xi ) = µ and Var( Xi ) = 1. We are using the sample
mean X̄n to estimate µ.
Question: What is the minimum sample size (n) that ensures our estimate is within
1 unit of the true mean with at least 95% probability? Mathematically: Find n such
that P(| X̄n − µ| ≤ 1) ≥ 0.95.
h i
∑ Xi nµ
• E[ X̄n ] = E n = n =µ
h i
∑ Xi 1 n ·1 1
• Var( X̄n ) = Var n = n2 ∑ Var( Xi ) = n2
= n
Var( X̄n ) 1
P(| X̄n − µ| > 1) ≤ 2
=
1 n
We want the probability of being close (≤ 1) to be ≥ 0.95. This means the probability of being
far (> 1) must be ≤ 0.05. Since Chebyshev guarantees the "far" probability is bounded by n1 ,
we simply set:
1
= 1 − 0.95 = 0.05
n
1
n= = 20
0.05
To be safe, we always take the upper integer bound. Thus, a sample size of n = 20 mathe-
matically guarantees our desired precision, regardless of the shape of the population distribution.
49