Introduction and foundational concepts of mathematical statistics (part 1)

1. Introduction and foundational concepts of mathematical statistics (part 1)

This section establishes the mathematical framework for analyzing probability models involving multiple random variables, focusing on joint distributions, marginal distributions, and the concept of independence.

1.1 Multiple random variables and joint distributions

This section introduces the concept of a random vector and defines its probability model using joint cumulative distribution functions (CDFs) and joint probability mass functions (PMFs) for discrete variables.

Definition of Random Vectors

An nn-dimensional random vector, (X1,X2,…,Xn)′(X_1, X_2, \dots, X_n)', is a function mapping the sample space Ω\Omega to the nn-dimensional Euclidean space, Rn\mathbb{R}^n, such that the resulting sets in Ω\Omega are events in the probability space (Ω,A,P)(\Omega, \mathcal{A}, P).

In the bivariate case (n=2n=2), a bivariate random vector (X,Y)′(X, Y)' maps Ω→R2\Omega \to \mathbb{R}^2 such that for any u,v∈Ru, v \in \mathbb{R}: {ω∈Ω:−∞<X(ω)≤u;−∞<Y(ω)≤v}∈A\{\omega\in\Omega : -\infty<X(\omega) \leq u; -\infty<Y(\omega) \leq v\}\in\mathcal{A}.

Example: Tossing two fair dice, where XX is the sum of the two dice and YY is the absolute difference defines a bivariate random vector (X,Y)′(X, Y)' over the 36 possible outcomes.

Joint Cumulative Distribution Function (Joint CDF)

For kk random variables X1,X2,…,XkX_1, X_2, \dots, X_k defined on the same probability space, the joint cumulative distribution function (Joint CDF), FX1,X2,…,Xk(⋅,⋅,…,⋅)F_{X_1, X_2, \dots, X_k}(\cdot, \cdot, \dots, \cdot), is defined as: FX1,X2,…,Xk(x1,x2,…,xk)=P({X1≤x1;X2≤x2,…,Xk≤xk})(1.1)F_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = P(\{X_1 \leq x_1; X_2 \leq x_2, \dots, X_k \leq x_k\}) \quad (1.1) The joint CDF is a function with domain Rk\mathbb{R}^k and codomain 12.

Properties of the Joint CDF FX,Y(x,y)F_{X,Y}(x,y) (Bivariate Case):

  1. Boundedness:
    • FX,Y(−∞,v)=0F_{X,Y}(-\infty, v) = 0
    • FX,Y(u,−∞)=0F_{X,Y}(u, -\infty) = 0
    • FX,Y(∞,∞)=1F_{X,Y}(\infty, \infty) = 1
    • Thus, 0≤FX,Y(x,y)≤10 \leq F_{X,Y}(x,y) \leq 1 for all (x,y)∈R2(x,y) \in \mathbb{R}^2.
  2. Monotonicity: If a≤ba \leq b and c≤dc \leq d, then the probability of a<X≤ba<X \leq b and c<Y≤dc<Y \leq d is non-negative: P(a<X≤b,c<Y≤d)=FX,Y(b,d)−FX,Y(b,c)−FX,Y(a,d)+FX,Y(a,c)≥0P(a<X \leq b, c<Y \leq d) = F_{X,Y}(b,d) - F_{X,Y}(b,c) - F_{X,Y}(a,d) + F_{X,Y}(a,c) \geq 0 The function is monotone non-decreasing in each variable.
  3. Continuity from the right: For any fixed u∈Ru \in \mathbb{R}, FX,Y(u+h,v)→FX,Y(u,v)F_{X,Y}(u+h, v) \to F_{X,Y}(u, v) as h→0+h \to 0^+, and similarly for the second variable.

Tip: The monotonicity property implies specific formulas for calculating probabilities over different intervals based on the joint CDF, such as: P(X=b,Y=d)=FX,Y(b,d)−FX,Y(b−,d)−FX,Y(b,d−)+FX,Y(b−,d−)P(X = b,Y = d) = F_{X,Y}(b,d) - F_{X,Y}(b-,d) - F_{X,Y}(b,d-) + F_{X,Y}(b-,d-) If FX,YF_{X,Y} is continuous at (b,d)(b,d) in one variable, then P(X=b,Y=d)=0P(X = b,Y = d) = 0.

Joint Probability Mass Function (Joint PMF) for Discrete Variables

A kk-dimensional random variable is jointly discrete if it assumes values only at a countable number of points in Rk\mathbb{R}^k.

The joint probability mass function (joint PMF), pX1,X2,…,Xk(⋅,⋅,…,⋅)p_{X_1, X_2, \dots, X_k}(\cdot, \cdot, \dots, \cdot), is defined as: pX1,X2,…,Xk(x1,x2,…,xk)=P(X1=x1,X2=x2,…,Xk=xk)>0p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = P(X_1 = x_1, X_2 = x_2, \dots, X_k = x_k) > 0 for possible values (x1,x2,…,xk)′(x_1, x_2, \dots, x_k)', and zero otherwise. The set of points where the PMF is strictly positive is the set of mass points.

Properties of the Joint PMF:

  1. pX1,X2,…,Xk(x1,x2,…,xk)≥0p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) \geq 0 for all (x1,x2,…,xk)∈Rk(x_1, x_2, \dots, x_k) \in \mathbb{R}^k.
  2. The sum over all mass points equals one: ∑pX1,X2,…,Xk(x1,x2,…,xk)=1\sum p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k) = 1.

Relationship between Joint PMF and Joint CDF (Bivariate Case):

  • From PMF to CDF: FX,Y(u,v)=P(X≤u,Y≤v)=∑x≤u∑y≤vP(X=x,Y=y)=∑x≤u∑y≤vpX,Y(x,y)F_{X,Y}(u,v) = P(X \leq u,Y \leq v) = \sum_{x\leq u} \sum_{y\leq v} P(X = x,Y = y) = \sum_{x\leq u} \sum_{y\leq v} p_{X,Y}(x,y).
  • From CDF to PMF: pX,Y(a,b)=FX,Y(a,b)−FX,Y(a−,b)−FX,Y(a,b−)+FX,Y(a−,b−)p_{X,Y}(a,b) = F_{X,Y}(a,b) - F_{X,Y}(a-,b) - F_{X,Y}(a,b-) + F_{X,Y}(a-,b-) 15.

Knowledge of the joint CDF is equivalent to knowledge of the joint PMF for jointly discrete random variables, and this equivalence extends to kk-dimensional vectors.

Example: For two tetrahedra rolls, if XX is the number on the first and YY is the maximum observed number, pX,Y(2,2)=P({(2,1),(2,2)})=2/16p_{X,Y}(2, 2) = P(\{(2,1), (2,2)\}) = 2/16, as derived from the sample space outcomes.

Special Discrete Multivariate Distributions

The document details two important discrete multivariate distributions: Multinomial and Generalized Hypergeometric.

Multinomial Distribution

This arises from extending the binomial experiment to allow for more than two possible outcomes in each independent trial.

Multinomial Experiment Properties:

  1. The experiment consists of nn repeated trials.
  2. Each trial results in one of k+1k+1 distinct outcomes, E1,E2,…,Ek+1E_1, E_2, \dots, E_{k+1}.
  3. The probability of outcome EiE_i is P(Ei)=piP(E_i) = p_i, where ∑i=1k+1pi=1\sum_{i=1}^{k+1} p_i = 1.
  4. Trials are independent.

If XiX_i is the number of trials resulting in outcome EiE_i (out of nn), then (X1,X2,…,Xk+1)′(X_1, X_2, \dots, X_{k+1})' follows a multinomial distribution with joint PMF: pX1,X2,…,Xk+1(x1,x2,…,xk+1;p1,…,pk+1,n)=(nx1,x2,…,xk+1)p1x1p2x2⋯pk+1xk+1p_{X_1, X_2, \dots, X_{k+1}}(x_1, x_2, \dots, x_{k+1}; p_1, \dots, p_{k+1}, n) = \left( \begin{array}{c} n \\ x_1, x_2, \dots, x_{k+1} \end{array} \right) p_1^{x_1} p_2^{x_2} \cdots p_{k+1}^{x_{k+1}} subject to ∑i=1k+1xi=n\sum_{i=1}^{k+1} x_i = n.

Remark: If (X1,…,Xk)(X_1, \dots, X_k) has a multinomial distribution, then each XiX_i is individually binomially distributed 18.

Generalized Hypergeometric Distribution

This distribution models sampling without replacement from a finite population where elements can belong to more than two categories.

Generalized Hypergeometric Experiment Properties:

  1. A sample of size nn is taken randomly without replacement from a population of NN elements.
  2. The population contains N1N_1 elements of the first kind, N2N_2 of the second kind, up to Nk+1N_{k+1} of the (k+1)(k+1)-th kind, such that ∑i=1k+1Ni=N\sum_{i=1}^{k+1} N_i = N.

If XiX_i denotes the number of sample elements of the ii-th kind, then (X1,X2,…,Xk+1)′(X_1, X_2, \dots, X_{k+1})' follows a generalized hypergeometric distribution with joint PMF: pX1,X2,…,Xk(x1,x2,…,xk;N,N1,…,Nk+1,n)=(N1x1)(N2x2)⋯(Nk+1xk+1)(Nn)p_{X_1, X_2, \dots, X_k}(x_1, x_2, \dots, x_k; N, N_1, \dots, N_{k+1}, n) = \frac{\binom{N_1}{x_1} \binom{N_2}{x_2} \cdots \binom{N_{k+1}}{x_{k+1}}}{\binom{N}{n}} subject to ∑i=1k+1xi=n\sum_{i=1}^{k+1} x_i = n.

