4.9.20 · D5 · HinglishProbability Theory & Statistics

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

2,017 words9 min read↑ Read in English

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

Un words ke reminders jo hum use karte hain, sab parent mein define hain:

  • = woh boring "no effect" claim jo hum true maanke chalte hain; = woh claim jiske liye hum evidence dhundhte hain.
  • = woh false-alarm rate jo hum pehle se choose karte hain; = yeh data kitna surprising hai agar hold kare.
  • Type I = ek sach wale ko reject karna; Type II = ek jhoothe ko reject karne mein fail hona; power .

True or false — justify

A small p-value proves the null hypothesis is false.
False. Ek chhota sirf yeh kehta hai ki data surprising hai agar hold kare; yeh hai, na ki , isliye yeh kabhi ko "prove" nahi kar sakta ki woh false hai — ek sache ke under ek rare fluke exactly fraction of the time chhota produce karta hai.
If , there is a chance the null is true.
False. ko compute karte waqt ko pehle se true maana jaata hai; yeh ki probability ke baare mein kuch nahi kehta. ko mein convert karna prosecutor's fallacy hai — ke baare mein baat karne ke liye tumhe Bayesian Inference aur ek prior chahiye hoga.
A result with is meaningfully stronger evidence than one with .
Kisi bhi real sense mein False. ki line ek chosen convention hai, nature ka koi kanoon nahi; dono data sets almost identical hain, isliye ek ko "significant" aur doosre ko "not" treat karna ek hard threshold ka artefact hai.
Failing to reject means we have proven is true.
False. "Fail to reject" ka matlab hai ki evidence convict karne ke liye kaafi strong nahi tha — aksar sirf chhota ya low power hota hai. Evidence ki absensi, absence of evidence nahi hai; hum kehte hain "insufficient evidence," kabhi "proven" nahi.
Lowering from to makes the test better in every way.
False. Ek stricter critical cutoff ko aur dur push karta hai, false alarms ghataata hai lekin (Type II errors) badhaata hai, isliye tum zyada real effects miss karte ho. Yeh ek trade hai, free upgrade nahi — sirf bada dono ko improve karta hai.
The alternative hypothesis can contain the equality (e.g. ).
False. hamesha equality carry karta hai kyunki sampling distribution aur p-value compute karne ke liye humein ek specific value chahiye. states , , ya .
Power depends on how far the true mean actually is from .
True. Real effect jitna bada hoga, alternative sampling distribution se utni hi dur shift hogi, isliye uska zyada hissa critical cutoff ke past land karta hai aur power badhti hai. Dekho Statistical Power & Sample Size.
Increasing sample size shrinks both and .
ke liye False, ke liye True. ek value hai jo hum choose karte hain, isliye usse touch nahi karta; lekin bada Standard Error ko shrink karta hai, dono distributions ko narrow karta hai isliye same par drop ho jaata hai.
A confidence interval and a two-tailed test at always agree about .
True. par ko reject karna equivalent hai ka confidence interval ke bahar girne se — yeh ek hi standardized distance ke do views hain.

Spot the error

"We got , so there's a chance our effect is real."
Error yeh hai ki ko probability maan liya ki effect exist karta hai. par conditional hai; effect real hone ki probability ke liye ek prior aur Bayesian machinery chahiye. ko reject karna ek decision hai, reality ke baare mein koi probability statement nahi.
"Our test wasn't significant, so the drug has no effect."
"Fail to reject" ko "proven no effect" se confuse kar raha hai. Ek null result sirf low power ya chhote ko reflect kar sakta hai; sach mein effect real ho sakta hai lekin itna chhota ki is test ke liye catchable na ho.
" means at most of all my published rejections are false discoveries."
— null ke true hone par conditional hai. Tumhare rejections mein se jo galat hain unka share (false discovery rate) yeh bhi depend karta hai ki actually kitni baar true hota hai, jo akele kabhi nahi batata.
"The data leaned high, so I'll switch to a right-tailed test to get significance."
Data dekhne ke baad tail choose karna tumhara real false-alarm rate double kar deta hai — tum effectively dono directions test karte ho jabki ek claim karte ho. Direction data dekhne se pehle fix hona chahiye.
"We used with a sample of and treated it as standard normal."
Jab unknown ho aur se estimate kiya jaaye, statistic degrees of freedom ke saath Student t-distribution follow karta hai, na ki . Chhote ke liye uski heavier tails matter karti hain; use karna p-value ko understate karta hai.
"We ran separate tests at and one came out significant, so we found something."
independent true nulls ke saath tum chance se expect karte ho lagbhag ek false positive (). Bahut saare tests mein se ek hit exactly false-alarm rate ka kaam hai, koi discovery nahi — tumhe ek multiple-comparison correction chahiye.
"Our huge sample gave , so the effect is large and important."
Ek massive se aaya chhota p-value ek trivially small effect ko flag kar sakta hai — statistical significance, practical significance nahi hai. Bada standard error shrink karta hai isliye se ek microscopic difference bhi "detectable" ban jaata hai.

