1.3.20 · D1 · HinglishProbability & Statistics

FoundationsHypothesis testing and p-values

3,323 words15 min read↑ Read in English

1.3.20 · D1 · AI-ML › Probability & Statistics › Hypothesis testing and p-values

Isse pehle ki tum parent note ki ek bhi line par trust karo, tumhe use padhna aana chahiye. Yeh page har ek symbol aur idea jo parent use karta hai, unhe build-order mein list karta hai, taaki koi bhi notation tab tak na aaye jab tak tum uske malik na ho jao. Ek samajhdar 12-saal-ka bachcha bhi upar se neeche tak bina kisi jagah atak ke chal sakta hai.


0. Woh picture jis par hum baar baar wapas aate hain

Hypothesis testing ki almost har cheez ek bell-shaped curve par rehti hai. Abhi is picture ke saath comfortable ho jao aur baaki sab labelling hai.

Figure — Hypothesis testing and p-values

Neeche sab kuch is curve ko draw karne aur usmein ek spot point karne ka tool hai.


1. Probability — "kitni baar" ki language

Picture: ek bade jar of outcomes ki soch lo. jar ka woh fraction hai jo "heads" hai. Agar jar ka aadha heads hai, toh .

Topic ko iska kyun zaroorat hai: poora p-value ek probability hai — "kitni baar mujhe itna weird data dikhega?" Bina mein fluent hue tum p-value nahi padh sakte.

Bar (given that): padhte hain "probability of , given that pehle se true hai." Vertical bar ka matlab hai "assuming..."


2. Random variable — ek number jo chance se nikalta hai

Picture: ek slot machine. Tum lever khinchte ho (experiment chalate ho) aur ek number pop out hota hai. us number-generator ka naam hai; is baar jo value aata hai woh ek plain number hai jaise .

Topic ko iska kyun zaroorat hai: test statistic (agle kuch sections mein) ek random variable hai. "65 heads kitna weird hai" poochne ke liye, tumhe imagine karna hoga ki kai values ho sakta tha, har ek ki koi na koi probability ke saath. Dekho 1.3.1-Random-variables-and-distributions.


3. Distribution — possible values aur unke chances ka poora menu

Figure — Hypothesis testing and p-values

Picture: upar wala bar chart. Har bar heads ki ek possible sankhya hai; uunche bars = likely, chhote bars = rare. Fair coin ke bars bell shape banate hain jo Section 0 mein tha.

Do named distributions jo parent use karta hai:

Topic ko iska kyun zaroorat hai: p-value distribution ke neeche ek area hai. Koi distribution nahi, toh area measure karne ki koi jagah nahi.


4. Mean aur standard deviation — center aur spread

Figure — Hypothesis testing and p-values

Picture: wahan hai jahan curve peak karta hai (middle). peak se woh horizontal distance hai jahan curve "steeply girna" se "flat hona" mein bend karta hai. Ek patli bell ka chhota hota hai; ek moti bell ka bada hota hai.

Topic ko iska kyun zaroorat hai: yeh kehne ke liye ki koi result "expected se dur" hai, tumhe measure karne ke liye ek center chahiye () aur measure karne ke liye ek ruler ().


5. Sample mean vs. true mean — measured vs. claimed

Picture: number line par do dots. woh target hai jo null hypothesis paint karta hai. wahan hai jahan tumhara actual result land kiya. Hypothesis testing unke beech gap measure karta hai.

Topic ko iska kyun zaroorat hai: har test statistic essentially hai, yaani .


6. Test statistic — woh ek number jise hum curve ke against shade karte hain

Picture: tumhara saara messy data bell ki horizontal axis par ek dot mein crush ho jaata hai. Woh dot test statistic hai. P-value phir sirf us dot ke paar tail area hai.

Topic ko iska kyun zaroorat hai: tum curve ke against "tumhara data" shade nahi kar sakte — data ek single point nahi hota. Test statistic woh bridge hai jo ek poore dataset ko ek shadeable position mein convert karta hai.


