Unit 5 - Special Continuous Random Variables: Uniform, Normal, and Exponential Distributions

Continuous Uniform Random Variable


  • Definition and Probability Density Function (PDF):

    • A continuous random variable XX is uniformly distributed on the real interval [a,b][a, b], denoted as X∼CUnif(a,b)X \sim \text{CUnif}(a, b), if its probability density function is constant over the interval and zero elsewhere:         fX(x)={1b−afor x∈[a,b]0otherwisef_X(x) = \begin{cases} \frac{1}{b-a} & \text{for } x \in [a, b] \\ 0 & \text{otherwise} \end{cases}

    • The total area under fX(x)f_X(x) over [a,b][a, b] equals 11, representing a rectangle of base length (b−a)(b - a) and height 1b−a\frac{1}{b - a}.

  • Comparison: Discrete vs. Continuous Uniform:

    • Discrete Uniform: The probability mass function (PMF) of a discrete uniform random variable takes isolated values across integer outcomes from aa to bb, with equal mass at each point:         pX(x)=1b−a+1p_X(x) = \frac{1}{b - a + 1}

    • Continuous Uniform: Probability mass is spread continuously over the real continuum [a,b][a, b], and the probability of obtaining any exact single real point is 00.

Discrete Uniform PMFContinuous Uniform PDF
  • Expected Value and Variance:

    • Mean (Expected Value): The center of symmetry of the interval:         E(X)=a+b2E(X) = \frac{a + b}{2}

    • Variance: A measure of spread across the interval length:         Var(X)=(b−a)212\text{Var}(X) = \frac{(b - a)^2}{12}

  • Worked Example: Train Station Arrival Problem:

    • Scenario: Trains arrive at a station every 30 minutes30\,\text{minutes} starting at 6:00 AM (i.e., scheduled at 6:00 AM, 6:30 AM, 7:00 AM, 7:30 AM, and so on). A passenger arrives at the station at a time XX uniformly distributed between 6:00 AM and 7:00 AM.

    • Model Setup:

      • Let arrival time XX be measured in minutes past 6:00 AM, so X∼CUnif(0,60)X \sim \text{CUnif}(0, 60).

      • Interval bounds: a=0a = 0, b=60b = 60.

      • PDF: fX(x)=160−0=160f_X(x) = \frac{1}{60 - 0} = \frac{1}{60} for x∈[0,60]x \in [0, 60].

      • Train departure times within the hour are at t=0 mint = 0\,\text{min} (6:00 AM), t=30 mint = 30\,\text{min} (6:30 AM), and t=60 mint = 60\,\text{min} (7:00 AM).

    • Part a: Probability of waiting less than 10 minutes10\,\text{minutes}:

      • To catch the 6:30 AM train with a wait under 10 minutes10\,\text{minutes}, the passenger must arrive between 6:20 AM and 6:30 AM (x∈(20,30)x \in (20, 30)).

      • To catch the 7:00 AM train with a wait under 10 minutes10\,\text{minutes}, the passenger must arrive between 6:50 AM and 7:00 AM (x∈(50,60)x \in (50, 60)).

      • Because these two arrival intervals are disjoint, the joint probability is the sum of their individual probabilities:             P(wait<10)=P(20<X<30)+P(50<X<60)P(\text{wait} < 10) = P(20 < X < 30) + P(50 < X < 60)             P(wait<10)=10⋅160+10⋅160=2060=26=13≈33%P(\text{wait} < 10) = 10 \cdot \frac{1}{60} + 10 \cdot \frac{1}{60} = \frac{20}{60} = \frac{2}{6} = \frac{1}{3} \approx 33\%

    • Part b: Probability of waiting at least 25 minutes25\,\text{minutes}:

      • To wait at least 25 minutes25\,\text{minutes} for the 6:30 AM train, the passenger must arrive between 6:00 AM and 6:05 AM (x∈[0,5]x \in [0, 5], giving a wait of 2525 to 30 minutes30\,\text{minutes}).

      • To wait at least 25 minutes25\,\text{minutes} for the 7:00 AM train, the passenger must arrive between 6:30 AM and 6:35 AM (x∈[30,35]x \in [30, 35], giving a wait of 2525 to 30 minutes30\,\text{minutes}).

      • Summing over these disjoint intervals:             P(wait≥25)=P(0≤X≤5)+P(30≤X≤35)P(\text{wait} \ge 25) = P(0 \le X \le 5) + P(30 \le X \le 35)             P(wait≥25)=5⋅160+5⋅160=1060=16≈17%P(\text{wait} \ge 25) = 5 \cdot \frac{1}{60} + 5 \cdot \frac{1}{60} = \frac{10}{60} = \frac{1}{6} \approx 17\%

Train Station Uniform Wait Problem Intervals

Normal Random Variable: Fundamentals and Properties

  • Motivation and Prevalence:

    • The normal distribution is widely observed across nature, science, and engineering.

    • Real-world phenomena modeled by normal distributions include:

      • People heights

      • Newborn weights

      • Exam scores

      • IQ levels

      • Errors of estimation or physical measurement

    • It plays a central role in probability theory and statistical inference through the Central Limit Theorem.

  • Definition of the Normal PDF:

    • A continuous random variable XX follows a normal distribution with mean parameter μ\mu and variance parameter σ2\sigma^2, written X∼N(μ,σ2)X \sim N(\mu, \sigma^2), if its PDF is:         fX(x)=12πσexp⁡(−(x−μ)22σ2)f_X(x) = \frac{1}{\sqrt{2\pi}\sigma} \exp\left(\frac{-(x - \mu)^2}{2\sigma^2}\right)

    • Parameter constraints:

      • x∈(−∞,∞)x \in (-\infty, \infty)

      • Mean parameter: μ∈(−∞,∞)\mu \in (-\infty, \infty)

      • Standard deviation parameter: σ∈(0,∞)\sigma \in (0, \infty)

    • Integration over the real line: By calculus, the total probability integrates to unity:         ∫−∞∞fX(x) dx=1\int_{-\infty}^{\infty} f_X(x)\,dx = 1

Normal Distribution Bell Curve
  • Geometric Characteristics:

    • The distribution is symmetric and unimodal around the central point x=μx = \mu.

    • Points closer to μ\mu are the most likely (highest density), whereas densities taper off symmetrically toward zero as x→±∞x \to \pm\infty (less likely in the tails).

    • Influence of Dispersion Parameter σ\sigma:

      • μ\mu establishes the horizontal center along the xx-axis.

      • σ\sigma dictates spread and peak height.

      • Smaller standard deviation (e.g., σ=12\sigma = \frac{1}{2}): Narrower curve with a tall, sharp peak (height ≈0.8\approx 0.8).

      • Intermediate standard deviation (e.g., σ=1\sigma = 1): Moderate peak height (height ≈0.4\approx 0.4) and moderate spread.

      • Larger standard deviation (e.g., σ=2\sigma = 2): Wider, flatter curve with a low peak (height ≈0.2\approx 0.2).

Comparison of Normal PDFs with Different Standard Deviations
  • Moment Generating Function (MGF), Mean, and Variance:

    • MGF Formula:         ϕX(t)=E(etX)=exp⁡(μt+σ2t22)\phi_X(t) = E\left(e^{tX}\right) = \exp\left(\mu t + \frac{\sigma^2 t^2}{2}\right)

    • Derivation of Expected Value:         ϕX′(t)=(μ+σ2t)exp⁡(μt+σ2t22)\phi_X'(t) = \left(\mu + \sigma^2 t\right) \exp\left(\mu t + \frac{\sigma^2 t^2}{2}\right)         E(X)=ϕX′(0)=μE(X) = \phi_X'(0) = \mu

    • Derivation of Second Moment:         ϕX′′(t)=σ2exp⁡(μt+σ2t22)+(μ+σ2t)2exp⁡(μt+σ2t22)\phi_X''(t) = \sigma^2 \exp\left(\mu t + \frac{\sigma^2 t^2}{2}\right) + \left(\mu + \sigma^2 t\right)^2 \exp\left(\mu t + \frac{\sigma^2 t^2}{2}\right)         E(X2)=ϕX′′(0)=σ2+μ2E(X^2) = \phi_X''(0) = \sigma^2 + \mu^2

    • Derivation of Variance:         Var(X)=E(X2)−[E(X)]2=σ2+μ2−μ2=σ2\text{Var}(X) = E(X^2) - [E(X)]^2 = \sigma^2 + \mu^2 - \mu^2 = \sigma^2

    • The standard deviation is σ=Var(X)\sigma = \sqrt{\text{Var}(X)}.

The Standard Normal Distribution and Probability Calculations

  • Linear Transformations of Normal Random Variables (Fact 1):

    • If X∼N(μ,σ2)X \sim N(\mu, \sigma^2) and Y=aX+bY = aX + b where aa and bb are constants (a≠0a \neq 0), then:         Y∼N(aμ+b,a2σ2)Y \sim N(a\mu + b, a^2\sigma^2)

    • Proof via MGF:         ϕY(t)=E(etY)=E(et(aX+b))=ebtE(e(at)X)=ebtϕX(at)\phi_Y(t) = E\left(e^{tY}\right) = E\left(e^{t(aX + b)}\right) = e^{bt} E\left(e^{(at)X}\right) = e^{bt} \phi_X(at)         ϕY(t)=ebtexp⁡(μ(at)+σ2(at)22)=exp⁡((aμ+b)t+a2σ2t22)\phi_Y(t) = e^{bt} \exp\left(\mu(at) + \frac{\sigma^2(at)^2}{2}\right) = \exp\left((a\mu + b)t + \frac{a^2\sigma^2 t^2}{2}\right)         By uniqueness of the MGF, this represents a normal distribution with mean aμ+ba\mu + b and variance a2σ2a^2\sigma^2.

  • The Standardization Procedure:

    • Setting a=1σa = \frac{1}{\sigma} and b=−μσb = -\frac{\mu}{\sigma} yields the standard normal random variable ZZ:         Z=X−μσ=1σX−μσZ = \frac{X - \mu}{\sigma} = \frac{1}{\sigma}X - \frac{\mu}{\sigma}

    • Mean of ZZ:         E(Z)=1σμ−μσ=0E(Z) = \frac{1}{\sigma}\mu - \frac{\mu}{\sigma} = 0

    • Variance of ZZ:         Var(Z)=(1σ)2σ2=σ2σ2=1\text{Var}(Z) = \left(\frac{1}{\sigma}\right)^2 \sigma^2 = \frac{\sigma^2}{\sigma^2} = 1

    • Hence:         Z∼N(0,1)Z \sim N(0, 1)         This is known as the Standard Normal Distribution.

  • Standard Normal Cumulative Distribution Function (CDF) and Tables:

    • The standard normal CDF is defined by:         FZ(z)=P(Z≤z)=Φ(z)=∫−∞z12πe−u2/2 duF_Z(z) = P(Z \le z) = \Phi(z) = \int_{-\infty}^z \frac{1}{\sqrt{2\pi}} e^{-u^2/2}\,du

    • Because the integral has no closed-form elementary antiderivative, values of Φ(z)\Phi(z) are retrieved from pre-computed standard normal distribution tables (Z-tables) or online statistical calculators.

    • Table Reading Example: To evaluate P(Z<1.24)P(Z < 1.24), locate row 1.2 and column .04 in the Z-table:         P(Z<1.24)=FZ(1.24)=Φ(1.24)=0.8925P(Z < 1.24) = F_Z(1.24) = \Phi(1.24) = 0.8925

Standard Normal Table ExcerptStandard Normal CDF Area up to 1.24
  • Transforming General Normal Probabilities to Standard Normal:

    • To calculate the probability that a general normal variable X∼N(μ,σ2)X \sim N(\mu, \sigma^2) is less than a value aa, standardize both sides of the inequality:         P(X<a)=P(X−μσ<a−μσ)=P(Z<a−μσ)=Φ(a−μσ)P(X < a) = P\left(\frac{X - \mu}{\sigma} < \frac{a - \mu}{\sigma}\right) = P\left(Z < \frac{a - \mu}{\sigma}\right) = \Phi\left(\frac{a - \mu}{\sigma}\right)

    • Geometrically, the area under the general normal curve N(μ,σ2)N(\mu, \sigma^2) to the left of aa is identical to the area under the standard normal curve N(0,1)N(0, 1) to the left of the standardized score z=a−μσz = \frac{a - \mu}{\sigma}.

Standard Normal Area to the Left of Standardized ScoreGeneral Normal Area to the Left of Value a

Sums and Linear Combinations of Independent Normal Variables

  • Sum of Independent Normal Variables (Fact 2):

    • Let X1,X2,…,XnX_1, X_2, \ldots, X_n be independent random variables such that Xi∼N(μi,σi2)X_i \sim N(\mu_i, \sigma_i^2) for i=1,2,…,ni = 1, 2, \ldots, n.

    • Let Y=X1+X2+⋯+Xn=∑i=1nXiY = X_1 + X_2 + \cdots + X_n = \sum_{i=1}^n X_i.

    • Then YY is normally distributed with mean equal to the sum of the means and variance equal to the sum of the variances:         Y∼N(∑i=1nμi,∑i=1nσi2)Y \sim N\left(\sum_{i=1}^n \mu_i, \sum_{i=1}^n \sigma_i^2\right)

    • Proof via MGF:         ϕY(t)=∏i=1nϕXi(t)=∏i=1nexp⁡(μit+σi2t22)\phi_Y(t) = \prod_{i=1}^n \phi_{X_i}(t) = \prod_{i=1}^n \exp\left(\mu_i t + \frac{\sigma_i^2 t^2}{2}\right)         ϕY(t)=exp⁡((∑i=1nμi)t+(∑i=1nσi2)t22)\phi_Y(t) = \exp\left(\left(\sum_{i=1}^n \mu_i\right) t + \frac{\left(\sum_{i=1}^n \sigma_i^2\right) t^2}{2}\right)         By MGF uniqueness, this verifies that Y∼N(∑i=1nμi,∑i=1nσi2)Y \sim N\left(\sum_{i=1}^n \mu_i, \sum_{i=1}^n \sigma_i^2\right).

  • General Linear Combinations of Normal Variables:

    • If X1∼N(μ1,σ12)X_1 \sim N(\mu_1, \sigma_1^2) and X2∼N(μ2,σ22)X_2 \sim N(\mu_2, \sigma_2^2) are independent, and a,b,ca, b, c are constants, the linear combination Y=aX1+bX2+cY = aX_1 + bX_2 + c satisfies:         Y∼N(aμ1+bμ2+c,a2σ12+b2σ22)Y \sim N\left(a\mu_1 + b\mu_2 + c, a^2\sigma_1^2 + b^2\sigma_2^2\right)

    • Expectation:         E(Y)=E(aX1+bX2+c)=aE(X1)+bE(X2)+c=aμ1+bμ2+cE(Y) = E(aX_1 + bX_2 + c) = aE(X_1) + bE(X_2) + c = a\mu_1 + b\mu_2 + c

    • Variance:         Var(Y)=Var(aX1+bX2+c)=a2Var(X1)+b2Var(X2)=a2σ12+b2σ22\text{Var}(Y) = \text{Var}(aX_1 + bX_2 + c) = a^2\text{Var}(X_1) + b^2\text{Var}(X_2) = a^2\sigma_1^2 + b^2\sigma_2^2         (Constant cc does not contribute to variance, and covariance is zero by independence).

  • Worked Example: Linear Inequality Probability:

    • Given: Independent variables X1∼N(5,3)X_1 \sim N(5, 3) and X2∼N(7,2)X_2 \sim N(7, 2).

    • Objective: Calculate P(2X1>3X2+4)P(2X_1 > 3X_2 + 4).

    • Step 1: Reformulate as a single variable inequality:         P(2X1−3X2−4>0)P(2X_1 - 3X_2 - 4 > 0)

    • Step 2: Define Y=2X1−3X2−4Y = 2X_1 - 3X_2 - 4 and find its parameters:

      • Coefficients: a=2a = 2, b=−3b = -3, c=−4c = -4.

      • Mean of YY:             μY=2μ1−3μ2−4=2(5)−3(7)−4=10−21−4=−15\mu_Y = 2\mu_1 - 3\mu_2 - 4 = 2(5) - 3(7) - 4 = 10 - 21 - 4 = -15

      • Variance of YY:             σY2=22σ12+(−3)2σ22=4(3)+9(2)=12+18=30\sigma_Y^2 = 2^2 \sigma_1^2 + (-3)^2 \sigma_2^2 = 4(3) + 9(2) = 12 + 18 = 30

      • Standard deviation of YY:             σY=30≈5.477\sigma_Y = \sqrt{30} \approx 5.477

      • Distribution: Y∼N(−15,30)Y \sim N(-15, 30).

    • Step 3: Standardize to evaluate probability:         P(Y>0)=P(Y−μYσY>0−(−15)30)=P(Z>1530)P(Y > 0) = P\left(\frac{Y - \mu_Y}{\sigma_Y} > \frac{0 - (-15)}{\sqrt{30}}\right) = P\left(Z > \frac{15}{\sqrt{30}}\right)         1530=155.4772≈2.74\frac{15}{\sqrt{30}} = \frac{15}{5.4772} \approx 2.74         P(Z>2.74)=1−P(Z≤2.74)=1−Φ(2.74)P(Z > 2.74) = 1 - P(Z \le 2.74) = 1 - \Phi(2.74)

Exponential Random Variable: Properties and Applications

  • Definition and Probability Density Function (PDF):

    • A continuous random variable XX follows an exponential distribution with rate parameter λ>0\lambda > 0, denoted X∼Exp(λ)X \sim \text{Exp}(\lambda), if its PDF is:         fX(x)={λe−λxfor x∈[0,∞)0for x<0f_X(x) = \begin{cases} \lambda e^{-\lambda x} & \text{for } x \in [0, \infty) \\ 0 & \text{for } x < 0 \end{cases}

    • Role of Rate Parameter λ\lambda:

      • Small λ\lambda: Slow rate of decay, longer tail, and a lower initial vertical intercept at fX(0)=λf_X(0) = \lambda.

      • Large λ\lambda: Rapid exponential decay, steeper decline, and a higher initial vertical intercept at fX(0)=λf_X(0) = \lambda.

Exponential PDF with Small LambdaExponential PDF with Large Lambda
  • Connection to Discrete Geometric Distribution:

    • The exponential distribution is the continuous analogue of the discrete geometric distribution, representing the continuous waiting time until an event occurs.

Geometric Distribution Discrete PMF Decay
  • Moment Generating Function (MGF), Mean, and Variance:

    • MGF Proof:         ϕX(t)=∫0∞etxfX(x) dx=∫0∞etxλe−λx dx=λ∫0∞e−(λ−t)x dx\phi_X(t) = \int_0^{\infty} e^{tx} f_X(x)\,dx = \int_0^{\infty} e^{tx} \lambda e^{-\lambda x}\,dx = \lambda \int_0^{\infty} e^{-(\lambda - t)x}\,dx         ϕX(t)=λ[−e−(λ−t)xλ−t]0∞=λλ−tfor t<λ\phi_X(t) = \lambda \left[ \frac{-e^{-(\lambda - t)x}}{\lambda - t} \right]_0^{\infty} = \frac{\lambda}{\lambda - t} \quad \text{for } t < \lambda

    • Mean (Expected Value):         E(X)=1λE(X) = \frac{1}{\lambda}

    • Variance:         Var(X)=1λ2\text{Var}(X) = \frac{1}{\lambda^2}

    • Standard Deviation:         σ=1λ\sigma = \frac{1}{\lambda}

  • Worked Example: Time Spent in a Bank:

    • Scenario: The duration XX (in minutes) spent by a customer in a bank is exponentially distributed with a mean of 10 minutes10\,\text{minutes}.

    • Parameter Derivation:         E(X)=1λ=10  ⟹  λ=110=0.1 min−1E(X) = \frac{1}{\lambda} = 10 \implies \lambda = \frac{1}{10} = 0.1\,\text{min}^{-1}         fX(x)=0.1e−0.1xfor x≥0f_X(x) = 0.1 e^{-0.1 x} \quad \text{for } x \ge 0

    • Question 1: Probability of waiting more than 15 minutes15\,\text{minutes}:         P(X>15)=∫15∞0.1e−0.1x dx=[−e−0.1x]15∞=e−0.1(15)=e−1.5≈0.2231(22.31%)P(X > 15) = \int_{15}^{\infty} 0.1 e^{-0.1 x}\,dx = \left[ -e^{-0.1 x} \right]_{15}^{\infty} = e^{-0.1(15)} = e^{-1.5} \approx 0.2231 \quad (22.31\%)

    • Question 2: Finding the median time mm:

      • By definition of the median for continuous random variables:             P(X≤m)=0.5  ⟺  P(X>m)=0.5P(X \le m) = 0.5 \iff P(X > m) = 0.5

      • Substituting the tail probability formula:             e−λm=0.5e^{-\lambda m} = 0.5             −λm=ln⁡(0.5)=−ln⁡(2)-\lambda m = \ln(0.5) = -\ln(2)             m=ln⁡(2)λm = \frac{\ln(2)}{\lambda}

      • With λ=0.1\lambda = 0.1:             m=ln⁡(2)0.1=10ln⁡(2)≈10(0.69315)=6.9315 minutesm = \frac{\ln(2)}{0.1} = 10 \ln(2) \approx 10(0.69315) = 6.9315\,\text{minutes}

The Memorylessness Property

  • Mathematical Derivation for Exponential Distribution:

    • Let the lifetime of a component (such as a computer chip) in days be X∼Exp(λ)X \sim \text{Exp}(\lambda).

    • Tail Probability (Survival Function):         P(X≥a)=∫a∞λe−λx dx=e−λaP(X \ge a) = \int_a^{\infty} \lambda e^{-\lambda x}\,dx = e^{-\lambda a}

    • Conditional Survival Probability: The probability that the component lasts at least an additional aa units of time, given that it has already survived tt units of time:         P(X≥t+a∣X≥t)=P(X≥t+a∩X≥t)P(X≥t)=P(X≥t+a)P(X≥t)P(X \ge t + a \mid X \ge t) = \frac{P(X \ge t + a \cap X \ge t)}{P(X \ge t)} = \frac{P(X \ge t + a)}{P(X \ge t)}         P(X≥t+a∣X≥t)=e−λ(t+a)e−λt=e−λte−λae−λt=e−λa=P(X≥a)P(X \ge t + a \mid X \ge t) = \frac{e^{-\lambda (t + a)}}{e^{-\lambda t}} = \frac{e^{-\lambda t} e^{-\lambda a}}{e^{-\lambda t}} = e^{-\lambda a} = P(X \ge a)

  • Formal Statement and Physical Meaning:

    • Memorylessness Equation:         P(X≥t+a∣X≥t)=P(X≥a)P(X \ge t + a \mid X \ge t) = P(X \ge a)

    • The remaining lifetime of an item is independent of how long it has already been running. The component does not undergo physical wear or aging in a way that shifts its failure distribution; it is mathematically as good as new at any point in time tt, provided it has survived until then.

  • Continuous vs. Discrete Memorylessness:

    • Exponential Distribution: The unique continuous distribution that possesses the memorylessness property.

    • Geometric Distribution: The unique discrete distribution that possesses the memorylessness property:         P(X≥t+a∣X≥t)=P(X>a)P(X \ge t + a \mid X \ge t) = P(X > a)

    • Both distributions represent arrival times with constant hazard rates in their respective domains.