4.9.7 · D4 · HinglishProbability Theory & Statistics

ExercisesContinuous random variables — PDF, CDF, percentiles

2,901 words13 min read↑ Read in English

4.9.7 · D4 · Maths › Probability Theory & Statistics › Continuous random variables — PDF, CDF, percentiles


Level 1 — Recognition

Inhe tum ek definition padh ke answer kar sakte ho, compute karke nahi.

Exercise 1.1

par valid PDF kaun sa ho sakta hai? Har ek ke liye yes/no aur kyun batao.

  • (a) on , baaki jagah .
  • (b) on , baaki jagah .
  • (c) on , baaki jagah .
Recall Solution 1.1

PDF ke liye do cheezein chahiye: har jagah, aur total area .

(a) NO. par negative hai (jaise par, ). Density kabhi negative nahi ho sakti — density matlab "probability kitni tightly packed hai," aur tum negative amount pack nahi kar sakte. Condition 1 fail.

(b) NO. Yeh non-negative hai, theek hai. Lekin area ek rectangle hai jiska height , width , toh area . Total probability zyada ho gayi. Condition 2 fail.

(c) YES. Non-negative ✓. Area = rectangle height , width , toh ✓. Dhyan do height hai — yeh allowed hai, kyunki sirf area ko hona chahiye.

Exercise 1.2

ek CDF hai. Blanks bharo: jab , ; jab , ; aur hamesha non-______ hoti hai.

Recall Solution 1.2

(far left se abhi koi area collect nahi hua), (poora area collect ho gaya), aur hamesha non-decreasing hoti hai — kyunki hai, number line mein aur add karne se area sirf badh sakta hai, kam nahi ho sakta.

Exercise 1.3

Ek continuous RV ke liye, kya equal hai ke, ya ke?

Recall Solution 1.3

. Ek single point ek zero-width interval hai, aur . Value ek density hai, probability nahi — dono ko confuse mat karo.


Level 2 — Application

Formula lagao: integrate karo, differentiate karo, evaluate karo.

Exercise 2.1

Maano on , baaki jagah . (a) Verify karo ki yeh valid PDF hai. (b) CDF nikalo (teeno pieces). (c) compute karo.

Recall Solution 2.1

(a) on ✓. Area: ✓. Kyun: yahi exactly do PDF conditions hain.

(b) Left edge se area accumulate karo: ke liye, Support ke neeche kuch accumulate nahi hua; uske upar sab kuch ho gaya: Teen pieces kyun: parent note ka "support tak restrict karo" rule — support se pehle aur baad mein hona chahiye.

(c) use karo:

Exercise 2.2

Diya hai for (aur for ). PDF nikalo.

Recall Solution 2.2

PDF area accumulate hone ki rate hai, isliye Fundamental Theorem of Calculus se, (dekho Fundamental Theorem of Calculus): aur for . Yeh rate wali Exponential distribution hai.

Exercise 2.3

Usi ke liye, median nikalo.

Recall Solution 2.3

Median solves : Kyun: median 50th percentile hai; hum CDF ko invert karte hain, PDF ko kabhi nahi.


Level 3 — Analysis

Ab tumhe khud tool choose karna hai aur har case dhyan se dekhna hai: support edges, signs, degenerate widths.

Exercise 3.1

uniform hai par, matlab (ek constant) on aur elsewhere. (a) nikalo. (b) Sabhi ke liye nikalo. (c) , median, aur nikalo.

Recall Solution 3.1

(a) Area hona chahiye. Support ki width hai, toh uske upar height ka rectangle area deta hai. set karo.

(b) ke liye, left edge se area accumulate karo: Poori definition:

Figure s01 dekho. Accent-red curve CDF hai: ek seedha ramp jo par height se par height tak utha hai. Dashed guide-lines ramp se neeche -axis tak teeno quartile values par girti hain — har woh jagah hai jahan ramp height , , cross karta hai. Constant density constant slope deta hai, isliye seedha ramp milta hai.

Figure — Continuous random variables — PDF, CDF, percentiles

(c) set karo aur linear equation solve karo:

  • : .
  • Median: .
  • : . Yeh evenly spaced hain — uniform distribution ki pehchaan.

Exercise 3.2

Ek student on (baaki jagah ) ko density propose karta hai. (Yeh ek V-shape hai, toh dono sides alag-alag dekho.) (a) Check karo yeh valid PDF hai ya nahi; agar nahi, toh constant nikalo jo ko valid banaye. (b) Corrected density use karke, support par nikalo — tumhe aur alag-alag handle karne honge. (c) compute karo.

Recall Solution 3.2

(a) Proposed density VALID NAHI HAI — yeh exercise deliberately baited hai. Corner par split karo kyunki ke liye aur ke liye : Toh ka total area hai — yeh PDF condition 2 fail karta hai. Task ise repair karna hai, pretend nahi karna ki yeh correct tha. likho aur choose karo taaki area ho: Toh valid density hai (ends par height ). Hum yahi corrected parts (b) aur (c) ke liye use karte hain. (Symmetry hamare liye har step mein right half ko double karna possible banati hai.)

(b) Figure s02 dekho. Black V corrected PDF hai. Accent-red dot corner at mark karta hai jahan formula (left) se (right) switch hota hai; shaded left wedge ka area hai, isliye jab tak hum par pohonchte hain humne bank kar liya hai. Right wedge (lighter shading) remaining supply karta hai.

