Unit4 Sampling Estimation
Unit4 Sampling Estimation
[Link]@[Link]
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [1 / 50]
Unit 4: Overview
Descriptive Statistics
Estimation Methods
Confidence Intervals
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [2 / 50]
Section 1
The Central Limit Theorem
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [3 / 50]
Sampling and Sampling Distributions
Random Sample
A random sample of size n from a population with distribution
F is a collection of n independent and identically distributed
(i.i.d.) random variables X1 , X2 , . . . , Xn , each with distribution
F.
Key Concepts:
• Population: The entire collection of interest
• Sample: A subset drawn from the population
• Statistic: A function of the sample, e.g., X̄ = n1 ni=1 Xi
P
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [5 / 50]
Law of Large Numbers
Weak Law of Large Numbers (WLLN)
If X1 , X2 , . . . are i.i.d. with mean µ, then for any ϵ > 0:
lim P |X̄n − µ| > ϵ = 0
n→∞
X̄n − µ d
Zn = √ → − N (0, 1)
σ/ n
Equivalently:
σ2
approx
X̄n ∼ N µ, for large n
n
f (z)
n = 30
n=5
n=1
z
µ
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [8 / 50]
Importance and Implications of the CLT
Why is the CLT so important?
1 Universality: Applies to sums/averages from any
distribution (with finite variance)
2 Approximation: Justifies using normal distribution for
sample means
3 Inference: Foundation for confidence intervals and
hypothesis tests
4 Practical rule: n ≥ 30 is often sufficient for a good
approximation
Applications:
• Quality control and manufacturing
• Polling and survey sampling
• Financial risk modeling
• Error analysis in experiments
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [9 / 50]
CLT: Worked Example
Problem: A factory produces bolts with mean length µ = 5
cm, σ = 0.2 cm. A sample of n = 64 bolts is taken. Find
P(X̄ > 5.05).
approx
Solution: By CLT, X̄ ∼ N (5, 0.22 /64)
X̄ − 5 X̄ − 5
√ =
Z=
0.2/ 64 0.025
5.05 − 5
P(X̄ > 5.05) = P Z > = P(Z > 2)
0.025
1020 − 1000
P(S100 > 1020) = P Z > = P(Z > 2) ≈ 0.0228
10
Normal Approximation to Binomial:
If X ∼ Bin(n, p), then for large n:
X − np approx
p ∼ N (0, 1)
np(1 − p)
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [11 / 50]
Important Sampling Distributions
Chi-Squared Distribution:
If Z1 , . . . , Zk are i.i.d. N (0, 1), then:
k
X
χ2k = Zi2 ∼ χ2 (k), E [χ2k ] = k, Var(χ2k ) = 2k
i=1
Student’s t-Distribution:
If Z ∼ N (0, 1) and V ∼ χ2 (k) are independent:
Z
T =p ∼ t(k)
V /k
F -Distribution:
If U ∼ χ2 (m) and V ∼ χ2 (n) are independent:
U/m
F = ∼ F (m, n)
V /n
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [12 / 50]
Sampling from a Normal Population
i.i.d.
Theorem: Let X1 , . . . , Xn ∼ N (µ, σ 2 ). Define:
n n
1X 1 X
X̄ = Xi , S2 = (Xi − X̄ )2
n i=1 n − 1 i=1
Then:
σ2
1 X̄ ∼ N µ,
n
(n−1)S 2
2
σ2
∼ χ2 (n − 1)
3 X̄ and S 2 are independent
X̄ −µ
4 √
S/ n
∼ t(n − 1) (when σ is unknown)
Key Point: Result (4) is the basis for t-intervals and t-tests.
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [13 / 50]
Section 2
Descriptive Statistics
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [14 / 50]
What are Descriptive Statistics?
Definition
Descriptive statistics are methods for summarizing and
presenting data in a meaningful way using numerical measures
and graphical displays.
Purpose:
• Understand the shape and spread of data
• Identify patterns, outliers, and anomalies
• Communicate key features of the dataset concisely
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [15 / 50]
Graphical Representation: Histogram
Histogram: Divides data range into bins and counts
frequencies.
Frequency
Key Features:
• Shows the shape of the distribution (symmetric, skewed,
bimodal)
• Bin width choice affects appearance — too few or too many
bins can obscure patterns
• Area of bars ∝ frequency (or relative frequency)
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [16 / 50]
Graphical Representation: Box Plot
IQR
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [17 / 50]
Other Graphical Methods
Stem-and-Leaf Plot:
• Retains original data values while showing distribution
shape
• Each data point split into a “stem” (leading digits) and
“leaf” (trailing digit)
Scatter Plot:
• Displays relationship between two variables
• Reveals correlation, clusters, and outliers
Pie Chart and Bar Chart:
• Pie chart: Proportions of categorical data
• Bar chart: Frequencies or values across categories
Ogive (Cumulative Frequency Curve):
• Plots cumulative frequencies; useful for finding percentiles
and median
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [18 / 50]
Measures of Location: Mean
Sample Mean:
n
1X
x̄ = xi
n i=1
Properties:
• Sum of deviations from the mean is zero: (xi − x̄) = 0
P
Example: Data: 2, 4, 4, 4, 5, 5, 7, 9
2+4+4+4+5+5+7+9 40
x̄ = = =5
8 8
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [19 / 50]
Measures of Location: Median and Mode
Example: Data: 2, 4, 4, 4, 5, 5, 7, 9
• Median = 4+5
2
= 4.5
• Mode = 4 (appears 3 times)
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [20 / 50]
Percentiles and Quartiles
p-th Percentile (Pp ): Value below which p% of data falls.
Important Percentiles:
• Q1 = P25 : First quartile (25th percentile)
• Q2 = P50 : Median (50th percentile)
• Q3 = P75 : Third quartile (75th percentile)
IQR = Q3 − Q1
Interpretation:
• Contains the middle 50% of the data
• Robust measure of spread
• Used for outlier detection in box plots
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [21 / 50]
Measures of Variability: Variance and Standard
Deviation
Sample Variance:
n
2 1 X
s = (xi − x̄)2
n − 1 i=1
Sample Standard Deviation:
√
s= s2
Why divide by n − 1?
• Bessel’s correction: Makes s 2 an unbiased estimator of σ 2
• E [S 2 ] = σ 2 (with n − 1 in denominator)
• Dividing by n would systematically underestimate σ 2
Example: Data: 2, 4, 4, 4, 5, 5, 7, 9 (x̄ = 5)
(2 − 5)2 + 3(4 − 5)2 + 2(5 − 5)2 + (7 − 5)2 + (9 − 5)2 32
s2 = = ≈ 4.5
7 4: Sampling Distributions, Descriptive Statistics, and 7Estimation
Dr. Yeshwant Singh ([Link]@[Link]) Unit
Department of CSE, DTU 19, Feb, 2026 [22 / 50]
Other Measures of Variability
Range:
R = xmax − xmin
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [25 / 50]
Point Estimation: Introduction
Problem
Given a random sample X1 , . . . , Xn from a distribution with
unknown parameter θ, find a good estimate θ̂ of θ.
Terminology:
• Parameter: Unknown quantity of interest (θ)
• Estimator: A function of the data, θ̂ = g (X1 , . . . , Xn )
(random variable)
• Estimate: The realized value of the estimator for
observed data
Examples:
• Estimating population mean µ using µ̂ = X̄
• Estimating population variance σ 2 using σ̂ 2 = S 2
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [26 / 50]
Properties of Estimators: Unbiasedness
Unbiasedness
An estimator θ̂ is unbiased for θ if:
mk = µ′k (θ1 , . . . , θp ), k = 1, 2, . . . , p
m1 = µ′1 =⇒ X̄ = µ =⇒ µ̂ = X̄
1X 2
m2 = µ′2 =⇒ Xi = σ 2 + µ2
n
1X 2 1X
σ̂ 2 = Xi − X̄ 2 = (Xi − X̄ )2
n n
Example 2: Exponential(λ)
One parameter ⇒ first moment:
1 1
m1 = µ′1 =⇒ X̄ = =⇒ λ̂MoM =
λ X̄
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [31 / 50]
Maximum Likelihood Estimation (MLE): Concept
Principle
Choose the parameter value that makes the observed data
most probable.
Likelihood Function:
n
Y
L(θ) = L(θ | x1 , . . . , xn ) = f (xi ; θ)
i=1
Log-Likelihood: (easier to work with)
n
X
ℓ(θ) = ln L(θ) = ln f (xi ; θ)
i=1
MLE:
θ̂MLE = arg max ℓ(θ)
θ
dℓ
Typically found by solving dθ
= 0 (score equation).
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [32 / 50]
MLE: Step-by-Step Procedure
2
Note: σ̂MLE divides by n (biased!), but is consistent and
asymptotically efficient.
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [34 / 50]
MLE: Example — Exponential Distribution
i.i.d.
Data: X1 , . . . , Xn ∼ Exp(λ), f (x; λ) = λe −λx , x ≥ 0
Log-Likelihood:
n
X n
X
ℓ(λ) = ln(λe −λxi ) = n ln λ − λ xi
i=1 i=1
Differentiate and solve:
n
dℓ n X
= − xi = 0
dλ λ i=1
n 1
λ̂MLE = Pn =
i=1 xi X̄
d 2ℓ
Verify: dλ2
= − λn2 < 0 ✓ (maximum confirmed)
Observation: MoM and MLE give the same estimator here!
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [35 / 50]
Properties of Maximum Likelihood Estimators
Key Properties:
P
1 Consistency: θ̂MLE −→ θ as n → ∞
2 Asymptotic normality:
√
d 1
n(θ̂MLE − θ) →
− N 0,
I (θ)
where I (θ) is the Fisher information
3 Asymptotic efficiency: Achieves the Cramér–Rao lower
bound
4 Invariance: If θ̂ is the MLE of θ, then g (θ̂) is the MLE of
g (θ)
Fisher Information:
" #
2 2
∂ ℓ ∂ℓ
I (θ) = −E = E
∂θ2 ∂θ
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [36 / 50]
Method of Moments vs. Maximum Likelihood
Estimators
MoM MLE
Simple to compute May require optimization
Always yields solution May not have closed form
Generally consistent Consistent
May be inefficient Asymptotically efficient
No invariance property Invariance property
Not necessarily unique Unique under regularity conditions
In practice:
• MLE is generally preferred for its superior theoretical
properties
• MoM is useful as a starting point or when MLE is
computationally difficult
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [37 / 50]
Section 4
Confidence Intervals
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [38 / 50]
Confidence Intervals: Introduction
Idea
A confidence interval (CI) provides a range of plausible values
for a parameter, rather than a single point estimate.
P(L ≤ θ ≤ U) = 1 − α
Interpretation:
• If we repeat the experiment many times and compute a
CI each time, then 100(1 − α)% of those intervals will
contain the true θ
• Common choices: α = 0.05 (95% CI), α = 0.01 (99% CI)
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [39 / 50]
CI for a Mean: σ Known
Setup: X1 , . . . , Xn i.i.d. with mean µ (unknown), variance σ 2
(known).
X̄ −µ
√ ∼ N (0, 1) (exactly, if population is normal;
By CLT: Z = σ/ n
approximately, for large n).
100(1 − α)% Confidence Interval:
σ
X̄ ± zα/2 · √
n
Notes:
• The χ2 distribution is not symmetric, so the CI is not
symmetric around S 2
• Requires normality assumption (more sensitive than mean CI)
• CI for σ: take square roots of the endpoints
Dr. Yeshwant Singh ([Link]@[Link]) Unit 4: Sampling Distributions, Descriptive Statistics, and Estimation
Department of CSE, DTU 19, Feb, 2026 [43 / 50]
Two-Sample CI: Difference of Means
Setup: Independent samples from two populations:
• Sample 1: n1 observations, X̄1 , S12
• Sample 2: n2 observations, X̄2 , S22