1.3.12 · HinglishProbability & Statistics

Uniform, Exponential, and Beta distributions

3,040 words14 min readRead in English

1.3.12 · AI-ML › Probability & Statistics

Core Intuition

The Uniform Distribution

Derivation from First Principles

WHY uniform? Hum "no preference" chahte hain—probability density ke across constant honi chahiye aur baaki jagah zero.

WHAT does that mean mathematically? Maano constant density hai. Chunki probability ka integrate hokar 1 aana zaroori hai:

HOW do we solve?

Key Properties (Derived)

Expected Value:

WHY? Mean bilkul midpoint hai—ek symmetric distribution ke liye yeh samajh mein aata hai!

Variance:

WHY this matters? Variance range ke square ke saath badhti hai—wider intervals matlab zyada uncertainty.

Figure — Uniform, Exponential, and Beta distributions

The Exponential Distribution

Derivation from Poisson Process

WHY exponential? Poisson process mein, events independent hote hain aur constant rate par hote hain. Kya probability hai ki time mein koi event NA ho?

Poisson distribution se:

WHAT is the CDF? Probability ki pehla event time se PEHLE aaye:

HOW do we get the PDF? CDF ko differentiate karo:

The Memoryless Property

CLAIM:

WHY is this profound? "Agar aap time units wait kar chuke ho bina kisi event ke, toh agle time tak wait karne ki probability waisi hi hai jaise aapne abhi shuru kiya ho." Process apna past "bhool" jaata hai.

Proof:

WHERE does this matter? Exponential AKELA continuous distribution hai jisme yeh property hoti hai. Radioactive decay, server requests ke beech time, ya constant hazard rate wale components ki failure model karta hai.

Deriving the Mean:

Integration by parts use karo: ,

WHY this makes sense? Agar events rate per hour par hote hain, toh events ke beech average time hour = 12 minutes hoga.

The Beta Distribution

Derivation from the Conjugate Prior Perspective

WHY does Beta exist? Maano hum ek coin flip kar rahe hain jiska bias unknown hai. heads aur tails observe karne ke baad, ke baare mein humara belief kaunsi distribution describe karta hai?

WHAT form should it take? Hum chahte hain:

  1. par support (kyunki ek probability hai)
  2. Different beliefs represent karne ki flexibility (uniform ignorance, strong certainty, etc.)
  3. Mathematical convenience (Binomial ka conjugate)

Beta function distribution ko normalize karta hai:

jahan integers ke liye.

Understanding Shape via Parameters

HOW do aur shape control karte hain?

  • : — poori ignorance
  • : Distribution 1 ki taraf skewed (zyada successes observed)
  • : Distribution 0 ki taraf skewed (zyada failures observed)
  • : Unimodal (single peak)
  • : U-shaped (bimodal, extremes ke paas certainty)
  • Large : Narrow distribution (high confidence)

Deriving the Mean:

Integral hai:

WHY this makes sense? Agar aap heads aur tails observe karo, toh aap expect karte ho ki true probability ke paas hogi, jo large counts ke liye ke kareeb aa jaati hai.

Connections Between the Three

Property Uniform Exponential Beta
Support
Use case Koi prior info nahi Waiting times Probabilities
Memoryless? Nahi Haan Nahi
Shape Constant Decreasing Flexible
Special cases Uniform = Beta Exp = Gamma Beta = Uniform

Recall Feynman Explanation (ek 12-saal ke bachche ke liye)

Socho tumhare paas teen jaadui paasey hain: The Flat Die (Uniform): Har number ka bilkul same chance hai. Bilkul ek perfectly fair spinner ki tarah—koi cheating nahi, har jagah equally likely. Hum isko tab use karte hain jab hamare paas zero information ho aur hum completely fair rehna chahte hon.

The Forgetful Die (Exponential): Yeh waiting model karta hai. Jaise next bus ka intezaar karna. Ajeeb baat? Koi farak nahi padta kitna intezaar kiya—agli minute mein bus aane ka chance HAMESHA same rehta hai. Yeh aise hai jaise universe ko amnesia hai! Yeh radioactive atoms ke decay hone ya customers ke randomly store par aane jaisi chezon ke liye kaam karta hai.

