4.9.20 · D3 · HinglishProbability Theory & Statistics

Worked examplesHypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

2,640 words12 min read↑ Read in English

4.9.20 · D3 · Maths › Probability Theory & Statistics › Hypothesis testing — null - alternative, test statistic, p-v

Yeh page ek shooting range hai: is topic mein jo bhi tarah ke hypothesis-test questions aa sakte hain, ek ke baad ek, poori tarah se solve kiye gaye hain. Hum pehle saare cases ka map banate hain, phir har cell ko picture-first, guess-first method se walk karte hain. Yahan sab kuch parent Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II) pe build hota hai aur Central Limit Theorem, Standard Error, Normal Distribution aur Student t-distribution pe rely karta hai.

Koi bhi symbol aane se pehle, yahan plain-words dictionary hai jo hum baar baar use karte rahenge, taaki kuch bhi "assumed" na rahe:


The scenario matrix

Is topic ka har question is table ki ek row hai. Neeche ke examples har cell ko tick off karte hain.

# Case class Kya badalta hai Example jo isko hit karta hai
A Two-tailed, known z direction Ex 1
B Right-tailed, known z direction , statistic positive Ex 2
C Left-tailed, unknown t direction , statistic negative Ex 3
D Boundary / degenerate: exactly, aur toh zero input Ex 4
E Non-rejection sahi se padha gaya (evidence ki absence) large p-value Ex 5
F Limiting behaviour: same effect, growing → power badhti hai Ex 6
G Type-II / power computation compute karo Ex 7
H Real-world word problem (proportions) alag data type Ex 8
I Exam twist: woh p-value dete hain aur ek trap question poochte hain conceptual Ex 9

Test statistic ke teen signs — positive, negative, zero — B, C, D se cover hote hain. Teen tail directions — two-tailed, right, left — A, B, C hain. Acchi coverage ka matlab hai: koi bhi student us case se na takraye jo humne skip kiya ho.


Ex 1 — Case A: two-tailed z-test (dono signs matter karte hain)

Forecast: pehle andaza lagao — 64 bottles mein ml neeche jaana surprising hai, ya normal wobble? Aage padhne se pehle yes/no likhlo.

Step 1. , likhte hain. Yeh step kyun? "Miscalibrated" direction ke baare mein kuch nahi kehta — zyada full hona utna hi bura hai jitna zyada khaali hona — toh dono tails count hote hain. Yahi hai ka matlab.

Step 2. Standard error ml. Yeh step kyun? Sample mean ek akele bottle se kam wobble karta hai kyunki averaging noise ko cancel karti hai; Central Limit Theorem kehta hai woh wobble ke barabar hai. Dekho Standard Error.

Step 3. . Yeh step kyun? Hum "3 ml neeche" ko "3 wobbles neeche" mein convert karte hain, jo ek unit-free count hai. Figure s01 dekho: observed mean centre se 3 tick-marks baayein hai.

Figure — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

Step 4. Two-tailed p-value . Yeh step kyun? ke liye "as extreme or more" ka matlab hai ya toh far-left ya far-right, isliye hum ek tail ka area lete hain aur double karte hain (Normal Distribution symmetric hai).

Step 5. reject . Machine off hai.

Verify: SE ki units ml hain (), unitless hai (ml/ml) ✓. ka famously rare hai ("0.13%" tail), aur double karne se milta hai — intuition se match karta hai ki 3-wobble miss ek red flag hai.


Ex 2 — Case B: right-tailed z-test (positive statistic)

Forecast: 100 logon mein 2 minutes zyada. Reject ya nahi? Andaza lagao.

Step 1. , . Yeh step kyun? Shak ki ek direction hai ("zyada") → sirf right tail. Hum left tail ko bilkul ignore karte hain.

Step 2. min.

Step 3. . Yeh step kyun? Positive isliye kyunki claim ke upar hai — ka sign literally record karta hai "kaun sa side."

Step 4. Right-tailed p-value . Yeh step kyun? Sirf right tail "as extreme or more" hai jab right point karta hai. Koi doubling nahi yahan (Ex 1 se contrast karo).

Step 5. reject : evidence hai ki commutes zyada lambi hain.

Verify: Wahi ek two-tailed p of deta — still significant, lekin bada, dikhata hai ki one-tailed test pre-chosen direction mein zyada powerful hota hai. Units: min/min = unitless ✓.


Ex 3 — Case C: left-tailed t-test (negative statistic, σ unknown)

Forecast: chhota sample, 1.5 kg kam. Reject karein?

Step 1. , (left tail — "underweight" left point karta hai).

Step 2. kyun aur kyun nahi? Hum true spread nahi jaante; hamare paas sirf sample estimate hai. Spread estimate karne se extra uncertainty add hoti hai, isliye hum fatter-tailed Student t-distribution use karte hain jisme hai.

Step 3. kg.

Step 4. . Yeh step kyun? Negative = claim se neeche, left-tail suspicion se match karta hai.

Step 5. Critical value (right side); left tail ke liye hum se compare karte hain. Kyunki , hum cutoff se zyada baahir hain reject karo.

Verify: ke saath, ki one-sided p-value lagbhag hai ✓ — critical-value decision se agree karta hai. Do tarike, ek hi verdict.


Ex 4 — Case D: the degenerate boundary ( aur )

Forecast: test ko kya kehna chahiye jab aapka data bilkul claim pe land kare?

Step 1 (a). . Yeh step kyun? Zero distance → zero wobbles. Data sabse kam surprising possible hai.

