Exercises — Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II)
4.9.20 · D4· Maths › Probability Theory & Statistics › Hypothesis testing — null - alternative, test statistic, p-v
Yeh page ek self-testing ladder hai. Har problem ko solution dekhne se pehle khud solve karo. Levels "pieces pehchano" se lekar "poora test design karo" tak chalte hain. Parent note Hypothesis testing — null - alternative, test statistic, p-value, errors (Type I & II) theory build karta hai; prerequisites Central Limit Theorem, Standard Error, aur Normal Distribution tools provide karte hain. Lekin tumhe yeh page chhodni nahi chahiye — har symbol neeche re-anchor kiya gaya hai pehle use se.
Standard-normal tail areas ka ek reference table jo hum reuse karte hain (yeh hain, bell curve ke neeche ke daayein shaded area):
Level 1 — Recognition
Exercise 1.1
Har claim ke liye aur likho, aur batao ki test two-, left-, ya right-tailed hai. (a) "Ek drug average blood pressure ko known baseline se badalta hai." (b) "Ek naya fertilizer mean yield ko kg se upar badhata hai." (c) "Ek factory ka defect rate old mean se neeche hai."
Recall Solution 1.1
Yaad rakho: == hamesha equality hold karta hai== (kyun? test ko probabilities compute karne ke liye ek precise value chahiye jisse — ek inequality koi single number nahi deta standardize karne ke liye). Claim mein direction word tail pick karta hai.
- (a) "changes" = kisi bhi direction mein ja sakta hai → , → two-tailed.
- (b) "increases / above" → , → right-tailed.
- (c) "below" → , → left-tailed.
Exercise 1.2
Ek study report karta hai significance level par. Decision batao aur usse sahi se phrase karo.
Recall Solution 1.2
Rule: reject karo jab . Yahan → reject . Yeh rule kyun? woh chance hai ki data itna extreme ho agar sach hota; woh fluke-rate hai jo hum tolerate karte hain. Jab tab data hamare tolerance se zyada rare hote hain, toh pure luck ko blame karna credible nahi rehta. Sahi phrasing: "Data level par ke saath inconsistent hain; hamare paas ke liye evidence hai." Hum yeh nahi kehte " proven ho gayi."
Level 2 — Application
Exercise 2.1
Ek coffee machine ko ml pour karni chahiye known ml ke saath. cups ka ek sample ml deta hai. par test karo ki machine mis-set hai ya nahi.
Recall Solution 2.1
, (two-tailed — "mis-set" = koi bhi direction). Standard error . se kyun divide karte hain? noisy readings ko average karna bahut sa noise cancel kar deta hai; ka wobble ki tarah shrink hota hai. Yahan . Standardize: . Kyun? Yeh " ml low" ko " standard errors low" mein convert karta hai, ek unit-free score jo hum look up kar sakte hain. Two-tailed p-value: . One-sided tail ko double kyun karte hain? "Mis-set" se itni door mean ko equally surprising count karta hai chahe upar ho ya neeche. Toh " jaisa extreme" matlab hai , yaani tail below plus mirror tail above . Kyunki normal curve symmetric hai, un donon tails ka area equal hota hai, toh hum ek tail lete hain aur double karte hain: → reject : machine mis-set hai (low pour kar rahi hai).
Exercise 2.2
Ek teacher claim karta hai ki naya method mean score se upar raise karta hai. Sample: , , sample SD . par test karo.
Recall Solution 2.2
unknown hai (sirf sample diya gaya hai) → Student t-distribution statistic use karo. , (right-tailed — "raises above"). . with . kyun? estimate karna ek degree of freedom "use up" karta hai ( se deviations zero sum honi chahiye), baaki free rehte hain. Critical value . Kyunki → fail to reject . Wording: itna evidence nahi ki method scores raise karta hai.
Level 3 — Analysis
Exercise 3.1
Do students same data test karte hain (, known, ). Student A two-tailed test run karta hai, Student B right-tailed test, dono par. Dono p-values compute karo aur explain karo ki woh decision par kyun disagree karte hain.
Recall Solution 3.1
Table se, .
- A (two-tailed): → fail to reject.
- B (right-tailed): → reject. Same number, opposite verdicts. Kyun? Two-tailed test dono sides par spend karta hai ( har side), toh reject karne se pehle zyada extreme statistic maangta hai; one-tailed test saara ek side mein daal deta hai. Yahi exact reason hai ki tail data dekhne se pehle choose ki jaani chahiye — warna tum B isliye choose karte kyunki woh tumhe chahiya result deta hai.
Exercise 3.2
Exercise 2.1 mein, Type I aur Type II error ka kya matlab hoga us machine ke liye, words mein describe karo, aur batao kaunsa directly control karta hai.
Recall Solution 3.2
- Type I (false alarm, prob ): machine actually exactly ml pour kar rahi hai, lekin hum declare karte hain ki mis-set hai aur bilkul sahi machine recalibrate karte hain.
- Type II (miss, prob ): machine sach mein off hai, lekin hamara sample normal lag raha tha, toh hum usse broken chhod dete hain. Type I rate directly control karta hai: . Yeh akele ke baare mein kuch nahi kehta — woh true aur par depend karta hai (dekho Statistical Power & Sample Size).
Level 4 — Synthesis
Exercise 4.1
Ek quality engineer batch reject karegi agar sample mean se door hai. , ke saath (toh ), woh par two-tailed test use karti hai, reject karti hai jab . (a) Rejection rule ko par rule mein convert karo (do critical means). (b) Maano machine ka true mean drift karke ho gaya. Power find karo = probability ki woh correctly reject karti hai. (Yeh neeche figure mein shaded story hai.)
Figure — ise kaise padhein. Figure do bell curves ek hi -axis par draw karta hai. Violet curve hai ( par centred), magenta curve drift ke under ki true distribution hai (, par centred). Do navy dashed lines critical means aur hain — inke bahar hum reject karte hain. Orange shading magenta () curve ka woh slice hai jo rejection region mein pada hai: iska total area power hai. Notice karo ki almost saara orange right tail mein hai, kyunki upper cutoff ke paas hai aur lower se door.