The Belief Die (Beta): Yeh probabilities guess karne ke baare mein hai. Socho tum figure out karne ki koshish kar rahe ho ki ek coin fair hai ya nahi. Tum isey kuch baar flip karte ho. Beta distribution describe karta hai ki tum kitne confident ho ki true "heads probability" kya hai. Zyada data milta hai? Beta update hoti hai, zyada confident aur accurate hoti jaati hai. Yeh aise hai jaise tumhara brain har flip ke saath smarter hota jaata hai!


Connections


#flashcards/ai-ml

Uniform, Exponential, aur Beta distributions ke support (valid ranges) kya hain? :: Uniform: (finite interval), Exponential: (non-negative reals), Beta: (unit interval)

Uniform ka PDF kya hai?
for , zero otherwise. Constant ensure karta hai total probability = 1.

Uniform ka mean aur variance kya hai? :: Mean: (midpoint), Variance: (range ke square ke saath badhta hai)

Exponential distribution ki memoryless property kya hai?
— agle time tak wait karne ki probability independent hai ki aap kitna pehle se wait kar rahe ho.
Exponential ka PDF kya hai?
for , jahan rate parameter hai (events per unit time).
Exponential mein rate aur mean waiting time ka kya relation hai?
Mean . Zyada rate → chhota average wait. Agar events/hour, average wait hour = 15 minutes hai.
Exponential ka CDF kya hai?
for . Time ke andar event hone ki probability find karne ke liye use hota hai.
Beta ka PDF kya hai?
for , jahan normalizing Beta function hai.
Beta ka mean kya hai?
. Agar , mean = .
Beta naye Binomial data ke saath kaise update hota hai?
Agar prior Beta hai aur trials mein successes observe hote hain, toh posterior hai Beta. Yahi conjugacy hai!
Beta kiske barabar hai?
Uniform. Yeh ek probability ke baare mein poori ignorance represent karta hai— mein har value equally likely.
Jab dono parameters large hon toh Beta ki shape kya hoti hai?
Distribution zyada concentrated ho jaati hai (lower variance), high confidence represent karta hai. Example: Beta 0.5 par tightly peaked hoti hai.
Beta mein kya indicate karta hai?
Distribution 1 ki taraf skewed hoti hai (right-skewed), matlab successes ke failures se zyada evidence hai. Mean .
Simulation mein Uniform kyun important hai?
Zyaadatar random number generators Uniform samples produce karte hain. Inhe inverse transform sampling se KISI BHI doosri distribution mein transform kiya ja sakta hai: jahan .
Beta ka mode kya hai jab ho?
Mode . Yeh distribution ka peak hai, sabse likely value.
Exponential akela memoryless continuous distribution kyun hai?
Memoryless property ek functional equation ke zariye exponential distribution ko uniquely characterize karti hai jo form force karta hai.
ML mein initialization ke liye Uniform kaun si application use karta hai?
Xavier/Glorot initialization Uniform use karta hai neural network weights initialize karne ke liye, gradient variance stable rakhne ke liye.
Thompson Sampling kya hai aur Beta kaise help karta hai?
Thompson Sampling multi-armed bandits ke liye: har arm ke liye Beta maintain karo, har Beta se sample lo, highest sample wala arm pull karo. Beta naturally exploration (uncertain arms zyada vary karte hain) aur exploitation (high-mean arms favored hoti hain) balance karta hai.

Concept Map

integrate to 1

PDF

mean

variance

applied in

Xavier sampling

defines

models

continuous analog of

models uncertainty in

conjugate prior for

enables

No preference density

Uniform Distribution

f = 1 over b-a

mu = a+b over 2

Var = b-a squared over 12

Random Initialization

Neural Net Weights

Memoryless property

Exponential Distribution

Waiting times between events

Geometric Distribution

Beta Distribution

Probabilities themselves

Bernoulli and Binomial

Elegant Bayesian Updates