4.9.21 · D4 · HinglishProbability Theory & Statistics

Exercisesz-test, t-test, chi-squared goodness of fit, F-test

2,285 words10 min read↑ Read in English

4.9.21 · D4 · Maths › Probability Theory & Statistics › z-test, t-test, chi-squared goodness of fit, F-test

Quick symbol refresher (kuch naya assume nahi kiya ja raha):

Rejection rule har jagah: ek test statistic compute karo, uska size ek table se liye gaye critical value se compare karo. Critical se bada ⇒ ==reject ; chhota ⇒ fail to reject==. Dekho Hypothesis Testing aur p-value.

Figure — z-test, t-test, chi-squared goodness of fit, F-test

Upar ki picture poora game hai: bell/hump "luck alone ke under kya karta hai" hai; shaded ends critical region hain. Agar tumhara statistic shade mein land kare, toh luck-alone implausible ho jaata hai.


Level 1 — Recognition

L1·Q1 — Test pehchano

Har situation ke liye z, t, χ², ya F naam batao. (a) Ek coin ka true mean bias ke barabar hai ya nahi, test karna hai, population standard deviation known hai aur . (b) bottles se mean fill volume ml hai ya nahi, unknown. (c) Kya ek class mein eye colours ki tally ek claimed ratio se match karti hai. (d) Kya do machines equal variance wale parts produce karti hain.

Recall Solution

(a) known, large z-test. (b) unknown, small , a mean ⇒ t-test. (c) Categories mein observed counts ko expected se compare karna ⇒ chi-squared goodness of fit. (d) A ratio of two variancesF-test. Parent se mnemonic: Z Sure, T Tries, Chi Counts, F Fights.

L1·Q2 — Critical value padhna

, two-sided par, critical cutoff batao: (a) ek z-test ke liye, (b) ke saath t-test ke liye, (c) ke saath χ² GOF ke liye (one-sided upper).

Recall Solution

