UNIT-II: Expectation, Variance, Moments, and Generating Functions
Table of Contents
Expectation of Random Variables and its Properties
1.1. Definition of Expectation
The expectation (or expected value or mean) of a random variable is the weighted average of all possible values that the random variable can take on. The weights are the probabilities associated with each value. It represents the central tendency of the distribution.
For a Discrete Random Variable X
If X is a discrete random variable with probability mass function (PMF) P(X=x), its expectation is:
E[X] = ∑x x P(X=x)
The sum is over all possible values x that X can take.
For a Continuous Random Variable X
If X is a continuous random variable with probability density function (PDF) f(x), its expectation is:
E[X] = ∫-∞∞ x f(x) dx
Expectation of a Function of a Random Variable
For a function g(X) of a discrete random variable X:
E[g(X)] = ∑x g(x) P(X=x)
For a function g(X) of a continuous random variable X:
E[g(X)] = ∫-∞∞ g(x) f(x) dx
1.2. Properties of Expectation
Expectation is a linear operator and possesses several important properties:
- Expectation of a Constant: The expected value of a constant 'c' is the constant itself.
- Expectation of a Constant times a Random Variable: If 'c' is a constant and X is a random variable.
- Expectation of a Sum/Difference of Random Variables: For any two random variables X and Y (dependent or independent).
- Expectation of a Linear Combination: For constants a, b and random variables X, Y.
- Expectation of a Product of Independent Random Variables: If X and Y are independent random variables.
E[c] = c
E[cX] = c E[X]
E[X + Y] = E[X] + E[Y]
E[X - Y] = E[X] - E[Y]
E[aX + bY] = a E[X] + b E[Y]
E[XY] = E[X] E[Y]
Important Note: This property does NOT generally hold if X and Y are dependent.
Variance of Random Variables and its Properties
2.1. Definition of Variance
Variance measures the dispersion or spread of a random variable's values around its expected value (mean). A high variance indicates that data points are generally very far from the mean, while a low variance indicates that data points are clustered closely around the mean.
The variance of a random variable X, denoted as Var(X) or σ2X, is defined as the expected value of the squared deviation from the mean:
Var(X) = E[(X - E[X])2]
An alternative and often more convenient formula for calculation is:
Var(X) = E[X2] - (E[X])2
Where E[X2] is the expected value of X squared, and (E[X])2 is the square of the expected value of X.
The standard deviation, σX, is the positive square root of the variance: σX = √Var(X).
2.2. Properties of Variance
- Variance of a Constant: The variance of a constant 'c' is zero, as a constant has no spread.
- Variance of a Constant times a Random Variable: If 'c' is a constant and X is a random variable.
- Variance of a Sum/Difference of Independent Random Variables: If X and Y are independent random variables.
- Variance of a Linear Combination: For constants a, b and independent random variables X, Y.
- Adding a Constant Does Not Change Variance: Adding a constant to a random variable shifts its distribution but does not change its spread.
Var(c) = 0
Var(cX) = c2 Var(X)
Var(X + Y) = Var(X) + Var(Y)
Var(X - Y) = Var(X) + Var(Y)
Important Note: For dependent variables, covariance terms are introduced. Since covariance is not explicitly in the syllabus, we stick to the independent case here.
Var(aX + bY) = a2 Var(X) + b2 Var(Y)
Var(X + c) = Var(X)
Moments of Random Variables
Moments are a set of statistical parameters that characterize the shape and features of a probability distribution. They provide information about the central tendency, dispersion, skewness, and kurtosis of the distribution.
3.1. Raw Moments (Moments about the Origin)
The kth raw moment (or moment about the origin) of a random variable X, denoted as μ'k, is defined as:
μ'k = E[Xk]
- For k=1: μ'1 = E[X] (the mean of the distribution).
- For k=2: μ'2 = E[X2].
- For k=3: μ'3 = E[X3].
- And so on.
These moments exist if E[|X|k] is finite.
3.2. Central Moments (Moments about the Mean)
Central moments describe the shape of the distribution by removing the effect of its location (mean).
The kth central moment (or moment about the mean) of a random variable X, denoted as μk, is defined as:
μk = E[(X - E[X])k]
- For k=1: μ1 = E[X - E[X]] = E[X] - E[X] = 0. The first central moment is always zero.
- For k=2: μ2 = E[(X - E[X])2] = Var(X). The second central moment is the variance.
- For k=3: μ3 is related to the skewness of the distribution.
- For k=4: μ4 is related to the kurtosis of the distribution.
3.3. Relationship Between Raw and Central Moments
Central moments can be expressed in terms of raw moments:
- μ1 = 0
- μ2 = μ'2 - (μ'1)2 (This is Var(X) = E[X2] - (E[X])2)
- μ3 = μ'3 - 3μ'2μ'1 + 2(μ'1)3
- μ4 = μ'4 - 4μ'3μ'1 + 6μ'2(μ'1)2 - 3(μ'1)4
Conversely, raw moments can be expressed in terms of central moments and the mean (μ = μ'1):
- μ'1 = μ
- μ'2 = μ2 + μ2
- μ'3 = μ3 + 3μμ2 + μ3
- μ'4 = μ4 + 4μμ3 + 6μ2μ2 + μ4
Cumulants of Random Variables
Cumulants are another set of statistical parameters related to moments, which also characterize the shape of a probability distribution. They often have simpler additive properties for sums of independent random variables compared to moments.
4.1. Definition of Cumulants
Cumulants, denoted by κk (kappa), are typically defined through the Cumulant Generating Function (CGF).
The kth cumulant, κk, is the coefficient of (tk / k!) in the Taylor series expansion of the Cumulant Generating Function, K(t) = log(MX(t)).
4.2. Relationship Between Cumulants and Moments
The first few cumulants are related to the central moments (and raw moments) as follows:
- κ1 = μ'1 = E[X] (The first cumulant is the mean)
- κ2 = μ2 = Var(X) (The second cumulant is the variance)
- κ3 = μ3 (The third cumulant is the third central moment, related to skewness)
- κ4 = μ4 - 3μ22 (The fourth cumulant is related to kurtosis)
Key Observation: For a normal distribution, all cumulants higher than the second (κ3, κ4, ...) are zero. This makes cumulants particularly useful in characterizing non-normality.
Property: Cumulants are additive for independent random variables. If X1, ..., Xn are independent random variables, then the kth cumulant of their sum S = X1 + ... + Xn is the sum of their individual kth cumulants: κk(S) = ∑i=1n κk(Xi).
Moment Generating Function (MGF)
The Moment Generating Function (MGF) is a powerful tool in probability theory for characterizing probability distributions. It can generate all the moments of a random variable, provided it exists.
5.1. Definition of MGF
The Moment Generating Function (MGF) of a random variable X, denoted as MX(t), is defined as the expected value of etX, for all real values of 't' for which the expectation exists:
MX(t) = E[etX]
For a Discrete Random Variable X
MX(t) = ∑x etx P(X=x)
For a Continuous Random Variable X
MX(t) = ∫-∞∞ etx f(x) dx
The MGF might not exist for all random variables. If it exists in some open interval around t=0, then all moments exist.
5.2. Properties of MGF
- Generating Moments: The most significant property of MGF is its ability to generate moments. The kth raw moment can be obtained by taking the kth derivative of the MGF with respect to 't' and then setting t=0.
- E[X] = M'X(0) (First derivative at t=0)
- E[X2] = M''X(0) (Second derivative at t=0)
- Uniqueness Property: If two random variables have the same MGF, then they have the same probability distribution. This property is crucial for identifying distributions.
- MGF of a Linear Transformation: If Y = aX + b, where a and b are constants.
- MGF of a Sum of Independent Random Variables: If X1, X2, ..., Xn are independent random variables, and S = X1 + X2 + ... + Xn, then the MGF of their sum is the product of their individual MGFs.
- MGF at t=0: MX(0) = E[e0X] = E[1] = 1.
μ'k = E[Xk] = dk/dtk [MX(t)] |t=0
For example:
MY(t) = E[et(aX+b)] = E[eatX ebt] = ebt E[eatX] = ebt MX(at)
MS(t) = MX1(t) × MX2(t) × ... × MXn(t)
Cumulants Generating Function (CGF)
The Cumulant Generating Function (CGF) is closely related to the MGF and is particularly useful because cumulants exhibit additive properties for independent random variables, similar to how MGFs multiply for sums of independent random variables.
6.1. Definition of CGF
The Cumulant Generating Function (CGF) of a random variable X, denoted as KX(t), is defined as the natural logarithm of its Moment Generating Function (MGF):
KX(t) = log(MX(t))
The CGF exists whenever the MGF exists and is positive around t=0.
6.2. Properties of CGF
- Generating Cumulants: Similar to MGF for moments, the kth cumulant can be obtained by taking the kth derivative of the CGF with respect to 't' and then setting t=0.
- κ1 = K'X(0) = E[X] (Mean)
- κ2 = K''X(0) = Var(X) (Variance)
- κ3 = K'''X(0) (Third central moment)
- κ4 = K''''X(0) (Related to kurtosis)
- CGF of a Sum of Independent Random Variables: If X1, X2, ..., Xn are independent random variables, and S = X1 + X2 + ... + Xn, then the CGF of their sum is the sum of their individual CGFs.
- Relationship with MGF: Directly defined by KX(t) = log(MX(t)), which implies MX(t) = eKX(t).
κk = dk/dtk [KX(t)] |t=0
For example:
KS(t) = KX1(t) + KX2(t) + ... + KXn(t)
This additive property is a major advantage of CGF over MGF when dealing with sums of independent random variables.