MTH302Semester 4 • 4 CreditsCore Subjects

Probability And Statistics

This subject provides an overview of random variables, probability distributions, correlation, regression, and statistical tests, enabling students to apply these concepts to engineering problems and analyze estimators.

Syllabus PDF
6 Units • Notes • Model Answers • MCQs
Select Course Unit (6 Units)
Active: Unit 1
Unit 1:Random Variables and Probability Distributions
40•High-Yield Unit Guide

Random Variables and Probability Distributions

Unit 1 Exam Focus & Core Takeaways

Review the core definitions, standard architectures, and syntax patterns below. Pay special attention to sections highlighted with bullet points for your mid-term and end-term subjective questions.

Unit 1: Random Variables and Probability Distributions


1. Fundamentals of Random Variables

1.1 Formal Mathematical Definition

In probability theory, a random experiment is characterized by a probability space (Ω,F,P)(\Omega, \mathcal{F}, \mathbb{P}), where:

  • Ω\Omega represents the sample space containing all elementary outcomes ω\omega.
  • F\mathcal{F} denotes a σ\sigma-algebra of events (subsets of Ω\Omega).
  • P:F→[0,1]\mathbb{P}: \mathcal{F} \to [0, 1] is a Kolmogorov probability measure satisfying non-negativity, unit measure (P(Ω)=1\mathbb{P}(\Omega) = 1), and countable additivity.

A Random Variable (RV) XX is a measurable mapping from the sample space Ω\Omega to the real line R\mathbb{R}:
X:Ω→RX: \Omega \to \mathbb{R}
such that for every Borel set B∈B(R)B \in \mathcal{B}(\mathbb{R}), the pre-image belongs to F\mathcal{F}:
X−1(B)={ω∈Ω:X(ω)∈B}∈FX^{-1}(B) = \{\omega \in \Omega : X(\omega) \in B\} \in \mathcal{F}

CODE
   Sample Space (Omega)                         Real Number Line (R)
   +---------------------+                     +---------------------+
   |      omega_1        | ---- X(omega_1) --> |        x_1          |
   |      omega_2        | ---- X(omega_2) --> |        x_2          |
   |      omega_3        | ---- X(omega_3) --> |        x_3          |
   +---------------------+                     +---------------------+
          Event E                                   Borel Set B

1.2 Classification: Discrete vs. Continuous Random Variables

  1. Discrete Random Variable: Takes values in a countable set SX⊆RS_X \subseteq \mathbb{R} (finite or countably infinite, e.g., integers Z\mathbb{Z} or natural numbers N\mathbb{N}).
  2. Continuous Random Variable: Takes an uncountably infinite continuum of values over an interval (a,b)⊆R(a, b) \subseteq \mathbb{R}, where the probability of realizing any single point is identically zero: P(X=c)=0\mathbb{P}(X = c) = 0 for any c∈Rc \in \mathbb{R}.

2. Probability Functions: PMF, PDF, and CDF

2.1 Probability Mass Function (PMF)

For a discrete random variable XX with support {x1,x2,… }\{x_1, x_2, \dots\}, the Probability Mass Function (PMF) pX(x)p_X(x) assigns probability point masses:
pX(x)=P(X=x)p_X(x) = \mathbb{P}(X = x)

Axiomatic Conditions:

  1. Non-negativity: pX(xi)≥0,∀xi∈SXp_X(x_i) \ge 0, \quad \forall x_i \in S_X
  2. Total probability: ∑xi∈SXpX(xi)=1\sum_{x_i \in S_X} p_X(x_i) = 1
  3. Subset probability: For any event A⊆RA \subseteq \mathbb{R}, P(X∈A)=∑xi∈ApX(xi)\mathbb{P}(X \in A) = \sum_{x_i \in A} p_X(x_i)

2.2 Probability Density Function (PDF)

For a continuous random variable XX, probabilities are described by an integrable function fX(x)f_X(x) known as the Probability Density Function (PDF):
P(a≤X≤b)=∫abfX(x) dx\mathbb{P}(a \le X \le b) = \int_a^b f_X(x) \, dx