Why questions

Why must always contain the equality rather than an inequality?
Kyunki humein ek exact value () chahiye taaki ek specific sampling distribution pin down ho sake aur p-value compute ho sake; jaisi inequality infinitely many distributions name karti hai aur humein standardize karne ke liye kuch nahi deti.
Why do we double the tail probability for a two-tailed p-value?
Ek two-sided test mein "as or more extreme" ka matlab hai kisi bhi direction mein door hona, isliye dono symmetric tails evidence count hoti hain — hence .
Why does the test statistic divide by the standard error instead of the standard deviation ?
Hum judge kar rahe hain ki sample mean se kitna dur hai, aur spread ke saath vary karta hai (Standard Error), na ki ke saath. SE se divide karna ek unit-free count deta hai ki "kitne standard errors door."
Why does the Central Limit Theorem let us use the normal distribution even when the raw data isn't normal?
CLT kehta hai ki ki sampling distribution badhne ke saath normal ke paas jaati hai, chahe population ka shape kuch bhi ho — isliye standardized statistic approximately standard normal hai even skewed data ke liye.
Why can't we ever "accept" the null hypothesis?
Kyunki test sirf deviations detect karne ke liye design kiya gaya hai, unki absence confirm karne ke liye nahi; ek non-significant result ke saath aur bahut saare chhote real effects ke saath consistent hai jinhe hum dekhne mein powerless the. Hum sirf itna keh sakte hain ki reject karne ke liye kaafi evidence nahi mila.
Why is a Type I error controlled directly but a Type II error is not?
Hum ko cutoff ke roop mein choose karte hain, isliye Type I rate hum design se set karte hain. unknown true effect size, , aur sab par ek saath depend karta hai, isliye yeh emerge hota hai, directly dial-in nahi kiya jaata.
Why does making a test more powerful usually require more data rather than just a lower ?
ghataana actually power reduce karta hai. Power do sampling distributions ko alag karke aur unhe narrow karke badhti hai — bada standard error shrink karta hai aur dono kaam karta hai, jabki sirf cutoff move karta hai.

Edge cases

If the observed sample mean lands exactly on , what is the two-tailed p-value?
, isliye . Data ke under least surprising possible hai — tum kabhi reject nahi karte.
What happens to the t-statistic's distribution as ?
degrees of freedom ke saath Student t-distribution standard normal ke paas converge hoti hai, kyunki ka near-perfect estimate ban jaata hai aur extra tail-uncertainty gayab ho jaati hai.
If you set to eliminate all false alarms, what happens to your ability to detect real effects?
Critical cutoff infinity par chali jaati hai, isliye tum kabhi reject nahi kar sakte — Type I error zero hai lekin aur power zero hai. Tumne ek aisa test banaya hai jo hamesha acquit karta hai, kuch bhi dhundhne ke liye useless.
If you set , what does the test do?
Tum kisi bhi data ke liye reject karte ho; power hai lekin har sach wala null falsely reject hota hai. Dono extremes ( aur ) dikhate hain kyun ek deliberate compromise hai.
For a one-sided right-tailed test, what if the sample mean falls below ?
Evidence ke opposite direction mein point karta hai, isliye aur . Tum reject nahi kar sakte — jo result tumhare alternative ke against jaata hai woh kabhi usse support nahi kar sakta.
What if two different analysts pick and on the same data with ?
Pehla reject karta hai, doosra reject karne mein fail hota hai — dono sahi hain apni chosen risk tolerance ke hisaab se. P-value data se fixed hai; verdict us threshold par depend karta hai jo har ek ne pehle choose kiya.
As the true effect size shrinks toward zero, what happens to the power of a fixed test?
Power ki taraf girti hai. Jab essentially koi effect nahi hota, alternative distribution ke almost upar baith jaati hai, isliye sirf wahi rejections hote hain jo rate par false alarms hain.

Recall One-line self-check

Upar ke har answer ko cover karo; agar koi verdict sirf bare "true/false" ke roop mein aaya bina kisi reason ke, tum use earn nahi kiya — reasoning hi concept hai.