(a) . (b) (z se fatter tails kyunki uncertainty add karta hai — Student's t-distribution). (c) (χ² upper end par one-tailed hai kyunki "surprise" sirf positive sum ki tarah accumulate hoti hai — Chi-squared Distribution).


Level 2 — Application

L2·Q1 — One-sample z

Ek factory claim karti hai ki wire N par toot ti hai. Known N. Sample , . , two-sided par test karo.

Recall Solution

KYA: claim se standardized distance compute karo. . kyun? 25 values ko average karna wobble ko se shrink karta hai. . Compare: ⇒ ==reject ==. Wire claimed se significantly zyada weak hai.

L2·Q2 — One-sample t

. Data: (), unknown. , two-sided par test karo.

Recall Solution

Mean: . se deviations: . Squares: , sum . Variance (Bessel's ): , toh . kyun? deviations se hain, jo apne data ke sabse paas hoti hai, toh hum constraint ki wajah se 1 d.f. khote hain — dekho Bessel's Correction. SE: . Statistic: , . Compare: fail to reject. Koi evidence nahi ki mean 100 se different hai.

L2·Q3 — χ² goodness of fit

Ek bag mein red:blue:green ratio mein hone chahiye. ka sample deta hai . par ratio test karo.

Recall Solution

Expected counts claimed ratio se (total parts): , , . Har cell ki surprise : red ; blue ; green . Sum: . d.f.: categories, koi parameter estimate nahi (), toh . Critical . Compare: fail to reject. Data ke saath consistent hai.


Level 3 — Analysis

L3·Q1 — Same data z se reject kyun karta hai lekin t se nahi?

ka ek sample deta hai , , test kar rahe hain (yeh L2·Q2 hai). Maano ek colleague galti se ko known treat karta hai aur z-test run karta hai. Dono conclusions dikhao aur mechanism explain karo.

Recall Solution

Galat (z) path: . Wahi number statistic ke jitna — kyunki arithmetic identical hai! Fark yardstick mein hai, statistic mein nahi.

  • z cutoff use karta hai: ⇒ yahan bhi fail to reject. Isse bite karte hain: ko kar do. Tab .
  • t (sahi): cutoff ; ⇒ fail to reject.
  • z (galat): cutoff ; ⇒ reject. Mechanism: chhote ke saath estimate khud noisy hoti hai. Kabhi kabhi accidentally chhoti nikal aati hai, ratio ko luck se bada dikha deti hai. distribution ke fatter tails cutoff ko widen karte hain exactly is extra luck ko absorb karne ke liye. use karna ise ignore karta hai aur ek false "significant" result manufacture karta hai. Jab , toh aur dono cutoffs merge ho jaate hain.

L3·Q2 — Degrees of freedom bookkeeping

Tum bins mein counts ke liye ek Poisson model fit karte ho, lekin tumne Poisson rate same data se estimate ki. Tumhe milta hai. par fit test karo.

Recall Solution

d.f. accounting: cells se shuru karo. Fixed total ke liye 1 ghataao (). Ek aur ghataao kyunki data se estimate ki gayi (). Critical . Compare: (barely hi) ⇒ reject the fit. Kyun matter karta hai: agar tum estimated parameter bhool jaate aur use karte, cutoff hoti, aur galat kehta "fit theek hai." Har woh parameter jo tum build karne ke liye data se "churaate" ho ek degree of freedom cost karta hai, cutoff tight karta hai.


Level 4 — Synthesis

L4·Q1 — F-test as a gatekeeper

Machine A: , . Machine B: , . Pehle decide karo ki unke variances equal hain ya nahi (, two-sided). Phir batao ki unke means compare karne ke liye kaun sa test use karoge.

Recall Solution

Step 1 — F-test. Bada variance upar rakho taki rahe aur hum ek upper tail use karein: Two-sided par use karta hai. ⇒ variances ki equality ko fail to reject. F kyun? Har (scale tak) ek hai, aur dono ka ratio by definition hota hai — dekho F-distribution aur Chi-squared Distribution. Step 2 — agla test. Kyunki hum equal variances reject nahi kar sake, means ke liye two-sample t-test with pooled variance (equal-variance assumption satisfied) appropriate follow-up hai. Agar F reject karta, toh hum unequal-variance (Welch) t-test use karte. Yeh chaining exactly ANOVA ke peeche ka logic hai: F-ratios decide karte hain ki group spreads/means different hain ya nahi.

L4·Q2 — p-value se decision, carefully

Ek two-sided z-test deta hai . (a) Kya yeh par significant hai? (b) par? (c) Ek student conclude karta hai "p-value bada sa hai, toh sach hai." Unhe correct karo.

Recall Solution

(a) Cutoff . par fail to reject. (b) Cutoff . par reject. Bilkul wahi data jab change hota hai conclusion flip kar deta hai — significance ek chosen threshold hai, nature ka fact nahi. (c) Fail to reject matlab hum ke against insufficient evidence paaye, yeh proof nahi hai uska. Absence of evidence ≠ evidence of absence. Ek bada sample shayad line cross kar leta. Dekho p-value aur Type I and Type II Errors.


Level 5 — Mastery

L5·Q1 — Design karo aur trap pakdo

Tumhare paas claim ki gayi quantity ke measurements hain , unknown. Ek colleague report karta hai ek z-test "reject at 5% since ." Unka number reproduce karo, phir analysis correct karo.

Recall Solution

Reproduce karo (unka flawed path). . Deviations ; squares , sum . , . . Statistic . (Colleague ne shayad ki jagah se divide kiya: ke saath, , SE , stat — ya simply "2.5" round kiya. Dono tarah arithmetic crime nahi hai.) Asli error: unknown aur ke saath, yeh ek t-test hai, , cutoff . Sahi comparison: statistic ⇒ ==reject == — lekin barely, aur honest, wider cutoff use karke, dishonest nahi. z cutoff bahut weak evidence par bhi reject kar deta. Mastery point: wahi data genuinely significant ho sakta hai, phir bhi colleague galat isliye hai kyunki unhone uncertainty understate ki. Galat reason se sahi conclusion phir bhi ek methodological error hai — thode weaker data ke saath (, statistic ) flawed z-test reject karta hai jabki correct t-test nahi karta.

L5·Q2 — Full χ² with estimated proportion

Ek quality line severity classes mein defects per shift record karta hai: , total . Ek geometric-type model jismein ek estimated parameter hai predict karta hai . par fit test karo.

Recall Solution

Cell surprises : ; ; ; ; . Sum: . d.f.: , total-count constraint , ek estimated parameter , toh . Critical . Compare: fail to reject. Model comfortably fit karta hai. Size rule check karo: har (sabse chhota hai), toh χ² approximation valid hai — koi pooling needed nahi.


Recall One-line self-check

Yahan har test (signal) ÷ (noise) hai, "luck kya karta hai" se compare kiya gaya ::: haan — z/t ek mean standardize karte hain, χ² standardized squared count-errors sum karta hai, F do variance estimates ratio karta hai; har ek ka apna reference distribution hai aur apna degrees-of-freedom bookkeeping hai.