Remark: The standard Hypergeometric distribution is a special case where the population is classified into only two kinds (success/failure).

Example: Selecting two pen refills from a box containing 3 blue (N1=3N_1=3), 2 red (N2=2N_2=2), and 3 green (N3=3N_3=3) refills (N=8N=8). If XX is the number of blue and YY is the number of red selected (n=2n=2), the joint PMF is: pX,Y(x,y;8,3,2,3)=(3x)(2y)(32−x−y)(82)p_{X,Y}(x,y; 8,3,2,3) = \frac{\binom{3}{x}\binom{2}{y}\binom{3}{2-x-y}}{\binom{8}{2}} The probability P(X+Y<2)P(X+Y < 2) is calculated by summing p(0,0)p(0,0), p(0,1)p(0,1), and p(1,0)p(1,0), yielding 9/149/14 20.

1.2 Joint Density Functions for Continuous Random Variables

The study of continuous multivariate distributions relies on the joint CDF, which provides a foundation for defining the joint probability density function (PDF).

(Absolutely) Continuous Joint Distributions

If the random vector (X1,X2,…,Xk)′(X_1, X_2, \dots, X_k)' is continuous, its joint CDF, FX1,…,Xk(x1,…,xk)F_{X_1, \dots, X_k}(x_1, \dots, x_k), is absolutely continuous with respect to the Lebesgue measure on Rk\mathbb{R}^k (implied context from continuous definitions).

The joint probability density function (Joint PDF), fX1,…,Xk(x1,…,xk)f_{X_1, \dots, X_k}(x_1, \dots, x_k), is derived from the joint CDF: FX1,…,Xk(x1,…,xk)=∫−∞xk⋯∫−∞x1fX1,…,Xk(t1,…,tk) dt1⋯dtkF_{X_1, \dots, X_k}(x_1, \dots, x_k) = \int_{-\infty}^{x_k} \cdots \int_{-\infty}^{x_1} f_{X_1, \dots, X_k}(t_1, \dots, t_k) \, dt_1 \cdots dt_k (Generalization implied from univariate/bivariate context).

For the bivariate case (X,YX, Y): FX,Y(u,v)=∫−∞v∫−∞ufX,Y(x,y) dx dyF_{X,Y}(u,v) = \int_{-\infty}^{v} \int_{-\infty}^{u} f_{X,Y}(x,y) \, dx \, dy (Contextual reference) 11.

The joint PDF fX,Y(x,y)f_{X,Y}(x,y) can be recovered by differentiating the joint CDF: fX,Y(x,y)=∂2∂x∂yFX,Y(x,y)f_{X,Y}(x,y) = \frac{\partial^2}{\partial x \partial y} F_{X,Y}(x,y) (Generalization implied from calculus relationship between CDF and PDF).

Properties of the Joint PDF fX,Y(x,y)f_{X,Y}(x,y):

  1. Non-negativity: fX,Y(x,y)≥0f_{X,Y}(x,y) \geq 0 for all (x,y)∈R2(x,y) \in \mathbb{R}^2 (assumed property consistent with PMF).
  2. Total Probability: The volume under the joint density surface must equal one: ∫−∞∞∫−∞∞fX,Y(x,y) dx dy=1\int_{-\infty}^{\infty} \int_{-\infty}^{\infty} f_{X,Y}(x,y) \, dx \, dy = 1 (Assumed property consistent with PMF summation).

Note: Unlike the discrete case, where P(X=a,Y=b)P(X=a, Y=b) can be non-zero, for continuous joint distributions, the probability of the random vector taking any specific point is zero: P(X=x,Y=y)=0P(X=x, Y=y) = 0 14.

1.3 Marginal distributions

Marginal distributions describe the probability distribution of a subset of the random variables in a multivariate system, irrespective of the values taken by the remaining variables.

Marginal Distributions for Discrete Variables

If X1,X2,…,XkX_1, X_2, \dots, X_k are jointly discrete with joint PMF pX1,…,Xkp_{X_1, \dots, X_k}, the marginal PMF for a subset, say XiX_i, is found by summing the joint PMF over all possible values of the remaining variables: pXi(xi)=∑x1⋯∑xi−1∑xi+1⋯∑xkpX1,…,Xk(x1,…,xk)p_{X_i}(x_i) = \sum_{x_1} \cdots \sum_{x_{i-1}} \sum_{x_{i+1}} \cdots \sum_{x_k} p_{X_1, \dots, X_k}(x_1, \dots, x_k) (Generalization from bivariate structure implied by Example 3 ).

For the bivariate case (X,YX, Y) with joint PMF pX,Y(x,y)p_{X,Y}(x,y):

  • Marginal PMF of XX: pX(x)=∑ypX,Y(x,y)p_X(x) = \sum_{y} p_{X,Y}(x,y).
  • Marginal PMF of YY: pY(y)=∑xpX,Y(x,y)p_Y(y) = \sum_{x} p_{X,Y}(x,y).

Example: In the tetrahedra rolling example where XX is the first die value and YY is the maximum observed value, the marginal PMF pXp_X is found by summing pX,Y(1,y)p_{X,Y}(1,y) over all possible yy values 17 1.

Marginal Distributions for Continuous Variables

If XX and YY are jointly continuous with joint PDF fX,Y(x,y)f_{X,Y}(x,y), the marginal PDF for XX is found by integrating the joint PDF over the entire range of YY: fX(x)=∫−∞∞fX,Y(x,y) dyf_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x,y) \, dy.

Similarly, the marginal PDF for YY is: fY(y)=∫−∞∞fX,Y(x,y) dxf_Y(y) = \int_{-\infty}^{\infty} f_{X,Y}(x,y) \, dx 19.

The marginal CDFs are obtained by integrating the joint PDF up to the required point in the complementary variable's domain (Contextual relationship implied) 16.

2. Introduction and foundational concepts of mathematical statistics (part 2)

This section details the formal definitions and mathematical derivations for absolutely continuous joint distributions, their marginal distributions via integration, and specific examples of bivariate continuous distributions.

2.1 Absolutely continuous joint distributions

A kk-dimensional random vector X=(X1,X2,…,Xk)′\mathbf{X} = (X_1, X_2, \ldots, X_k)' is defined as (absolutely) continuous if there exists a non-negative function, the joint probability density function (PDF), denoted fX(⋅)f_{\mathbf{X}}(\cdot), such that the joint cumulative distribution function (CDF) is: FX(x)=∫−∞x1∫−∞x2⋯∫−∞xkfX(u) du1du2⋯dukF_{\mathbf{X}}(\mathbf{x}) = \int_{-\infty}^{x_1} \int_{-\infty}^{x_2} \cdots \int_{-\infty}^{x_k} f_{\mathbf{X}}(\mathbf{u}) \, du_1 du_2 \cdots du_k where x=(x1,x2,…,xk)′∈Rk\mathbf{x} = (x_1, x_2, \ldots, x_k)' \in \mathbb{R}^k 21.

The joint PDF fX(x)f_{\mathbf{X}}(\mathbf{x}) must satisfy two primary conditions:

  1. fX1,…,Xk(x1,…,xk)≥0f_{X_1, \ldots, X_k}(x_1, \ldots, x_k) \geq 0 for all x∈Rk\mathbf{x} \in \mathbb{R}^k.
  2. The total volume under the surface must integrate to one: ∫R∫R⋯∫RfX1,…,Xk(x1,…,xk) dx1dx2⋯dxk=1\int_{\mathbb{R}} \int_{\mathbb{R}} \cdots \int_{\mathbb{R}} f_{X_1, \ldots, X_k}(x_1, \ldots, x_k) \, dx_1 dx_2 \cdots dx_k = 1

For the bivariate case (X,Y)′(X, Y)', the relationship between the joint CDF FX,Y(u,v)F_{X,Y}(u,v) and the joint PDF fX,Y(x,y)f_{X,Y}(x,y) is: FX,Y(u,v)=P(X≤u,Y≤v)=∫−∞v∫−∞ufX,Y(x,y) dxdyF_{X,Y}(u,v) = P(X \leq u, Y \leq v) = \int_{-\infty}^{v} \int_{-\infty}^{u} f_{X,Y}(x,y) \, dxdy and conversely, where the joint CDF is differentiable: fX,Y(x,y)=∂2FX,Y(x,y)∂x∂yf_{X,Y}(x,y) = \frac{\partial^2 F_{X,Y}(x,y)}{\partial x \partial y} The probability over a rectangular region is found by integrating the joint PDF: P(a<X≤b,c<Y≤d)=∫cd∫abfX,Y(x,y) dxdyP(a<X \leq b, c<Y \leq d) = \int_{c}^{d} \int_{a}^{b} f_{X,Y}(x,y) \, dxdy

Tip: In the continuous bivariate case, probabilities correspond to volumes under the joint PDF surface, analogous to how areas represent probabilities in the univariate continuous case.

Example of Joint PDF Normalization