7. Z-score — "kitne rulers door?"

Worked reading: . Tum boring center se 3 standard deviations right mein ho — ek skinny tail mein gehre.

Saare cases (taaki tum kabhi surprise na ho):

  • : result exactly expected par baitha hai. Bilkul boring.
  • : result expected se upar hai (bell ka right side).
  • : result expected se neeche hai (bell ka left side).
  • bada (jaise 3): ek tail mein kaafi bahar → surprising.
  • chhota (jaise 0.4): fat middle ke paas → unsurprising.

Bars ka matlab absolute value hai — sign phenko, size rakho. . Hum iska use karte hain kyunki "3 steps left" aur "3 steps right" equally surprising hain; hume distance ki parwah hai, direction ki nahi.

Yeh standardizing trick 1.3.15-Central-limit-theorem aur 1.3.18-Confidence-intervals ka dil hai.


8. Tails, aur p-value ek area ke roop mein

Figure — Hypothesis testing and p-values

Picture (upar): tumhara ek spot mark karta hai. Us spot se aage sab kuch shade karo. Woh shaded area hi p-value hai.


9. Greek gatekeepers: , , aur hypotheses

Picture: bell ki tails par ek fence paint kiya hua hai. Agar tumhara p-value area se chhota hai, tum fence ke bahar ho → reject karo.


10. Extra cheezein jo parent lean karta hai


Sab kuch topic ko kaise feed karta hai

Probability P and the bar given

Random variable X

Distribution binomial and normal

Mean mu and spread sigma

Test statistic one number

z-score standard normal N 0 1

Tails and shaded area

p-value

Compare to alpha then decide

Hypothesis testing conclusion


Equipment checklist

Apne aap ko test karo — parent note padhne se pehle tumhe har jawab zor se bolne mein aana chahiye.

ka kya matlab hai, aur iska definition kya hai?
true hone par ki probability; formally — duniya ko sirf un outcomes tak shrink karo jahan hold karta hai, phir woh fraction lo jo bhi hai.
Random variable kya hai?
Ek number jo ek random process se produce hota hai, uski value jaanne se pehle naam diya gaya (jaise ).
kya describe karta hai?
independent tries mein successes ki count, jahan har ek success probability se hoti hai.
Binomial ke liye aur kyun hai?
Har flip ka average aur variance hota hai; independent flips ke averages aur variances add hote hain, jo aur dete hain.
Shabdon mein, aur kya hain?
center hai (balance point / average); woh typical distance hai jo results center se bhatakte hain (spread).
100 fair coin flips ke liye aur compute karo.
, .
Test statistic kya hai?
Data se compute kiya gaya ek number jo summarize karta hai ki result ki prediction se kitna dur hai; ise ek distribution ke against shade kiya ja sakta hai.
Standardizing kyun mean 0 aur spread 1 deta hai?
subtract karna average ko 0 par center karta hai; se divide karna rescale karta hai taaki ek unit = ek purana standard deviation, spread ko banata hai.
kaunsa distribution follow karta hai, aur isse probability read off karne mein kyun help milti hai?
, standard normal; uske tail areas fixed hain, toh ek universal table har baar deta hai.
3 ka z-score tumhe kya batata hai?
Tumhara result expected se 3 standard deviations upar hai — right tail mein kaafi bahar, surprising.
Geometrically, p-value KYA hai?
Bell ke neeche tumhare result ke paar shaded tail area.
Teeno tail formulas do aur kab har ek use hota hai.
Two-tailed "different" ke liye; right "greater" ke liye; left "less" ke liye.
kya hai?
Pre-chosen threshold; reject karo agar p-value usse neeche gire (often 0.05).
P-value ke true hone ki probability kyun NAHI hai?
Yeh hai, nahi; bar ke sides interchangeable nahi hain.