Axiomatic Conditions:

  1. Non-negativity: fX(x)≥0,∀x∈Rf_X(x) \ge 0, \quad \forall x \in \mathbb{R}
  2. Normalization: ∫−∞∞fX(x) dx=1\int_{-\infty}^{\infty} f_X(x) \, dx = 1
  3. Point mass vanishing: For any singleton c∈Rc \in \mathbb{R}, P(X=c)=∫ccfX(x) dx=0\mathbb{P}(X = c) = \int_c^c f_X(x) \, dx = 0
  4. Boundary equivalence: P(a≤X≤b)=P(a<X≤b)=P(a≤X<b)=P(a<X<b)\mathbb{P}(a \le X \le b) = \mathbb{P}(a < X \le b) = \mathbb{P}(a \le X < b) = \mathbb{P}(a < X < b)

2.3 Cumulative Distribution Function (CDF)

The Cumulative Distribution Function (CDF), denoted FX(x)F_X(x), unifies discrete and continuous variables by defining accumulated probability up to a threshold xx:
FX(x)=P(X≤x),∀x∈RF_X(x) = \mathbb{P}(X \le x), \quad \forall x \in \mathbb{R}

Explicit Formulations:

  • Discrete: FX(x)=∑xi≤xpX(xi)F_X(x) = \sum_{x_i \le x} p_X(x_i) (a monotonic right-continuous step function with jump discontinuities at support points of magnitude pX(xi)p_X(x_i)).
  • Continuous: FX(x)=∫−∞xfX(t) dtF_X(x) = \int_{-\infty}^x f_X(t) \, dt (an absolutely continuous function).

Fundamental Properties of the CDF:

  1. Bounded Range: 0≤FX(x)≤1,∀x∈R0 \le F_X(x) \le 1, \quad \forall x \in \mathbb{R}
  2. Monotonic Non-Decreasing: If x1<x2x_1 < x_2, then FX(x1)≤FX(x2)F_X(x_1) \le F_X(x_2)
  3. Asymptotic Limits:
    lim⁡x→−∞FX(x)=0,lim⁡x→∞FX(x)=1\lim_{x \to -\infty} F_X(x) = 0, \quad \lim_{x \to \infty} F_X(x) = 1
  4. Right-Continuity: FX(x+)=lim⁡h→0+FX(x+h)=FX(x)F_X(x^+) = \lim_{h \to 0^+} F_X(x + h) = F_X(x)
  5. Interval Probability Rule:
    P(a<X≤b)=FX(b)−FX(a)\mathbb{P}(a < X \le b) = F_X(b) - F_X(a)
  6. Derivative Relation: At every point where FX(x)F_X(x) is differentiable:
    fX(x)=ddxFX(x)f_X(x) = \frac{d}{dx} F_X(x)

3. Mathematical Expectation & Variance

3.1 Definition of Expected Value