If a bivariate function is f(x,y)=K(x+2y)I(0,1)(x)I(0,1)(y)f(x,y) = K(x+2y)I_{(0,1)}(x)I_{(0,1)}(y) over the unit square, normalization requires ∫01∫01K(x+2y) dxdy=1\int_0^1 \int_0^1 K(x+2y) \, dxdy = 1. This yields 3K/2=13K/2 = 1, so K=2/3K = 2/3. The joint PDF is fX,Y(x,y)=23(x+y)I(0,1)(x)I(0,1)(y)f_{X,Y}(x,y) = \frac{2}{3}(x+y)I_{(0,1)}(x)I_{(0,1)}(y) 22.

Example of Joint CDF and Probability Calculation

If fX,Y(x,y)=e−x−yI(0,∞)(x)I(0,∞)(y)f_{X,Y}(x,y) = e^{-x-y}I_{(0,\infty)}(x)I_{(0,\infty)}(y), the joint CDF for u,v≥0u, v \geq 0 is calculated by integration: FX,Y(u,v)=∫0u∫0ve−x−y dydx=(1−e−u)(1−e−v)=1−e−u−e−v+e−u−vF_{X,Y}(u,v) = \int_{0}^{u} \int_{0}^{v} e^{-x-y} \, dydx = (1 - e^{-u})(1 - e^{-v}) = 1 - e^{-u} - e^{-v} + e^{-u-v}.

Probabilities in specified regions are found by integrating over the region of interest AA:

  • P(X+Y≤2)=∫02∫02−xe−x−y dydx=1−3e−2P(X+ Y \leq 2) = \int_{0}^{2} \int_{0}^{2-x} e^{-x-y} \, dydx = 1 - 3e^{-2} 23.
  • P(X>2Y)P(X > 2Y) over V={(x,y):0<x<∞;0<y<x/2}V = \{(x,y): 0 <x< \infty; 0 <y < x/2\} is ∫0∞∫0x/2e−x−y dydx=1/3\int_{0}^{\infty} \int_{0}^{x/2} e^{-x-y} \, dydx = 1/3.

2.2 Special continuous multivariate distributions

The material covers specific forms of bivariate continuous distributions.

Bivariate Uniform Distribution

A bivariate continuous random vector (X,Y)′(X,Y)' has a Bivariate Uniform distribution over a region A⊂R2A \subset \mathbb{R}^2 if its joint PDF is: fX,Y(x,y)={k,∀(x,y)∈A0,otherwisef_{X,Y}(x,y) = \begin{cases} k, & \forall (x,y) \in A \\ 0, & \text{otherwise} \end{cases} where k=1/(area of A)k = 1 / (\text{area of } A) 24.

Example: If (X,Y)′(X,Y)' is Uniform over the unit square (Area = 1), then fX,Y(x,y)=1f_{X,Y}(x,y) = 1 within the square. P(X+Y<1/2)P(X + Y < 1/2) requires integrating 1 over the region U={(x,y):0<x<1/2,0<y<1/2−x}U = \{(x,y): 0<x< 1/2, 0 <y < 1/2-x\}, yielding a probability of 1/81/8.

Bivariate Normal Distribution

A bivariate continuous random vector (X,Y)′(X,Y)' follows a Bivariate Normal distribution if its joint PDF is: f_{X,Y}(x,y) = \frac{1}{2\pi\sigma_X\sigma_Y \sqrt{1 -\rho^2}} \times \exp\left\{ \frac{-1}{2(1 -\rho^2)} \left[ \left(\frac{x-\mu_X}{\sigma_X}\right)^2 - 2\rho \frac{x-\mu_X}{\sigma_X}\frac{y-\mu_Y}{\sigma_Y} + \left(\frac{y-\mu_Y}{\sigma_Y}\right)^2 \right \right\} where μX,μY\mu_X, \mu_Y are means, σX,σY>0\sigma_X, \sigma_Y > 0 are standard deviations, and ρ∈[−1,1]\rho \in [-1, 1] is the correlation coefficient 25.

This distribution is defined by 5 parameters: μX,μY,σX2,σY2\mu_X, \mu_Y, \sigma_X^2, \sigma_Y^2, and ρ\rho. Geometrically, this generates a bell-shaped surface.

2.3 Marginal distributions (CDF)

The marginal cumulative distribution function (CDF) FXi(⋅)F_{X_i}(\cdot) of a component XiX_i from a kk-dimensional vector X\mathbf{X} is found by taking the limit of the joint CDF as all other variables tend to infinity: FXi(xi)=lim⁡all xj→∞,j≠iFX1,…,Xk(x1,…,xk)F_{X_i}(x_i) = \lim_{\text{all } x_j \to \infty, j\neq i} F_{X_1, \ldots, X_k}(x_1, \ldots, x_k) For the bivariate case: FX(x)=FX,Y(x,∞)andFY(y)=FX,Y(∞,y)F_{X}(x) = F_{X,Y}(x, \infty) \quad \text{and} \quad F_{Y}(y) = F_{X,Y}(\infty, y).

Knowledge of the joint distribution allows the unique determination of all marginal distributions, but the converse is not true: marginal distributions are not sufficient to determine the joint distribution 26.

Marginal CDF Example (Discrete Case Basis)

Given a complex joint CDF FX,Y(x,y)F_{X,Y}(x,y), the marginal CDF FX(x)F_X(x) is found by setting y→∞y \to \infty: FX(x)=lim⁡y→∞FX,Y(x,y)=(1−e−2x)I(0,∞)(x)F_X(x) = \lim_{y\to\infty} F_{X,Y}(x,y) = (1 - e^{-2x})I_{(0,\infty)}(x) for a specific piecewise defined joint CDF.

2.4 Marginal distributions (Discrete Case - PMF)

For a kk-dimensional discrete random vector X\mathbf{X} with joint PMF pX(⋅)p_{\mathbf{X}}(\cdot), the marginal PMF of XiX_i is found by summing the joint PMF over all possible values of the other variables: pXi(xi)=∑all xj,j≠ipX1,…,Xk(x1,…,xk)p_{X_i}(x_i) = \sum_{\text{all } x_j, j \neq i} p_{X_1, \ldots, X_k}(x_1, \ldots, x_k) 27.

In the bivariate case: pX(u)=∑all mass pts of YpX,Y(u,y)p_X(u) = \sum_{\text{all mass pts of Y}} p_{X,Y}(u,y) pY(v)=∑all mass pts of XpX,Y(x,v)p_Y(v) = \sum_{\text{all mass pts of X}} p_{X,Y}(x,v) This is conceptually represented by summing the rows or columns in the joint PMF table to find the marginal totals (hence the term "marginal").

Example: For a joint PMF table, summing the probabilities in a row yields the marginal PMF for the corresponding value of XX (the marginal pX(x)p_X(x)), and summing the columns yields pY(y)p_Y(y) 28.

2.5 Marginal distributions (Continuous Case - PDF)

For a kk-dimensional absolutely continuous random vector X\mathbf{X} with joint PDF fX(⋅)f_{\mathbf{X}}(\cdot), the marginal PDF of XiX_i is found by integrating the joint PDF over the entire real line R\mathbb{R} with respect to all other variables: fXi(xi)=∫R⋯∫RfX1,…,Xk(x1,…,xk) dx1⋯dxi−1dxi+1⋯dxkf_{X_i}(x_i) = \int_{\mathbb{R}} \cdots \int_{\mathbb{R}} f_{X_1, \ldots, X_k}(x_1, \ldots, x_k) \, dx_1 \cdots dx_{i-1} dx_{i+1} \cdots dx_k.

In the bivariate case: fX(x)=∫RfX,Y(x,y) dy,fY(y)=∫RfX,Y(x,y) dxf_X(x) = \int_{\mathbb{R}} f_{X,Y}(x,y) \, dy, \quad f_Y(y) = \int_{\mathbb{R}} f_{X,Y}(x,y) \, dx.

A crucial distinction is noted: If XX and YY are jointly continuous, then XX and YY are individually continuous. However, if XX and YY are continuous, the vector (X,Y)′(X,Y)' is not necessarily jointly continuous 30.

Marginal PDF Example

If fX,Y(x,y)=(x+y)I(0,1)(x)I(0,1)(y)f_{X,Y}(x,y) = (x+ y)I_{(0,1)}(x)I_{(0,1)}(y), the marginal PDF for XX over 0<x<10<x<1 is: fX(x)=∫01(x+y) dy⋅I(0,1)(x)=(xy+y22)∣01⋅I(0,1)(x)=(x+12)I(0,1)(x)f_X(x) = \int_{0}^{1} (x+ y) \, dy \cdot I_{(0,1)}(x) = \left( xy + \frac{y^2}{2} \right) \bigg|_0^1 \cdot I_{(0,1)}(x) = \left( x + \frac{1}{2} \right) I_{(0,1)}(x) Similarly, for YY over 0<y<10<y<1: fY(y)=∫01(x+y) dx⋅I(0,1)(y)=(x22+xy)∣01⋅I(0,1)(y)=(y+12)I(0,1)(y)f_Y(y) = \int_{0}^{1} (x+ y) \, dx \cdot I_{(0,1)}(y) = \left( \frac{x^2}{2} + xy \right) \bigg|_0^1 \cdot I_{(0,1)}(y) = \left( y + \frac{1}{2} \right) I_{(0,1)}(y) 31.

