Ye teen discrete probability distributions alag-alag types ke counting experiments ko model karti hain. Inhe samajhna classification, A/B testing, rare event prediction, aur ML mein Bayesian inference ke liye bahut zaroori hai.
pk(1−p)n−k kyun? Hume exactly k successes aur n−k failures chahiye. Agar trials independent hain, toh probability = (individual probabilities ka product).
(kn) kyun?k successes kisi bhi order mein aa sakte hain. n mein se k positions choose karne ke tarike hain (kn)=k!(n−k)!n!. Har arrangement ki same probability pk(1−p)n−k hai, isliye hum count se multiply karte hain.
Logistic Regression output: Bernoulli likelihood (binary labels ke liye P(y=1∣x) model karo).
A/B Testing: Conversion counts ke liye Binomial models. pA vs pB compare karo.
Anomaly Detection: Rare events ke liye Poisson (fraud, system failures). Agar observed count >> λ, toh anomaly flag karo.
Count Data Regression: Counts predict karne ke liye Poisson regression (# of purchases, # of bugs).
Naive Bayes with binary features: Har feature class ke conditional pe Bernoulli hai.
Recall Feynman Explanation (ELI12)
Socho tumhare paas ek magic coin hai. Jab tum ise ek baar flip karte ho, ya toh heads (success) aata hai ya tails (failure). Ye hai Bernoulli – ek flip, do outcomes.
Ab wahi coin 10 baar flip karo aur count karo kitne heads aaye. Ye hai Binomial – multiple flips, wins count karo. Math batata hai: "Agar mera coin 50-50 hai, toh 10 mein se exactly 7 heads aane ke kitne chances hain?" Formula mein do parts hain: ek kehta hai "is exact pattern (HHHHTT) ke kya chances hain?" aur doosra kehta hai "10 flips mein 7 heads kitne alag-alag tareekon se arrange ho sakte hain?"
Poisson super rare cheezoon ke liye hai. Jaise, "1000-page book mein kitne typos hain?" Tum 1000 coins flip nahi karte—har word mein typo ho sakta hai, lekin ye bahut unlikely hai. Poisson shortcut hai jab kisi rare cheez ke liye bazillion chances hon, aur tum sirf jaanna chahte ho "kitne dikhenge?" Cool part ye hai: average aur "spreadiness" same number hote hain!
Teeno counting ke baare mein hain, lekin sahi wala choose karo: ek flip = Bernoulli, fixed flips = Binomial, rare stuff jo bade space/time mein ho = Poisson.