Step 2 (a). Two-tailed . Yeh step kyun? Har possible dataset exact centre se "as extreme or more" hai, isliye poora probability mass qualify karta hai → . Hum fail to reject karte hain — jaisa hona chahiye.

Figure — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

Step 3 (b). two-tailed ke liye hume chahiye , yaani , jo famous deta hai. Yeh step kyun? Yeh razor's edge hai. Convention hai: exactly pe hum reject karte hain (rule hai ). Toh sabse chhota hai jo phir bhi reject karta hai.

Verify: (a) ✓. (b) toh doubled ✓ — critical value exactly recover hota hai.


Ex 5 — Case E: ek sahi non-rejection (evidence ki absence)

Forecast: kya 1 point upar prove karta hai ki method kaam karti hai?

Step 1. , (right tail).

Step 2. .

Step 3. , .

Step 4. Critical . Kyunki fail to reject .

Step 5 — woh wording jo marks dilati hai. Humne method ko useless prove nahi kiya. Sirf 16 students pe 1-point rise luck ki reach ke andar hai; ek bada shayad phir bhi ek real effect reveal kare. Yeh evidence ki absence hai, absence ki evidence nahi.

Verify: , ke liye one-sided p-value lagbhag hai — bahut bada, ke paas kahin nahi ✓. " pe believe karte raho" se consistent hai.


Ex 6 — Case F: limiting behaviour, ko infinity tak badhao

Forecast: jab data pile up hota hai toh kya ek fixed 2-minute gap zyada ya kam significant ho jaata hai?

Step 1. . Yeh step kyun? Numerator fix karo; sirf SE shrink hoti hai. ko ke function ke roop mein likhne se trend samajh aata hai.

Step 2. Plug in:

Step 3 — the limit. Jab , , toh . Yeh step kyun? Kisi bhi size ka real gap detectable ho jaata hai jab aap enough data gather karo — SE null curve ko ek spike mein narrow kar deti hai. Figure s03 dekho: null bell badhne ke saath tight hoti jaati hai.

Figure — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

Verify: (not significant, two-tailed), (significant), (wildly significant) ✓. Confirm karta hai: ek fixed effect ke liye statistical significance sample size se kharidi jaati hai — dekho Statistical Power & Sample Size.


Ex 7 — Case G: Type II error aur power compute karna

Forecast: agar true mean 6 upar hai, toh hum isko miss karne ki kitni sambhavna hai?

Step 1 — reject region real units mein. . Hum reject karte hain jab , yaani jab . Yeh step kyun? real-unit cutoff ke baare mein hai, isliye hum -cutoff ko threshold mein translate karte hain. Yahan one-tailed 5% critical z hai.

Step 2 — truth ke neeche evaluate karo. Agar sach mein hai, toh mean , pe centred Normal hai same ke saath. Ek miss (Type II) tab hota hai jab : Yeh step kyun? true distribution ke neeche measure hota hai, null ke neeche nahi. Figure s04 dekho: amber "true" bell accept region ke saath overlap karti hai.

Figure — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)

Step 3. Power .

Verify: -cutoff back-check: ✓. Miss z: , aur ✓. Power — modest, jaisi 2-SE-sized true effect ke liye expect ki jaati hai. Zyada ya effect isko raise karega (Statistical Power & Sample Size, Confidence Intervals).


Ex 8 — Case H: real-world word problem (ek proportion, coin)

Forecast: 100 mein se 62 heads — fluke ya bias?

Step 1. , .

Step 2 — proportion ke liye SE. ke neeche, har flip ka variance hai, isliye . Yeh step kyun? Hum SE null value use karke compute karte hain, kyunki poora test "agar sach hoti" wali duniya mein rehta hai.

Step 3. .

Step 4. reject karo: heads ki taraf bias ka evidence hai.

Verify: SE , , tail ✓. Central Limit Theorem ko approximately Normal treat karna justify karta hai kyunki aur dono bade hain.


Ex 9 — Case I: exam twist (woh p-value dete hain)

Forecast: kya null ke sach hone ki probability measure karta hai? Padhne se pehle decide karo.

Step 1 — trap ka naam lo. Yeh claim ko se confuse karti hai. Yeh prosecutor's fallacy hai. Yeh step kyun? sach maanke compute kiya jaata hai — aap phir isko ki apni probability ke roop mein nahi padh sakte; uske liye ek prior chahiye hoga, jo Bayesian Inference mein rehta hai.

Step 2 — isko sahi se kaho. "" ka matlab hai: agar sach hoti, toh itna extreme ya zyada extreme data sirf 3% time hota. Yeh directly ke baare mein kuch nahi kehta.

Step 3 — sahi decision. Kyunki , hum reject karte hain. Sahi verdict, lekin classmate ki reasoning galat hai.

Verify: Sirf logic check — numeric comparison sach hai, isliye "reject" sahi action hai; interpretation mein error hai. ✓


Recall Self-test: yeh kaun sa cell hai?

"Testing whether a mean is different (either way) with known ." ::: Case A — two-tailed z (Ex 1). "Data lands exactly on ; two-tailed p-value kya hai?" ::: Case D — , fail to reject (Ex 4). "Same effect size, ever-larger : ka kya hota hai?" ::: Case F — ; ek fixed effect hamesha significant ho jaata hai (Ex 6). "True mean given ho, toh usse miss karne ka chance find karo." ::: Case G — compute karo, power (Ex 7). "Koi kehta hai p, ke sach hone ki probability hai." ::: Case I — prosecutor's fallacy; (Ex 9).