3. Conditional distributions and stochastic independence

This section details the formal definitions and properties of conditional probability distributions for both discrete and continuous random variables, and subsequently explores the fundamental concept of stochastic independence between random variables.

3.1 Conditional distributions for discrete random variables

The conditional probability mass function (PMF) allows us to describe the distribution of one random variable given that another random variable has taken a specific value.

Definition of Conditional PMF (Discrete Case): If XX and YY are jointly discrete random variables with joint PMF pX,Y(⋅,⋅)p_{X,Y}(\cdot, \cdot), the conditional PMF of YY given X=x0X=x_0, denoted pY∣X(y∣x0)p_{Y|X}(y|x_0), is defined as: pY∣X(y∣x0)=P(Y=y∣X=x0)=pX,Y(x0,y)pX(x0)p_{Y|X}(y|x_0) = P(Y = y|X = x_0) = \frac{p_{X,Y}(x_0,y)}{p_X(x_0)} This is valid provided the marginal probability pX(x0)=P(X=x0)≠0p_X(x_0) = P(X = x_0) \neq 0. Otherwise, it is undefined.

Similarly, the conditional PMF of XX given Y=y0Y=y_0 is: pX∣Y(x∣y0)=P(X=x∣Y=y0)=pX,Y(x,y0)pY(y0)p_{X|Y}(x|y_0) = P(X = x|Y = y_0) = \frac{p_{X,Y}(x,y_0)}{p_Y(y_0)} provided pY(y0)≠0p_Y(y_0) \neq 0.

Remarks on Conditional PMF:

  • This definition extends analogously to sub-vectors of a random vector. For example, the conditional PMF of X1\mathbf{X}_1 given X2=x20\mathbf{X}_2 = \mathbf{x}_{20} is pX1∣X2(x1∣x20)=pX1,X2(x1,x20)pX2(x20)p_{\mathbf{X}_1|\mathbf{X}_2}(\mathbf{x}_1|\mathbf{x}_{20}) = \frac{p_{\mathbf{X}_1,\mathbf{X}_2}(\mathbf{x}_1,\mathbf{x}_{20})}{p_{\mathbf{X}_2}(\mathbf{x}_{20})}.
  • The resulting conditional PMF, pY∣X(⋅∣x0)p_{Y|X}(\cdot|x_0) or pX∣Y(⋅∣y0)p_{X|Y}(\cdot|y_0), satisfies all properties of a genuine PMF:
    • pY∣X(y∣x0)≥0p_{Y|X}(y|x_0) \geq 0 for all yy.
    • ∑ypY∣X(y∣x0)=1\sum_{y} p_{Y|X}(y|x_0) = 1 34.

Conditional CDF (Discrete Case): The conditional cumulative distribution function (CDF) of YY given X=x0X=x_0 is defined using the conditional PMF: FY∣X(y∣x0)=P(Y≤y∣X=x0)=∑a≤ypY∣X(a∣x0)F_{Y|X}(y|x_0) = P(Y \leq y|X = x_0) = \sum_{a \leq y} p_{Y|X}(a|x_0) Similarly for FX∣Y(x∣y0)F_{X|Y}(x|y_0). These conditional CDFs possess all properties of a valid CDF.

Tip: A conditional distribution is undefined if the probability of the conditioning event (the denominator in the definition) is zero, as conditioning on an impossible event is meaningless 35.

3.2 Conditional distributions for continuous random variables

The concept is analogous for jointly absolutely continuous random variables using probability density functions (PDFs).

Definition of Conditional PDF (Continuous Case): If XX and YY are jointly continuous with joint PDF fX,Y(⋅,⋅)f_{X,Y}(\cdot, \cdot), the conditional PDF of YY given X=x0X=x_0, denoted fY∣X(y∣x0)f_{Y|X}(y|x_0), is defined as: fY∣X(y∣x0)=fX,Y(x0,y)fX(x0)f_{Y|X}(y|x_0) = \frac{f_{X,Y}(x_0,y)}{f_X(x_0)} provided fX(x0)≠0f_X(x_0) \neq 0. Otherwise, it is undefined.

Similarly, the conditional PDF of XX given Y=y0Y=y_0 is: fX∣Y(x∣y0)=fX,Y(x,y0)fY(y0)f_{X|Y}(x|y_0) = \frac{f_{X,Y}(x,y_0)}{f_Y(y_0)} provided fY(y0)≠0f_Y(y_0) \neq 0 37.

Remarks on Conditional PDF:

  • This definition also extends to sub-vectors of continuous random vectors.
  • The conditional PDF fY∣X(⋅∣x0)f_{Y|X}(\cdot|x_0) is a genuine PDF, satisfying:
    • fY∣X(y∣x0)≥0f_{Y|X}(y|x_0) \geq 0 for all yy.
    • ∫RfY∣X(y∣x0)dy=1\int_{\mathbb{R}} f_{Y|X}(y|x_0) dy = 1.

