4.9.17 · D3 · HinglishProbability Theory & Statistics

Worked examplesStatistical estimation — MLE, method of moments

3,752 words17 min read↑ Read in English

4.9.17 · D3 · Maths › Probability Theory & Statistics › Statistical estimation — MLE, method of moments

Shuru karne se pehle, char chhoti reminders taaki koi bhi symbol unclear na rahe:

  • observed numbers hain (the data). yeh batata hai ki kitne hain.
  • sample mean hai — bas "sab jodo, kitne hain us se divide karo".
  • (theta with a hat) matlab hai "true hidden number ka hamara guess". Hat ka matlab hamesha data se estimate kiya gaya hota hai.
  • likelihood hai: aap har data point ki density (ya probability) multiply karte ho, data ko fixed maanke aur ko woh dial maanke jise aap ghuma rahe ho. Yeh jawab deta hai "yeh kitna believable hai, jo maine dekha usse?" — dekho parent note. Kyunki bahut saare chhote numbers ka product differentiate karna mushkil hota hai, hum ise log karte hain:
  • log-likelihood hai. Kyunki strictly increasing hai, woh jo maximize karta hai wahi bhi maximize karta hai — lekin sum, product se kaafi aasaan hota hai. Dekho Logarithms.

The scenario matrix

Har estimation problem jo aap miloge woh in case classes mein se kisi ek mein aata hai. Table unhe list karta hai aur us worked example ki taraf point karta hai jo har ek ko cover karta hai.

# Case class Kya mushkil banata hai Example jo cover karta hai
A Standard continuous, 1 parameter baseline — differentiate & solve Ex 1 (Exponential rate)
B Discrete count data pmf density nahi; factorials Ex 2 (Poisson)
C Do parameters ek saath system of equations Ex 3 (Normal )
D Boundary / support parameter derivative = 0 koi answer nahi deta Ex 4 (Uniform )
E MoM aur MLE disagree karte hain do recipes, do answers Ex 5 (Uniform, MoM vs MLE)
F Degenerate sample (sab equal hain, ya ek zero) estimator blow up hota hai ya edge pe pin hota hai Ex 6 (Exponential with )
G MoM illegal (out-of-range) value deta hai answer parameter constraints violate karta hai Ex 7 (Binomial, unknown with fixed )
H Real-world word problem English → likelihood mein translate karo Ex 8 (call-centre waiting times)
I Bias check / exam twist kya "obvious" estimator honest hai? Ex 9 (variance divisor vs )
J Invariance twist manga gaya hai, nahi Ex 10 (median lifetime from )

Ab hum har cell walk karenge.


Ex 1 — Case A: Exponential rate (baseline warm-up)

  1. Likelihood, phir log-likelihood. , toh . Yeh step kyun? Independence ki wajah se ek product ban jaata hai (upar di gayi definition); logging se woh product ek friendly sum mein badal jaata hai.
  2. Differentiate karo, zero pe set karo (the score equation). . Yeh step kyun? Ek smooth hill ka peak zero slope pe hota hai; solve karna woh peak dhundta hai.
  3. Solve karo. . Yahan , , toh per year. Yeh step kyun? Pure algebra — ko isolate karo.
  4. Confirm karo ki yeh maximum hai. for all . Yeh step kyun? Zero-slope point valley bhi ho sakta hai; negative second derivative prove karta hai ki yeh hilltop hai.

Ex 2 — Case B: Poisson counts (discrete data)

  1. Likelihood (pmf values ka product). . Yeh step kyun? Discrete data ke liye, hamare likelihood definition mein bas ek probability hai; hum phir bhi multiply karte hain kyunki trials independent hain.
  2. Log-likelihood. . Yeh step kyun? Aakhri term mein constant hai (andar koi nahi), toh differentiate karne par yeh gayab ho jaayega — hum ise sirf honesty ke liye rakhte hain. ke liye dekho Logarithms.
  3. Differentiate & solve. . Yahan , , toh . Yeh step kyun? Peak ka zero slope hai; constant term promise ke mutabiq drop ho gaya.
  4. Second-derivative check. (kyunki hai). True maximum. ✓

Ex 3 — Case C: Normal, do parameters ek saath

  1. Log-likelihood. . Yeh step kyun? Parent note ki normal density, logged.
  2. Pehla score: mein differentiate karo. . Yeh step kyun? Do unknowns hone par ko fixed rakho aur ko top tak slide karo — ek partial derivative. multiplier positive hai toh yeh change nahi karta ki zero kahan hai.
  3. Doosra score: mein differentiate karo. . Yeh step kyun? Ab ko slide karo ko pe pin karke. plug karo: deviations hain , squares , toh .
  4. Confirm karo ki yeh maximum hai (multivariate check). pe Hessian (second derivatives ka matrix) diagonal hai: aur ( pe evaluate karke, use karke), stationary point pe zero cross-term ke saath. Yeh step kyun? Do dimensions mein zero-gradient point saddle bhi ho sakta hai. Negative-definite Hessian (yahan: dono diagonal entries negative aur cross-term zero, toh dono eigenvalues negative) prove karta hai ki yeh genuine peak hai, na saddle na valley.