The mathematical expectation (mean) E[X]\mathbb{E}[X] or μ\mu represents the probability-weighted central value:
E[X]={∑ixipX(xi)if X is discrete∫−∞∞xfX(x) dxif X is continuous\mathbb{E}[X] = \begin{cases} \sum_{i} x_i p_X(x_i) & \text{if } X \text{ is discrete} \\ \int_{-\infty}^{\infty} x f_X(x) \, dx & \text{if } X \text{ is continuous} \end{cases}
Absolute Convergence Condition: The expectation exists if and only if E[∣X∣]<∞\mathbb{E}[|X|] < \infty.

3.2 Law of the Unconscious Statistician (LOTUS)

For any measurable function g:R→Rg: \mathbb{R} \to \mathbb{R}:
E[g(X)]={∑ig(xi)pX(xi)discrete∫−∞∞g(x)fX(x) dxcontinuous\mathbb{E}[g(X)] = \begin{cases} \sum_{i} g(x_i) p_X(x_i) & \text{discrete} \\ \int_{-\infty}^{\infty} g(x) f_X(x) \, dx & \text{continuous} \end{cases}

3.3 Fundamental Properties of Expectation

  1. Linearity: E[aX+bY+c]=aE[X]+bE[Y]+c\mathbb{E}[aX + bY + c] = a\mathbb{E}[X] + b\mathbb{E}[Y] + c, for any random variables X,YX, Y (regardless of independence).
  2. Monotonicity: If X≤YX \le Y almost surely, then E[X]≤E[Y]\mathbb{E}[X] \le \mathbb{E}[Y].
  3. Product Rule for Independent RVs: If XX and YY are independent, E[XY]=E[X]E[Y]\mathbb{E}[XY] = \mathbb{E}[X]\mathbb{E}[Y].

3.4 Variance and Standard Deviation

The Variance Var(X)=σ2\text{Var}(X) = \sigma^2 measures dispersion around the mean:
Var(X)=E[(X−μ)2]=E[X2]−(E[X])2\text{Var}(X) = \mathbb{E}[(X - \mu)^2] = \mathbb{E}[X^2] - (\mathbb{E}[X])^2

Properties of Variance:

  1. Non-negativity: Var(X)≥0\text{Var}(X) \ge 0.
  2. Invariance to Shift: Var(X+c)=Var(X)\text{Var}(X + c) = \text{Var}(X).
  3. Scaling Factor: Var(aX)=a2Var(X)  ⟹  Var(aX+b)=a2Var(X)\text{Var}(aX) = a^2 \text{Var}(X) \implies \text{Var}(aX + b) = a^2 \text{Var}(X).
  4. Sum of Two Random Variables:
    Var(X±Y)=Var(X)+Var(Y)±2Cov(X,Y)\text{Var}(X \pm Y) = \text{Var}(X) + \text{Var}(Y) \pm 2\text{Cov}(X, Y)
    If XX and YY are uncorrelated (Cov(X,Y)=0\text{Cov}(X, Y) = 0), then Var(X±Y)=Var(X)+Var(Y)\text{Var}(X \pm Y) = \text{Var}(X) + \text{Var}(Y).
  5. Standard Deviation: σ=Var(X)\sigma = \sqrt{\text{Var}(X)}.

4. Higher Order Moments, Skewness & Kurtosis

4.1 Raw Moments vs. Central Moments

  • rr-th Raw Moment (about the origin):
    μr′=E[Xr]\mu_r' = \mathbb{E}[X^r]
    Note: μ1′=E[X]=μ\mu_1' = \mathbb{E}[X] = \mu.
  • rr-th Central Moment (about the mean):
    μr=E[(X−μ)r]\mu_r = \mathbb{E}[(X - \mu)^r]
    Note: μ1=E[X−μ]=0\mu_1 = \mathbb{E}[X - \mu] = 0, μ2=E[(X−μ)2]=σ2=Var(X)\mu_2 = \mathbb{E}[(X - \mu)^2] = \sigma^2 = \text{Var}(X).

4.2 Inter-relation Between Moments

Using the binomial expansion μr=E[(X−μ)r]=∑k=0r(rk)(−1)r−kμk′(μ1′)r−k\mu_r = \mathbb{E}[(X - \mu)^r] = \sum_{k=0}^r \binom{r}{k} (-1)^{r-k} \mu_k' (\mu_1')^{r-k}:
μ2=μ2′−(μ1′)2\mu_2 = \mu_2' - (\mu_1')^2
μ3=μ3′−3μ2′μ1′+2(μ1′)3\mu_3 = \mu_3' - 3\mu_2'\mu_1' + 2(\mu_1')^3
μ4=μ4′−4μ3′μ1′+6μ2′(μ1′)2−3(μ1′)4\mu_4 = \mu_4' - 4\mu_3'\mu_1' + 6\mu_2'(\mu_1')^2 - 3(\mu_1')^4

4.3 Skewness (Asymmetry of Probability Mass)

