Mathematical Expectation and Variance Calculation of Distribution Functions
Introduction
In probability theory, distribution functions play a fundamental role in characterizing the behavior of random variables. A distribution function, often denoted as $ F(x) $, represents the probability that a random variable $ X $ takes a value less than or equal to $ x $. This function is crucial for calculating key statistical properties such as mathematical expectation and variance, which quantify the central tendency and dispersion of a distribution. Mathematical expectation, or expected value, measures the long-term average value of repetitions of the experiment, while variance quantifies the spread of the distribution around its mean. Together, these concepts provide a comprehensive framework for analyzing random phenomena. This article explores the theoretical foundations of mathematical expectation and variance, their calculations, and their applications in statistical analysis.
Mathematical Expectation
Mathematical expectation, denoted $ \mathbb{E}[X] $, is a fundamental concept in probability theory. It is defined as the weighted average of all possible values that a random variable $ X $ can take, where the weights are the probabilities of those values occurring. For a discrete random variable, the expectation is calculated as:
$$
\mathbb{E}[X] = \sum_{x} x \cdot P(X = x)
$$
where $ P(X = x) $ is the probability mass function (PMF) of $ X $. For a continuous random variable, the expectation is computed as:
$$
\mathbb{E}[X] = \int_{-\infty}^{\infty} x f(x) , dx
$$
Here, $ f(x) $ is the probability density function (PDF) of $ X $. The expectation is linear, meaning $ \mathbb{E}[aX + b] = a\mathbb{E}[X] + b $, where $ a $ and $ b $ are constants. This property allows for the decomposition of complex random variables into simpler components.
The expectation of a random variable is also closely tied to its distribution. For example, in the case of a fair six-sided die, the expectation is:
$$
\mathbb{E}[X] = \frac{1 + 2 + 3 + 4 + 5 + 6}{6} = 3.5
$$
This result reflects the average outcome of rolling the die over many trials. Similarly, for a coin toss with outcomes 0 and 1, the expectation is:
$$
\mathbb{E}[X] = \frac{1}{2} \cdot 0 + \frac{1}{2} \cdot 1 = 0.5
$$
These examples illustrate how the expectation captures the "average" value of a random variable, even when outcomes are not equally likely.
Variance Calculation
Variance, denoted $ \text{Var}(X) $, measures the dispersion of a random variable around its mean. It quantifies how much the values of $ X $ deviate from the expected value $ \mathbb{E}[X] $. The variance is defined as:
$$
\text{Var}(X) = \mathbb{E}[(X - \mathbb{E}[X])^2]
$$
This formula can be expanded to:
$$
\text{Var}(X) = \mathbb{E}[X^2] - (\mathbb{E}[X])^2
$$
The second form is often more convenient for computation, as it avoids the need to explicitly calculate the squared deviations. For a discrete random variable, the variance is:
$$
\text{Var}(X) = \sum_{