Exercises — Central limit theorem
1.3.15 · D4· AI-ML › Probability & Statistics › Central limit theorem
Do symbols baar baar aate hain, toh kisi bhi problem se pehle inhe simple words mein samajh lete hain.

L1 — Recognition
Goal: kya tum spot kar sakte ho jab CLT apply hoti hai aur uske parameters read kar sakte ho?
Exercise 1.1. Ek random variable ka , hai. Tum i.i.d. draws ka mean lete ho. ki approximate distribution aur uska standard error likho.
Recall Solution 1.1
CLT kehta hai .
- Mean same rehta hai .
- Variance shrink hota hai: .
- Toh .
- Standard error .
Kaisa dikhta hai: individual ki bell ka spread hai; average ki bell zyada narrow hai, spread , same point par centred.
Exercise 1.2. In settings mein se classical CLT directly kiske liye normal limit guarantee nahi karta? (a) 100 i.i.d. uniform draws ka mean, (b) Cauchy distribution (infinite variance) se 100 i.i.d. draws ka mean, (c) 100 i.i.d. Bernoulli draws ka mean.
Recall Solution 1.2
CLT ko finite variance chahiye.
- (a) Uniform: finite variance ✓ CLT apply hota hai.
- (b) Cauchy: infinite variance ✗ — CLT apply nahi hota. (Iske sample means Cauchy hi rehte hain, kabhi bell-shaped nahi bante.)
- (c) Bernoulli: variance , finite ✓ CLT apply hota hai.
Answer: (b).
L2 — Application
Goal: numbers ko standardize-then- mein plug karo.
Exercise 2.1. ka , hai. ke liye, nikalo.
Recall Solution 2.1
. Bound ko standardize karo: "Bell ka kitna hissa ke left mein hai?" Woh hai:
Exercise 2.2. Ek fair die (, , ) ko baar roll kiya jaata hai. nikalo.
Recall Solution 2.2
. Hum ke right ka area chahte hain, jo hai:
Picture: centre se SE upar baitha hai — bilkul 95th-percentile line par, toh sirf approximately 5% averages isse aage jaate hain.
L3 — Analysis
Goal: yeh reason karo ki jab parameters move hote hain toh answer kaise change hota hai.
Exercise 3.1. Ek sensor ki readings ka hai. Tum currently readings average kar rahe ho, jo kuch standard error deta hai. Standard error ko halve karne ke liye tumhe kitni readings average karni hongi?
Recall Solution 3.1
. ko halve karne ke liye ko double karna hoga, isliye ko quadruple karna hoga. Check: purana ; naya . Exactly halved.
kyun aur kyun nahi? Precision samples ke square root ke saath improve hoti hai — sampling ke peeche yeh classic law of diminishing returns hai. Law of Large Numbers dekho.
Exercise 3.2. Same ke do estimators: estimator A, samples average karta hai per-sample ke saath; estimator B, samples average karta hai ke saath. Kaun zyada precise hai (chhota SE), aur kis ratio mein?
Recall Solution 3.2
Dono equally precise hain — ratio .
Insight: B ke paas zyada samples hain lekin noisier data hai; dono effects exactly cancel ho jaate hain. Precision combination par depend karti hai, kisi ek quantity par nahi.
L4 — Synthesis
Goal: CLT ko sample-size aur confidence-interval logic ke saath ek problem mein combine karo.
Exercise 4.1. Tum ek mini-batch gradient estimate kar rahe ho. Per-sample gradient variance (toh ). Tum chahte ho ki estimate true gradient ke ke andar ho 95% confidence ke saath. Kitna batch size chahiye?
Recall Solution 4.1
95% two-sided confidence critical value use karta hai (kyunki , har tail mein chodta hai). Hum chahte hain ki half-width ho: ke liye solve karo:
Training ke liye kya matlab hai: tolerance ko quarter karne ke liye (jaise -type windows se), batch cost multiply hoti hai — yeh Stochastic Gradient Descent aur Sample Size Calculation mein compute-vs-precision tradeoff ka ek concrete example hai.
Exercise 4.2. Ek naye recommender ki true conversion rate hai (Bernoulli, toh ). 95% confidence par rate ko ke andar estimate karne ke liye kitne users chahiye?
Recall Solution 4.2
. Required: . Dono sides square karo (cleaner): Upar round karo (tum ek user ko fractionally sample nahi kar sakte): .
Yeh A/B-test planning ke peeche ka standard formula hai — Confidence Intervals aur Hypothesis Testing dekho.
L5 — Mastery
Goal: judge karo jab tools break ho jaate hain, aur reasoning repair karo.
Exercise 5.1. Ek colleague ek heavily skewed distribution se samples ka mean ke liye 95% confidence interval compute karta hai, CLT normal approximation plug in karke. Kya yeh valid hai? Tum uski jagah kya karte? Conceptual answer do, koi numbers nahi.
Recall Solution 5.1
Reliably valid nahi. CLT ek limit hai jab ; chhote ke liye ek skewed source ke sample mean ka khud skewed hona possible hai — bell abhi bana nahi hai, toh -based intervals miscalibrated hain (true coverage 95%). Repairs:
- badhaao taaki approximation kick in kare (skew convergence slow karta hai; tumhe hundreds ki zaroorat ho sakti hai).
- Ek resampling approach use karo jo koi normality assumption nahi karta — Bootstrap Methods — interval empirically pane ke liye.
- Ya exact/simulation methods use karo jaise Monte Carlo Methods.
Key mastery point: CLT ki accuracy dono aur source ki shape (skew/heavy tails) par depend karti hai.
Exercise 5.2 (capstone). Per-sample loss values ka unknown mean hai lekin known hai. Tum samples average karte ho aur observe karte ho. (a) ke liye 95% confidence interval do. (b) Isse use karke, 5% level par vs test karo.
Recall Solution 5.2
(a) . 95% CI: .
(b) ke under test statistic (using ): , toh hum 5% level par reject karte hain. Consistency check: CI ke bahar hai — level par two-sided test exactly tab reject karta hai jab , CI se bahar girta hai. Dono methods agree karte hain, jaise hona chahiye. Hypothesis Testing dekho.
Two-sided p-value: . ✓
Recall Self-test cloze
Sample mean ka standard error ==== hai. Precision quadruple karne ke liye (SE ko quarter karne ke liye) ko 16 se multiply karo. Ek two-sided 95% test ko tab reject karta hai jab , 95% confidence interval ke outside ho. CLT fail hoti hai jab source variance infinite ho (jaise Cauchy).
Related tools jinhe tumne ab connect kar liya hai: Normal Distribution, Law of Large Numbers, Confidence Intervals, Hypothesis Testing, Sample Size Calculation, Bootstrap Methods, Monte Carlo Methods, Stochastic Gradient Descent, Bias-Variance Tradeoff, Maximum Likelihood Estimation.