Skewness measures the degree of asymmetry of the probability distribution around its mean:

  • Moment Coefficient of Skewness:
    γ1=μ3σ3=μ3(μ2)3/2\gamma_1 = \frac{\mu_3}{\sigma^3} = \frac{\mu_3}{(\mu_2)^{3/2}}
  • Pearson's β1\beta_1 coefficient: β1=γ12=μ32μ23\beta_1 = \gamma_1^2 = \frac{\mu_3^2}{\mu_2^3}.
CODE
   Negative Skew (Left-Tailed)     Symmetric (Mesokurtic)     Positive Skew (Right-Tailed)
         Mean < Median < Mode           Mean = Median = Mode        Mode < Median < Mean
              /\                                /\                              /\
             /  \                              /  \                            /  \
      ______/    \                            /    \                          /    \______
     gamma_1 < 0                             gamma_1 = 0                     gamma_1 > 0

4.4 Kurtosis (Peakedness and Tail Heaviness)

Kurtosis measures the tail-weight and sharpness of the distribution peak relative to a Gaussian distribution:

  • Pearson's β2\beta_2 Coefficient:
    β2=μ4μ22=μ4σ4\beta_2 = \frac{\mu_4}{\mu_2^2} = \frac{\mu_4}{\sigma^4}
  • Excess Kurtosis (γ2\gamma_2):
    γ2=β2−3=μ4σ4−3\gamma_2 = \beta_2 - 3 = \frac{\mu_4}{\sigma^4} - 3

Kurtosis Classification:

TypeConditionRelative Peakedness & TailsCanonical Example
Mesokurticβ2=3  ⟹  γ2=0\beta_2 = 3 \implies \gamma_2 = 0Standard Gaussian tails and peakNormal Distribution N(μ,σ2)\mathcal{N}(\mu, \sigma^2)
Leptokurticβ2>3  ⟹  γ2>0\beta_2 > 3 \implies \gamma_2 > 0Heavy tails, sharp slender peak, high outlier probabilityStudent's tt, Laplace, Cauchy
Platykurticβ2<3  ⟹  γ2<0\beta_2 < 3 \implies \gamma_2 < 0Light tails, flatter broad peak, low outlier frequencyContinuous Uniform Distribution

5. Generating Functions: MGF & Characteristic Function

5.1 Moment Generating Function (MGF)

The Moment Generating Function (MGF) of a random variable XX is defined as:
MX(t)=E[etX]M_X(t) = \mathbb{E}[e^{tX}]
provided the expectation exists in an open neighborhood around t=0t = 0 (∣t∣<h|t| < h for some h>0h > 0).

Formulas:

  • Discrete: MX(t)=∑ietxipX(xi)M_X(t) = \sum_i e^{tx_i} p_X(x_i)
  • Continuous: MX(t)=∫−∞∞etxfX(x) dxM_X(t) = \int_{-\infty}^{\infty} e^{tx} f_X(x) \, dx

5.2 Generating Moments from MGF

Using the Maclaurin series expansion of etX=∑r=0∞(tX)rr!e^{tX} = \sum_{r=0}^{\infty} \frac{(tX)^r}{r!}:
MX(t)=∑r=0∞trr!E[Xr]=1+tμ1′+t22!μ2′+t33!μ3′+…M_X(t) = \sum_{r=0}^{\infty} \frac{t^r}{r!} \mathbb{E}[X^r] = 1 + t\mu_1' + \frac{t^2}{2!}\mu_2' + \frac{t^3}{3!}\mu_3' + \dots
Differentiating rr times with respect to tt and setting t=0t = 0:
μr′=E[Xr]=drdtrMX(t)∣t=0\mu_r' = \mathbb{E}[X^r] = \left. \frac{d^r}{dt^r} M_X(t) \right|_{t=0}