Recall Solution 4.1
(a) mein rejection boundary: . se convert karo: Toh woh reject karti hai agar ya . (b) Agar sach hai, toh — toh ab hum se standardize karte hain, se nahi. Power = magenta curve ka area har cutoff ke baad:
- Upper tail: . kyun? Standard normal ki symmetry se, ke daayein area = ( ke daayein area) ( aur ke beech area) . Equivalently .
- Lower tail: (essentially itna door koi area nahi).
Power . Interpretation: real -ml drift ke saath bhi, woh use sirf ~ time pakadti hai. Behtar karne ke liye usse badhana hoga (dono curves narrow hoti hain) — Statistical Power & Sample Size tradeoff, Central Limit Theorem par resting.
Level 5 — Mastery
Exercise 5.1
Tumhe ka two-tailed -test design karna hai aur ke saath. Tumhe power chahiye ka true difference detect karne ke liye. Minimum sample size find karo. (Design formula use karo , ke saath ke liye aur power ke liye.)
Recall Solution 5.1
, , , effect plug karo: Sample size whole number honi chahiye aur hum upar round karte hain (kabhi neeche nahi — neeche round karne se power kho jaati hai): Yeh formula kyun? Yeh do requirements ek axis par stitch karta hai: cutoff se SEs door honi chahiye ( control karta hai) aur true mean se SEs door dosri taraf ( control karta hai). Means ke beech gap hai; ise ke equal set karna aur se ke liye solve karna box deta hai. Dekho Statistical Power & Sample Size aur Standard Error.
Exercise 5.2
Ek clean paragraph mein explain karo kyun badhana woh ek hi lever hai jo fixed rakhte hue dono aur shrink karta hai, jabki cutoff adjust karna sirf ek ko dosre ke saath trade karta hai.
Recall Solution 5.2
Pehle, do regimes clarify karo taaki hum inhe confuse na karein. Regime 1 — fixed cutoff (raw units mein): cutoff ko ki taraf slide karo aur tail past it shrink hoti hai () jabki tail galat side par grow hoti hai (): ek pure trade, koi free lunch nahi. Regime 2 — fixed (normal practice): hum pin karte hain, jo cutoff ko se standard errors par pin karta hai, toh ab construction se constant hai — bacha hua sawal sirf yeh hai ki kitna bada hai. Yahan badhane ka payoff hai: kyunki ki tarah collapse hota hai, dono bell curves narrow hoti hain aur, SE units mein measure karke, apart pull hoti hain. -cutoff apni fixed -position par held ke saath, narrower, better-separated curve ab almost entirely rejection region ke andar hang karti hai, toh girta hai jabki exactly rehta hai. Isi sense mein "dono" shrink karta hai: yeh ko wahin hold karta hai jahan tumne set kiya aur drive karta hai down — kuch aisa jo koi cutoff move nahi kar sakta. Central Limit Theorem guarantee karta hai ki normal rehta hai jabki uski spread collapse hoti hai, toh poori picture kaam karti rehti hai.
Recall Poore ladder par one-line self-check
Kya tumne (i) har tail compute karne se pehle fix ki, (ii) jab bhi estimate hua use kiya, (iii) power ke nahi ke under standardize ki, (iv) sample sizes upar round kiye, aur (v) kisi bhi cheez par trust karne se pehle normality/CLT assumption check ki? ::: Agar paanchon mein haan, toh tumne classic traps L1–L5 clear kar liye.