Ex 4 — Case D: Boundary parameter, jahan differentiation JHOOTH BOLTA HAI

Yahan geometry kaam karta hai, algebra nahi — toh steps padhne se pehle figure ko dhyaan se study karo.

Figure — Statistical estimation — MLE, method of moments

Yeh figure kaise padhein. Horizontal axis hai, upper bound ka candidate value. Vertical axis likelihood hai page ke upar hamare definition se. Teen cheezein drawn hain:

  • Baayein coral shaded band () illegal region hai: agar sabse bade data value se chhota hai, toh woh data point ke bahar gir jaata hai, uski density ho jaati hai, aur poora product collapse ho jaata hai tak.
  • Lavender curve () hai, jo steadily neeche ki taraf slope karta hai — bada hamesha chhoti likelihood deta hai.
  • Red dot peak mark karta hai: yeh exactly legal region ke left edge par baith jaata hai, . Yahan koi smooth "top of a hill" nahi hai; maximum ek corner hai.
  • Bottom par mint ticks char data points hain; note karo ki peak sabse bade par land karta hai.
  1. Likelihood. lekin sirf tab jab har ho; warna koi factor hai aur (figure mein coral band). Yeh step kyun? Support () wahan hai jahan tricky part chhupa hai. Agar sabse bade data point se chhota hai, toh woh point model ke under "impossible" tha, poore product ko khatam kar deta hai.
  2. Log-likelihood, likha hua. ke liye hamare paas hai, toh . ke liye, aur (zero ka log). Yeh step kyun? Derivative ke baare mein baat karne se pehle hume explicitly chahiye. use karke (dekho Logarithms) clean mein badal jaata hai.
  3. Picture dekho, derivative nahi. Legal piece differentiate karne par milta hai, jo ke liye kabhi zero nahi hota. Toh score equation ka koi solution nahi hai. Iske bajaaye lavender curve padho: strictly decreasing hai, toh chahta hai jitna chhota ho sake — lekin usse at least rehna hi padhega. Yeh step kyun? Differentiation yeh maximum nahi dhundh sakta; peak allowed region ke edge par baith jaata hai, aur sirf graph hi ise reveal karta hai.
  4. Maximizer padho. Sabse badi with sabse chhote legal par milti hai: (red dot). Yeh step kyun? Ek monotone-decreasing curve par, tak restricted, top left end par hai.

Ex 5 — Case E: MoM vs MLE disagree karte hain (wahi uniform)

  1. Population mean. (interval ka centre). Yeh step kyun? Ek parameter → ek moment match karo (pehla). Law of Large Numbers dekho ki kyun .
  2. Sample mean se match karo. . Yahan , toh . Yeh step kyun? Theoretical moment ko measured moment ke equal set karo, solve karo.
  3. Compare karo. MLE ne kaha, MoM ne kaha. Yeh kyun matter karta hai? Dono "reasonable" hain, lekin MoM yahan zyada variable hai aur doosre samples par se neeche bhi ja sakta hai — jo logically impossible hoga (aap nahi rakh sakte jab aapne already ek dekh liya).

Ex 6 — Case F: Degenerate sample (estimator blow up karta hai)

  1. Directly compute karo. , toh per unit time. Yeh step kyun? Bas Ex 1 ka formula apply karo.
  2. Limiting behaviour. Jab , . Yeh step kyun? Near-zero lifetimes ka pile matlab hai "cheezein almost instantly fail ho jaati hain" → bahut bada failure rate. Model sensibly respond karta hai, lekin estimate unbounded hai.
  3. True degenerate case se guard karo. Agar har exactly hai, undefined hai (). Physically matlab hai "kabhi koi time nahi guzarta" — exponential model toot gaya hai; aapko model reject karna hoga, report nahi karna. Yeh step kyun? Matrix ki genuinely-degenerate cell cover karna: zero-mean sample ek modelling red flag hai, koi number nahi.