5.3 Algebraic Properties of the MGF

  1. Affine Transformation: MaX+b(t)=ebtMX(at)M_{aX + b}(t) = e^{bt} M_X(at).
  2. Sum of Independent Random Variables:
    If X1,X2,…,XnX_1, X_2, \dots, X_n are mutually independent, then:
    M∑Xi(t)=∏i=1nMXi(t)M_{\sum X_i}(t) = \prod_{i=1}^n M_{X_i}(t)
  3. Uniqueness Theorem: If two random variables have MGFs that agree on an open interval containing zero, they share identical probability distributions everywhere.

5.4 The Characteristic Function

When E[etX]\mathbb{E}[e^{tX}] diverges for t≠0t \neq 0 (e.g., Cauchy distribution), the Characteristic Function ϕX(t)\phi_X(t) is utilized:
ϕX(t)=E[eitX]=∫−∞∞eitxfX(x) dx,(i=−1)\phi_X(t) = \mathbb{E}[e^{itX}] = \int_{-\infty}^{\infty} e^{itx} f_X(x) \, dx, \quad (i = \sqrt{-1})
Because ∣eitX∣=1|e^{itX}| = 1, the integral converges absolutely for all t∈Rt \in \mathbb{R}, guaranteeing existence for every probability distribution.


6. Joint & Multivariable Probability Distributions

6.1 Bivariate Distributions

When pairs of random variables (X,Y)(X, Y) are observed simultaneously:

  • Joint PMF: pX,Y(x,y)=P(X=x,Y=y)p_{X, Y}(x, y) = \mathbb{P}(X = x, Y = y) with ∑x∑ypX,Y(x,y)=1\sum_x \sum_y p_{X, Y}(x, y) = 1.
  • Joint PDF: P((X,Y)∈A)=∬AfX,Y(x,y) dx dy\mathbb{P}((X, Y) \in A) = \iint_A f_{X, Y}(x, y) \, dx \, dy with ∫−∞∞∫−∞∞fX,Y(x,y) dx dy=1\int_{-\infty}^\infty \int_{-\infty}^\infty f_{X, Y}(x, y) \, dx \, dy = 1.
  • Joint CDF: FX,Y(x,y)=P(X≤x,Y≤y)=∫−∞x∫−∞yfX,Y(u,v) dv duF_{X, Y}(x, y) = \mathbb{P}(X \le x, Y \le y) = \int_{-\infty}^x \int_{-\infty}^y f_{X, Y}(u, v) \, dv \, du.

6.2 Marginal Distributions

Collapsing across the partner dimension:
fX(x)=∫−∞∞fX,Y(x,y) dy,fY(y)=∫−∞∞fX,Y(x,y) dxf_X(x) = \int_{-\infty}^{\infty} f_{X, Y}(x, y) \, dy, \quad f_Y(y) = \int_{-\infty}^{\infty} f_{X, Y}(x, y) \, dx

6.3 Conditional Distributions & Independence

  • Conditional PDF:
    fY∣X(y∣x)=fX,Y(x,y)fX(x),for fX(x)>0f_{Y \mid X}(y \mid x) = \frac{f_{X, Y}(x, y)}{f_X(x)}, \quad \text{for } f_X(x) > 0
  • Statistical Independence: XX and YY are independent if and only if:
    fX,Y(x,y)=fX(x)fY(y),∀(x,y)∈R2f_{X, Y}(x, y) = f_X(x) f_Y(y), \quad \forall (x, y) \in \mathbb{R}^2

6.4 Covariance and Correlation

The Covariance measures linear co-dependence:
Cov(X,Y)=σXY=E[(X−μX)(Y−μY)]=E[XY]−E[X]E[Y]\text{Cov}(X, Y) = \sigma_{XY} = \mathbb{E}[(X - \mu_X)(Y - \mu_Y)] = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y]
The Pearson Correlation Coefficient normalizes covariance into [−1,1][-1, 1]:
ρX,Y=Cov(X,Y)σXσY\rho_{X, Y} = \frac{\text{Cov}(X, Y)}{\sigma_X \sigma_Y}
If XX and YY are independent, Cov(X,Y)=0\text{Cov}(X, Y) = 0 and ρX,Y=0\rho_{X, Y} = 0. (Note: Zero correlation does not generally imply independence, except under bivariate normality).


