WHY a ratio? A raw difference like xˉ−μ0=3 means nothing until you ask "3 compared to what spread?" Dividing by the noise scale standardizes the difference into "number of standard errors," which is comparable across problems.
HOW the Central Limit Theorem powers the z/t tests. For a sample mean of size n:
E[Xˉ]=μ,Var(Xˉ)=nσ2
Derivation of the variance (first principles): with i.i.d. Xi,
Var(n1∑Xi)=n21∑Var(Xi)=n21nσ2=nσ2.
So the standard error is SE=σ/n. By the CLT, Xˉ≈N(μ,σ2/n), which means
Z=σ/nXˉ−μ0∼N(0,1)under H0.
This is the z-statistic — and it's the template for the rest.
WHY divide by n−1 (Bessel's correction)? Deviations are taken from xˉ, not the true μ. The sample is "closest" to its own mean, so ∑(xi−xˉ)2 systematically underestimates spread. We lose 1 degree of freedom (the constraint ∑(xi−xˉ)=0), and dividing by n−1 makes s2 unbiased: E[s2]=σ2.
WHY divide by Ei (first principles): for counts, the count in a cell is roughly Poisson with mean Ei, so its variance is also ≈Ei. Then (Oi−Ei)/Ei is a standardized z-like quantity; squaring and summing ν of them gives a χν2 distribution.
WHY ν=k−1 (with no extra params): the counts are constrained by ∑Oi=∑Ei=n (total fixed), removing 1 degree of freedom from the k cells.
WHY this is an F: each s2 is (up to scale) a χ2/ν. The ratio of two independent χ2's each divided by their d.f. is, by definition, F. So the F-test is "two chi-squareds racing."
Recall Explain to a 12-year-old
Imagine you measure something and it looks a bit off from what you expected. Is it really off, or did you just get unlucky? You make a "weirdness score" = how far off you are ÷ how much wobble is normal. If the score is huge, "just unlucky" stops being believable, so you say something real is going on. The z and t scores check if an average is off (t is for when you're not sure how wobbly things are, so it's more cautious). Chi-squared checks if your tally of categories (like die faces) matches what it should. F checks if one thing wobbles more than another. Same trick, different shapes of "what luck can do."
Dekho, in chaaron tests ka core idea ek hi hai: hum ek "weirdness score" banate hain jo hota hai (jo difference dikha) divided by (jitna noise normally expect karte hain). Agar yeh score bahut bada ho jaye, matlab "sirf luck se hua hoga" wali kahani believable nahi rehti, to hum H0 ko reject kar dete hain. Bas itni si baat hai — fark sirf yeh hai ki kya compare kar rahe ho aur reference distribution kaunsa hai.
z-test tab jab tum mean check kar rahe ho aur population ka σalready pata ho — denominator fixed hai, to score seedha Normal N(0,1) follow karta hai. t-test tab jab σ pata nahi, to tum s (sample SD) se estimate karte ho. Lekin s khud noisy hai, isliye extra uncertainty aati hai aur distribution thoda fat-tailed ho jata hai — yeh hai Student's t, jiska shape degrees of freedom ν=n−1 pe depend karta hai. Chhote sample mein zyada cautious rehna padta hai (1.96 ki jagah 2.78 type critical value).
Chi-squared goodness of fit categories ke liye hai: observed count Oi vs expected Ei. Har cell ka contribution (Oi−Ei)2/Ei — divide Ei se isliye kyunki count ki variance bhi lagbhag Ei hoti hai (Poisson logic). Sab add karo; bada total matlab model fit nahi ho raha. F-test do variances ka ratio s12/s22 leta hai — agar dono truly equal hain to ratio 1 ke aaspaas hona chahiye; door chala gaya to variances different hain.
Yaad rakhne ka mantra: Z Sure, T Tries, Chi Counts, F Fights. Aur ek important baat — bada p-value ka matlab yeh nahi ki H0 sach hai; bas tumhe uske against evidence nahi mila. Exam mein degrees of freedom mein estimated parameters subtract karna mat bhoolna!