Conditional CDF (Continuous Case): The conditional CDF is found by integrating the conditional PDF: FY∣X(y∣x0)=∫−∞yfY∣X(y′∣x0)dy′F_{Y|X}(y|x_0) = \int_{-\infty}^{y} f_{Y|X}(y'|x_0) dy' And similarly for FX∣Y(x∣y0)F_{X|Y}(x|y_0).

Conditional CDF via Limits: For continuous variables, the conditional CDF FY∣X(y∣x0)F_{Y|X}(y|x_0) is given a meaning through limits involving intervals: FY∣X(y∣x0)=P(Y≤y∣X=x0)=lim⁡h→0+P(Y≤y∣x0≤X≤x0+h)F_{Y|X}(y|x_0) = P(Y \leq y|X = x_0) = \lim_{h \to 0^+} P(Y \leq y|x_0 \leq X \leq x_0 + h) If the conditioning event is an interval, such as x1≤X≤x2x_1 \leq X \leq x_2, the CDF is calculated as: FY∣X(y∣x1≤X≤x2)=P(Y≤y∣x1≤X≤x2)=P(x1≤X≤x2,Y≤y)P(x1≤X≤x2)F_{Y|X}(y|x_1 \leq X \leq x_2) = P(Y \leq y|x_1 \leq X \leq x_2) = \frac{P(x_1 \leq X \leq x_2, Y \leq y)}{P(x_1 \leq X \leq x_2)} 38.

Example: If XX and YY are independent, then fX,Y(x,y)=fX(x)fY(y)f_{X,Y}(x,y) = f_X(x)f_Y(y). Using the definition fX,Y(x,y)=fY∣X(y∣x)fX(x)f_{X,Y}(x,y) = f_{Y|X}(y|x)f_X(x), it follows that fY∣X(y∣x)=fY(y)f_{Y|X}(y|x) = f_Y(y); the conditional density depends only on yy, not on xx.

3.3 Stochastic independence of random variables

Stochastic independence (often referred to simply as independence) is a fundamental property describing when the outcome of one random variable provides no information about the outcome of another.

Definition 20: Stochastic Independence: A set of random variables X=(X1,X2,…,Xk)\mathbf{X} = (X_1, X_2, \dots, X_k) is stochastically independent if and only if their joint CDF factors into the product of their marginal CDFs: FX1,X2,…,Xk(x1,x2,…,xk)=∏i=1kFXi(xi)F_{X_1,X_2,\dots,X_k}(x_1,x_2,\dots,x_k) = \prod_{i=1}^{k} F_{X_i}(x_i) for all (x1,x2,…,xk)∈Rk(x_1, x_2, \dots, x_k) \in \mathbb{R}^k.

Factorization Criterion for Independence: If the joint and marginal density functions exist, independence can be verified using densities:

  • Discrete Case: Independence holds if and only if the joint PMF factors: pX1,X2,…,Xk(x1,x2,…,xk)=∏i=1kpXi(xi)p_{X_1,X_2,\dots,X_k}(x_1,x_2,\dots,x_k) = \prod_{i=1}^{k} p_{X_i}(x_i)
  • Continuous Case: Independence holds if and only if the joint PDF factors: fX1,X2,…,Xk(x1,x2,…,xk)=∏i=1kfXi(xi)f_{X_1,X_2,\dots,X_k}(x_1,x_2,\dots,x_k) = \prod_{i=1}^{k} f_{X_i}(x_i).

Relationship to Conditional Distributions: Independence is equivalent to the condition that the conditional distribution of one variable given another is equal to the unconditional distribution of that variable. For two variables, independence is equivalent to fY∣X(y∣x)=fY(y)f_{Y|X}(y|x) = f_Y(y) (or pY∣X(y∣x)=pY(y)p_{Y|X}(y|x) = p_Y(y) for discrete variables). A key test for dependence is showing that the conditional density/PMF explicitly depends on the conditioning variable.

Properties of Independence:

  • If X1,X2,…,XkX_1, X_2, \dots, X_k are independent, then any sub-collection of these variables is also independent (e.g., if X1X_1 through X10X_{10} are independent, then X1,X2,X6,X8X_1, X_2, X_6, X_8 are independent).
  • If X1,X2,…,XkX_1, X_2, \dots, X_k are independent, and Yi=gi(Xi)Y_i = g_i(X_i) are functions of XiX_i respectively, then Y1,Y2,…,YkY_1, Y_2, \dots, Y_k are also independent (functions of independent random variables are independent).

Mutual Independence vs. Pairwise Independence:

  • Mutual Independence: The definition provided above requires the joint distribution of the entire set to factorize.
  • It is possible for random variables to be pairwise independent (every pair is independent) but not mutually independent (the joint distribution of the entire set does not factorize).
  • However, mutually independent random variables are always pairwise independent 40.

Example: If XX and YY are jointly continuous with fX,Y(x,y)=e−(x+y)I(0,∞)(x)I(0,∞)(y)f_{X,Y}(x,y) = e^{-(x+y)}I_{(0,\infty)}(x)I_{(0,\infty)}(y), then XX and YY are independent because fX,Y(x,y)=[e−xI(0,∞)(x)]⋅[e−yI(0,∞)(y)]=fX(x)fY(y)f_{X,Y}(x,y) = [e^{-x}I_{(0,\infty)}(x)] \cdot [e^{-y}I_{(0,\infty)}(y)] = f_X(x)f_Y(y) 41.

4. Expectation, covariance, and conditional expectation for multiple random variables

This section extends the concepts of expectation, variance, and moment generation from univariate random variables to multivariate random vectors, introducing covariance, correlation, and the crucial framework of conditional expectation.

4.1 Expectation of functions of several random variables

The expectation operator is extended to vectors and functions of random vectors. A kk-dimensional random vector is denoted as X=(X1,X2,…,Xk)′X = (X_1, X_2, \ldots, X_k)' 43.

4.1.1 Definition of vector expectation and function expectation

The expected value of a random vector XX is the vector whose elements are the individual expectations of its components: E(X)=(E[X1,E[X2,…,E[Xk])′(3.1)E(X) = (E[X_1, E[X_2, \ldots, E[X_k])' \quad (3.1) The expectation of a function g(X)g(X) of the random vector XX is calculated by integrating (or summing, for discrete variables) the function multiplied by the joint probability density function (PDF) fX(x)f_X(x) (or joint probability mass function (PMF) pX(x)p_X(x)) over the support RkR^k (or set AA for discrete): E[g(X)]=∑Ag(x)pX(x),discrete caseE[g(X)] = \sum_{A} g(x) p_X(x), \quad \text{discrete case} E[g(X)]=∫Rkg(x)fX(x) dx,continuous case(3.3)E[g(X)] = \int_{R^k} g(x) f_X(x) \, dx, \quad \text{continuous case} \quad (3.3)

Tip: For a continuous random vector, the expectation integral expands to kk nested integrals, one for each variable: E[g(X)]=∫R⋯∫Rg(x1,…,xk)fX1,…,Xk(x1,…,xk) dx1⋯dxkE[g(X)] = \int_{R} \cdots \int_{R} g(x_1, \ldots, x_k) f_{X_1, \ldots, X_k}(x_1, \ldots, x_k) \, dx_1 \cdots dx_k 44.

4.1.2 Basic properties of expectation

Expectation exhibits linearity, which does not require any independence assumptions between the variables.

Result 1: Expectation of Linear Combinations For constants a1,…,ama_1, \ldots, a_m and real-valued functions gi(X)g_i(X) of a random vector XX: E\left[ \sum_{i=1}^{m} a_i g_i(X) \right = \sum_{i=1}^{m} a_i E[g_i(X)] Particular cases include:

  • E(X1±X2±⋯±Xk)=E(X1)±E(X2)±⋯±E(Xk)E(X_1 \pm X_2 \pm \cdots \pm X_k) = E(X_1) \pm E(X_2) \pm \cdots \pm E(X_k) 47.
  • E[aX+b=aE[X+bE[aX+ b = aE[X + b.

Result 2: Expectation of Products (Independence Required) If X1,X2,…,XkX_1, X_2, \ldots, X_k are independent random variables, and gi(⋅)g_i(\cdot) is a function of XiX_i alone, then: E\left[ \prod_{i=1}^{k} a_i g_i(X_i) \right = \prod_{i=1}^{k} a_i E[g_i(X_i)] A key implication is that if XX and YY are independent: E[XY=E[XE[Y]E[XY = E[X E[Y].

Note: Satisfying E[∏Xi=∏E[Xi]E[\prod X_i = \prod E[X_i] is a necessary but not sufficient condition for independence 48.

4.1.3 Covariance and Correlation Coefficient

These measures quantify the linear relationship between two random variables XX and YY defined on the same probability space.

Definition 22: Covariance Cov[X,Y=E[(X−μX)(Y−μY)]\text{Cov}[X, Y = E[(X - \mu_X)(Y - \mu_Y)] where μX=E[X]\mu_X = E[X] and μY=E[Y]\mu_Y = E[Y]. The computation simplifies to the relationship involving raw moments 49: Cov[X,Y=E[XY−μXμY\text{Cov}[X, Y = E[XY - \mu_X \mu_Y

Definition 23: Correlation Coefficient The correlation coefficient, ρX,Y\rho_{X,Y}, normalizes the covariance by the product of the standard deviations (σX=Var[X]\sigma_X = \sqrt{\text{Var}[X]}): ρX,Y=Cov[X,Y]σXσY,provided σX>0 and σY>0.\rho_{X,Y} = \frac{\text{Cov}[X,Y]}{\sigma_X \sigma_Y}, \quad \text{provided } \sigma_X > 0 \text{ and } \sigma_Y > 0.

Remarks on Covariance and Correlation:

  • Covariance magnitude depends on the scale of XX and YY; the correlation coefficient is a standardized, better measure of linear relationship.
  • Zero covariance implies zero correlation, which is necessary but not sufficient for independence. Conversely, independence implies zero covariance 50.
  • ρ(X,Y)=±1\rho(X,Y) = \pm 1 if and only if YY is a linear function of XX with probability 1.

4.1.4 General results for linear combinations

For a set of kk random variables X1,…,XkX_1, \ldots, X_k and constants a1,…,aka_1, \ldots, a_k: Var(∑i=1kaiXi)=∑i=1kai2Var(Xi)+2∑i<jaiajCov(Xi,Xj)\text{Var}\left( \sum_{i=1}^{k} a_i X_i \right) = \sum_{i=1}^{k} a_i^2 \text{Var}(X_i) + 2 \sum_{i<j} a_i a_j \text{Cov}(X_i, X_j) The covariance of two linear combinations is also defined: Cov(∑i=1kaiXi,∑j=1kbjYj)=∑i=1k∑j=1kaibjCov(Xi,Xj)\text{Cov}\left( \sum_{i=1}^{k} a_i X_i, \sum_{j=1}^{k} b_j Y_j \right) = \sum_{i=1}^{k} \sum_{j=1}^{k} a_i b_j \text{Cov}(X_i, X_j) 53.

Cauchy-Schwartz Inequality For random variables XX and YY with finite second raw moments: E(∣XY∣)≤E[X2E[Y2]E(|XY|) \le \sqrt{E[X^2 E[Y^2]} Equality holds if and only if YY is a linear function of XX with probability 1. This inequality is used to show that ∣ρ(X,Y)∣≤1|\rho(X,Y)| \le 1 54.

4.2 Conditional Expectation

Conditional expectation is the expectation of a random variable given the value of another random variable (or vector). For a bivariate case, the conditional expectation of g(X,Y)g(X,Y) given X=x0X = x_0 is defined based on the conditional PMF pY∣X(y∣x0)p_{Y|X}(y|x_0) or PDF fY∣X(y∣x0)f_{Y|X}(y|x_0) 55: E[g(X,Y)∣X=x0={∑∀yg(x0,y)pY∣X(y∣x0)discrete case∫Rg(x0,y)fY∣X(y∣x0) dycontinuous caseE[g(X,Y) |X = x_0 = \begin{cases} \sum_{\forall y} g(x_0,y) p_{Y|X}(y|x_0) & \text{discrete case} \\ \int_{R} g(x_0,y) f_{Y|X}(y|x_0) \, dy & \text{continuous case} \end{cases} The analogous definition holds for conditioning on Y=y0Y = y_0.

Special cases for conditional expectation/variance include:

  • E[Y∣X=x0=E[Y∣X]E[Y|X = x_0 = E[Y|X] evaluated at X=x0X=x_0.
  • Var[Y∣X=x0=E[Y2∣X=x0−[E(Y∣X=x0)]2\text{Var}[Y|X = x_0 = E[Y^2|X = x_0 - [E(Y|X = x_0)]^2 56.

If XX and YY are independent, then E(X∣Y=y0)=E(X)E(X|Y = y_0) = E(X) (the unconditional mean) with probability 1 57.

4.2.1 Expectation by conditioning

The conditional expectation E[Y∣X]E[Y|X] is itself a random variable dependent on XX. The law of total expectation (or expectation by conditioning) relates unconditional expectation to conditional expectation 60.

Theorem 3: Law of Total Expectation For a bivariate random vector (X,Y)′(X,Y)' and a function g(⋅)g(\cdot) of YY (or XX): E[g(Y)]=EX[EY[g(Y)∣X]]orE[g(X)]=EY[EX[g(X)∣Y]]E[g(Y)] = E_X[E_Y[g(Y)|X]] \quad \text{or} \quad E[g(X)] = E_Y[E_X[g(X)|Y]] These results can be expanded using marginal distributions: E[g(Y)]={∑∀x0E[g(Y)∣X=x0pX(x0),discrete case∫RE[g(Y)∣X=xfX(x) dx,continuous caseE[g(Y)] = \begin{cases} \sum_{\forall x_0} E[g(Y)|X = x_0 p_X(x_0), & \text{discrete case} \\ \int_{R} E[g(Y)|X = x f_X(x) \, dx, & \text{continuous case} \end{cases}

Variance by Conditioning The law of total variance decomposes the total variance: Var[Y=EX[Var(Y∣X)]+VarX[E(Y∣X)]\text{Var}[Y = E_X[\text{Var}(Y|X)] + \text{Var}_X[E(Y|X)] This states that the total variance is the sum of the expected conditional variance and the variance of the conditional means 61.

4.3 Joint moment generating functions and moments

The joint moment generating function (MGF) generalizes the MGF to multiple random variables and uniquely determines their joint distribution 64.

4.3.1 Definition of Joint MGF and Joint Moments

For a kk-dimensional vector X=(X1,…,Xk)′X = (X_1, \ldots, X_k)', the joint MGF is defined as: mX1,…,Xk(t1,…,tk)=E[exp⁡{∑i=1ktiXi}]m_{X_1, \ldots, X_k}(t_1, \ldots, t_k) = E\left[ \exp\left\{ \sum_{i=1}^{k} t_i X_i \right\} \right] The joint raw moment is E[X1r1X2r2⋯Xkrk]E[X_1^{r_1} X_2^{r_2} \cdots X_k^{r_k}], where ri≥0r_i \ge 0 are integers. The joint central moment is E[(X1−μX1)r1⋯(Xk−μXk)rk]E[(X_1 - \mu_{X_1})^{r_1} \cdots (X_k - \mu_{X_k})^{r_k}] 65.

For the bivariate case (X,Y)′(X, Y)', the joint central moment where r=s=1r=s=1 is precisely the covariance Cov[X,Y]\text{Cov}[X,Y].

Independence Condition using MGFs Random variables X1,…,XkX_1, \ldots, X_k are independent if and only if their joint MGF is the product of their individual marginal MGFs: mX1,…,Xk(t1,…,tk)=∏i=1kmXi(ti)m_{X_1, \ldots, X_k}(t_1, \ldots, t_k) = \prod_{i=1}^{k} m_{X_i}(t_i)

4.3.2 Generation of Moments

Moments can be derived by differentiating the joint MGF 66.

Result 1: Joint Raw Moments The joint (r1,…,rk)(r_1, \ldots, r_k)-th raw moment is obtained by differentiating the joint MGF rir_i times with respect to tit_i for all ii, and then setting all ti=0t_i = 0: E[X1r1⋯Xkrk]=∂r1+⋯+rkmX1,…,Xk(t1,…,tk)∂t1r1⋯∂tkrk∣t1=⋯=tk=0E[X_1^{r_1} \cdots X_k^{r_k}] = \left. \frac{\partial^{r_1 + \cdots + r_k} m_{X_1, \ldots, X_k}(t_1, \ldots, t_k)}{\partial t_1^{r_1} \cdots \partial t_k^{r_k}} \right|_{t_1 = \cdots = t_k = 0}

Result 2: Marginal Raw Moments The rr-th marginal raw moment of XiX_i, E[Xir]E[X_i^r], is obtained by differentiating the joint MGF rr times with respect to tit_i and setting all tj=0t_j = 0 for j=1,…,kj=1, \ldots, k.

Joint central moments (like covariance) and marginal central moments (like marginal variance) are calculated using the relationship between raw and central moments. For example, Cov[X,Y=E[XY−E[X]E[Y]\text{Cov}[X,Y = E[XY - E[X]E[Y] 67.

5. Distribution of functions of random variables and sampling distributions (part 1)

This section summarizes methods for deriving the distribution of functions of one or more random variables, focusing on the CDF, MGF, and Transformation techniques for Chapter 4.

5.1 Review: Distribution of a function of a single random variable

This review covers the techniques for finding the distribution of a univariate random variable Y=g(X)Y = g(X), separated by whether XX is discrete or continuous.

5.2.1 Discrete Case

If XX is a discrete random variable with mass points {x1,x2,…}\{x_1, x_2, \ldots\} and PMF pX(⋅)p_X(\cdot), then Y=g(X)Y = g(X) is also discrete with mass points yi=g(xi)y_i = g(x_i). The PMF of YY is found by summing the probabilities of all XX values that map to the same YY value: pY(yi)=P(Y=yi)=∑{xj:g(xj)=yi}pX(xj)p_Y(y_i) = P(Y = y_i) = \sum_{\{x_j: g(x_j) = y_i\}} p_X(x_j).

Tip: Note that g(⋅)g(\cdot) does not need to be one-to-one; multiple xjx_j's can map to the same yiy_i, requiring summation 74.

5.2.2 Continuous Case: Methods

When XX is continuous with PDF fX(⋅)f_X(\cdot) and CDF FX(⋅)F_X(\cdot), three methods are available for finding the distribution of Y=g(X)Y = g(X).

Method 1: CDF Technique

This technique determines the CDF of YY, FY(y)F_Y(y), by expressing the event {Y≤y}\{Y \leq y\} in terms of XX: FY(y)=P(Y≤y)=P(X∈A),where A={x:g(x)≤y}F_Y(y) = P(Y \leq y) = P(X \in A), \quad \text{where } A = \{x: g(x) \leq y\} 75. Once FY(y)F_Y(y) is found, the PDF fY(y)f_Y(y) is obtained by differentiation: fY(y)=ddyFY(y)f_Y(y) = \frac{d}{dy} F_Y(y). This method applies even if YY is not continuous.

Method 2: Transformation Technique

If g(⋅)g(\cdot) is strictly monotone (increasing or decreasing) and differentiable, the PDF of YY is given by: fY(y)=fX[g−1(y)]∣ddyg−1(y)∣,where y=g(x) is definedf_Y(y) = f_X[g^{-1}(y)] \left| \frac{d}{dy} g^{-1}(y) \right|, \quad \text{where } y=g(x) \text{ is defined}. If g(⋅)g(\cdot) is not one-to-one over the entire domain, the range of XX must be decomposed into sub-ranges where g(⋅)g(\cdot) is one-to-one, and the results summed (see generalization below). This method specifically finds the PDF, thus requiring YY to be continuous.

Example: If X∼Exp(λ=1)X \sim \text{Exp}(\lambda=1), then fX(x)=e−xI(0,∞)(x)f_X(x) = e^{-x}I_{(0,\infty)}(x). For Y=eXY = e^X, the inverse is g−1(y)=ln⁡yg^{-1}(y) = \ln y, and ddyln⁡y=1y\frac{d}{dy} \ln y = \frac{1}{y}. Thus, fY(y)=fX(ln⁡y)∣1y∣=(1y)(1y)=1y2I(1,∞)(y)f_Y(y) = f_X(\ln y) \left| \frac{1}{y} \right| = \left(\frac{1}{y}\right) \left(\frac{1}{y}\right) = \frac{1}{y^2} I_{(1,\infty)}(y).

Method 3: MGF Technique

Assuming the MGF exists, mY(t)m_Y(t) is found using the definition of expectation: mY(t)=E[exp⁡{tY}]=E[exp⁡{tg(X)}]=∫Rexp⁡{tg(x)}fX(x)dxm_Y(t) = E[\exp\{tY\}] = E[\exp\{tg(X)\}] = \int_{\mathbb{R}} \exp\{tg(x)\} f_X(x) dx 76. If the resulting function mY(t)m_Y(t) matches the MGF of a known distribution, then YY has that distribution.

Tip: For linear transformations like Y=σZ+μY = \sigma Z + \mu where Z∼N(0,1)Z \sim N(0,1), the MGF technique simplifies calculation by using the known MGF of ZZ, mZ(t)=et2/2m_Z(t) = e^{t^2/2} 77.

5.3 Distribution of a function of several random variables

This section covers methods for finding the joint distribution of multiple transformed variables Y1,…,YrY_1, \ldots, Y_r from X1,…,XkX_1, \ldots, X_k.

5.3.1 CDF Technique

For kk random variables X1,…,XkX_1, \ldots, X_k with joint CDF FX1,…,XkF_{X_1, \ldots, X_k}, the joint CDF of transformed variables Y1=g1(X),…,Yk=gk(X)Y_1 = g_1(X), \ldots, Y_k = g_k(X) is: FY1,…,Yk(y1,…,yk)=P[g1(X)≤y1,…,gk(X)≤yk]F_{Y_1, \ldots, Y_k} (y_1, \ldots, y_k) = P[g_1(X) \leq y_1, \ldots, g_k(X) \leq y_k]. This requires evaluating a region defined by the inequalities in terms of the joint CDF of XX. This method works even if the number of resulting variables rr is less than kk 79.

5.3.2 Distribution of Sum, Difference, Product, and Quotient

The transformation technique (Jacobian method, detailed below) is generally used for continuous variables, but specific results exist for common linear combinations.

Sum and Difference of Two Continuous Variables

If XX and YY have joint PDF fX,Y(x,y)f_{X,Y}(x,y), and Z=X+YZ = X+Y and V=X−YV = X-Y, their marginal PDFs are given by convolution integrals: fZ(z)=∫RfX,Y(x,z−x)dx=∫RfX,Y(z−y,y)dyf_Z(z) = \int_{\mathbb{R}} f_{X,Y}(x, z-x) dx = \int_{\mathbb{R}} f_{X,Y}(z-y, y) dy. fV(v)=∫RfX,Y(x,x−v)dx=∫RfX,Y(v+y,y)dyf_V(v) = \int_{\mathbb{R}} f_{X,Y}(x, x-v) dx = \int_{\mathbb{R}} f_{X,Y}(v+ y,y) dy 80.

Convolution Formula (for Independent Variables): If XX and YY are independent, the PDF of their sum Z=X+YZ=X+Y is: fZ(z)=∫RfY(z−x)fX(x)dx=∫RfX(z−y)fY(y)dyf_Z(z) = \int_{\mathbb{R}} f_Y(z-x)f_X(x) dx = \int_{\mathbb{R}} f_X(z-y)f_Y(y) dy.

Example: If X,YX, Y are independent and fX(x)=fY(x)=I(0,1)(x)f_X(x) = f_Y(x) = I_{(0,1)}(x), then Z=X+YZ=X+Y has PDF fZ(z)=zI(0,1)(z)+(2−z)I[1,2)(z)f_Z(z) = z I_{(0,1)}(z) + (2-z) I_{[1,2)}(z) 81.

Product and Quotient of Two Continuous Variables

If Z=XYZ = XY and V=X/YV = X/Y, their PDFs are: fZ(z)=∫R∣x∣−1fX,Y(x,z/x)dx=∫R∣y∣−1fX,Y(z/y,y)dyf_Z(z) = \int_{\mathbb{R}} |x|^{-1} f_{X,Y}(x, z/x) dx = \int_{\mathbb{R}} |y|^{-1} f_{X,Y}(z/y, y) dy. fV(v)=∫R∣y∣fX,Y(vy,y)dyf_V(v) = \int_{\mathbb{R}} |y| f_{X,Y}(vy, y) dy 82.

5.3.3 MGF Technique for Several Variables

If the joint MGF mY1,…,Yk(t1,…,tk)m_{Y_1, \ldots, Y_k}(t_1, \ldots, t_k) exists, it is derived from the definition: mY1,…,Yk(t1,…,tk)=E[exp⁡{t1g1(X)+⋯+tkgk(X)}]m_{Y_1, \ldots, Y_k} (t_1, \ldots, t_k) = E[\exp\{t_1 g_1(X) + \cdots + t_k g_k(X)\}]. If the resulting function can be identified as the joint MGF of a known distribution, then (Y1,…,Yk)(Y_1, \ldots, Y_k) follows that distribution. This method is often less practical for k>1k>1 due to the limited availability of known joint MGFs 83.

MGF of the Sum of Independent Variables: If X1,…,XnX_1, \ldots, X_n are independent with existing MGFs mXi(t)m_{X_i}(t), the MGF of their sum Y=∑i=1nXiY = \sum_{i=1}^n X_i is the product of the individual MGFs: mY(t)=∏i=1nmXi(t)m_Y(t) = \prod_{i=1}^n m_{X_i}(t).

If XiX_i are also identically distributed with common MGF mX(t)m_X(t), then mY(t)=[mX(t)]nm_Y(t) = [m_X(t)]^n. If the distribution of the sum belongs to the same parametric family, the distribution is called reproductive.

Remark: Any linear combination of independent Normal random variables is also Normal 84.

5.4 Method of Transformation (Jacobian Method)

5.4.1 Discrete Case

For kk discrete variables X1,…,XkX_1, \ldots, X_k with joint PMF pXp_X, the joint PMF of Y1=g1(X),…,Yk=gk(X)Y_1=g_1(X), \ldots, Y_k=g_k(X) is found by summing over all preimages in the support set HH: pY1,…,Yk(y1,…,yk)=∑(x1,…,xk)′∈H, such that (y1,…,yk)=(g1(x),…,gk(x))′pX1,…,Xk(x1,…,xk)p_{Y_1, \ldots, Y_k} (y_1, \ldots, y_k) = \sum_{(x_1, \ldots, x_k)' \in H, \text{ such that } (y_1, \ldots, y_k) = (g_1(x), \ldots, g_k(x))'} p_{X_1, \ldots, X_k} (x_1, \ldots, x_k) 85.

5.4.2 Continuous Case (Jacobian of Transformation)

If Y1=g1(X1,…,Xk),…,Yk=gk(X1,…,Xk)Y_1=g_1(X_1, \ldots, X_k), \ldots, Y_k=g_k(X_1, \ldots, X_k) are uniquely invertible (i.e., Xi=gi−1(Y1,…,Yk)X_i = g_i^{-1}(Y_1, \ldots, Y_k)), and the functions have continuous partial derivatives, the joint PDF fY1,…,Yk(y)f_{Y_1, \ldots, Y_k}(y) is found using the Jacobian determinant JJ of the inverse transformation: fY1,…,Yk(y)=∣J∣fX1,…,Xk(g1−1(y),…,gk−1(y))ID(y)f_{Y_1, \ldots, Y_k} (y) = |J| f_{X_1, \ldots, X_k} (g_1^{-1}(y), \ldots, g_k^{-1}(y)) I_D(y).

The Jacobian JJ is the determinant: J=∣∂X1∂Y1∂X1∂Y2⋯∂X1∂Yk∂X2∂Y1∂X2∂Y2⋯∂X2∂Yk⋮⋮⋱⋮∂Xk∂Y1∂Xk∂Y2⋯∂Xk∂Yk∣J = \begin{vmatrix} \frac{\partial X_1}{\partial Y_1} & \frac{\partial X_1}{\partial Y_2} & \cdots & \frac{\partial X_1}{\partial Y_k} \\ \frac{\partial X_2}{\partial Y_1} & \frac{\partial X_2}{\partial Y_2} & \cdots & \frac{\partial X_2}{\partial Y_k} \\ \vdots & \vdots & \ddots & \vdots \\ \frac{\partial X_k}{\partial Y_1} & \frac{\partial X_k}{\partial Y_2} & \cdots & \frac{\partial X_k}{\partial Y_k} \end{vmatrix} 86.

If only r<kr < k transformed variables are desired, one can introduce k−rk-r dummy variables (often chosen as some XiX_i's), find the joint PDF of all kk variables, and then integrate out the dummy variables.

Example: For U=X/YU = X/Y and V=X+YV = X+Y, where XX and YY have a joint PDF, the inverse functions are X=UV/(U+1)X = UV/(U+1) and Y=V/(U+1)Y = V/(U+1). The Jacobian is calculated from the partial derivatives of these inverse functions and multiplied by the original joint PDF evaluated at the inverse expressions 87.

5.5 Probability Integral Transform

If XX is a random variable with a continuous CDF FX(x)F_X(x), the transformation U=FX(X)U = F_X(X) results in a random variable UU uniformly distributed over the interval (0,1)(0,1). Conversely, if U∼U(0,1)U \sim U(0,1), then X=FX−1(U)X = F_X^{-1}(U) has the CDF FX(⋅)F_X(\cdot).

Definition: The transformation Y=FX(X)Y = F_X(X) is known as the Probability Integral Transform and is foundational in distribution-free (nonparametric) statistics 88.

6. Distribution of functions of random variables and sampling distributions (part 2)

This section summarizes key concepts in sampling theory, covering the definition of random samples, properties of sample moments, the Law of Large Numbers, the Central Limit Theorem, and the exact sampling distributions derived from normal populations: Chi-square, F, and Student's t.

6.1 Populations and samples

The central goal of inductive inference in statistics is to gain information about a target population by examining a portion of it, known as a sample.

Definitions related to sampling:

  • Target population: The entire collection of elements about which information is sought 89.
  • Random Sample: A set of random variables X1,X2,…,XnX_1, X_2, \ldots, X_n is a random sample of size nn from a population with density f(⋅)f(\cdot) if their joint density factors into the product of their individual densities: fX1,…,Xn(x1,…,xn)=f(x1)f(x2)⋯f(xn)f_{X_1,\ldots,X_n} (x_1,\ldots,x_n) = f(x_1)f(x_2) \cdots f(x_n) The individual XiX_i are independent and identically distributed (i.i.d.).
  • Sampled population: The specific population from which the random sample X1,…,XnX_1, \ldots, X_n was drawn 90.
  • Distribution of the sample: Defined as the joint distribution of the random variables X1,X2,…,XnX_1, X_2, \ldots, X_n. Note that this preserves the order of observation, unlike the distribution of a function of the sample elements (e.g., the sum) 91.

6.2 Statistic and sample moments

A statistic is a function of observable random variables (the sample observations) that does not contain any unknown parameters. Statistics are used to estimate unknown population parameters θ\theta in the population density f(⋅;θ)f(\cdot; \theta).

Sample Moments: If X1,X2,…,XnX_1, X_2, \ldots, X_n is a random sample from a density f(⋅)f(\cdot):

  • The rr-th sample moment about 0 is defined as: Mr′=1n∑i=1nXirM'_r = \frac{1}{n}\sum_{i=1}^{n} X^r_i. The sample mean is the first moment (r=1r=1): Xn=Xˉ=1n∑i=1nXiX_n = \bar{X} = \frac{1}{n}\sum_{i=1}^{n} X_i 92.
  • The rr-th sample moment about the sample mean Xˉ\bar{X} is defined as: Mr=1n∑i=1n(Xi−Xˉ)rM_r = \frac{1}{n}\sum_{i=1}^{n} (X_i - \bar{X})^r.

Properties of Sample Moments: If μr′=E[Xr]\mu'_r = E[X^r] is the rr-th population moment:

  • The expected value of the rr-th sample moment about 0 equals the rr-th population moment (if it exists): E[Mr′=μr′E[M'_r = \mu'_r.
  • The variance of the rr-th sample moment about 0 is: Var[Mr′=1n[μ2r′−(μr′)2]\text{Var}[M'_r = \frac{1}{n}[\mu'_{2r} - (\mu'_r)^2].

Properties of the Sample Mean (Xˉ\bar{X}): If the population density has mean μ\mu and finite variance σ2\sigma^2:

  • E[Xˉ]=μE[\bar{X}] = \mu
  • Var[Xˉ]=σ2n\text{Var}[\bar{X}] = \frac{\sigma^2}{n} 95.

Sample Variance (S2S^2): The sample variance is defined for n>1n>1 as: Sn2=S2=1n−1∑i=1n(Xi−Xˉ)2S^2_n = S^2 = \frac{1}{n-1}\sum_{i=1}^{n} (X_i - \bar{X})^2. It is an unbiased estimator of the population variance σ2\sigma^2: E[S2=σ2E[S^2 = \sigma^2 94.

Tip: Understanding the distinction between sample moments (statistics based on a finite sample) and population moments (theoretical values based on the infinite population) is crucial for inference 93.

6.3 Law of Large Numbers and Central Limit Theorem

These theorems address the reliability of the sample mean Xˉ\bar{X} as an estimator for the population mean μ\mu as the sample size nn increases.

Weak Law of Large Numbers (WLLN): If a density f(⋅)f(\cdot) has mean μ\mu and finite variance σ2\sigma^2, and ϵ>0\epsilon > 0 and 0<δ<10 < \delta < 1 are specified, choosing n>σ2δϵ2n > \frac{\sigma^2}{\delta\epsilon^2} ensures that the probability that the sample mean Xˉn\bar{X}_n deviates from μ\mu by less than ϵ\epsilon is at least 1−δ1 - \delta: P\left[-\epsilon < \bar{X}_n - \mu < \epsilon \right \geq 1 - \delta. In essence, the WLLN guarantees that Xˉn\bar{X}_n converges in probability to μ\mu 96.

Central Limit Theorem (CLT): Let Xˉn\bar{X}_n be the sample mean of a random sample from a density with mean μ\mu and finite variance σ2\sigma^2. The standardized variable ZnZ_n approaches the standard normal distribution (N(0,1)\text{N}(0, 1)) as n→∞n \to \infty: Zn=Xˉn−E[Xˉn]Var[Xˉn]=Xˉn−μσ/n→dN(0,1) as n→∞Z_n = \frac{\bar{X}_n - E[\bar{X}_n]}{\sqrt{\text{Var}[\bar{X}_n]}} = \frac{\bar{X}_n - \mu}{\sigma/\sqrt{n}} \xrightarrow{d} N(0, 1) \text{ as } n \to \infty. The CLT is powerful because it dictates the asymptotic distribution of the sample mean regardless of the form of the original density, provided the variance is finite.

6.4 Sampling from the Normal Distribution

When the parent distribution is Normal, exact sampling distributions for functions of the sample can be derived analytically 97.

6.4.1 The Chi-square Distribution

The Chi-square distribution with kk degrees of freedom (k∈Z+k \in \mathbb{Z}^+) has the density: fX(x)=1Γ(k/2)(12)k/2xk/2−1e−x/2I(0,∞)(x)f_X(x) = \frac{1}{\Gamma(k/2)}\left(\frac{1}{2}\right)^{k/2} x^{k/2 - 1}e^{-x/2} I_{(0,\infty)}(x) 98.

Properties (if X∼χ2(k)X \sim \chi^2(k)):

  • E[X=kE[X = k
  • Var[X=2k\text{Var}[X = 2k.

Key Theorems for Chi-square:

  1. If Xi∼N(μi,σi2)X_i \sim N(\mu_i, \sigma^2_i) are normally and independently distributed, then U=∑i=1k(Xi−μiσi)2U = \sum_{i=1}^{k} \left(\frac{X_i - \mu_i}{\sigma_i}\right)^2 has a χ2(k)\chi^2(k) distribution 99.
  2. Corollary: If X1,…,XnX_1, \ldots, X_n is a random sample from N(μ,σ2)N(\mu, \sigma^2), then U=1σ2∑i=1n(Xi−μ)2U = \frac{1}{\sigma^2} \sum_{i=1}^{n} (X_i - \mu)^2 has a χ2(n)\chi^2(n) distribution 100.

Independence and Degrees of Freedom: If Z1,…,ZnZ_1, \ldots, Z_n is a random sample from the standard normal distribution (N(0,1)N(0, 1)), then:

  • The sample mean Zˉ=1n∑Zi\bar{Z} = \frac{1}{n}\sum Z_i and the sum of squared deviations ∑i=1n(Zi−Zˉ)2\sum_{i=1}^{n} (Z_i - \bar{Z})^2 are independent part (ii).
  • Consequently, ∑i=1n(Zi−Zˉ)2\sum_{i=1}^{n} (Z_i - \bar{Z})^2 has a χ2(n−1)\chi^2(n-1) distribution part (iii) 101.

Sample Variance in Normal Context: If S2S^2 is the sample variance of a sample from N(μ,σ2)N(\mu, \sigma^2): (n−1)S2σ2∼χ2(n−1)\frac{(n-1)S^2}{\sigma^2} \sim \chi^2(n-1). This term relates the statistic S2S^2 to the unknown σ2\sigma^2. The degrees of freedom (n−1n-1) represent the number of independent squared deviations remaining after estimating one parameter (μ\mu) 102.

6.4.2 The F Distribution

The F distribution is defined as the distribution of the ratio of two independent chi-square random variables divided by their respective degrees of freedom. If U∼χ2(m)U \sim \chi^2(m) and V∼χ2(n)V \sim \chi^2(n) are independent, then XX defined by: X=U/mV/nX = \frac{U/m}{V/n} has an FF distribution with mm (numerator) and nn (denominator) degrees of freedom, denoted F(m,n)F(m, n) 103.

Application to Sample Variances: If two independent random samples are drawn from normal populations, both assumed to have the same unknown variance σ2\sigma^2: ∑i=1m+1(Xi−Xˉ)2/m∑j=1n+1(Yj−Yˉ)2/n∼F(m,n)\frac{\sum_{i=1}^{m+1} (X_i - \bar{X})^2 / m}{\sum_{j=1}^{n+1} (Y_j - \bar{Y})^2 / n} \sim F(m, n). This forms the basis for testing the equality of two variances 104.

Properties (If X∼F(m,n)X \sim F(m, n)):

  • E[X=nn−2for n>2E[X = \frac{n}{n-2} \quad \text{for } n > 2.
  • If X∼F(m,n)X \sim F(m, n), then 1/X∼F(n,m)1/X \sim F(n, m).

Example: If F0.95(m,n)F_{0.95}(m, n) is the 95th percentile for F(m,n)F(m, n), then the 5th percentile for F(n,m)F(n, m) is F0.05′(n,m)=1/F0.95(m,n)F'_{0.05}(n, m) = 1 / F_{0.95}(m, n) 105.

6.4.3 Student’s t Distribution

The Student's t distribution with kk degrees of freedom arises from the ratio of a standard normal variable to the square root of an independent chi-square variable divided by its degrees of freedom.

If Z∼N(0,1)Z \sim N(0, 1) and U∼χ2(k)U \sim \chi^2(k) are independent, then XX defined by: X=ZU/kX = \frac{Z}{\sqrt{U/k}} has a Student's tt distribution with kk degrees of freedom, t(k)t(k) 106.

Application to Sample Mean: If X1,…,XnX_1, \ldots, X_n is a random sample from N(μ,σ2)N(\mu, \sigma^2), the following statistic has a tt distribution with n−1n-1 degrees of freedom: T=(Xˉ−μ)/(σ/n)1σ2∑i=1n(Xi−Xˉ)2/(n−1)=n(Xˉ−μ)ST = \frac{(\bar{X} - \mu)/(\sigma/\sqrt{n})}{\sqrt{\frac{1}{\sigma^2} \sum_{i=1}^{n} (X_i - \bar{X})^2 / (n-1)}} = \frac{\sqrt{n}(\bar{X} - \mu)}{S}. This result relies on the independence between the sample mean (Xˉ\bar{X}) and the sample variance (S2S^2) when sampling from a normal distribution.

Properties (If X∼t(k)X \sim t(k)):

  • E[X=0if k>1E[X = 0 \quad \text{if } k > 1
  • Var[X=kk−2if k>2\text{Var}[X = \frac{k}{k-2} \quad \text{if } k > 2.

Study Note: The tt-distribution approaches the standard normal distribution as the degrees of freedom (kk) become large. The FF-distribution simplifies to the square of the tt-distribution when the denominator degrees of freedom (nn) is very large (effectively infinity) 107.

Common mistakes to avoid

  • Review all topics thoroughly before exams
  • Pay attention to formulas and key definitions
  • Practice with examples provided in each section
  • Don't memorize without understanding the underlying concepts

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also