WHY does variance shrink by n? Variance of a sum of independent variables adds:
Var(∑Xi)=nσ2⟹Var(n1∑Xi)=n21⋅nσ2=nσ2.
The standard deviation of Xˉ — called the standard error — is σ/n.
HOW do we know its shape? The Central Limit Theorem says for large n,
Xˉ≈N(μ,nσ2)⟺Z=σ/nXˉ−μ≈N(0,1).
WHY swap to t? When σ is unknown we plug in the sample SD s. But s is itself random and tends to underestimateσ for small n, so the statistic has fatter tails. The exact distribution (for normal data) is Student's t with n−1 degrees of freedom.
As n→∞, tn−1→N(0,1), so for big samples the two methods agree.
WHY is this just a special case? A 0/1 (Bernoulli) variable has mean p and variance p(1−p). So p^ is a sample mean of Bernoulli's:
E[p^]=p,Var(p^)=np(1−p).
By CLT, p^≈N(p,np(1−p)) for large n.
What's the variance of a Bernoulli, and how does it give the proportion SE?
Answers: (1) 95% of intervals built this way capture μ over repeated sampling. (2) We bound the mean, whose SE is σ/n. (3) When σ unknown (esp. small n). (4) p(1−p); SE =p(1−p)/n, estimated by p^.
Recall Feynman: explain to a 12-year-old
Imagine you taste a few spoons of a giant pot of soup to guess its average saltiness. You won't be exactly right, so instead of saying "the soup is exactly 5 salty," you say "I'm pretty sure it's between 4.5 and 5.5." If lots of friends each taste their own spoons and each draw such a range, about 95 out of 100 friends' ranges would actually contain the true saltiness. That range is the confidence interval, and it gets tighter the more spoons you taste (bigger n).
Dekho, confidence interval ka idea simple hai. Hum poori population ka mean μ nahi jaante, isliye ek sample lekar uska average Xˉ nikaalte hain. Lekin Xˉ exactly μ ke barabar kabhi nahi hota — thoda idhar-udhar hota hai. Is "idhar-udhar" ko measure karta hai standard error=σ/n. Jitna bada sample, utna chhota error, kyunki n neeche hai. Isliye CI ki width bhi tab kam hoti hai.
Derivation yaad rakhne ka tarika: Z=(Xˉ−μ)/(σ/n) approximately standard normal hota hai (CLT ki wajah se). Ab 95% probability ke liye hum bolte hain −1.96≤Z≤1.96, phir is inequality ko μ ke liye solve kar dete hain — bas mil gaya formula Xˉ±1.96σ/n. Agar σ pata nahi hai to uski jagah sample SD s daalo aur z ki jagah tn−1 use karo, kyunki tab thodi extra uncertainty hoti hai (isliye t ki tails moti hoti hain).
Proportion ke liye bhi same logic hai — kyunki 0/1 wala Bernoulli variable ka variance p(1−p) hota hai, to p^ ka SE =p^(1−p^)/n ban jaata hai, aur CI =p^±1.96p^(1−p^)/n.
Sabse important baat (exam aur samajh dono ke liye): "95% confidence" ka matlab yeh nahi hai ki is particular interval mein μ hone ki 95% chance hai. Matlab yeh hai ki agar tum baar-baar experiment karo, to 100 mein se lagbhag 95 intervals sach mein μ ko pakad lenge. Yeh procedure ke baare mein statement hai, ek number ke baare mein nahi.