Ex 7 — Case G: MoM illegal (out-of-range) value produce karta hai

  1. Honest MoM (first moment). , toh . Yahan , , deta hai . ✓ Yeh step kyun? Ek parameter → pehla moment match karo; mean equation respect karta hai kyunki hamesha hota hai.
  2. Flawed MoM (variance match karo instead). Sample variance ( se divide karke) hai. Yahan hai, aur hai, toh sample variance hai . Model variance iske equal set karo: , yani . Yeh step kyun? Yeh ek legitimate-looking alternative moment equation hai — lekin variance ignore karta hai ki ceiling ke kitna paas hai, toh yeh ko kisi silly jagah bhej sakta hai.
  3. Quadratic solve karo. . Numerically do roots hain aur . Yeh step kyun? Variance equation mein quadratic hai, toh yeh do candidate answers deta hai — pehle se hi mean equation ke single clean root se bura. Bada root ek mean predict karta hai, mean-based se disagree karta hua; ab aapko choose karna padega, aur MoM koi principled tarika nahi deta.
  4. Genuinely illegal case expose karo. Model variance kabhi bhi apne maximum ( par milta hai) se zyada nahi ho sakta. Toh agar kisi sample ki variance 2 se badi ho, equation mein square root ke andar hoga — koi real solution nahi, yani complex nikaega, isliye bilkul illegal. Yeh kyun matter karta hai? Yeh woh cell hai jahan MoM apna bura naam kamaata hai: "galat" moment aapko do roots ka ambiguous pair de sakta hai ya, jab sample variance model ceiling se zyada ho, koi legal value hi nahi. MLE, jo support aur full likelihood ko respect karta hai, kabhi out-of-range answer nahi de sakta.

Ex 8 — Case H: Real-world word problem

  1. English ko model mein translate karo. "Random events ke beech ka time" → Exponential(), jahan = calls per minute, density . Yeh step kyun? Distribution choose karna asli skill hai; algebra dobara Ex 1 wala hai. Dekho Probability Distributions.
  2. compute karo. minutes. Yeh step kyun? Exponential ka MLE data pe sirf sample mean ke through depend karta hai, toh yeh ek hi number hai jo hume chahiye.
  3. Log-likelihood, phir solve karo (Ex 1 reuse karo). ; set karne par milta hai. Yeh step kyun? Ex 1 se identical machinery; hum result quote karte hain rather than scratch se re-derive karne ke.
  4. (a) Rate. calls per minute. Yeh step kyun? mein direct substitution.
  5. (b) Mean wait. Exponential mean hi hai, toh estimated mean wait hai minutes. Yeh step kyun? MLE invariance se, ka MLE hai (parent note) — yahan .

Ex 9 — Case I: Bias check / exam twist

Figure — Statistical estimation — MLE, method of moments

Yeh figure kaise padhein. Imagine karo ki poora experiment hazaaron baar repeat kiya; har baar aap ek variance estimate compute karte ho. Do coloured humps dikhate hain ki woh estimates kaise spread out hote hain. Coral hump MLE hai ( se divide karke): iska centre true mark karne wali dashed vertical line ke baayein baith jaata hai — average par yeh under-shoot karta hai. Mint hump unbiased estimator hai ( se divide karke): iska centre dashed line par baith jaata hai. Coral hump ka woh leftward shift exactly bias hai.

  1. Bias fact. , toh MLE average par underestimate karta hai. Yeh step kyun? Variance + bias mein split karna dikhata hai ki se divide karna estimate ko shrink karta hai (dekho Bias and Variance). Picture coral cloud ko true ke baayein baitha dikhati hai.
  2. Divisor fix karo. se multiply karo: unbiased estimator hai . Yeh step kyun? — correction exactly shrink cancel kar deta hai.
  3. Numbers. Sum of squared deviations (Ex 3 se). Unbiased: . Yeh step kyun? Wahi numerator, ki jagah se divide karo.

Ex 10 — Case J: Invariance twist ( manga gaya hai)

  1. Invariance shortcut. Agar , ka MLE hai, toh kisi bhi function ke liye, , ka MLE hai (parent note). Yeh step kyun? Yeh hume ek poori nayi likelihood re-differentiate karne se bachata hai — hum bas ko median formula mein plug karte hain.
  2. Function. (rate ka function ke roop mein median). ke liye dekho Logarithms. Yeh step kyun? identify karo, phir invariance apply karo.
  3. Plug in karo. years. Yeh step kyun? ka direct substitution.

Recall Har cell ka ek-line summary

Smooth 1-param ke liye differentiate & solve (A), counts ke liye same (B) aur do params ke liye (C); support parameters ke liye boundary inspect karo (D); MoM & MLE disagree kar sakte hain (E); degenerate samples guard karo jahan estimates blow up hote hain (F); MoM out of range ja sakta hai (G); word problems model-choice + Ex 1 hain (H); MLE variance biased hai, se fix karo (I); ke liye invariance se reuse karo (J).

Reveal-yourself checks:

se Exponential ka MLE?
.
Poisson MLE from data mean ?
.
MLE derivative kyun ignore karta hai?
kabhi zero nahi hota; maximum boundary par baith jaata hai.
Ex 3 data ke liye unbiased variance?
( se divide karo).
se exponential median ka MLE?
years (invariance se).