Figure — Continuous random variables — PDF, CDF, percentiles

ke liye, left edge se accumulate karo, jahan : Sanity check: ✓, ✓ (half area left half par hai). ke liye, already banked se continue karo, ab ke saath: Sanity check: ✓.

(c) Symmetry se middle band hai:


Level 4 — Synthesis

PDF, CDF, percentiles aur expectation ek problem mein combine karo.

Exercise 4.1

for , baaki jagah . (a) nikalo. (b) Median nikalo. (c) 90th percentile nikalo. (d) Kya mean exist karta hai (finite)?

Recall Solution 4.1

(a) Left edge se accumulate karo: aur for . PDF integrate karne se CDF kyun milta hai: definition se par CDF exactly ke neeche tak ka total area hai. Kyunki support par start hota hai, se neeche koi area nahi hai, isliye accumulation left edge par start hota hai; se tak integrate karna literally abhi tak collect hua saari density sum karta hai, jo "at most hone ki probability" ka exactly matlab hai.

(b) Median: .

(c) 90th percentile: .

(d) Dekho Expectation and Variance of continuous RVs: Yeh exist karta hai aur ke barabar hai. (Heavy tails mean ko diverge kara sakti hain, lekin yahan integrand itna fast decay karta hai ki mean finite hai.)

Exercise 4.2

standard normal hai jiska CDF hai. Tumhe bataya gaya hai aur . Sirf inhi facts se, nikalo (a) 90th percentile, (b) 10th percentile, (c) interquartile range . Symmetry use karo.

Recall Solution 4.2

(a) Definition se 90th percentile solve karta hai, toh .

(b) 10th percentile solve karta hai. Symmetry use karke, , toh . Kyun: standard normal ke baare mein symmetric hai, isliye 10th aur 90th percentiles mirror images hain.

(c) aur . Symmetry se . Toh


Level 5 — Mastery

Tool banao, phir use ulta use karo.

Exercise 5.1 — Inverse-transform sampling

Tumhare paas ek random-number generator hai jo , par uniform, produce karta hai. Tum ek value produce karna chahte ho jiska CDF ho (exponential, rate ). Recipe (dekho Quantile function and inverse-transform sampling) yeh hai: set karo. (a) Formula explicitly derive karo. (b) Agar generator output kare, toh kya hai? (c) Ek sentence mein explain karo ki kyun uniform ko se feed karne par sahi distribution milti hai.

Recall Solution 5.1

(a) kyun invert karte hain: recipe kahti hai , toh humein woh rule chahiye jo, ek target cumulative probability diya ho, woh return kare jiska CDF ke barabar ho. Yahi exactly " ko ke liye solve karo" hai. set karo aur step by step unwind karo: Toh . Har manipulation ka ek operation peel back karti hai ( se subtract karo, log lo, se divide karo) taaki ko desired probability ke terms mein express kiya ja sake — yahi "CDF ko invert karna" ka matlab hai.

(b) plug in kyun karte hain: generator ka output wahi cumulative probability hai jo hum ko dete hain. feed karna poochta hai "woh kaun sa hai jiske neeche half probability hai?" — yaani median: Jaise expected tha, ka middle point ke median par map hota hai.

(c) Is step ke liye ka apne support par strictly increasing hona zaroori hai taaki ek genuine (single-valued, invertible) function ke roop mein exist kare. Yahan for all , toh strictly increasing hai par aur genuinely invertible hai — yahi equivalence ko license karta hai. Yeh guaranteed hone par: jahan last step yeh use karti hai ki uniform hai, toh . Output ka CDF exactly hai, jaisa chahiye tha.

Exercise 5.2 — Design a density to a spec

Ek constant aur support upper limit nikalo taaki on (baaki jagah ) ek valid PDF ho jiska median ho. aur do.

Recall Solution 5.2

Do unknowns ke liye do equations chahiye.

Equation 1 (valid PDF — total area ):

CDF: ke liye, left edge se accumulate karo aur substitute karo: (Dhyan do: hai, nahi drop nahi hona chahiye.)

Equation 2 (median at ): set karo:

Phir Equation 1 se,

Answer: , , yaani on . Check: median jahan ✓; total area ✓.

Exercise 5.3 — Mixed / piecewise support

(a) Confirm karo ki total area . (b) Sabhi pieces par nikalo. (c) Median nikalo.

Recall Solution 5.3

(a) Do rectangles: ✓.

(b) Figure s03 dekho. Left panel PDF hai — do flat levels (height phir ). Right panel accent-red CDF hai: yeh par ek steep ramp (slope ) ki tarah chadhta hai, phir par ek gentler ramp (slope ) mein bend hota hai; ramp ka slope exactly local density hai. Red dot par woh seam mark karta hai jahan abhi tak pohonchi hai — yahi median hai.

Figure — Continuous random variables — PDF, CDF, percentiles
  • : .
  • : . par, .
  • : banked carry karo, phir second rectangle add karo: . par, ✓.
  • : .

(c) Hum chahte hain. Lekin exactly par pohonchti hai (pehle ramp ka end). Toh median hai. (Half area mein hai, half mein — corner exactly balance point hai.)


Connections

Level Map

L1 Recognition: is it a PDF

L2 Application: integrate and differentiate

L3 Analysis: piecewise support and quartiles

L4 Synthesis: percentiles plus mean

L5 Mastery: invert F and design a density