7. Fundamental Inequalities: Markov & Chebyshev

7.1 Markov's Inequality

Let YY be a non-negative random variable (Y≥0Y \ge 0) with finite mean E[Y]\mathbb{E}[Y]. For any constant a>0a > 0:
P(Y≥a)≤E[Y]a\mathbb{P}(Y \ge a) \le \frac{\mathbb{E}[Y]}{a}

7.2 Chebyshev's Inequality

Let XX have finite mean μ\mu and variance σ2\sigma^2. Setting Y=(X−μ)2Y = (X - \mu)^2 and a=k2σ2a = k^2 \sigma^2 in Markov's inequality:
P(∣X−μ∣≥kσ)≤1k2,∀k>0\mathbb{P}(|X - \mu| \ge k\sigma) \le \frac{1}{k^2}, \quad \forall k > 0
Complementary form:
P(∣X−μ∣<kσ)≥1−1k2\mathbb{P}(|X - \mu| < k\sigma) \ge 1 - \frac{1}{k^2}
For any arbitrary distribution, at least 75%75\% of probability mass lies within k=2k = 2 standard deviations of the mean, and at least 88.89%88.89\% lies within k=3k = 3 standard deviations.


8. Summary Formulation Table

Statistical ConceptDiscrete FormulationContinuous FormulationAxiomatic / Theoretical Bounds
Probability FunctionpX(x)=P(X=x)p_X(x) = \mathbb{P}(X=x)fX(x)=ddxFX(x)f_X(x) = \frac{d}{dx}F_X(x)pX(x)≥0,∑p=1p_X(x) \ge 0, \sum p = 1; fX(x)≥0,∫f=1f_X(x) \ge 0, \int f = 1
Cumulative FunctionFX(x)=∑xi≤xpX(xi)F_X(x) = \sum_{x_i \le x} p_X(x_i)FX(x)=∫−∞xfX(t)dtF_X(x) = \int_{-\infty}^x f_X(t)dtMonotone increasing, 0≤F(x)≤10 \le F(x) \le 1, right-continuous
Mathematical ExpectationE[X]=∑xipX(xi)\mathbb{E}[X] = \sum x_i p_X(x_i)E[X]=∫−∞∞xfX(x)dx\mathbb{E}[X] = \int_{-\infty}^\infty x f_X(x)dxLinear: E[aX+b]=aE[X]+b\mathbb{E}[aX+b] = a\mathbb{E}[X]+b
Variance (σ2\sigma^2)∑(xi−μ)2pX(xi)\sum (x_i - \mu)^2 p_X(x_i)∫(x−μ)2fX(x)dx\int (x - \mu)^2 f_X(x)dxVar(aX+b)=a2Var(X)\text{Var}(aX+b) = a^2\text{Var}(X)
Skewness (γ1\gamma_1)μ3σ3\frac{\mu_3}{\sigma^3}μ3σ3\frac{\mu_3}{\sigma^3}0  ⟹  0 \implies symmetric; >0  ⟹  >0 \implies right-tailed; <0  ⟹  <0 \implies left-tailed
Kurtosis (β2\beta_2)μ4σ4\frac{\mu_4}{\sigma^4}μ4σ4\frac{\mu_4}{\sigma^4}3  ⟹  3 \implies Mesokurtic; >3  ⟹  >3 \implies Leptokurtic; <3  ⟹  <3 \implies Platykurtic
MGF (MX(t)M_X(t))∑etxipX(xi)\sum e^{tx_i} p_X(x_i)∫−∞∞etxfX(x)dx\int_{-\infty}^\infty e^{tx} f_X(x)dxμr′=MX(r)(0)\mu_r' = M_X^{(r)}(0); MX+Y(t)=MX(t)MY(t)M_{X+Y}(t) = M_X(t)M_Y(t) if indep.
Chebyshev's Bound$\mathbb{P}(X-\mu\ge k\sigma) \le \frac{1}{k^2}$