1.3.20 · D5 · HinglishProbability & Statistics
Question bank — Hypothesis testing and p-values
1.3.20 · D5· AI-ML › Probability & Statistics › Hypothesis testing and p-values
True or false — justify karo
A p-value of 0.02 means there is a 2% chance the null hypothesis is true.
False. P-value hai, jo ko true maanke compute kiya jaata hai; yeh kabhi ki probability nahi ho sakta. Woh ulta quantity ek prior aur Bayesian inference maangta hai.
A p-value of 0.60 proves the null hypothesis is correct.
False. Bada p-value ka sirf matlab hai ki data ke under unsurprising hai; yeh confirm nahi karta. Tum "fail to reject" karte ho, jo agnosticism hai, proof nahi — chhota ya noisy sample ek real effect chhhupa sakta hai.
If we reject at , there is a 5% chance we made a mistake on this particular test.
False. 5% long-run rate hai false rejections ka jab true ho many tests mein; ek specific rejection ke liye "error ki chance" 5% nahi hai aur prior ke bina defined bhi nahi hai.
Two studies with and carry essentially opposite scientific conclusions.
False. Evidence almost identical hai; sirf arbitrary line dono ke beech mein padti hai. Is cliff ko meaningful treat karna thresholds ka ek well-known abuse hai.
A statistically significant result () is automatically important in practice.
False. Bahut bade sample size ke saath, ek microscopic effect bhi threshold cross kar leta hai. Significance ka jawab hai "kya yeh noise se distinguishable hai?", "kya yeh care karne layak bada hai?" nahi — effect size check karo.
Lowering from 0.05 to 0.01 makes the test better in every way.
False. Yeh false positives (Type I) kaata hai lekin false negatives (Type II) badhata hai, power ghataata hai. Yeh trade-off hai, free improvement nahi.
The p-value tells you how large the effect is.
False. P-value effect size aur sample size ko blend karta hai, toh yeh magnitude isolate nahi kar sakta. Bade ke saath tiny effect aur chhote ke saath huge effect same p-value de sakte hain.
A two-tailed p-value is always exactly twice the one-tailed p-value for the same data.
True symmetric distributions jaise normal ke liye, jahan har tail ka equal area hota hai, toh one-sided tail ko double karne se two-sided value milti hai — lekin sirf tab jab observed statistic tested side pe ho.
If your result is not significant, collecting more data until it becomes significant is a valid fix.
False. Baar baar peekh karna aur hone pe rokna true Type I rate ko 5% se kaafi upar inflate kar deta hai (optional stopping / p-hacking). Stopping rule pehle se fixed honi chahiye.
The confidence interval and the hypothesis test can disagree about the same parameter.
False, jab consistently build kiya jaaye: ek 95% confidence interval null mean ko exclude karta hai exactly tab jab two-tailed test pe reject karta hai. Yeh dono same computation ke do views hain.
Spot the error
"We got , so the probability our alternative hypothesis is true is 97%."
Error: p-values ke baare mein kuch nahi kehte. 0.03 ke under compute kiya jaata hai; "97% true" wala claim transposed-conditional fallacy hai.
"We ran 20 independent A/B tests, and one came back with , so that feature clearly works."
Error: true nulls ke saath 20 tests ke saath tum pe lagbhag ek false positive expect karte ho. Celebrate karne se pehle multiple-testing correction chahiye.
" is that the new model is better than the old one, and we test whether it's worse."
Error: "no effect / status quo" claim hona chahiye (accuracy equal), aur woh effect carry karta hai jiske liye tum evidence chahte ho. Yahan hypotheses swap ho gaye hain.
"Since the standardised statistic and we only cared about improvement, we doubled the tail to get the p-value."
Error: one-tailed test ke liye tum single tail use karte ho (figure mein woh ek red region); doubling sirf two-tailed alternatives ke liye hai. Yahan double karna galat tarike se tumhare evidence ko aadha kar deta hai.
"We chose after seeing the data landed at ."
Error: outcome dekhne se pehle fix hona chahiye. Threshold ko apna p-value just clear karne ke liye choose karna p-hacking ka ek form hai.
"The die test gave , so we accept that the die is perfectly fair."
Error: tum fail to reject karte ho, jiska matlab hai "unfairness ka koi evidence nahi", "provably fair" nahi. Subtle bias sirf 60 rolls se undetectable ho sakta hai.
"We used a z-test on samples with unknown population standard deviation and a heavily skewed distribution."
Error: z-test Central Limit Theorem pe rely karta hai (bade chahiye) aur known par. Chhote skewed samples aur estimated ke liye t-test aur caution chahiye.
Why questions
Why do we assume is true before computing anything, instead of assuming ?
Kyunki ("no effect") probabilities compute karne ke liye ek exact distribution pin down karta hai, jabki ("some effect") ek vague family hai jiska koi single number nahi. "Yeh kitna weird hai?" sirf ek fixed reference ke against measure kar sakte ho.
Why is the p-value a tail probability ("at least as extreme") rather than the probability of exactly our observation?
Continuous data ke liye kisi exact value ki probability zero hai, aur discrete data ke liye bhi ek single point surprise ka poor measure hai. "At least as extreme" capture karta hai ki hum unlikely region mein kitna andar gaye, jo actually surprise ka matlab hai.
Why is 0.05 the usual , and is it special?
Yeh special nahi hai — yeh ek 1920s ka convention hai (Fisher) jo convenience ke liye choose kiya gaya. Field ne ise standardise kar liya, lekin koi bhi threshold false positives ko false negatives ke against trade karta hai; "sahi" har error ki cost pe depend karta hai.
Why does a larger sample size shrink the p-value for a fixed true effect?
Zyada data standard error ko shrink karta hai (jahan population standard deviation hai), toh wahi real gap null mean se kaafi standard errors door ho jaata hai, test statistic ko tail mein push karta hai. Isliye huge trivial effects ko "significant" bana deta hai.
Why must we report effect size alongside the p-value?
P-value akela ek meaningful effect aur ek trivial effect jo brute sample size se detect hui ho, mein fark nahi bata sakta. Effect size (ya ek confidence interval) "kitna?" ka jawab deta hai, woh question jo real experiments mein decisions drive karta hai.
Why does the chi-squared die test lose one degree of freedom (df = 5, not 6)?
Kyunki chhe observed counts ko fixed total (60) mein sum karna padta hai, toh ek baar paanch pata ho jaayein toh chhata forced hai. Ek linear constraint ek free dimension remove karta hai.
Why can rejecting never prove is exactly true?
Rejection sirf yeh kehta hai ki data ke under implausibly extreme hai; tumhari specific ke alawa kai alternatives bhi aisa data produce kar sakte hain. Ek claim ke against evidence kisi particular competing claim ka proof nahi hai.
Edge cases
What does the p-value equal if your standardised statistic sits exactly at the null mean ()?
Two-tailed test ke liye : data mean se kam extreme nahi ho sakta, toh essentially har outcome utna hi extreme hai. Yeh ke saath maximal agreement hai.
If a coin gives exactly 50 heads in 100 flips, is that evidence the coin is fair?
Nahi — yeh fairness ke under most likely single outcome hai, p-value 1 ke karib deta hai, lekin " ke saath consistent" matlab " confirm" nahi hai. Ek cleverly biased ya two-headed-then-switched coin bhi yeh produce kar sakta hai.
What happens to power as the true effect size approaches zero?
Power : jab effect gayab ho jaata hai, "use correctly detect karna" false-positive rate pe collapse ho jaata hai. Koi test reliably kuch aisa detect nahi kar sakta jo hai hi nahi.
Can a p-value ever be exactly 0?
Continuous theory mein nahi — normal tail hamesha positive hoti hai, toh kisi bhi finite statistic ke liye . Reported "" ka matlab hai "software ke rounding floor se chhota".
What is the p-value's distribution when is exactly true?
Yeh pe Uniform hai: ek true null ke under har threshold exactly fraction of the time cross hota hai, jo isliye Type I rate ke barabar hoti hai.
If two effects are each non-significant separately, can their combination be significant?
Haan — data pool karna ya evidence combine karna effective sample size raise kar sakta hai aur ek real-but-small joint effect ko threshold ke paas push kar sakta hai. Non-significance linearly add nahi hoti.
With one-tailed testing, what happens if the data land far in the unexpected direction?
One-tailed p-value 1 ke karib ho jaata hai (galat tail pe huge), toh tum reject karne mein fail ho jaate ho chahe result extreme ho — direction pehle se commit karne ki cost. Two-tailed test ise pakad leta.
Recall Ek-line self-check
Upar ke har answer ko cover karo; agar tum reasoning reconstruct kar sako (sirf true/false nahi), toh concept tumhara hai. Do sabse deadly traps jo zyada seekhne chahiye: p-value , aur "fail to reject" "accept ".