सभी नोट्स

Random variables, distributions, CDFs and joint densities

गेट DA180 मिनट में पढ़ें

मुफ़्त प्रीव्यू: नोट का 28%

Random variables and the CDF

A random variable XX gives each outcome of an experiment a number.

  • A discrete random variable takes countably many values and has a PMF p(x)=P(X=x)p(x) = P(X = x).
  • A continuous random variable has a PDF f(x)≥0f(x) \ge 0 with P(a≤X≤b)=∫abf(x) dxP(a \le X \le b) = \int_a^b f(x)\,dx and ∫−∞∞f=1\int_{-\infty}^\infty f = 1.

The cumulative distribution function F(x)=P(X≤x)F(x) = P(X \le x) works for both kinds.

  • FF is non-decreasing and right-continuous, with F(−∞)=0F(-\infty) = 0 and F(∞)=1F(\infty) = 1.
  • P(a<X≤b)=F(b)−F(a)P(a < X \le b) = F(b) - F(a).
  • For a continuous XX: f(x)=F′(x)f(x) = F'(x), and P(X=a)=0P(X = a) = 0. So << and ≤\le give the same probabilities.
  • For a discrete XX: FF is a step function, and each jump equals P(X=x)P(X = x).

Example 1. F(x)=1−e−2xF(x) = 1 - e^{-2x} for x≥0x \ge 0.

  • The PDF is f(x)=2e−2xf(x) = 2e^{-2x}: an exponential distribution with rate 2.
  • P(1<X≤2)=e−2−e−4≈0.1353−0.0183=0.117P(1 < X \le 2) = e^{-2} - e^{-4} \approx 0.1353 - 0.0183 = 0.117.
  • The median mm solves 1−e−2m=121 - e^{-2m} = \frac12, so m=ln⁡22≈0.347m = \frac{\ln 2}{2} \approx 0.347. That is below the mean of 0.5, because the distribution is skewed right.

Example 2: a step CDF. XX takes the values 1, 2 and 4 with probabilities 0.2, 0.5 and 0.3. Then:

  • FF jumps to 0.2 at 1, to 0.7 at 2, and to 1 at 4;
  • F(3)=0.7F(3) = 0.7;
  • P(X>1.5)=1−0.2=0.8P(X > 1.5) = 1 - 0.2 = 0.8.

Expectation and variance rules

  • Definitions: E[X]=∑x p(x)E[X] = \sum x\,p(x) or ∫xf(x) dx\int x f(x)\,dx.
  • LOTUS: E[g(X)]=∑g(x)p(x)E[g(X)] = \sum g(x)p(x) or ∫g(x)f(x) dx\int g(x) f(x)\,dx. There is no need to find the distribution of g(X)g(X).
  • Linearity: E[aX+bY+c]=aE[X]+bE[Y]+cE[aX + bY + c] = aE[X] + bE[Y] + c. This always holds, even for dependent variables.
  • Variance: Var⁡(X)=E[X2]−(E[X])2\operatorname{Var}(X) = E[X^2] - (E[X])^2 and Var⁡(aX+b)=a2Var⁡(X)\operatorname{Var}(aX + b) = a^2\operatorname{Var}(X).
  • Var⁡(X+Y)=Var⁡X+Var⁡Y+2Cov⁡(X,Y)\operatorname{Var}(X + Y) = \operatorname{Var}X + \operatorname{Var}Y + 2\operatorname{Cov}(X, Y). The covariance term vanishes for independent variables.
  • For independent XX and YY: E[XY]=E[X]E[Y]E[XY] = E[X]E[Y].

Example 3. For XX in Example 2:

  • E[X]=0.2+1.0+1.2=2.4E[X] = 0.2 + 1.0 + 1.2 = 2.4;
  • E[X2]=0.2+2.0+4.8=7E[X^2] = 0.2 + 2.0 + 4.8 = 7;
  • Var⁡(X)=7−5.76=1.24\operatorname{Var}(X) = 7 - 5.76 = 1.24;
  • Var⁡(3X−5)=9×1.24=11.16\operatorname{Var}(3X - 5) = 9 \times 1.24 = 11.16.

The distributions to know

DistributionPMF / PDFMeanVariance
Bernoulli(pp)P(1)=pP(1) = p, P(0)=1−pP(0) = 1 - pppp(1−p)p(1 - p)
Binomial(n,pn, p)(nk)pk(1−p)n−k\binom{n}{k}p^k(1 - p)^{n-k}npnpnp(1−p)np(1 - p)
Geometric(pp): trials up to the first success(1−p)k−1p(1 - p)^{k-1}p, for k≥1k \ge 11/p1/p(1−p)/p2(1 - p)/p^2
Poisson(λ\lambda)e−λλk/k!e^{-\lambda}\lambda^k/k!λ\lambdaλ\lambda
Discrete uniform on {1,…,n}\{1, \dots, n\}1/n1/nn+12\frac{n + 1}{2}n2−112\frac{n^2 - 1}{12}
Uniform(a,ba, b)1b−a\frac{1}{b - a}a+b2\frac{a + b}{2}(b−a)212\frac{(b - a)^2}{12}
Exponential(λ\lambda)λe−λx\lambda e^{-\lambda x}1/λ1/\lambda1/λ21/\lambda^2
Normal(μ,σ2\mu, \sigma^2)1σ2πe−(x−μ)2/2σ2\frac{1}{\sigma\sqrt{2\pi}}e^{-(x - \mu)^2/2\sigma^2}μ\muσ2\sigma^2
χk2\chi^2_ksum of kk squared standard normalskk2k2k
tνt_\nuZ/χν2/νZ/\sqrt{\chi^2_\nu/\nu}0 (for ν>1\nu > 1)νν−2\frac{\nu}{\nu - 2} (for ν>2\nu > 2)

Discrete examples

Example 4: binomial. With n=5n = 5 and p=0.3p = 0.3: P(X=2)=(52)(0.3)2(0.7)3=10×0.09×0.343=0.3087P(X = 2) = \binom52(0.3)^2(0.7)^3 = 10 \times 0.09 \times 0.343 = 0.3087.

Example 5: Poisson. Calls arrive at λ=3\lambda = 3 per minute.

  • P(0)=e−3≈0.0498P(0) = e^{-3} \approx 0.0498.
  • P(X≤1)=e−3(1+3)=4e−3≈0.199P(X \le 1) = e^{-3}(1 + 3) = 4e^{-3} \approx 0.199.
  • P(X≥2)=1−0.199=0.801P(X \ge 2) = 1 - 0.199 = 0.801.

आपने इस नोट का मुफ़्त 28% हिस्सा पढ़ लिया

आगे पढ़ने के लिए Google से साइन इन करें। यह मुफ़्त है, एक टैप में होता है, और साथ में मिलता है:

  • इस नोट से 7 अभ्यास सवाल
  • हर नोट पूरा, साथ में PDF लाइब्रेरी
  • आधिकारिक पिछले पेपर समय-सीमा वाले टेस्ट की तरह, व्याख्या के साथ
  • डाउट के लिए AI ट्यूटर, हिंदी या अंग्रेज़ी में
  • आपकी प्रगति, गलतियाँ और स्टडी प्लान हर डिवाइस पर सेव
आगे पढ़ें, मुफ़्त