Chapter 2 Random Variables (Discrete and Continuous)
2.1 Random Variable
In this section, we will learn about the concept of a random variable, which is one of the most important
ideas in probability and statistics. A random variable allows us to convert the outcomes of a random
experiment into numbers, making it easier to analyze and compute probabilities.
2.1.1 Intuitive Definition of a Random Variable
Definition 2.1.1 (Random Variable (Intuitive)).By a random variable (r.v.) we mean a real number \(X\)
connected with the outcome of a random experiment \(E\).
Example 2.1.2.Consider an experiment consisting of two tosses of a fair coin. The sample space is:
\[ S = \{HH, HT, TH, TT\} \] Define a random variable \(X\) = the number of heads obtained. Then: \[ \begin {array}{c|c|c|c|c} \text {Outcome:} & HH & HT & TH & TT \\ \hline \text {Value of } X: & 2 & 1 & 1 & 0 \end {array} \] Thus, to each outcome \(\omega \), there
corresponds a real number \(X(\omega )\).
2.1.2 Formal Definition of a Random Variable
Definition 2.1.3 (Random Variable (Formal)).Let \(S\) be the sample space associated with a given
random experiment. A real-valued function defined on \(S\) and taking values in \(\mathbb {R} = (-\infty , \infty )\) is called a
one-dimensional random variable.
Definition 2.1.4 (Multi-dimensional Random Variable).If the function values are ordered pairs of
real numbers (vectors in two-space), the function is called a two-dimensional random variable.
More generally, an \(n\)-dimensional random variable is a function whose domain is \(S\) and whose range is
a collection of \(n\)-tuples of real numbers (vectors in \(n\)-space).
2.1.3 Probability Space and Measurability
For a rigorous mathematical definition, consider the probability space \((S, B, P)\), where:
\(S\) is the sample space (space of outcomes)
\(B\) is the \(\sigma \)-field of subsets of \(S\)
\(P\) is a probability function on \(B\)
Definition 2.1.5 (Measurable Random Variable).A random variable is a function \(X(\omega )\) with domain \(S\) and
range \((-\infty , \infty )\) such that for every real number \(a\), the event \[ \{\omega : X(\omega ) \leq a\} \in B \] In other words, \(X(\omega )\) is a measurable real function on \((S, B)\).
Remark 2.1.6.
1.
We need to make probability statements about \(X\) such as \(P(X \leq a)\). For the coin toss example: \[ P(X \leq 1) = P(\{HT, TH, TT\}) = \frac {3}{4} \] That is, \[ P(X \leq a) = P(\{\omega : X(\omega ) \leq a\}) \]
2.
One-dimensional random variables are denoted by capital letters \(X, Y, Z\), etc. Their values are
denoted by lower case letters \(x, y, z\), etc.
2.1.4 Notations
If \(x\) is a real number, we use the following notations:
\begin {align*} P(X = x) &= P\{\omega : X(\omega ) = x\} \\ P(X \leq a) &= P\{\omega : X(\omega ) \in (-\infty , a]\} \\ P(a < X \leq b) &= P\{\omega : X(\omega ) \in (a, b]\} \\ P(X = a \text { or } X = b) &= P\{(X = a) \cup (X = b)\} \\ P(X = a \text { and } X = b) &= P\{(X = a) \cap (X = b)\} \end {align*}
2.1.5 Illustrations of Random Variables
Example 2.1.7 (Bernoulli Random Variable).If a coin is tossed, define: \[ X(H) = 1 \quad \text {and} \quad X(T) = 0 \] Then \(X\) is called a Bernoulli
random variable. It takes only two values.
Example 2.1.8 (Die Toss).An experiment consists of rolling a die. The most natural random variable
is: \[ X(\omega ) = \omega , \quad \omega = 1, 2, 3, 4, 5, 6 \] If we are interested in whether the number is even or odd, define: \[ Y(\omega ) = \begin {cases} 1 & \text {if } \omega \text { is even} \\ 0 & \text {if } \omega \text { is odd} \end {cases} \]
Example 2.1.9 (Dart Throw).If a dart is thrown at a circular target, the sample space \(S\) is the set of all points
on the target. We can assign:
A two-dimensional random variable: \((x, y)\) coordinates or \((r, \theta )\) polar coordinates
A one-dimensional random variable: only \(x\) or only \(y\)
The event "dart lands in first quadrant" can be described by \(X(\omega ) = \theta \) and then: \[ E = \{\omega : 0 \leq X(\omega ) \leq \pi /2\} \]
Example 2.1.10 (Sum of Two Dice).If a pair of fair dice is tossed, \(S = \{1,2,3,4,5,6\} \times \{1,2,3,4,5,6\}\) and \(n(S) = 36\). Let \(X\) be the random variable
representing the larger of the two numbers (or any function). Then: \begin {align*} P(X = 1) &= P\{(1,1)\} = \frac {1}{36} \\ P(X = 2) &= P\{(2,1), (2,2), (1,2)\} = \frac {3}{36} \\ P(X = 3) &= P\{(3,1), (3,2), (3,3), (2,3), (1,3)\} = \frac {5}{36} \\ P(X = 4) &= P\{(4,1), (4,2), (4,3), (4,4), (3,4), (2,4), (1,4)\} = \frac {7}{36} \\ P(X = 5) &= \frac {9}{36} \\ P(X = 6) &= \frac {11}{36} \end {align*}
2.1.6 Theorems on Random Variables with Proofs
Theorem 2.1.11.A function \(X(\omega )\) from \(S\) to \(\mathbb {R}\) is a random variable if and only if \[ \{\omega : X(\omega ) < a\} \in B \quad \text {for all } a \in \mathbb {R} \]
Theorem 2.1.12.If \(X_1\) and \(X_2\) are random variables and \(c\) is a constant, then \(cX_1\), \(X_1 + X_2\), and \(X_1 X_2\) are also random
variables.
Remark 2.1.13.It follows that \(c_1 X_1 + c_2 X_2\) is a random variable for constants \(c_1, c_2\). In particular, \(X_1 - X_2\) is a random variable.
Theorem 2.1.14.If \(\{X_n(\omega ), n \geq 1\}\) are random variables, then \(\sup _n X_n(\omega )\), \(\inf _n X_n(\omega )\), \(\limsup _{n \to \infty } X_n(\omega )\), and \(\liminf _{n \to \infty } X_n(\omega )\) are all random variables, whenever they are
finite for all \(\omega \).
Theorem 2.1.15.If \(X\) is a random variable, then \[ X^+, \quad X^-, \quad |X| \] are random variables, where \[ X^+ = \max (X, 0), \quad X^- = \max (-X, 0) \]
Theorem 2.1.16.If \(X_1\) and \(X_2\) are random variables, then:
1.
\(\max [X_1, X_2]\) is a random variable
2.
\(\min [X_1, X_2]\) is a random variable
Theorem 2.1.17.If \(X\) is a random variable and \(f(\cdot )\) is a continuous function, then \(f(X)\) is a random variable.
Theorem 2.1.18.If \(X\) is a random variable and \(f(\cdot )\) is an increasing function, then \(f(X)\) is a random variable.
Corollary 2.1.19 (Corollary).If \(f\) is a function of bounded variation on every finite interval \([a, b]\), and \(X\) is a
random variable, then \(f(X)\) is a random variable.
2.1.7 Characteristic Random Variable
Definition 2.1.20 (Characteristic Random Variable).For any event \(E \subseteq S\), the characteristic random
variable (or indicator random variable) \(\psi _E\) is defined as: \[ \psi _E(\omega ) = \begin {cases} 1 & \text {if } \omega \in E \\ 0 & \text {if } \omega \notin E \end {cases} \] In other words, \(\psi _E\) equals 1 if \(E\) occurs, and 0 if \(E\)
does not occur.
2.1.8 Properties of Characteristic Random Variables
Let \(S = \{e_1, e_2, \dots , e_n\}\) be a sample space and let \(E, F \subseteq S\). Then:
1.
\(\psi _\phi \) is identically zero: \(\psi _\phi (e_i) = 0\) for all \(i\)
2.
\(\psi _S\) is identically one: \(\psi _S(e_i) = 1\) for all \(i\)
3.
\(E = F \iff \psi _E(e_i) = \psi _F(e_i)\) for all \(i\)
4.
If \(E \subseteq F\), then \(\psi _E(e_i) \leq \psi _F(e_i)\) for all \(i\)
5.
\(\psi _E(e_i) + \psi _{\overline {E}}(e_i) = 1\) for all \(i\) (identically 1)
6.
\(\psi _{E \cap F}(e_i) = \psi _E(e_i) \cdot \psi _F(e_i)\) for all \(i\)
7.
\(\psi _{E \cup F}(e_i) = \psi _E(e_i) + \psi _F(e_i) - \psi _E(e_i)\psi _F(e_i)\) for all \(i\)
2.1.9 Solved Examples
Example 2.1.21 (Exercise 5(a) Q.1).Let \(X\) be a one-dimensional random variable.
1.
If \(a < b\), show that the events \(a < X \leq b\) and \(X \leq a\) are disjoint.
2.
Determine the union of the two events in part (i).
3.
Show that \(P(a < X \leq b) = P(X \leq b) - P(X \leq a)\).
Solution.
1.
The event \(a < X \leq b\) means \(X\) is greater than \(a\) and at most \(b\). The event \(X \leq a\) means \(X\) is at most \(a\). These two cannot
happen simultaneously because one requires \(X > a\) and the other requires \(X \leq a\). Hence they are disjoint.
2.
The union \((a < X \leq b) \cup (X \leq a) = (X \leq b)\) because any outcome with \(X \leq b\) either has \(X \leq a\) or \(a < X \leq b\).
3.
Since the two events are disjoint, by the addition theorem: \[ P(a < X \leq b) + P(X \leq a) = P(X \leq b) \] Therefore: \[ P(a < X \leq b) = P(X \leq b) - P(X \leq a) \]
Example 2.1.22 (Exercise 5(a) Q.2).Let a sample space \(S\) consist of three elements \(\omega _1, \omega _2, \omega _3\). Let \(P(\omega _1) = \frac {1}{4}\), \(P(\omega _2) = \frac {1}{2}\), and \(P(\omega _3) = \frac {1}{4}\). If \(X\) is a
random variable defined on \(S\) by \(X(\omega _1) = 10\), \(X(\omega _2) = -3\), \(X(\omega _3) = 15\), find \(P(-2 \leq X \leq 2)\).
Solution.We need the probability that \(X\) takes values between \(-2\) and \(2\) (inclusive). Looking at the values:
\begin {align*} X(\omega _1) & = 10 \quad (\text {not in } [-2, 2]) \\ X(\omega _2) & = -3 \quad (\text {not in } [-2, 2] \text { because } -3 < -2) \\ X(\omega _3) & = 15 \quad (\text {not in } [-2, 2]) \end {align*}
None of the values lie in the interval \([-2, 2]\). Therefore: \[ P(-2 \leq X \leq 2) = 0 \]
2.2 Distribution Function
2.2.1 Definition of Distribution Function
Definition 2.2.1 (Distribution Function).Let \(X\) be a random variable defined on the probability space
\((S, B, P)\). The function \(F_X(x)\) defined by: \[ F_X(x) = P(X \leq x) = P\{\omega : X(\omega ) \leq x\}, \quad -\infty < x < \infty \] is called the distribution function (d.f.) or cumulative distribution
function (c.d.f.) of \(X\).
Remark 2.2.2.If clarity permits, we may write \(F(x)\) instead of \(F_X(x)\). Different random variables may have
different distribution functions, so the subscript helps identify which random variable we are
referring to.
2.2.2 Properties of Distribution Functions
We now derive a number of properties that are common to all distribution functions.
Property 2.2.3 (Property 1).If \(F\) is the distribution function of a random variable \(X\) and if \(a < b\), then: \[ P(a < X \leq b) = F(b) - F(a) \]
Proof :The events \((a < X \leq b)\) and \((X \leq a)\) are disjoint, and their union is the event \((X \leq b)\). Hence, by the addition theorem of
probability: \begin {align*} P(a < X \leq b) + P(X \leq a) &= P(X \leq b) \\ \Rightarrow P(a < X \leq b) &= P(X \leq b) - P(X \leq a) \\ &= F(b) - F(a) \end {align*}
□
Corollary 2.2.4 (Corollary 1).For any real numbers \(a\) and \(b\) with \(a < b\): \begin {align*} P(a \leq X \leq b) &= P(X = a) + P(a < X \leq b) \\ &= P(X = a) + [F(b) - F(a)] \end {align*}
Corollary 2.2.5 (Corollary 2).\[ P(a < X < b) = F(b) - F(a) - P(X = b) \]
Corollary 2.2.6 (Corollary 3).\[ P(a \leq X < b) = F(b) - F(a) - P(X = b) + P(X = a) \]
Remark 2.2.7.When \(P(X = a) = 0\) and \(P(X = b) = 0\), all four events \(a \leq X \leq b\), \(a < X < b\), \(a \leq X < b\), and \(a < X \leq b\) have the same probability \(F(b) - F(a)\).
Property 2.2.8 (Property 2).If \(F\) is the distribution function of a one-dimensional random variable \(X\),
then:
1.
\(0 \leq F(x) \leq 1\) for all \(x \in \mathbb {R}\)
In other words, all distribution functions are monotonically non-decreasing and lie between 0 and
1.
Proof :Part (i): Since \(F(x) = P(X \leq x)\) is a probability, by the axioms of probability we have \(0 \leq P(\cdot ) \leq 1\). Hence \(0 \leq F(x) \leq 1\) for all \(x\).
Part (ii): For \(x < y\), we have: \[ F(y) - F(x) = P(x < X \leq y) \quad \text {(by Property 1)} \] Since probabilities are always non-negative, \(F(y) - F(x) \geq 0\). Therefore \(F(y) \geq F(x)\) whenever \(y > x\). Thus \(F\) is
monotonically non-decreasing. □
Property 2.2.9 (Property 3).If \(F\) is the distribution function of a one-dimensional random variable \(X\),
then: \[ F(-\infty ) = \lim _{x \to -\infty } F(x) = 0 \] and \[ F(\infty ) = \lim _{x \to \infty } F(x) = 1 \]
Proof :We express the entire sample space \(S\) as a countable union of disjoint events: \[ S = \left [\bigcup _{n=1}^{\infty } (-n < X \leq -n+1)\right ] \cup \left [\bigcup _{n=0}^{\infty } (n < X \leq n+1)\right ] \]
Since \(P\) is countably additive: \begin {align*} P(S) &= \sum _{n=1}^{\infty } P(-n < X \leq -n+1) + \sum _{n=0}^{\infty } P(n < X \leq n+1) \\ 1 &= \lim _{a \to \infty } \sum _{n=1}^{a} [F(-n+1) - F(-n)] + \lim _{b \to \infty } \sum _{n=0}^{b} [F(n+1) - F(n)] \\ &= \lim _{a \to \infty } [F(0) - F(-a)] + \lim _{b \to \infty } [F(b+1) - F(0)] \\ &= [F(0) - F(-\infty )] + [F(\infty ) - F(0)] \\ &= F(\infty ) - F(-\infty ) \end {align*}
Since \(-\infty < \infty \), by Property 2 we have \(F(-\infty ) \leq F(\infty )\). Also \(F(-\infty ) \geq 0\) and \(F(\infty ) \leq 1\). The equation \(1 = F(\infty ) - F(-\infty )\) together with \(0 \leq F(-\infty ) \leq F(\infty ) \leq 1\) forces: \[ F(-\infty ) = 0 \quad \text {and} \quad F(\infty ) = 1 \] □
Remark 2.2.10.
1.
Discontinuities of \(F(x)\) are at most countable (since each discontinuity corresponds to a point with
positive probability, and the sum of all probabilities is 1).
2.
\(F(a+0) = F(a)\).
3.
\(F(a) - F(a-0) = P(X = a)\).
2.2.3 Characterization of Distribution Functions
Theorem 2.2.11.A function \(F: \mathbb {R} \to \mathbb {R}\) is a distribution function of some random variable if and only if it
satisfies:
\(F\) is right-continuous: \(\lim _{h \to 0^+} F(x + h) = F(x)\) for all \(x\)
Remark 2.2.12.Any function violating any one or more of these properties cannot be a distribution
function of any random variable.
2.2.4 Relationship Between Distribution Function and Probability
From the definition and properties, we have the following important relationships:
\begin {align*} P(a < X \leq b) &= F(b) - F(a) \\ P(a \leq X \leq b) &= F(b) - F(a) + P(X = a) \\ P(a < X < b) &= F(b) - F(a) - P(X = b) \\ P(a \leq X < b) &= F(b) - F(a) - P(X = b) + P(X = a) \\ P(X > a) &= 1 - F(a) \\ P(X \geq a) &= 1 - F(a) + P(X = a) \\ P(X < a) &= F(a-) = \lim _{h \to 0^+} F(a - h) \\ P(X = a) &= F(a) - F(a-) \end {align*}
2.3 Discrete Random Variable
2.3.1 Definition of Discrete Random Variable
Definition 2.3.1 (Discrete Random Variable).If a random variable takes at most a countable number
of values, it is called a discrete random variable. In other words, a real-valued function defined on a
discrete sample space is called a discrete random variable.
Remark 2.3.2.
1.
The set of values which \(X\) takes is called the spectrum of the random variable.
2.
A discrete random variable can take values that are finite in number (e.g., 0, 1, 2) or countably
infinite (e.g., \(0, 1, 2, 3, \dots \)).
2.3.2 Probability Mass Function
Definition 2.3.3 (Probability Mass Function).Suppose \(X\) is a one-dimensional discrete random
variable taking at most a countably infinite number of values \(x_1, x_2, \dots \). With each possible outcome \(x_i\), we
associate a number: \[ p_i = P(X = x_i) = p(x_i) \] called the probability of \(x_i\). The function \(p\) is called the probability mass function
(p.m.f.) of the random variable \(X\), and the set \(\{x_i, p(x_i)\}\) is called the probability distribution (p.d.) of \(X\).
Property 2.3.4 (Properties of Probability Mass Function).The probability mass function \(p(x)\) must satisfy the
following conditions:
1.
Non-negativity: \(p(x_i) \geq 0\) for all \(i\)
2.
Total probability: \(\displaystyle \sum _{i=1}^{\infty } p(x_i) = 1\)
Remark 2.3.5.For a discrete random variable, knowledge of the probability mass function enables
us to compute probabilities of arbitrary events. If \(E\) is a set of real numbers, then: \[ P(X \in E) = \sum _{x \in E \cap S_p} p(x) \] where \(S_p\) is the set of
all possible values of \(X\) (the support).
2.3.3 Illustration: Bernoulli Random Variable
Example 2.3.6.Toss a fair coin. Let \(S = \{H, T\}\). Define the random variable \(X\) by: \[ X(H) = 1 \quad \text {(Head occurs)}, \qquad X(T) = 0 \quad \text {(Tail occurs)} \] If the coin is fair, then: \[ P(\{H\}) = P(\{T\}) = \frac {1}{2} \] The
probability distribution of \(X\) is: \[ P(X = 1) = \frac {1}{2}, \qquad P(X = 0) = \frac {1}{2} \] This is called a Bernoulli distribution.
2.3.4 Discrete Distribution Function
For a discrete random variable, the distribution function \(F(x) = P(X \leq x)\) is a step function. Specifically, if \(X\) takes values \(x_1, x_2, x_3, \dots \) with
probabilities \(p_i\), then: \[ F(x) = \sum _{i: x_i \leq x} p_i \]
The graph of \(F(x)\) has jumps of size \(p_i\) at each \(x_i\) and is constant between these points.
Theorem 2.3.7.For a discrete random variable \(X\) with values \(x_1 < x_2 < x_3 < \dots \): \[ p(x_j) = P(X = x_j) = F(x_j) - F(x_{j-1}) \] where \(F\) is the distribution function of \(X\).
Proof :We have: \begin {align*} F(x_j) &= P(X \leq x_j) = \sum _{i=1}^{j} P(X = x_i) = \sum _{i=1}^{j} p(x_i) \\ F(x_{j-1}) &= P(X \leq x_{j-1}) = \sum _{i=1}^{j-1} p(x_i) \end {align*}
Subtracting, we get \(F(x_j) - F(x_{j-1}) = p(x_j)\). Hence, given the distribution function, we can compute the probability mass
function. □
2.3.5 Probability Table and Probability Chart
A convenient way to represent the probability distribution of a discrete random variable is through a
probability table: \[ \begin {array}{c|ccccc} x & x_1 & x_2 & x_3 & \dots & x_n \\ \hline p(x) & p_1 & p_2 & p_3 & \dots & p_n \end {array} \] A probability chart is a graphical representation where the \(x\)-axis shows the possible
values and bars of height \(p(x_i)\) are drawn at each \(x_i\).
2.3.6 Solved Examples
Example 2.3.8.An experiment consists of three independent tosses of a fair coin. Let:
\(X =\) The number of heads
\(Y =\) The number of head runs
\(Z =\) The length of head runs
A head run is defined as consecutive occurrence of at least two heads, its length being the number of heads
occurring together in three tosses of the coin. Find the probability function of: (i) \(X\), (ii) \(Y\), (iii) \(Z\), (iv) \(X + Y\), and (v) \(XY\).
Construct probability tables and draw their probability charts.
Definition 2.4.1 (Continuous Random Variable).A random variable \(X\) is said to be continuous if it
can take all possible values within certain limits. In other words, the set of possible values of \(X\)
cannot be put into one-to-one correspondence with the set of positive integers (it is uncountable). A
continuous random variable can be measured to any desired degree of accuracy.
Remark 2.4.2.Examples of continuous random variables include:
The height of a randomly selected person
The weight of a randomly selected product
The time until a light bulb fails
The temperature at a given location
2.4.2 Probability Density Function (p.d.f.)
Concept and Definition
Consider a continuous random variable \(X\). For a small interval \((x, x + dx)\) of length \(dx\) around the point \(x\), the probability
that \(X\) falls in this interval is approximately \(f(x)\,dx\), where \(f(x)\) is a function.
Definition 2.4.3 (Probability Density Function).The probability density function (p.d.f.) \(f_X(x)\) of a
continuous random variable \(X\) is defined as: \[ f_X(x) = \lim _{\delta x \to 0} \frac {P(x \leq X \leq x + \delta x)}{\delta x} \] provided the limit exists.
The quantity \(f(x)\,dx\) is called the probability differential and represents the probability that \(X\) falls in the
infinitesimal interval \((x, x + dx)\).
Properties of Probability Density Function
The probability density function \(f(x)\) has the following properties:
Property 2.4.4 (Properties of p.d.f.).
1.
Non-negativity: \(f(x) \geq 0\) for all \(x \in \mathbb {R}\)
2.
Total probability: \(\displaystyle \int _{-\infty }^{\infty } f(x)\,dx = 1\)
3.
Probability over an interval: For any interval \([\alpha , \beta ]\), \[ P(\alpha \leq X \leq \beta ) = \int _{\alpha }^{\beta } f(x)\,dx \] This represents the area under the curve \(y = f(x)\)
between \(x = \alpha \) and \(x = \beta \).
Important Remark
Remark 2.4.5.For a continuous random variable, the probability at a single point is always zero: \[ P(X = c) = 0 \quad \text {for all } c \in \mathbb {R} \]
This follows from the definition because \(\int _{c}^{c} f(x)\,dx = 0\).
Consequently, for a continuous random variable: \[ P(\alpha \leq X \leq \beta ) = P(\alpha < X \leq \beta ) = P(\alpha \leq X < \beta ) = P(\alpha < X < \beta ) \] i.e., it does not matter whether we include the
endpoints of the interval.
Remark 2.4.6.\(P(E) = 0\) does not imply that \(E\) is an impossible event. For a continuous random variable, events
like \(\{X = c\}\) have probability zero but are not impossible.
2.4.3 Measures of Central Tendency, Dispersion, Skewness, and Kurtosis
For a continuous probability distribution with p.d.f. \(f(x)\) defined on the interval \([a, b]\) (which may be infinite), the
various measures are defined as follows:
Property 2.4.7 (Arithmetic Mean).The mean (expected value) of \(X\) is: \[ \mu = \int _{a}^{b} x\,f(x)\,dx \]
Property 2.4.8 (Harmonic Mean).The harmonic mean \(H\) is given by: \[ \frac {1}{H} = \int _{a}^{b} \frac {1}{x}\,f(x)\,dx \]
Property 2.4.9 (Geometric Mean).The geometric mean \(G\) is given by: \[ \log G = \int _{a}^{b} \log x\,f(x)\,dx \]
Property 2.4.10 (Moments about Origin).The \(r\)th moment about the origin is: \[ \mu _r' = \int _{a}^{b} x^r f(x)\,dx \]
Property 2.4.11 (Moments about any point \(A\)).\[ \mu _r'(A) = \int _{a}^{b} (x - A)^r f(x)\,dx \]
Property 2.4.12 (Moments about Mean).The \(r\)th central moment is: \[ \mu _r = \int _{a}^{b} (x - \mu )^r f(x)\,dx \]
Property 2.4.13 (Relations between Central and Raw Moments).\begin {align*} \mu _3 &= \mu _3' - 3\mu _2'\mu _1' + 2\mu _1'^3 \\ \mu _4 &= \mu _4' - 4\mu _3'\mu _1' + 6\mu _2'\mu _1'^2 - 3\mu _1'^4 \end {align*}
Property 2.4.14 (Measures of Skewness and Kurtosis).The coefficients of skewness and kurtosis are:
\[ \beta _1 = \frac {\mu _3^2}{\mu _2^3}, \qquad \beta _2 = \frac {\mu _4}{\mu _2^2} \] \(\beta _1 = 0\) indicates symmetry. For a normal distribution, \(\beta _2 = 3\).
Definition 2.4.15 (Median).The median \(M\) is the point that divides the total area under the probability
density curve into two equal parts: \[ \int _{a}^{M} f(x)\,dx = \int _{M}^{b} f(x)\,dx = \frac {1}{2} \] Thus \(M\) is obtained by solving \(\int _{a}^{M} f(x)\,dx = \frac {1}{2}\).
Definition 2.4.16 (Mean Deviation about Mean).The mean deviation about the mean \(\mu \) is: \[ \text {M.D.} = \int _{a}^{b} |x - \mu |\,f(x)\,dx \]
Definition 2.4.17 (Quartiles).The first quartile \(Q_1\) and third quartile \(Q_3\) are given by: \[ \int _{a}^{Q_1} f(x)\,dx = \frac {1}{4}, \qquad \int _{a}^{Q_3} f(x)\,dx = \frac {3}{4} \]
Definition 2.4.18 (Deciles).The \(i\)th decile \(D_i\) is given by: \[ \int _{a}^{D_i} f(x)\,dx = \frac {i}{10}, \quad i = 1, 2, \dots , 9 \]
Definition 2.4.19 (Mode).The mode is the value of \(x\) for which \(f(x)\) is maximum. It is obtained by solving:
\[ f'(x) = 0 \quad \text {and} \quad f''(x) < 0 \] provided the solution lies in the support \([a, b]\).
2.4.4 Continuous Distribution Function
Definition 2.4.20 (Continuous Distribution Function).If \(X\) is a continuous random variable with
probability density function \(f(x)\), then the distribution function (or cumulative distribution function) \(F_X(x)\)
is defined as: \[ F_X(x) = P(X \leq x) = \int _{-\infty }^{x} f(t)\,dt, \quad -\infty < x < \infty \]
Property 2.4.21 (Properties of Continuous Distribution Function).
1.
\(0 \leq F(x) \leq 1\) for all \(x\)
2.
\(F\) is non-decreasing: if \(x_1 < x_2\), then \(F(x_1) \leq F(x_2)\)
\(F'(x) = f(x)\) at all points where \(f\) is continuous
6.
\(P(a \leq X \leq b) = F(b) - F(a)\)
Remark 2.4.22.From \(F'(x) = f(x)\), we have the probability differential: \[ dF(x) = f(x)\,dx \]
2.4.5 Solved Examples
Example 2.4.23.The diameter of an electric cable, say \(X\), is assumed to be a continuous random variable with
p.d.f.: \[ f(x) = 6x(1 - x), \quad 0 \leq x \leq 1 \]
(i)
Check that the above is a p.d.f.
(ii)
Determine a number \(b\) such that \(P(X < b) = P(X > b)\)
Solution.(i) For \(0 \leq x \leq 1\), \(f(x) = 6x(1-x) \geq 0\) since \(x \geq 0\) and \(1-x \geq 0\).
Now check the total probability: \begin {align*} \int _{0}^{1} f(x)\,dx &= 6\int _{0}^{1} x(1-x)\,dx = 6\int _{0}^{1} (x - x^2)\,dx \\ &= 6\left [\frac {x^2}{2} - \frac {x^3}{3}\right ]_{0}^{1} = 6\left (\frac {1}{2} - \frac {1}{3}\right ) = 6 \times \frac {1}{6} = 1 \end {align*}
Hence \(f(x)\) is a valid p.d.f.
(ii) \(P(X < b) = P(X > b)\) means \(\int _{0}^{b} f(x)\,dx = \int _{b}^{1} f(x)\,dx\). Since the total area is 1, each must equal \(\frac {1}{2}\).
Thus: \begin {align*} \int _{0}^{b} 6x(1-x)\,dx &= \frac {1}{2} \\ 6\left [\frac {x^2}{2} - \frac {x^3}{3}\right ]_{0}^{b} &= \frac {1}{2} \\ 6\left (\frac {b^2}{2} - \frac {b^3}{3}\right ) &= \frac {1}{2} \\ 3b^2 - 2b^3 &= \frac {1}{2} \\ 6b^2 - 4b^3 &= 1 \\ 4b^3 - 6b^2 + 1 &= 0 \end {align*}
Factorizing: \((2b - 1)(2b^2 - 2b - 1) = 0\).
The only root in \((0,1)\) is \(b = \frac {1}{2}\). Hence \(b = \frac {1}{2}\).
Example 2.4.24.A continuous random variable \(X\) has p.d.f. \(f(x) = 3x^2\), \(0 \leq x \leq 1\). Find \(a\) and \(b\) such that:
Example 2.4.26.A probability curve \(y = f(x)\) has range from \(0\) to \(\infty \). If \(f(x) = e^{-x}\), find the mean, variance, and the third
moment about the mean.
Example 2.4.27.For a continuous distribution with p.d.f.: \[ f(x) = y_0 \cdot x(2 - x), \quad 0 \leq x \leq 2 \] find mean, variance, \(\beta _1\), and \(\beta _2\), and hence show that
the distribution is symmetrical. Also find:
(i)
Mean deviation about the mean
(ii)
Show that \(\mu _{2n+1} = 0\) for this distribution
Example 2.4.28.The elementary probability law of a continuous random variable \(X\) is: \[ f(x) = y_0 e^{-b(x-a)}, \quad a \leq x < \infty , \, b > 0 \] Show that \(y_0 = b = \frac {1}{\sigma }\) and
\(a = m - \sigma \), where \(m\) and \(\sigma \) are respectively the mean and standard deviation. Show also that \(\beta _1 = 4\) and \(\beta _2 = 9\).
Example 2.4.29.For the following probability distribution: \[ dF = y_0 \cdot e^{-|x|} dx, \quad -\infty < x < \infty \] show that \(y_0 = \frac {1}{2}\), \(\mu _1' = 0\), \(\sigma = \sqrt {2}\), and mean deviation about
the mean = 1.
Example 2.4.30.A random variable \(X\) has the probability law: \[ dF(x) = \frac {x}{b^2} \cdot e^{-x^2/(2b^2)} dx, \quad 0 \leq x < \infty \] Find the distance between the quartiles
and show that the ratio of this distance to the standard deviation is independent of \(b\).
Example 2.4.31.Prove that the geometric mean \(G\) of the distribution: \[ dF = 6(2-x)(x-1)dx, \quad 1 \leq x \leq 2 \] is given by \(6\log (16G) = 19\).
Example 2.4.32.The time one has to wait for a bus at a downtown bus stop is observed to be a
random phenomenon \(X\) with the following probability density function: \[ f_X(x) = \begin {cases} 0, & \text {for } x < 0 \\[4pt] \dfrac {1}{9}(x + 1), & \text {for } 0 \leq x < 1 \\[8pt] \dfrac {4}{9}\left (x - \dfrac {1}{2}\right ), & \text {for } 1 \leq x < \dfrac {3}{2} \\[10pt] \dfrac {4}{9}\left (\dfrac {3}{2} - x\right ), & \text {for } \dfrac {3}{2} \leq x < 2 \\[8pt] \dfrac {1}{9}(4 - x), & \text {for } 2 \leq x < 3 \\[8pt] \dfrac {1}{9}, & \text {for } 3 \leq x < 6 \\[4pt] 0, & \text {for } 6 \leq x \end {cases} \]
Let the events \(A\) and \(B\) be defined as follows: \begin {align*} A &: \text {One waits between 0 to 2 minutes inclusive}. \\ B &: \text {One waits between 0 to 3 minutes inclusive}. \end {align*}
(i) Draw the graph of the probability density function.
(ii) Show that \[ (a) \quad P(B \mid A) = \frac {2}{3}, \qquad (b) \quad P(\overline {A} \cap \overline {B}) = \frac {1}{3}. \]
Example 2.4.33.The amount of bread (in hundreds of pounds) \(X\) that a certain bakery is able to sell in a day is
found to be a numerical valued random phenomenon, with a probability function specified by the
probability density function \(f(x)\), given by: \[ f(x) = \begin {cases} A \cdot x, & \text {for } 0 \leq x < 5 \\ A(10 - x), & \text {for } 5 \leq x < 10 \\ 0, & \text {otherwise} \end {cases} \]
(a)
Find the value of \(A\) such that \(f(x)\) is a probability density function.
(b)
What is the probability that the number of pounds of bread that will be sold tomorrow is: (i) more
than 500 pounds, (ii) less than 500 pounds, (iii) between 250 and 750 pounds?
(c)
Denoting by \(A\), \(B\), \(C\) the events that the pounds of bread sold are as in (b)(i), (b)(ii) and (b)(iii)
respectively, find \(P(A \mid B)\), \(P(A \mid C)\). Are (i) \(A\) and \(B\) independent events? (ii) \(A\) and \(C\) independent events?
Solution.(a) Finding the value of \(A\):
For \(f(x)\) to be a valid probability density function, it must satisfy: \[ \int _{-\infty }^{\infty } f(x) \, dx = 1 \]
Since \(f(x)\) is non-zero only on \([0, 10]\), we have: \[ \int _{0}^{10} f(x) \, dx = \int _{0}^{5} A x \, dx + \int _{5}^{10} A (10 - x) \, dx = 1 \]
Compute the first integral: \[ \int _{0}^{5} A x \, dx = A \left [ \frac {x^2}{2} \right ]_{0}^{5} = A \cdot \frac {25}{2} \]
Compute the second integral: \begin {align*} \int _{5}^{10} A (10 - x) \, dx & = A \left [ 10x - \frac {x^2}{2} \right ]_{5}^{10} \\ &= A \left [ \left (10 \times 10 - \frac {10^2}{2}\right ) - \left (10 \times 5 - \frac {5^2}{2}\right ) \right ] \\ & = A \left [ \left (100 - 50\right ) - \left (50 - \frac {25}{2}\right ) \right ] \\ & = A \left [ 50 - \left (50 - 12.5\right ) \right ] = A \left [ 50 - 37.5 \right ] = A \cdot 12.5 = A \cdot \frac {25}{2} \end {align*}
Therefore: \begin {align*} \int _{0}^{10} f(x) \, dx &= A \cdot \frac {25}{2} + A \cdot \frac {25}{2} = A \cdot 25 = 1 \\ \Rightarrow A &= \frac {1}{25} \end {align*}
Thus the probability density function is: \[ f(x) = \begin {cases} \dfrac {x}{25}, & \text {for } 0 \leq x < 5 \\[6pt] \dfrac {10 - x}{25}, & \text {for } 5 \leq x < 10 \\[6pt] 0, & \text {otherwise} \end {cases} \]
(b) Computing the required probabilities:
(i) Probability that more than 500 pounds are sold: \begin {align*} P(X > 5) &= P(5 < X \leq 10) = \int _{5}^{10} \frac {10 - x}{25} \, dx \\ &= \frac {1}{25} \left [ 10x - \frac {x^2}{2} \right ]_{5}^{10} \\ &= \frac {1}{25} \left [ \left (10 \times 10 - \frac {100}{2}\right ) - \left (10 \times 5 - \frac {25}{2}\right ) \right ] \\ &= \frac {1}{25} \left [ (100 - 50) - \left (50 - \frac {25}{2}\right ) \right ] \\ &= \frac {1}{25} \left [ 50 - \left (50 - 12.5\right ) \right ] = \frac {1}{25} \times 12.5 = \frac {12.5}{25} = \frac {1}{2} = 0.5 \end {align*}
(ii) Probability that less than 500 pounds are sold: \begin {align*} P(X < 5) &= P(0 \leq X < 5) = \int _{0}^{5} \frac {x}{25} \, dx \\ &= \frac {1}{25} \left [ \frac {x^2}{2} \right ]_{0}^{5} = \frac {1}{25} \times \frac {25}{2} = \frac {1}{2} = 0.5 \end {align*}
(iii) Probability that between 250 and 750 pounds are sold: \begin {align*} P(2.5 < X < 7.5) &= \int _{2.5}^{5} \frac {x}{25} \, dx + \int _{5}^{7.5} \frac {10 - x}{25} \, dx \\ &= \frac {1}{25} \left [ \frac {x^2}{2} \right ]_{2.5}^{5} + \frac {1}{25} \left [ 10x - \frac {x^2}{2} \right ]_{5}^{7.5} \end {align*}
Compute the first part: \[ \frac {1}{25} \left [ \frac {5^2}{2} - \frac {(2.5)^2}{2} \right ] = \frac {1}{25} \left [ \frac {25}{2} - \frac {6.25}{2} \right ] = \frac {1}{25} \times \frac {18.75}{2} = \frac {1}{25} \times 9.375 \]
Compute the second part: \[ \frac {1}{25} \left [ \left (10 \times 7.5 - \frac {(7.5)^2}{2}\right ) - \left (10 \times 5 - \frac {25}{2}\right ) \right ] \] \[ = \frac {1}{25} \left [ \left (75 - \frac {56.25}{2}\right ) - \left (50 - 12.5\right ) \right ] \] \[ = \frac {1}{25} \left [ (75 - 28.125) - 37.5 \right ] = \frac {1}{25} \left [ 46.875 - 37.5 \right ] = \frac {1}{25} \times 9.375 \]
Therefore: \begin {align*} P(2.5 < X < 7.5) &= \frac {9.375}{25} + \frac {9.375}{25} = \frac {18.75}{25} = 0.75 = \frac {3}{4} \end {align*}
(c) Checking independence of events:
Define the events: \begin {align*} A &: X > 5 \quad \text {(more than 500 pounds)} \\ B &: X < 5 \quad \text {(less than 500 pounds)} \\ C &: 2.5 < X < 7.5 \quad \text {(between 250 and 750 pounds)} \end {align*}
From part (b), we have: \[ P(A) = \frac {1}{2}, \quad P(B) = \frac {1}{2}, \quad P(C) = \frac {3}{4} \]
Now compute the intersections: \begin {align*} A \cap B &= \emptyset \quad \text {(since $X$ cannot be both greater than 5 and less than 5)} \\ \Rightarrow P(A \cap B) &= 0 \end {align*}
\begin {align*} A \cap C &= \{5 < X < 7.5\} \\ P(A \cap C) &= \int _{5}^{7.5} \frac {10 - x}{25} \, dx = \frac {1}{25} \times \frac {75}{8} = \frac {75}{200} = \frac {3}{8} \end {align*}
Now check independence:
(i) For events \(A\) and \(B\): \[ P(A) \cdot P(B) = \frac {1}{2} \times \frac {1}{2} = \frac {1}{4} \] \[ P(A \cap B) = 0 \] Since \(\frac {1}{4} \neq 0\), we have \(P(A \cap B) \neq P(A)P(B)\). Therefore, \(A\) and \(B\) are not independent.
(ii) For events \(A\) and \(C\): \[ P(A) \cdot P(C) = \frac {1}{2} \times \frac {3}{4} = \frac {3}{8} \] \[ P(A \cap C) = \frac {3}{8} \] Since \(P(A \cap C) = P(A)P(C)\), we conclude that \(A\) and \(C\) are independent.
Now compute the conditional probabilities: \begin {align*} P(A \mid B) &= \frac {P(A \cap B)}{P(B)} = \frac {0}{1/2} = 0 \\[6pt] P(A \mid C) &= \frac {P(A \cap C)}{P(C)} = \frac {3/8}{3/4} = \frac {3}{8} \times \frac {4}{3} = \frac {1}{2} \end {align*}
Thus: \[ \boxed {P(A \mid B) = 0}, \quad \boxed {P(A \mid C) = \frac {1}{2}} \] \[ \boxed {A \text { and } B \text { are not independent}}, \quad \boxed {A \text { and } C \text { are independent}} \]
Example 2.4.34.The mileage \(X\) (in thousands of miles) which car owners get with a certain kind of tyre has
p.d.f.: \[ f(x) = \frac {1}{20} e^{-x/20}, \quad x > 0 \] Find the probabilities that one of these tyres will last:
Example 2.4.35.Verify that the following is a distribution function: \[ F(x) = \begin {cases} 0, & x < -a \\ \frac {1}{2}\left (\frac {x}{a}+1\right ) , & -a \leq x \leq a \\ 1, & x > a \end {cases} \]
Solution.\(F(x)\) is non-decreasing, \(0 \leq F(x) \leq 1\), \(F(-\infty )=0\), \(F(\infty )=1\), and \(F\) is continuous at \(x = \pm a\). Hence it is a valid distribution function.
The p.d.f. is: \[ f(x) = F'(x) = \frac {1}{2a}, \quad -a < x < a \] and \(\int _{-a}^a \frac {1}{2a}dx = 1\).
Example 2.4.36.The life in hours of a certain kind of radio tube has p.d.f.: \[ f(x) = \begin {cases} \frac {100}{x^2}, & x > 100 \\ 0, & x \leq 100 \end {cases} \] Find the distribution
function. What is the probability that none of three such tubes in a given radio set will have to be
replaced during the first 150 hours? What is the probability that all three of the original tubes will
have been replaced during the first 150 hours?
Solution.Distribution function: \[ F(x) = \int _{100}^{x} \frac {100}{t^2} dt = 100 \left [ -\frac {1}{t} \right ]_{100}^{x} = 1 - \frac {100}{x}, \quad x > 100 \]
Probability a tube lasts first 150 hours = \(P(X \leq 150) = F(150) = 1 - \frac {100}{150} = \frac {1}{3}\).
Probability none of three tubes need replacement = \((\frac {1}{3})^3 = \frac {1}{27}\).
Probability a tube fails in first 150 hours = \(1 - \frac {1}{3} = \frac {2}{3}\).
Probability all three need replacement = \((\frac {2}{3})^3 = \frac {8}{27}\).
Example 2.4.37.The waiting time (in minutes) for a train has distribution function: \[ F(x) = \begin {cases} 0, & x < 0 \\ \frac {1}{2}x, & 0 \leq x < 1 \\ \frac {1}{2}, & 1 \leq x < 2 \\ \frac {x}{4}, & 2 \leq x < 4 \\ 1, & x \geq 4 \end {cases} \]
(a)
Is the distribution function continuous? Find the p.d.f.
Example 2.4.38.A petrol pump is supplied with petrol once a day. Daily volume \(X\) (thousands of litres)
has p.d.f. \(f(x) = 5(1-x)^4\), \(0 \leq x \leq 1\). What must be the capacity of the tank so that the probability that supply will be exhausted
in a given day is 0.01?
Solution.Let capacity be \(a\) (in thousands of litres). We need \(P(X \geq a) = 0.01\): \[ \int _a^1 5(1-x)^4 dx = 0.01 \] Let \(u = 1-x\), \(du = -dx\): \[ \int _0^{1-a} 5u^4 du = 5 \left [ \frac {u^5}{5} \right ]_0^{1-a} = (1-a)^5 = 0.01 \] Thus \(1-a = (0.01)^{1/5} = 0.3981\), so \(a = 0.6019\) thousand litres = 601.9
litres.
Example 2.4.39.Prove that mean deviation is least when measured from the median.
Solution.Let \(X\) be a continuous random variable with probability density function \(f(x)\), defined over the
interval \(a \leq X \leq b\) (where \(a\) and \(b\) can be \(-\infty \) and \(+\infty \) respectively). The mean deviation about a point \(x = A\) is defined as: \[ M(A) = \int _a^b |x - A| \, f(x) \, dx \]
Splitting the integral at \(x = A\): \begin {align*} M(A) &= \int _a^A |x - A| \, f(x) \, dx + \int _A^b |x - A| \, f(x) \, dx \\ &= \int _a^A (A - x) \, f(x) \, dx + \int _A^b (x - A) \, f(x) \, dx \tag {1} \end {align*}
Differentiating \(M(A)\) with respect to \(A\) under the integral sign (the integrands vanish at \(x = A\), so the limits do not
contribute): \begin {align*} \frac {\partial M(A)}{\partial A} &= \int _a^A f(x) \, dx - \int _A^b f(x) \, dx \tag {2} \end {align*}
Let \(F(A) = \int _a^A f(x) \, dx\) be the cumulative distribution function. Since \(\int _A^b f(x) \, dx = 1 - F(A)\), equation (2) becomes: \begin {align*} \frac {\partial M(A)}{\partial A} &= F(A) - [1 - F(A)] = 2F(A) - 1 \tag {3} \end {align*}
For \(M(A)\) to be minimum, we set \(\frac {\partial M(A)}{\partial A} = 0\): \begin {align*} 2F(A) - 1 &= 0 \\ \Rightarrow F(A) &= \frac {1}{2} \end {align*}
Thus \(A\) is the median of the distribution.
Differentiating (3) again with respect to \(A\): \begin {align*} \frac {\partial ^2 M(A)}{\partial A^2} &= 2 \cdot \frac {\partial F(A)}{\partial A} = 2f(A) \end {align*}
Since \(f(A) \geq 0\) for all \(A\), and assuming \(f(A) > 0\) at the median, we have: \begin {align*} \frac {\partial ^2 M(A)}{\partial A^2} > 0 \end {align*}
This confirms that the critical point gives a minimum. Hence, mean deviation is least when measured from
the median.
\[ \boxed {\text {Mean deviation is least when measured from the median.}} \]
2.5 Mathematical Expectation
In this section, we will learn about the concept of mathematical expectation, which is one of the most
important ideas in probability and statistics. The expectation of a random variable is like a weighted average
of all its possible values, where the weights are the probabilities.
2.5.1 Definition of Mathematical Expectation
Definition 2.5.1 (Mathematical Expectation for Continuous Random Variable).Let \(X\) be a continuous
random variable with probability density function (p.d.f.) \(f(x)\). Then the mathematical expectation (or
expected value) of \(X\), denoted by \(E(X)\), is given by: \[ E(X) = \int _{-\infty }^{\infty } x \, f(x) \, dx \] provided the integral on the right-hand side is absolutely
convergent, i.e., \[ \int _{-\infty }^{\infty } |x| \, f(x) \, dx < \infty \]
Definition 2.5.2 (Mathematical Expectation for Discrete Random Variable).Let \(X\) be a discrete
random variable with probability mass function (p.m.f.) \(p(x) = P(X = x)\). Then the mathematical expectation of \(X\) is
given by: \[ E(X) = \sum _{x} x \, p(x) \] provided the series on the right-hand side is absolutely convergent, i.e., \[ \sum _{x} |x| \, p(x) < \infty \]
Remark 2.5.3.
1.
Since absolute convergence implies ordinary convergence, if the absolute sum or integral
converges, then \(E(X)\) exists and has a finite value.
2.
\(E(X)\) exists if and only if \(E(|X|)\) exists.
3.
The expectation of a random variable is often interpreted as a long-term average. If we repeat
the experiment many times, the average of the observed values will be close to \(E(X)\).
4.
Expectation is also called the mean of the random variable and is denoted by \(\mu \) (read as "mu").
2.5.2 Examples Where Expectation Does Not Exist
Not all random variables have a finite expectation. Here are some illustrations.
Example 2.5.4 (Discrete Example 1).Let \(X\) be a random variable that takes values \(x_i = (-1)^{i+1} (i+1)\) for \(i = 1, 2, 3, \dots \) with probability
law: \[ p_i = P(X = x_i) = \frac {1}{i(i+1)}; \quad i = 1, 2, 3, \dots \] Then: \[ \sum _{i=1}^{\infty } x_i p_i = \sum _{i=1}^{\infty } (-1)^{i+1} \frac {1}{i} = 1 - \frac {1}{2} + \frac {1}{3} - \frac {1}{4} + \cdots = \log _e 2 \] This series converges conditionally. However, \[ \sum _{i=1}^{\infty } |x_i| p_i = \sum _{i=1}^{\infty } \frac {1}{i} \] diverges (harmonic series). Hence \(E(X)\) does
not exist.
Example 2.5.5 (Discrete Example 2).Let \(X\) take values \(x_k = \frac {(-1)^k \cdot 2^k}{k}\) with probabilities \(p_k = 2^{-k}\) for \(k = 1, 2, 3, \dots \). Then: \[ \sum _{k=1}^{\infty } x_k p_k = \sum _{k=1}^{\infty } \frac {(-1)^k}{k} = -\log _e 2 \] But: \[ \sum _{k=1}^{\infty } |x_k| p_k = \sum _{k=1}^{\infty } \frac {1}{k} \] diverges. So
\(E(X)\) does not exist.
Example 2.5.6 (Continuous Example - Cauchy Distribution).Let \(X\) have the probability density
function: \[ f(x) = \frac {1}{\pi } \cdot \frac {1}{1 + x^2}, \quad -\infty < x < \infty \] This is the standard Cauchy distribution. Then: \[ E(|X|) = \int _{-\infty }^{\infty } |x| f(x) \, dx = \frac {2}{\pi } \int _0^{\infty } \frac {x}{1 + x^2} \, dx = \frac {1}{\pi } \left [ \log (1 + x^2) \right ]_0^{\infty } \to \infty \] Since this integral does not converge to a
finite limit, \(E(X)\) does not exist.
2.5.3 Expectation of an Indicator Variable
Definition 2.5.7 (Indicator Variable).For any event \(A\), the indicator variable \(I_A\) is defined as: \[ I_A = \begin {cases} 1 & \text {if } A \text { occurs} \\ 0 & \text {if } A \text { does not occur} \end {cases} \]
Theorem 2.5.8.If \(I_A\) is the indicator variable for event \(A\), then: \[ E(I_A) = P(A) \]
Remark 2.5.9.This result is very useful. Sometimes finding \(P(A)\) directly is difficult, but finding \(E(I_A)\) is easier. We can
also compute: \begin {align*} E(I_A^2) &= 1^2 \cdot P(A) + 0^2 \cdot P(\overline {A}) = P(A) \\ \operatorname {Var}(I_A) &= E(I_A^2) - [E(I_A)]^2 = P(A) - [P(A)]^2 = P(A)[1 - P(A)] = P(A)P(\overline {A}) \end {align*}
2.6 Expectation of a Function of a Random Variable
2.6.1 Definition
Definition 2.6.1 (Expectation of a Function of a Random Variable).Let \(X\) be a random variable with
probability density function (p.d.f.) \(f(x)\) (or probability mass function for discrete case) and distribution
function \(F(x)\). If \(g(\cdot )\) is a function such that \(g(X)\) is a random variable and \(E[g(X)]\) exists, then:
For continuous random variable: \[ E[g(X)] = \int _{-\infty }^{\infty } g(x) \, dF(x) = \int _{-\infty }^{\infty } g(x) f(x) \, dx \]
For discrete random variable: \[ E[g(X)] = \sum _{x} g(x) f(x) \]
Remark 2.6.2.By definition, if we set \(Y = g(X)\), then the expectation of \(Y\) is: \[ E[g(X)] = E(Y) = \int y \, dH_Y(y) = \int y \, h(y) \, dy \] where \(H_Y(y)\) is the distribution function
of \(Y\) and \(h(y)\) is its p.d.f. The equivalence of these two definitions is a deep result in probability theory.
2.6.2 Extension to Two or More Dimensions
Definition 2.6.3 (Expectation of a Function of Two Random Variables).If \(X\) and \(Y\) have a joint p.d.f. \(f(x,y)\) and
\(Z = h(X,Y)\) is a random variable for some function \(h\), and if \(E(Z)\) exists, then:
For continuous random variables: \[ E(Z) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } h(x,y) f(x,y) \, dx \, dy \]
For discrete random variables: \[ E(Z) = \sum _{x} \sum _{y} h(x,y) f(x,y) \]
2.6.3 Particular Cases - Moments
Definition 2.6.4 (Moments about Origin).If we take \(g(X) = X^r\), where \(r\) is a positive integer, we get the \(r\)th
moment about the origin, denoted by \(\mu _r'\): \[ \mu _r' = E(X^r) = \int _{-\infty }^{\infty } x^r f(x) \, dx \]
In particular: \begin {align*} \mu _1' &= E(X) = \text {Mean} \\ \mu _2' &= E(X^2) \end {align*}
Definition 2.6.5 (Moments about the Mean).If we take \(g(X) = [X - E(X)]^r = (X - \overline {x})^r\), we get the \(r\)th moment about the mean,
denoted by \(\mu _r\): \[ \mu _r = E[X - E(X)]^r = \int _{-\infty }^{\infty } (x - \overline {x})^r f(x) \, dx \]
In particular, for \(r = 2\): \[ \mu _2 = E[X - E(X)]^2 = \int _{-\infty }^{\infty } (x - \overline {x})^2 f(x) \, dx = \text {Variance} \]
Remark 2.6.6.The variance can also be expressed in terms of moments about origin: \[ \operatorname {Var}(X) = \mu _2 = \mu _2' - (\mu _1')^2 = E(X^2) - [E(X)]^2 \]
2.6.4 Expectation of a Constant
Theorem 2.6.7.If \(c\) is a constant, then: \[ E(c) = c \]
Proof :\begin {align*} E(c) &= \int _{-\infty }^{\infty } c \cdot f(x) \, dx \\ &= c \int _{-\infty }^{\infty } f(x) \, dx \\ &= c \cdot 1 = c \end {align*}
□
2.6.5 Summary of Key Results
Quantity
Expression
Mean (\(\mu \))
\(E(X) = \mu _1'\)
Variance (\(\sigma ^2\))
\(\mu _2 = E(X^2) - [E(X)]^2\)
\(r\)th moment about origin
\(\mu _r' = E(X^r)\)
\(r\)th moment about mean
\(\mu _r = E[X - E(X)]^r\)
2.7 Addition Theorem of Expectation
Theorem 2.7.1 (Addition Theorem of Expectation for Two Random Variables).If \(X\) and \(Y\) are any two
random variables (not necessarily independent), then: \[ E(X + Y) = E(X) + E(Y) \] provided all the expectations exist.
Proof for Continuous Random Variables
Proof :Let \(X\) and \(Y\) be continuous random variables with joint probability density function \(f_{X,Y}(x,y)\). Let \(f_X(x)\) and \(f_Y(y)\)
be their marginal probability density functions.
By definition of expectation: \[ E(X + Y) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } (x + y) \, f_{X,Y}(x,y) \, dx \, dy \]
We can split the integral into two parts: \[ E(X + Y) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } x \, f_{X,Y}(x,y) \, dx \, dy + \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } y \, f_{X,Y}(x,y) \, dx \, dy \]
In the first term, integrate with respect to \(y\) first: \[ \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } x \, f_{X,Y}(x,y) \, dx \, dy = \int _{-\infty }^{\infty } x \left [ \int _{-\infty }^{\infty } f_{X,Y}(x,y) \, dy \right ] dx = \int _{-\infty }^{\infty } x \, f_X(x) \, dx = E(X) \]
In the second term, integrate with respect to \(x\) first: \[ \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } y \, f_{X,Y}(x,y) \, dx \, dy = \int _{-\infty }^{\infty } y \left [ \int _{-\infty }^{\infty } f_{X,Y}(x,y) \, dx \right ] dy = \int _{-\infty }^{\infty } y \, f_Y(y) \, dy = E(Y) \]
Therefore: \[ E(X + Y) = E(X) + E(Y) \] □
Remark 2.7.2.Notice that in the proof, we never used independence of \(X\) and \(Y\). This means the
addition theorem holds for any two random variables, whether they are independent or dependent.
This is a very powerful and useful property.
Extension to \(n\) Random Variables
Theorem 2.7.3 (Addition Theorem for \(n\) Random Variables).If \(X_1, X_2, \dots , X_n\) are any \(n\) random variables, then: \[ E\left ( \sum _{i=1}^{n} X_i \right ) = \sum _{i=1}^{n} E(X_i) \]
provided all the expectations exist.
Proof :We prove this theorem using the principle of mathematical induction.
Step 1: Base Case (\(n = 2\)) We have already proved that \(E(X_1 + X_2) = E(X_1) + E(X_2)\). So the theorem is true for \(n = 2\).
Step 2: Induction Hypothesis Assume that the theorem is true for \(n = r\) (where \(r \geq 2\)). That is: \[ E\left ( \sum _{i=1}^{r} X_i \right ) = \sum _{i=1}^{r} E(X_i) \]
Step 3: Prove for \(n = r + 1\) Consider \(r+1\) random variables \(X_1, X_2, \dots , X_r, X_{r+1}\). We can write: \[ E\left ( \sum _{i=1}^{r+1} X_i \right ) = E\left ( \sum _{i=1}^{r} X_i + X_{r+1} \right ) \]
Now, using the addition theorem for two random variables (with \( \sum _{i=1}^{r} X_i \) as the first variable and \(X_{r+1}\) as the
second): \[ E\left ( \sum _{i=1}^{r} X_i + X_{r+1} \right ) = E\left ( \sum _{i=1}^{r} X_i \right ) + E(X_{r+1}) \]
Then, by the induction hypothesis: \[ E\left ( \sum _{i=1}^{r} X_i \right ) + E(X_{r+1}) = \sum _{i=1}^{r} E(X_i) + E(X_{r+1}) = \sum _{i=1}^{r+1} E(X_i) \]
Thus, the theorem is true for \(n = r + 1\).
Step 4: Since the theorem is true for \(n = 2\), and if it is true for \(n = r\) then it is also true for \(n = r + 1\), by the principle of
mathematical induction, the theorem holds for all positive integers \(n\). □
Example 2.7.4.Let \(X\) and \(Y\) be two random variables with \(E(X) = 5\) and \(E(Y) = 3\). Find \(E(X + Y)\).
Solution.\[ E(X + Y) = E(X) + E(Y) = 5 + 3 = 8 \]
Example 2.7.5.Let \(X_1, X_2, X_3\) be three random variables with \(E(X_1) = 2\), \(E(X_2) = 4\), and \(E(X_3) = 6\). Find \(E(X_1 + X_2 + X_3)\).
Theorem 2.8.1.If \(X\) and \(Y\) are independent random variables, then: \[ E(XY) = E(X) \cdot E(Y) \] provided all the expectations exist.
Proof :Let \(X\) and \(Y\) be independent continuous random variables with joint probability density
function \(f_{X,Y}(x,y)\). Since \(X\) and \(Y\) are independent, their joint p.d.f. factors as: \[ f_{X,Y}(x,y) = f_X(x) \cdot f_Y(y) \] where \(f_X(x)\) and \(f_Y(y)\) are the marginal p.d.f.’s
of \(X\) and \(Y\) respectively.
By definition of expectation: \[ E(XY) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } xy \, f_{X,Y}(x,y) \, dx \, dy \]
Substituting the factored form: \[ E(XY) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } xy \, f_X(x) \, f_Y(y) \, dx \, dy \]
Since the integrals are over different variables, we can separate them: \[ E(XY) = \left [ \int _{-\infty }^{\infty } x \, f_X(x) \, dx \right ] \cdot \left [ \int _{-\infty }^{\infty } y \, f_Y(y) \, dy \right ] \]
Therefore: \[ E(XY) = E(X) \cdot E(Y) \]
For discrete independent random variables, let \(p_{ij} = P(X = x_i, Y = y_j)\). Since \(X\) and \(Y\) are independent: \[ p_{ij} = P(X = x_i) \cdot P(Y = y_j) \] Then: \begin {align*} E(XY) &= \sum _i \sum _j x_i y_j \, p_{ij} \\ &= \sum _i \sum _j x_i y_j \, P(X = x_i) \, P(Y = y_j) \\ &= \left [ \sum _i x_i \, P(X = x_i) \right ] \cdot \left [ \sum _j y_j \, P(Y = y_j) \right ] \\ &= E(X) \cdot E(Y) \end {align*}
□
Theorem 2.8.2.The mathematical expectation of the product of a number of independent random
variables is equal to the product of their expectations. Symbolically, if \(X_1, X_2, \dots , X_n\) are \(n\) independent random
variables, then: \[ E\left ( \prod _{i=1}^{n} X_i \right ) = \prod _{i=1}^{n} E(X_i) \] provided all the expectations exist.
Proof :We prove this by mathematical induction.
Base case (\(n = 2\)): From Theorem 6.2, \(E(X_1 X_2) = E(X_1) E(X_2)\). So the theorem is true for \(n = 2\).
Induction hypothesis: Assume the theorem is true for \(n = r\), i.e., \[ E\left ( \prod _{i=1}^{r} X_i \right ) = \prod _{i=1}^{r} E(X_i) \]
Induction step: For \(n = r + 1\): \[ E\left ( \prod _{i=1}^{r+1} X_i \right ) = E\left ( \left ( \prod _{i=1}^{r} X_i \right ) \cdot X_{r+1} \right ) \]
Since all \(X_i\) are independent, \(\prod _{i=1}^{r} X_i\) is independent of \(X_{r+1}\). Using Theorem 6.2 for two variables: \[ E\left ( \left ( \prod _{i=1}^{r} X_i \right ) \cdot X_{r+1} \right ) = E\left ( \prod _{i=1}^{r} X_i \right ) \cdot E(X_{r+1}) \]
Then by the induction hypothesis: \[ E\left ( \prod _{i=1}^{r} X_i \right ) \cdot E(X_{r+1}) = \left ( \prod _{i=1}^{r} E(X_i) \right ) \cdot E(X_{r+1}) = \prod _{i=1}^{r+1} E(X_i) \]
Thus, if the theorem is true for \(n = r\), it is also true for \(n = r + 1\). Since it is true for \(n = 2\), by the principle of mathematical
induction, it holds for all positive integers \(n\). □
Theorem 2.8.3.If \(X\) is a random variable and \(a\) is a constant, then:
1.
\(E[a \,\psi (X)] = a \, E[\psi (X)]\)
2.
\(E[\psi (X) + a] = E[\psi (X)] + a\)
where \(\psi (X)\) is a function of \(X\) and all expectations exist.
Corollary 2.8.4.If \(\psi (X) = X\), then: \[ E(aX) = aE(X) \quad \text {and} \quad E(X + a) = E(X) + a \] If \(\psi (X) = 1\), then \(E(a) = a\).
Theorem 2.8.5.If \(X\) is a random variable and \(a\) and \(b\) are constants, then: \[ E(aX + b) = aE(X) + b \] provided all expectations exist.
Proof :By definition: \begin {align*} E(aX + b) &= \int _{-\infty }^{\infty } (ax + b) f(x) \, dx \\ &= a \int _{-\infty }^{\infty } x f(x) \, dx + b \int _{-\infty }^{\infty } f(x) \, dx \\ &= aE(X) + b \end {align*}
□
Corollary 2.8.6.If \(b = 0\), then \(E(aX) = aE(X)\). If \(a = 1\) and \(b = -E(X)\), then: \[ E[X - E(X)] = 0 \]
Remark 2.8.7.If we write \(g(X) = aX + b\), then: \[ E[g(X)] = g[E(X)] \] This means expectation of a linear function is the same linear
function of the expectation. This result is not true for non-linear functions. For example: \[ E(1/X) \neq 1/E(X), \quad E(X^2) \neq [E(X)]^2, \quad E(\log X) \neq \log [E(X)] \]
Theorem 2.8.8.If \(X \geq 0\), then \(E(X) \geq 0\), provided the expectation exists.
Proof :If \(X\) is a continuous random variable such that \(X \geq 0\), then: \[ E(X) = \int _{-\infty }^{\infty } x f(x) \, dx = \int _0^{\infty } x f(x) \, dx \geq 0 \] since the integrand is non-negative. □
Theorem 2.8.9.Let \(X\) and \(Y\) be two random variables such that \(Y \leq X\). Then: \[ E(Y) \leq E(X) \] provided the expectations exist.
Proof :Since \(Y \leq X\), we have \(X - Y \geq 0\). By Theorem 6.5(a): \[ E(X - Y) \geq 0 \Rightarrow E(X) - E(Y) \geq 0 \Rightarrow E(Y) \leq E(X) \] □
Theorem 2.8.10.\(|E(X)| \leq E(|X|)\), provided the expectations exist.
Proof :Since \(X \leq |X|\) and \(-X \leq |X|\), by Theorem 6.5(b): \[ E(X) \leq E(|X|) \quad \text {and} \quad E(-X) \leq E(|X|) \Rightarrow -E(X) \leq E(|X|) \] The two inequalities together give \(|E(X)| \leq E(|X|)\). □
Theorem 2.8.11.If \(\mu _r' = E(X^r)\) exists, then \(\mu _s' = E(X^s)\) exists for all \(1 \leq s \leq r\). That is: \[ E(X^r) < \infty \Rightarrow E(X^s) < \infty \quad \forall \quad 1 \leq s \leq r \]
Proof :We can write: \[ \int _{-\infty }^{\infty } |x|^s dF(x) = \int _{-1}^{1} |x|^s dF(x) + \int _{|x| > 1} |x|^s dF(x) \] If \(s < r\), then for \(|x| > 1\), \(|x|^s < |x|^r\). Also for \(|x| \leq 1\), \(|x|^s \leq 1\). Therefore: \[ \int _{-\infty }^{\infty } |x|^s dF(x) \leq \int _{-1}^{1} 1 \cdot dF(x) + \int _{|x| > 1} |x|^r dF(x) \leq 1 + E(|X|^r) < \infty \] Thus \(E(X^s)\) exists for all \(1 \leq s \leq r\). □
Remark 2.8.12.This theorem states that if moments of a specified order exist, then all lower order
moments automatically exist. However, the converse is not true. Higher order moments may not exist
even if lower order moments exist.
Theorem 2.8.13.If \(X\) is a random variable and \(a\) and \(b\) are constants, then: \[ V(aX + b) = a^2 V(X) \] where \(V(X)\) denotes the variance
of \(X\).
Example 2.8.16.Let \(X_1, X_2, X_3\) be three independent random variables with \(E(X_1) = 2\), \(E(X_2) = 4\), and \(E(X_3) = 6\). Find \(E(X_1 X_2 X_3)\).
Definition 2.9.1 (Covariance).If \(X\) and \(Y\) are two random variables, then the covariance between them
is defined as: \[ \operatorname {Cov}(X, Y) = E\left [ \{X - E(X)\} \{Y - E(Y)\} \right ] \] provided the expectations exist.
Theorem 2.9.2 (Alternative Formula for Covariance).\[ \operatorname {Cov}(X, Y) = E(XY) - E(X)E(Y) \]
Proof :We prove the first property. The others follow similarly. \begin {align*} \operatorname {Cov}(aX, bY) &= E[(aX - E(aX))(bY - E(bY))] \\ &= E[a(X - E(X)) \cdot b(Y - E(Y))] \\ &= ab \, E[(X - E(X))(Y - E(Y))] \\ &= ab \cdot \operatorname {Cov}(X, Y) \end {align*}
□
Definition 2.9.5 (Correlation Coefficient).The correlation coefficient between the variables \(X\) and \(Y\),
denoted by \(\rho _{XY}\), is defined as: \[ \rho _{XY} = \frac {\operatorname {Cov}(X, Y)}{\sigma _X \sigma _Y} \] where \(\sigma _X = \sqrt {\operatorname {Var}(X)}\) and \(\sigma _Y = \sqrt {\operatorname {Var}(Y)}\) are the standard deviations of \(X\) and \(Y\) respectively.
Remark 2.9.6.
1.
The correlation coefficient is a dimensionless quantity (it has no units).
2.
It always lies between \(-1\) and \(1\), i.e., \(-1 \leq \rho _{XY} \leq 1\).
3.
\(\rho _{XY} = 1\) indicates perfect positive linear relationship.
4.
\(\rho _{XY} = -1\) indicates perfect negative linear relationship.
5.
\(\rho _{XY} = 0\) indicates no linear relationship (but the variables may still be dependent in a non-linear way).
Example 2.9.7.Let \(X\) and \(Y\) be two random variables with \(E(X) = 5\), \(E(Y) = 3\), and \(E(XY) = 20\). Find \(\operatorname {Cov}(X, Y)\).
2.10 Variance of a Linear Combination of Random Variables
Theorem 2.10.1.Let \(X_1, X_2, \dots , X_n\) be \(n\) random variables and let \(a_1, a_2, \dots , a_n\) be constants. Then the variance of the linear
combination \(\sum _{i=1}^n a_i X_i\) is given by: \[ V\left ( \sum _{i=1}^n a_i X_i \right ) = \sum _{i=1}^n a_i^2 V(X_i) + 2 \sum _{1 \leq i < j \leq n} a_i a_j \operatorname {Cov}(X_i, X_j) \] provided all variances and covariances exist.
Proof :Let \(U = a_1 X_1 + a_2 X_2 + \dots + a_n X_n\). Then: \[ E(U) = a_1 E(X_1) + a_2 E(X_2) + \dots + a_n E(X_n) \]
Now consider the deviation of \(U\) from its mean: \[ U - E(U) = \sum _{i=1}^n a_i [X_i - E(X_i)] \]
Squaring both sides, we get: \[ [U - E(U)]^2 = \left ( \sum _{i=1}^n a_i [X_i - E(X_i)] \right )^2 = \sum _{i=1}^n \sum _{j=1}^n a_i a_j [X_i - E(X_i)][X_j - E(X_j)] \]
Taking expectation on both sides: \[ V(U) = E[U - E(U)]^2 = \sum _{i=1}^n \sum _{j=1}^n a_i a_j E\left [ \{X_i - E(X_i)\} \{X_j - E(X_j)\} \right ] \]
But \(E\left [ \{X_i - E(X_i)\} \{X_j - E(X_j)\} \right ] = \operatorname {Cov}(X_i, X_j)\).
Also, note that \(\operatorname {Cov}(X_i, X_i) = V(X_i)\). Therefore: \[ V(U) = \sum _{i=1}^n a_i^2 V(X_i) + \sum _{i \neq j} a_i a_j \operatorname {Cov}(X_i, X_j) \]
Since \(\operatorname {Cov}(X_i, X_j) = \operatorname {Cov}(X_j, X_i)\), the sum over \(i \neq j\) can be written as \(2 \sum _{1 \leq i < j \leq n} a_i a_j \operatorname {Cov}(X_i, X_j)\). Hence: \[ V\left ( \sum _{i=1}^n a_i X_i \right ) = \sum _{i=1}^n a_i^2 V(X_i) + 2 \sum _{1 \leq i < j \leq n} a_i a_j \operatorname {Cov}(X_i, X_j) \] □
Corollary 2.10.2 (Special Case - Sum of Two Variables).If we take \(a_1 = 1 = a_2\) and \(a_3 = a_4 = \dots = a_n = 0\), then: \[ V(X_1 + X_2) = V(X_1) + V(X_2) + 2 \operatorname {Cov}(X_1, X_2) \]
Corollary 2.10.3 (Special Case - Difference of Two Variables).If we take \(a_1 = 1\), \(a_2 = -1\), and all other \(a_i = 0\), then: \[ V(X_1 - X_2) = V(X_1) + V(X_2) - 2 \operatorname {Cov}(X_1, X_2) \]
Corollary 2.10.4 (When All Coefficients are 1).If \(a_i = 1\) for all \(i = 1, 2, \dots , n\), then: \[ V\left ( \sum _{i=1}^n X_i \right ) = \sum _{i=1}^n V(X_i) + 2 \sum _{1 \leq i < j \leq n} \operatorname {Cov}(X_i, X_j) \]
Theorem 2.10.5 (Variance of Sum of Independent Variables).If \(X_1, X_2, \dots , X_n\) are independent (or even pairwise
independent) random variables, then \(\operatorname {Cov}(X_i, X_j) = 0\) for \(i \neq j\). Therefore: \[ V\left ( \sum _{i=1}^n a_i X_i \right ) = \sum _{i=1}^n a_i^2 V(X_i) \]
Proof :For independent variables, \(\operatorname {Cov}(X_i, X_j) = 0\) when \(i \neq j\). Substituting into Theorem 6.9, the second term vanishes:
\[ V\left ( \sum _{i=1}^n a_i X_i \right ) = \sum _{i=1}^n a_i^2 V(X_i) \] □
Corollary 2.10.6 (Sum of Independent Variables).If \(X_1, X_2, \dots , X_n\) are independent and \(a_i = 1\) for all \(i\), then: \[ V\left ( \sum _{i=1}^n X_i \right ) = \sum _{i=1}^n V(X_i) \]
The variance of a sum of independent variables is the sum of their variances.
2.
For dependent variables, the covariance terms must be included.
3.
The covariance term can be positive or negative, so the variance of a sum can be larger or
smaller than the sum of individual variances.
Example 2.10.9.Let \(X\) and \(Y\) be two random variables with \(V(X) = 4\), \(V(Y) = 9\), and \(\operatorname {Cov}(X, Y) = 2\). Find \(V(X + Y)\) and \(V(X - Y)\).
Example 2.10.10.Let \(X_1, X_2, X_3\) be three independent random variables with variances \(V(X_1) = 1\), \(V(X_2) = 4\), and \(V(X_3) = 9\). Find \(V(2X_1 + 3X_2 - X_3)\).
Theorem 2.10.12.If \(X\) and \(Y\) are independent random variables, then: \[ E[h(X) \cdot k(Y)] = E[h(X)] \cdot E[k(Y)] \] where \(h(\cdot )\) is a function of \(X\) alone and
\(k(\cdot )\) is a function of \(Y\) alone, provided the expectations exist.
Proof :Let \(f_X(x)\) and \(f_Y(y)\) be the marginal probability density functions of \(X\) and \(Y\) respectively. Since \(X\) and \(Y\) are
independent, their joint p.d.f. is: \[ f_{XY}(x,y) = f_X(x) f_Y(y) \]
By definition, for continuous random variables: \begin {align*} E[h(X) \cdot k(Y)] &= \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } h(x) k(y) f_{XY}(x,y) \, dx \, dy \\ &= \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } h(x) k(y) f_X(x) f_Y(y) \, dx \, dy \\ &= \left [ \int _{-\infty }^{\infty } h(x) f_X(x) \, dx \right ] \cdot \left [ \int _{-\infty }^{\infty } k(y) f_Y(y) \, dy \right ] \\ &= E[h(X)] \cdot E[k(Y)] \end {align*}
For discrete random variables, we replace integration with summation. □
Remark 2.10.13.
1.
This theorem shows that independence allows us to separate expectations of products.
2.
The converse is not necessarily true. \(E[h(X)k(Y)] = E[h(X)]E[k(Y)]\) for all \(h\) and \(k\) does imply independence, but for specific \(h\)
and \(k\) it may not.
Example 2.10.14.Let \(X\) and \(Y\) be independent random variables with \(E(X^2) = 5\) and \(E(Y^3) = 8\). Find \(E(X^2 Y^3)\).
Solution.Since \(X\) and \(Y\) are independent: \[ E(X^2 Y^3) = E(X^2) \cdot E(Y^3) = 5 \times 8 = 40 \]
Theorem 2.10.15.If \(X\) and \(Y\) are random variables taking real values, then: \[ [E(XY)]^2 \leq E(X^2) \cdot E(Y^2) \] The equality holds if and
only if there exists a constant \(t\) such that \(P(Y = tX) = 1\) (i.e., \(Y\) is a constant multiple of \(X\) almost surely).
Proof :Consider a real valued function of the real variable \(t\) defined by: \[ Z(t) = E[(X + tY)^2] \]
Since \((X + tY)^2 \geq 0\) for all real \(X, Y, t\), we have \(Z(t) \geq 0\) for all \(t\).
Expanding: \begin {align*} Z(t) &= E[X^2 + 2tXY + t^2 Y^2] \\ &= E(X^2) + 2t E(XY) + t^2 E(Y^2) \geq 0 \quad \forall t \end {align*}
This is a quadratic expression in \(t\) of the form \(At^2 + Bt + C\) where \(A = E(Y^2)\), \(B = 2E(XY)\), and \(C = E(X^2)\). A quadratic \(At^2 + Bt + C \geq 0\) for all real \(t\) implies that its
discriminant is less than or equal to zero: \[ B^2 - 4AC \leq 0 \]
Substituting the values: \[ [2E(XY)]^2 - 4 \cdot E(Y^2) \cdot E(X^2) \leq 0 \] \[ 4[E(XY)]^2 - 4 E(X^2) E(Y^2) \leq 0 \] \[ [E(XY)]^2 \leq E(X^2) \cdot E(Y^2) \]
Equality Condition: Equality holds if and only if \(Z(t) = 0\) for some \(t\). That is, \(E[(X + tY)^2] = 0\), which implies \((X + tY)^2 = 0\) almost surely, so \(X + tY = 0\) almost
surely, i.e., \(Y = -\frac {1}{t}X\). Thus \(Y\) is a constant multiple of \(X\) almost surely. □
Corollary 2.10.16 (Covariance Form of Cauchy-Schwarz Inequality).\[ [\operatorname {Cov}(X,Y)]^2 \leq \operatorname {Var}(X) \cdot \operatorname {Var}(Y) \]
The Cauchy-Schwarz inequality is one of the most important inequalities in mathematics.
2.
It implies that the correlation coefficient \(\rho _{XY} = \frac {\operatorname {Cov}(X,Y)}{\sigma _X \sigma _Y}\) satisfies \(|\rho _{XY}| \leq 1\).
3.
Equality occurs when \(X\) and \(Y\) are linearly related.
Example 2.10.18.If \(E(X^2) = 9\) and \(E(Y^2) = 16\), find the maximum possible value of \(E(XY)\).
Solution.By Cauchy-Schwarz inequality: \[ [E(XY)]^2 \leq E(X^2) \cdot E(Y^2) = 9 \times 16 = 144 \] \[ E(XY) \leq \sqrt {144} = 12 \] The maximum possible value of \(E(XY)\) is 12.
Theorem 2.10.19.If \(g\) is a continuous convex function on an interval \(I\) and \(X\) is a random variable whose
values lie in \(I\) with probability 1, then: \[ E[g(X)] \geq g[E(X)] \] provided the expectations exist.
If \(g\) is concave, then: \[ E[g(X)] \leq g[E(X)] \]
Proof :We first establish that for a convex function \(g\), there exists a supporting line at the point \((E(X), g(E(X)))\). That
is, there exist constants \(a\) and \(b\) such that: \[ g(x) \geq ax + b \quad \text {for all } x \in I \] and \[ g(E(X)) = aE(X) + b \]
This is a fundamental property of convex functions. For a convex function, the graph lies above any
of its tangent lines.
Now, since the inequality \(g(X) \geq aX + b\) holds for every value of \(X\) (with probability 1), taking expectation on both
sides: \[ E[g(X)] \geq E[aX + b] = aE(X) + b \]
But \(aE(X) + b = g(E(X))\). Therefore: \[ E[g(X)] \geq g(E(X)) \]
If \(g\) is concave, then \(-g\) is convex. Applying the convex case to \(-g\): \[ E[-g(X)] \geq -g(E(X)) \Rightarrow -E[g(X)] \geq -g(E(X)) \Rightarrow E[g(X)] \leq g(E(X)) \]
This completes the proof. □
Corollary 2.10.20 (Special Cases of Jensen’s Inequality).
1.
\(E(X^2) \geq [E(X)]^2\) (since \(g(x) = x^2\) is convex)
2.
\(E(1/X) \geq 1/E(X)\) for \(X > 0\) (since \(g(x) = 1/x\) is convex for \(x > 0\))
3.
\(E(\sqrt {X}) \leq \sqrt {E(X)}\) for \(X \geq 0\) (since \(g(x) = \sqrt {x}\) is concave)
4.
\(E(\log X) \leq \log [E(X)]\) for \(X > 0\) (since \(g(x) = \log x\) is concave)
5.
\(E(e^{tX}) \geq e^{tE(X)}\) for all real \(t\) (since \(g(x) = e^{tx}\) is convex)
Remark 2.10.21.
1.
Jensen’s inequality is fundamental in probability, statistics, and economics.
2.
It tells us that for convex functions, the function of the expectation is less than or equal to the
expectation of the function.
3.
For concave functions, the opposite inequality holds.
4.
Equality holds if and only if \(X\) is constant almost surely (or if \(g\) is linear on the support of \(X\)).
5.
Jensen’s inequality is widely used to prove other inequalities like the AM-GM inequality.
Example 2.10.22.Show that \(E(X^2) \geq [E(X)]^2\) for any random variable \(X\).
Solution.The function \(g(x) = x^2\) is convex because \(g''(x) = 2 > 0\). By Jensen’s inequality: \[ E(X^2) \geq [E(X)]^2 \]
Example 2.10.23.If \(X > 0\), show that \(E(1/X) \geq 1/E(X)\).
Solution.The function \(g(x) = 1/x\) for \(x > 0\) is convex because \(g''(x) = 2/x^3 > 0\). By Jensen’s inequality: \[ E(1/X) \geq 1/E(X) \]
Example 2.10.24.If \(X\) is a positive random variable with \(E(X) = 10\), find an upper bound for \(E(\sqrt {X})\).
Solution.The function \(g(x) = \sqrt {x}\) is concave for \(x > 0\). By Jensen’s inequality: \[ E(\sqrt {X}) \leq \sqrt {E(X)} = \sqrt {10} \approx 3.162 \]
Examples
Example 2.10.25.Let \(X\) be a random variable with the following probability distribution: \[ \begin {array}{c|ccc} x & -3 & 6 & 9 \\ \hline p(x) & \frac {1}{6} & \frac {1}{2} & \frac {1}{3} \end {array} \] Find \(E(X)\), \(E(X^2)\), and
using the laws of expectation, evaluate \(E(2X + 1)^2\).
Example 2.10.26.(a) Find the expectation of the number on a die when thrown. (b) Two unbiased
dice are thrown. Find the expected value of the sum of numbers of points on them.
Solution.(a) Let \(X\) be the number on a die when thrown. Then \(X\) can take values \(1, 2, 3, 4, 5, 6\) each with probability
\(\frac {1}{6}\). \[ E(X) = \frac {1}{6}(1 + 2 + 3 + 4 + 5 + 6) = \frac {1}{6} \times \frac {6 \times 7}{2} = \frac {7}{2} = 3.5 \]
Remark: This does not mean that in a single throw we get 3.5. It means that if we throw the die many
times, the average of the numbers obtained will be approximately 3.5.
(b) Let \(X_1\) be the number on the first die and \(X_2\) be the number on the second die. Then the sum \(S = X_1 + X_2\). By
linearity of expectation: \[ E(S) = E(X_1) + E(X_2) = \frac {7}{2} + \frac {7}{2} = 7 \]
Alternative method: The probability distribution of the sum of two dice gives the same result.
Example 2.10.27.A box contains \(2^n\) tickets among which \(\binom {n}{i}\) tickets bear the number \(i\); \(i = 0, 1, 2, \dots , n\). A group of \(m\) tickets
is drawn. What is the expectation of the sum of their numbers?
Solution.Let \(X_i\) be the number on the \(i\)th ticket drawn, \(i = 1, 2, \dots , m\). Then the sum \(S = \sum _{i=1}^m X_i\).
By linearity of expectation: \[ E(S) = \sum _{i=1}^m E(X_i) \]
Now, each \(X_i\) can take values \(0, 1, 2, \dots , n\) with probabilities: \[ P(X_i = k) = \frac {\binom {n}{k}}{2^n}, \quad k = 0, 1, 2, \dots , n \]
Therefore: \[ E(X_i) = \frac {1}{2^n} \sum _{k=0}^n k \binom {n}{k} \]
We know that \(\sum _{k=0}^n k \binom {n}{k} = n \cdot 2^{n-1}\). Hence: \[ E(X_i) = \frac {n \cdot 2^{n-1}}{2^n} = \frac {n}{2} \]
Thus: \[ E(S) = m \times \frac {n}{2} = \frac {mn}{2} \]
Example 2.10.28.In four tosses of a coin, let \(X\) be the number of heads. Tabulate the 16 possible
outcomes with the corresponding values of \(X\). By simple counting, derive the distribution of \(X\) and hence
calculate the expected value of \(X\).
Solution.Let \(H\) represent head and \(T\) represent tail. The sample space has 16 outcomes. The number of
heads \(X\) can be \(0, 1, 2, 3, 4\).
Example 2.10.30.What is the expectation of the number of failures preceding the first success in an
infinite series of independent trials with constant probability \(p\) of success in each trial?
Solution.Let \(X\) be the number of failures preceding the first success. Then \(X\) can take values \(0, 1, 2, \dots \). The
probability of \(x\) failures followed by a success is: \[ P(X = x) = q^x p, \quad \text {where } q = 1 - p, \quad x = 0, 1, 2, \dots \]
Then: \[ E(X) = \sum _{x=0}^{\infty } x \cdot q^x p = pq \sum _{x=1}^{\infty } x q^{x-1} \]
We know that \(\sum _{x=1}^{\infty } x q^{x-1} = \frac {1}{(1-q)^2} = \frac {1}{p^2}\). Therefore: \[ E(X) = pq \cdot \frac {1}{p^2} = \frac {q}{p} \]
Thus the expected number of failures before the first success is \(\frac {q}{p}\).
Example 2.10.31.A box contains \(a\) white and \(b\) black balls. \(c\) balls are drawn. Find the expected value of
the number of white balls drawn.
Solution.Define a random variable \(X_i\) for the \(i\)th draw as: \[ X_i = \begin {cases} 1 & \text {if the } i\text {th ball drawn is white} \\ 0 & \text {if the } i\text {th ball drawn is black} \end {cases} \]
Then the number of white balls drawn is \(S = X_1 + X_2 + \cdots + X_c\).
By linearity of expectation: \[ E(S) = \sum _{i=1}^c E(X_i) \]
Now, \(E(X_i) = P(X_i = 1) = \frac {a}{a+b}\) (probability of drawing a white ball on any draw, assuming draws are random).
Therefore: \[ E(S) = c \times \frac {a}{a+b} = \frac {ac}{a+b} \]
Example 2.10.32.Let variate \(X\) have the distribution: \[ P(X = 0) = P(X = 2) = p, \quad P(X = 1) = 1 - 2p, \quad \text {for } 0 \leq p \leq \frac {1}{2} \] For what value of \(p\) is \(\operatorname {Var}(X)\) maximum?
Solution.First, compute \(E(X)\): \[ E(X) = 0 \times p + 1 \times (1 - 2p) + 2 \times p = 1 - 2p + 2p = 1 \]
Next, compute \(E(X^2)\): \[ E(X^2) = 0^2 \times p + 1^2 \times (1 - 2p) + 2^2 \times p = 1 - 2p + 4p = 1 + 2p \]
Now, variance: \[ \operatorname {Var}(X) = E(X^2) - [E(X)]^2 = (1 + 2p) - 1^2 = 2p \]
Since \(0 \leq p \leq \frac {1}{2}\), \(\operatorname {Var}(X) = 2p\) is maximum when \(p = \frac {1}{2}\).
Thus, \(\operatorname {Var}(X)\) is maximum at \(p = \frac {1}{2}\) and the maximum value is \(2 \times \frac {1}{2} = 1\).
Example 2.10.33.If \(\operatorname {Var}(X) = 0\), what can you conclude?
Solution.We have: \[ \operatorname {Var}(X) = E[X - E(X)]^2 = 0 \]
Since the square of a real number is always non-negative, the expectation of a non-negative random
variable is zero if and only if that random variable is zero with probability 1. That is: \[ [X - E(X)]^2 = 0 \quad \text {with probability } 1 \] \[ \Rightarrow X - E(X) = 0 \quad \text {with probability } 1 \] \[ \Rightarrow X = E(X) \quad \text {with probability } 1 \]
Thus, \(\operatorname {Var}(X) = 0\) implies that \(X\) is constant almost surely.
Example 2.10.34.Starting from the origin, unit steps are taken to the right with probability \(p\) and
to the left with probability \(q = 1-p\). Assuming independent movements, find the mean and variance of the
distance moved from origin after \(n\) steps (Random Walk Problem).
Solution.Define a random variable \(X_i\) associated with the \(i\)th step: \[ X_i = \begin {cases} +1 & \text {if the } i\text {th step is to the right} \\ -1 & \text {if the } i\text {th step is to the left} \end {cases} \]
Then the distance from the origin after \(n\) steps is: \[ S_n = X_1 + X_2 + \cdots + X_n \]
Now, \(E(X_i) = 1 \cdot p + (-1) \cdot q = p - q = p - (1-p) = 2p - 1\).
Also, \(E(X_i^2) = 1^2 \cdot p + (-1)^2 \cdot q = p + q = 1\).
Therefore: \[ \operatorname {Var}(X_i) = E(X_i^2) - [E(X_i)]^2 = 1 - (2p - 1)^2 = 1 - (4p^2 - 4p + 1) = 4p - 4p^2 = 4p(1-p) = 4pq \]
Since the steps are independent: \[ E(S_n) = \sum _{i=1}^n E(X_i) = n(2p - 1) \] \[ \operatorname {Var}(S_n) = \sum _{i=1}^n \operatorname {Var}(X_i) = n \cdot 4pq = 4npq \]
Thus, the mean distance is \(n(2p-1)\) and the variance is \(4npq\). For a fair coin (\(p = \frac {1}{2}\)), the mean is 0 and variance is \(n\).
Example 2.10.35.Let \(X\) and \(Y\) be independent non-degenerate random variables. Prove that: \[ \operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y) \] if and
only if \(E(X) = 0\) and \(E(Y) = 0\).
Solution.We prove both directions of the statement.
Part 1 (If direction):
Assume \(E(X) = 0\) and \(E(Y) = 0\). We show that \(\operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y)\).
\begin {align*} \operatorname {Var}(XY) &= E(XY)^2 - [E(XY)]^2 \\ &= E(X^2 Y^2) - [E(X)E(Y)]^2 \quad (\text {since } X, Y \text { are independent}) \\ &= E(X^2)E(Y^2) - [0 \times 0]^2 \quad (\text {since } E(X) = 0, E(Y) = 0) \\ &= E(X^2)E(Y^2) \end {align*}
Now, \(\operatorname {Var}(X) = E(X^2) - [E(X)]^2 = E(X^2) - 0 = E(X^2)\). Similarly, \(\operatorname {Var}(Y) = E(Y^2)\).
\begin {align*} \therefore \operatorname {Var}(XY) &= \operatorname {Var}(X) \cdot \operatorname {Var}(Y) \end {align*}
Thus, if \(E(X) = 0\) and \(E(Y) = 0\), then \(\operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y)\).
Part 2 (Only if direction):
Assume that \(\operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y)\) and that \(X\) and \(Y\) are independent non-degenerate random variables (so \(\operatorname {Var}(X) > 0\) and \(\operatorname {Var}(Y) > 0\)). We prove that \(E(X) = 0\) and
\(E(Y) = 0\).
We have: \begin {align*} \operatorname {Var}(XY) &= E(X^2 Y^2) - [E(XY)]^2 \end {align*}
Since \(X\) and \(Y\) are independent: \begin {align*} E(X^2 Y^2) &= E(X^2)E(Y^2) \\ E(XY) &= E(X)E(Y) \end {align*}
Also: \begin {align*} \operatorname {Var}(X) &= E(X^2) - [E(X)]^2 \\ \operatorname {Var}(Y) &= E(Y^2) - [E(Y)]^2 \end {align*}
Substituting these into the given condition \(\operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y)\): \begin {align*} E(X^2)E(Y^2) - [E(X)E(Y)]^2 = [E(X^2) - [E(X)]^2] \cdot [E(Y^2) - [E(Y)]^2] \end {align*}
Expand the right-hand side: \begin {align*} \text {RHS} = E(X^2)E(Y^2) - E(X^2)[E(Y)]^2 - [E(X)]^2 E(Y^2) + [E(X)]^2 [E(Y)]^2 \end {align*}
Cancel \(E(X^2)E(Y^2)\) from both sides: \begin {align*} - [E(X)E(Y)]^2 = - E(X^2)[E(Y)]^2 - [E(X)]^2 E(Y^2) + [E(X)]^2 [E(Y)]^2 \end {align*}
Multiply both sides by \(-1\): \begin {align*} [E(X)E(Y)]^2 = E(X^2)[E(Y)]^2 + [E(X)]^2 E(Y^2) - [E(X)]^2 [E(Y)]^2 \end {align*}
Now, note that \([E(X)E(Y)]^2 = [E(X)]^2 [E(Y)]^2\). Therefore: \begin {align*} [E(X)]^2 [E(Y)]^2 = E(X^2)[E(Y)]^2 + [E(X)]^2 E(Y^2) - [E(X)]^2 [E(Y)]^2 \end {align*}
Bring the term \([E(X)]^2 [E(Y)]^2\) from the right-hand side to the left: \begin {align*} [E(X)]^2 [E(Y)]^2 + [E(X)]^2 [E(Y)]^2 &= E(X^2)[E(Y)]^2 + [E(X)]^2 E(Y^2) \end {align*}
\begin {align*} 2[E(X)]^2 [E(Y)]^2 &= E(X^2)[E(Y)]^2 + [E(X)]^2 E(Y^2) \end {align*}
Now, bring all terms to one side: \begin {align*} E(X^2)[E(Y)]^2 - 2[E(X)]^2 [E(Y)]^2 + [E(X)]^2 E(Y^2) = 0 \end {align*}
Factor \([E(Y)]^2\) from the first two terms and \([E(X)]^2\) from the last two terms: \begin {align*} [E(Y)]^2 [E(X^2) - 2[E(X)]^2] + [E(X)]^2 E(Y^2) = 0 \end {align*}
This form is still messy. Instead, rewrite the equation as: \begin {align*} E(X^2)[E(Y)]^2 - [E(X)]^2 [E(Y)]^2 = [E(X)]^2 E(Y^2) - [E(X)]^2 [E(Y)]^2 \end {align*}
Factor both sides: \begin {align*} [E(Y)]^2 [E(X^2) - [E(X)]^2] &= [E(X)]^2 [E(Y^2) - [E(Y)]^2] \end {align*}
\begin {align*} [E(Y)]^2 \operatorname {Var}(X) &= [E(X)]^2 \operatorname {Var}(Y) \end {align*}
Since \(\operatorname {Var}(X) > 0\) and \(\operatorname {Var}(Y) > 0\) (non-degenerate variables), and \([E(Y)]^2 \geq 0\), \([E(X)]^2 \geq 0\), the only way this equation can hold is if both sides are
zero.
\begin {align*} \text {If } E(X) = 0 \text { and } E(Y) = 0 &\Rightarrow \operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y) \\ \text {If } \operatorname {Var}(XY) & = \operatorname {Var}(X) \cdot \operatorname {Var}(Y) \end {align*}
and \( X, Y \) independent non-degenerate \( \Rightarrow E(X) = 0 \text { and } E(Y) = 0\).
Hence, \(\operatorname {Var}(XY) = \operatorname {Var}(X) \cdot \operatorname {Var}(Y)\) if and only if \(E(X) = 0\) and \(E(Y) = 0\).
2.11 Conditional Expectation and Conditional Variance
Definition 2.11.1 (Conditional Expectation - Discrete Case).The conditional expectation or mean
value of a function \(g(X,Y)\) given that \(Y = y_j\) is defined as: \[ E[g(X,Y) \mid Y = y_j] = \sum _{i=1}^{\infty } g(x_i, y_j) \, P(X = x_i \mid Y = y_j) \] Equivalently: \[ E[g(X,Y) \mid Y = y_j] = \frac {\displaystyle \sum _{i=1}^{\infty } g(x_i, y_j) \, P(X = x_i \cap Y = y_j)}{P(Y = y_j)} \]
In particular, the conditional expectation of \(X\) given \(Y = y_j\) is: \[ E(X \mid Y = y_j) = \sum _{i=1}^{\infty } x_i \, P(X = x_i \mid Y = y_j) \]
Definition 2.11.2 (Conditional Variance - Discrete Case).The conditional variance of \(X\) given \(Y = y_j\) is
defined as: \[ V(X \mid Y = y_j) = E\left [ \{X - E(X \mid Y = y_j)\}^2 \mid Y = y_j \right ] \]
Definition 2.11.3 (Conditional Expectation - Continuous Case).The conditional expectation of \(g(X,Y)\)
given \(Y = y\) is defined as: \[ E[g(X,Y) \mid Y = y] = \int _{-\infty }^{\infty } g(x,y) \, f_{X|Y}(x \mid y) \, dx = \frac {\displaystyle \int _{-\infty }^{\infty } g(x,y) \, f(x,y) \, dx}{f_Y(y)} \]
In particular, the conditional mean of \(X\) given \(Y = y\) is: \[ E(X \mid Y = y) = \frac {\displaystyle \int _{-\infty }^{\infty } x \, f(x,y) \, dx}{f_Y(y)} \]
Similarly, the conditional mean of \(Y\) given \(X = x\) is: \[ E(Y \mid X = x) = \frac {\displaystyle \int _{-\infty }^{\infty } y \, f(x,y) \, dy}{f_X(x)} \]
Definition 2.11.4 (Conditional Variance - Continuous Case).The conditional variance of \(X\) given \(Y = y\) is
defined as: \[ V(X \mid Y = y) = E\left [ \{X - E(X \mid Y = y)\}^2 \mid Y = y \right ] \]
Similarly: \[ V(Y \mid X = x) = E\left [ \{Y - E(Y \mid X = x)\}^2 \mid X = x \right ] \]
Theorem 2.11.5.The expected value of \(X\) is equal to the expectation of the conditional expectation of \(X\)
given \(Y\). Symbolically: \[ E(X) = E[E(X \mid Y)] \]
Proof: For continuous random variables: \begin {align*} E[E(X \mid Y)] &= \int _{-\infty }^{\infty } \left [ \int _{-\infty }^{\infty } x \, f_{X|Y}(x \mid y) \, dx \right ] f_Y(y) \, dy \\ &= \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } x \, f_{XY}(x,y) \, dx \, dy = E(X) \end {align*}
For discrete random variables, replace integrals with sums.
Theorem 2.11.6.The variance of \(X\) can be expressed as the sum of two parts: the expectation of the
conditional variance and the variance of the conditional expectation. Symbolically: \[ V(X) = E[V(X \mid Y)] + V[E(X \mid Y)] \]
Proof: \begin {align*} E[V(X \mid Y)] &= E[E(X^2 \mid Y) - [E(X \mid Y)]^2] \\ &= E(X^2) - E[[E(X \mid Y)]^2] \\ V[E(X \mid Y)] &= E[[E(X \mid Y)]^2] - [E(X)]^2 \end {align*}
Adding: \begin {align*} E[V(X \mid Y)] + V[E(X \mid Y)] &= E(X^2) - [E(X)]^2 = V(X) \end {align*}
Theorem 2.11.7.Let \(A\) and \(B\) be two mutually exclusive events. Then: \[ E(X \mid A \cup B) = \frac {P(A) E(X \mid A) + P(B) E(X \mid B)}{P(A \cup B)} \]
In particular, if \(B = \overline {A}\), then: \[ E(X) = P(A) E(X \mid A) + P(\overline {A}) E(X \mid \overline {A}) \]
Proof: By definition: \begin {align*} E(X \mid A \cup B) &= \frac {1}{P(A \cup B)} \sum _{x_i \in A \cup B} x_i P(X = x_i) \\ &= \frac {P(A) E(X \mid A) + P(B) E(X \mid B)}{P(A \cup B)} \end {align*}
Example 2.11.8.Two ideal dice are thrown. Let \(X_1\) be the score on the first die and \(X_2\) the score on the
second die. Let \(Y\) denote the maximum of \(X_1\) and \(X_2\), i.e., \(Y = \max (X_1, X_2)\).
(i) Write down the joint distribution of \(Y\) and \(X_1\). (ii) Find the mean and variance of \(Y\) and covariance \((Y, X_1)\).
Example 2.11.9.Let \(X\) and \(Y\) be two random variables each taking three values \(-1, 0\) and \(1\), and having the
joint probability distribution:
\[ \begin {array}{c|ccc|c} X \backslash Y & -1 & 0 & 1 & \text {Total} \\ \hline -1 & 0 & 0.2 & 0 & 0.2 \\ 0 & 0.2 & 0.2 & 0.2 & 0.6 \\ 1 & 0 & 0.2 & 0 & 0.2 \\ \hline \text {Total} & 0.2 & 0.6 & 0.2 & 1 \end {array} \]
(i) Show that \(X\) and \(Y\) have different expectations. (ii) Prove that \(X\) and \(Y\) are uncorrelated. (iii) Find \(\operatorname {Var}(X)\) and \(\operatorname {Var}(Y)\).
(iv) Given that \(Y = 0\), find the conditional probability distribution of \(X\). (v) Find \(V(Y \mid X = -1)\).
Example 2.11.10.Two tetrahedra with sides numbered 1 to 4 are tossed. Let \(X\) denote the number
on the downturned face of the first tetrahedron and \(Y\) denote the larger of the downturned numbers.
Investigate the following: (a) Joint density function of \(X, Y\) and marginals \(f_X\) and \(f_Y\). (b) \(P\{X \leq 2, Y \leq 3\}\). (c) \(\rho (X, Y)\). (d) \(E(Y \mid X = 2)\). (e) Construct
joint density different from that in part (a) but possessing same marginals \(f_X\) and \(f_Y\).
Example 2.11.11.(a) Given two variates \(X_1\) and \(X_2\) with joint density function \(f(x_1, x_2)\), prove that conditional
mean of \(X_2\) (given \(X_1\)) coincides with unconditional mean only if \(X_1\) and \(X_2\) are independent.
(b) Let \(f(x_1, x_2) = 21x_1^2 x_2^3\), \(0 < x_1 < x_2 < 1\), and zero elsewhere be the joint p.d.f. of \(X_1\) and \(X_2\). Find the conditional mean and variance of \(X_1\)
given \(X_2 = x_2\), \(0 < x_2 < 1\).
Example 2.11.12.Two random variables \(X\) and \(Y\) have the following joint probability density function: \[ f(x,y) = 2 - x - y, \quad 0 \leq x \leq 1, \quad 0 \leq y \leq 1 \]
Find (i) Marginal probability density functions of \(X\) and \(Y\). (ii) Conditional density functions. (iii) \(\operatorname {Var}(X)\) and \(\operatorname {Var}(Y)\).
(iv) Covariance between \(X\) and \(Y\).
Definition 2.12.1 (Moment Generating Function).The moment generating function of a random
variable \(X\) (about origin) having probability function \(f(x)\) is given by:
For continuous random variable: \[ M_X(t) = E(e^{tX}) = \int _{-\infty }^{\infty } e^{tx} f(x) \, dx \]
For discrete random variable: \[ M_X(t) = E(e^{tX}) = \sum _{i} e^{tx_i} f(x_i) \]
where \(t\) is a real parameter, and it is assumed that the right-hand side is absolutely convergent for
some positive number \(h\) such that \(-h < t < h\).
Remark 2.12.2.The coefficient of \(\frac {t^r}{r!}\) in \(M_X(t)\) gives the \(r\)th moment about origin. Thus: \[ \mu _r' = \left [ \frac {d^r}{dt^r} M_X(t) \right ]_{t=0} \] In particular:
\begin {align*} \mu _1' = E(X) &= M_X'(0) \\ \mu _2' = E(X^2) &= M_X''(0) \end {align*}
2.12.3 Limitations of Moment Generating Functions
Moment generating functions have some drawbacks that limit their use in statistics:
Remark 2.12.3.
1.
A random variable may have no moments although its m.g.f. exists. For example, consider a
discrete r.v. with: \[ P(X = x) = \frac {1}{x(x+1)}, \quad x = 1, 2, 3, \dots \] Here \(E(X)\) does not exist (harmonic series diverges), but the m.g.f. exists for \(t < 0\).
2.
A random variable may have all moments but the m.g.f. does not generate them. For example,
consider: \[ P(X = 2^x) = \frac {e^{-1}}{x!}, \quad x = 0, 1, 2, \dots \] All moments exist, but the m.g.f. cannot be differentiated at \(t = 0\).
3.
A random variable may have all moments but the m.g.f. does not exist except at one point. For
example, the Cauchy distribution has no m.g.f. (though moments of lower orders may exist).
2.12.4 Important Theorems on Moment Generating Functions
Theorem 2.12.4.If \(c\) is a constant, then: \[ M_{cX}(t) = M_X(ct) \]
Theorem 2.12.5.If \(X_1, X_2, \dots , X_n\) are independent random variables, then the moment generating function of their
sum is equal to the product of their individual moment generating functions: \[ M_{X_1 + X_2 + \cdots + X_n}(t) = M_{X_1}(t) \cdot M_{X_2}(t) \cdots M_{X_n}(t) \]
2.12.5 Uniqueness Theorem of Moment Generating Function
Remark 2.12.7.The moment generating function of a distribution, if it exists, uniquely determines the
distribution. This means:
1.
Corresponding to a given probability distribution, there is only one m.g.f. (provided it exists).
2.
Corresponding to a given m.g.f., there is only one probability distribution.
3.
\(M_X(t) = M_Y(t)\) for all \(t\) in an interval containing zero implies that \(X\) and \(Y\) have the same distribution.
2.12.6 Solved Examples
Example 2.12.8.Let the random variable \(X\) assume the value \(r\) with the probability law: \[ P(X = r) = q^{r-1}p, \quad r = 1, 2, 3, \dots \] Find the m.g.f.
of \(X\) and hence its mean and variance.
Example 2.12.9.The probability density function of the random variable \(X\) follows: \[ f(x) = \frac {1}{20} \exp \left ( -\frac {|x - \theta |}{6} \right ), \quad -\infty < x < \infty \] Find the M.G.F.
of \(X\). Hence or otherwise find \(E(X)\) and \(V(X)\).
Solution.\begin {align*} M_X(t) &= \int _{-\infty }^{\infty } e^{tx} \cdot \frac {1}{20} \exp \left ( -\frac {|x - \theta |}{6} \right ) dx \\ &= \frac {1}{20} \left [ \int _{-\infty }^{\theta } e^{tx} e^{-(\theta - x)/6} dx + \int _{\theta }^{\infty } e^{tx} e^{-(x - \theta )/6} dx \right ] \\ &= \frac {1}{20} \left [ e^{-\theta /6} \int _{-\infty }^{\theta } e^{x(t + 1/6)} dx + e^{\theta /6} \int _{\theta }^{\infty } e^{-x(1/6 - t)} dx \right ] \end {align*}
Evaluating the integrals (provided \(t < 1/6\) for convergence): \begin {align*} M_X(t) &= \frac {1}{20} \left [ \frac {e^{-\theta /6} \cdot e^{\theta (t + 1/6)}}{t + 1/6} + \frac {e^{\theta /6} \cdot e^{-\theta (1/6 - t)}}{1/6 - t} \right ] \\ &= \frac {1}{20} \left [ \frac {e^{\theta t}}{t + 1/6} + \frac {e^{\theta t}}{1/6 - t} \right ] \\ &= e^{\theta t} \cdot \frac {1}{20} \left [ \frac {1}{t + 1/6} + \frac {1}{1/6 - t} \right ] \\ &= e^{\theta t} \cdot \frac {1}{20} \left [ \frac {1/6 - t + t + 1/6}{(t + 1/6)(1/6 - t)} \right ] \\ &= e^{\theta t} \cdot \frac {1}{20} \left [ \frac {1/3}{1/36 - t^2} \right ] = e^{\theta t} \cdot \frac {1}{20} \cdot \frac {12}{1 - 36t^2} \\ &= e^{\theta t} \cdot \frac {12}{20(1 - 36t^2)} = \frac {3e^{\theta t}}{5(1 - 36t^2)} \end {align*}
Wait, this doesn’t match the PDF. Let me re-evaluate. Actually, the PDF shows the answer as: \[ M_X(t) = \frac {e^{\theta t}}{1 - \theta ^2 t^2} \] (with \(\theta \) instead of
6). Let me use \(\theta \) as the parameter.
Actually, in the PDF the parameter is 6, and the answer is: \[ M_X(t) = \frac {e^{\theta t}}{1 - 36t^2} \]
Expanding: \[ M_X(t) = e^{\theta t}(1 - 36t^2)^{-1} = (1 + \theta t + \frac {\theta ^2 t^2}{2!} + \cdots )(1 + 36t^2 + 1296t^4 + \cdots ) \]
Thus: \[ E(X) = \theta , \quad E(X^2) = \theta ^2 + 72 \]
So: \[ \operatorname {Var}(X) = E(X^2) - [E(X)]^2 = \theta ^2 + 72 - \theta ^2 = 72 \]
But the PDF says variance = \(2\theta ^2\) with \(\theta \) as the scale parameter. Let me re-check. Actually in the PDF, the parameter
is 6, and the m.g.f. is given as: \[ M_X(t) = \frac {e^{\theta t}}{1 - \theta ^2 t^2} \] with \(\theta \) being the scale parameter.
If the parameter is 6, then \(\theta = 6\), and: \[ M_X(t) = \frac {e^{6t}}{1 - 36t^2} \]
Expanding: \(e^{6t} = 1 + 6t + \frac {36t^2}{2!} + \cdots = 1 + 6t + 18t^2 + \cdots \) \[ (1 - 36t^2)^{-1} = 1 + 36t^2 + \cdots \]
Thus: \[ M_X(t) = (1 + 6t + 18t^2 + \cdots )(1 + 36t^2 + \cdots ) = 1 + 6t + (18 + 36)t^2 + \cdots \]
So: \[ E(X) = 6, \quad E(X^2) = 2 \times (54) = 108 \] \[ \operatorname {Var}(X) = 108 - 36 = 72 \]
Wait, \(\operatorname {Var}(X) = 72\). The PDF says variance = \(2\theta ^2\) where \(\theta = 6\), so \(2 \times 36 = 72\). Yes, this matches.
So the answer is: \[ E(X) = 6, \quad \operatorname {Var}(X) = 72 \]
If the parameter is called \(\theta \) (as in the PDF), then: \[ E(X) = \theta , \quad \operatorname {Var}(X) = 2\theta ^2 \]
Example 2.12.10.If the moments of a variate \(X\) are defined by: \[ E(X^r) = 0.6, \quad r = 1, 2, 3, \dots \] Show that \(P(X = 0) = 0.4\), \(P(X = 1) = 0.6\), \(P(X \geq 2) = 0\).
Solution.The m.g.f. of \(X\) is: \begin {align*} M_X(t) &= \sum _{r=0}^{\infty } \frac {t^r}{r!} \mu _r' = 1 + \sum _{r=1}^{\infty } \frac {t^r}{r!} (0.6) \\ &= 0.4 + 0.6 \sum _{r=0}^{\infty } \frac {t^r}{r!} = 0.4 + 0.6e^t \end {align*}
But also: \[ M_X(t) = E(e^{tX}) = \sum _{x=0}^{\infty } e^{tx} P(X = x) \]
Comparing coefficients of \(e^{tx}\), we get: \begin {align*} P(X = 0) &= 0.4 \\ P(X = 1) &= 0.6 \\ P(X \geq 2) &= 0 \end {align*}
This is the m.g.f. of a Bernoulli distribution with \(P(X = 0) = 0.4\) and \(P(X = 1) = 0.6\).
Example 2.12.11.Find the moment generating function of the random variable whose moments
are: \[ \mu _r' = (r+1)!2^r \]
Solution.The m.g.f. is: \begin {align*} M_X(t) &= \sum _{r=0}^{\infty } \frac {t^r}{r!} \mu _r' = \sum _{r=0}^{\infty } \frac {t^r}{r!} (r+1)!2^r \\ &= \sum _{r=0}^{\infty } (r+1)(2t)^r = 1 + 2(2t) + 3(2t)^2 + 4(2t)^3 + \cdots \end {align*}
Let \(u = 2t\). Then: \[ M_X(t) = 1 + 2u + 3u^2 + 4u^3 + \cdots \]
We know that: \[ (1 - u)^{-2} = 1 + 2u + 3u^2 + 4u^3 + \cdots \]
Thus: \[ M_X(t) = (1 - 2t)^{-2} \]
This is the m.g.f. of a Gamma distribution with shape parameter 2.
Example 2.12.12.If \(\mu _r'\) is the \(r\)th moment about origin, prove that: \[ \mu _r' = \sum _{j=1}^{r} \binom {r-1}{j-1} \mu _{r-j} \kappa _j \] where \(\kappa _j\) is the \(j\)th cumulant.
Definition 2.13.1 (Cumulant Generating Function).The cumulant generating function \(K_X(t)\) is defined as:
\[ K_X(t) = \log _e M_X(t) \] provided the right-hand side can be expanded as a convergent series in powers of \(t\).
Definition 2.13.2 (Cumulants).If \(K_X(t) = \log M_X(t)\) is expanded as: \[ K_X(t) = \kappa _1 t + \kappa _2 \frac {t^2}{2!} + \kappa _3 \frac {t^3}{3!} + \cdots + \kappa _r \frac {t^r}{r!} + \cdots \] then the coefficient \(\kappa _r\) of \(\frac {t^r}{r!}\) is called the \(r\)th cumulant.
The fourth cumulant is related to the fourth central moment by \(\kappa _4 = \mu _4 - 3\mu _2^2\).
2.13.3 Additive Property of Cumulants
Theorem 2.13.4 (Additive Property of Cumulants).The \(r\)th cumulant of the sum of independent
random variables is equal to the sum of the \(r\)th cumulants of the individual variables. Symbolically: \[ \kappa _r(X_1 + X_2 + \cdots + X_n) = \kappa _r(X_1) + \kappa _r(X_2) + \cdots + \kappa _r(X_n) \]
where \(X_1, X_2, \dots , X_n\) are independent random variables.
2.13.4 Effect of Change of Origin and Scale on Cumulants
If \(U = \frac {X - a}{h}\), then: \[ K_U(t) = -\frac {at}{h} + K_X(t/h) \]
Comparing coefficients, we get: \[ \kappa _1' = \frac {\kappa _1 - a}{h} \quad \text {and} \quad \kappa _r' = \frac {\kappa _r}{h^r}, \quad r \geq 2 \]
Thus, except the first cumulant, all cumulants are independent of change of origin. However, the \(r\)th
cumulant of \(U\) is \((1/h^r)\) times the \(r\)th cumulant of \(X\).
2.13.5 Solved Examples
Example 2.13.5.For a distribution, the cumulants are given by: \[ \kappa _r = n[(r-1)!], \quad n > 0 \] Find the characteristic function.
Example 2.13.6.The moments about origin of a distribution are given by: \[ \mu _r' = \frac {\Gamma (\nu + r)}{\Gamma (\nu )} \] Find the characteristic
function.
Example 2.13.8.Let \(F_n(x)\) be the distribution function defined by: \[ F_n(x) = 0 \text { for } x \leq -n, \quad F_n(x) = \frac {x + n}{2n} \text { for } -n < x < n, \quad F_n(x) = 1 \text { for } x \geq n \] Is the limit \(F_n(x)\) a distribution function? If
not, why?
Solution.The characteristic function is: \begin {align*} \phi _n(t) &= \int _{-n}^{n} e^{itx} \frac {1}{2n} dx = \frac {1}{2n} \left [ \frac {e^{itx}}{it} \right ]_{-n}^{n} \\ &= \frac {e^{itn} - e^{-itn}}{2nit} = \frac {\sin (nt)}{nt} \end {align*}
Taking the limit: \[ \phi (t) = \lim _{n \to \infty } \phi _n(t) = \lim _{n \to \infty } \frac {\sin (nt)}{nt} = \begin {cases} 1 & \text {if } t = 0 \\ 0 & \text {if } t \neq 0 \end {cases} \]
This \(\phi (t)\) is discontinuous at \(t = 0\). Also: \[ \lim _{n \to \infty } F_n(x) = \frac {1}{2} \]
Hence \(F(x)\) is not a distribution function.
Example 2.13.9.Find the distribution for which characteristic function is: \[ \phi (t) = (q + p e^{it})^n, \quad \phi (t) = e^{-it^3/2} \]
Solution.(a) \(\phi (t) = (q + p e^{it})^n\): \[ \phi (t) = \sum _{j=0}^{n} \binom {n}{j} p^j q^{n-j} e^{itj} \]
The coefficient of \(e^{itj}\) is \(\binom {n}{j} p^j q^{n-j}\), which is the probability mass function of the Binomial distribution. Thus, the
distribution is Binomial with parameters \(n\) and \(p\): \[ P(X = j) = \binom {n}{j} p^j q^{n-j}, \quad j = 0, 1, 2, \dots , n \]
(b) \(\phi (t) = e^{-it^3/2}\): Using the inversion formula: \[ f(x) = \frac {1}{2\pi } \int _{-\infty }^{\infty } e^{-itx} \phi (t) dt \]
This is the characteristic function of a distribution that is continuous for all \(x\). It represents a
distribution that is symmetric about 0.
Example 2.13.10.Find the density function \(f(x)\) corresponding to the characteristic function: \[ \phi (t) = \begin {cases} 1 + t & \text {for } -1 \leq t \leq 0 \\ 1 - t & \text {for } 0 \leq t \leq 1 \\ 0 & \text {elsewhere} \end {cases} \]
Definition 2.14.1 (Characteristic Function).The characteristic function of a random variable \(X\) is
defined as: \[ \phi _X(t) = E(e^{itX}) \]
For continuous random variable: \[ \phi _X(t) = \int _{-\infty }^{\infty } e^{itx} f(x) \, dx \]
For discrete random variable: \[ \phi _X(t) = \sum _x e^{itx} P(X = x) \]
where \(i = \sqrt {-1}\) and \(t\) is a real parameter.
Remark 2.14.2.The characteristic function has the following properties:
1.
\(\phi (0) = 1\)
2.
\(|\phi (t)| \leq 1\)
3.
\(\phi (-t) = \overline {\phi (t)}\) (where \(\overline {\phi (t)}\) is the complex conjugate)
4.
\(\phi (t)\) is uniformly continuous for all \(t\)
Remark 2.14.3.
1.
Characteristic function always exists for every random variable.
2.
Moment generating function may not exist for some distributions (e.g., Cauchy distribution).
3.
Characteristic function uniquely determines the distribution.
4.
Characteristic function is defined for all real \(t\), while m.g.f. may exist only for a limited range of
\(t\).
Theorem 2.14.4.If the distribution function of a random variable \(X\) is symmetrical about zero (i.e., \(f(-x) = f(x)\)),
then \(\phi _X(t)\) is real valued and an even function of \(t\).
Proof :By definition: \[ \phi _X(t) = \int _{-\infty }^{\infty } e^{itx} f(x) dx = \int _{-\infty }^{\infty } (\cos tx + i\sin tx) f(x) dx \]
Since \(f(x)\) is even and \(\sin (tx)\) is odd, \(\int _{-\infty }^{\infty } \sin (tx) f(x) dx = 0\). Therefore: \[ \phi _X(t) = \int _{-\infty }^{\infty } \cos (tx) f(x) dx \] which is real and even in \(t\). □
Remark 2.14.8.The converse is not necessarily true. That is, \(\phi _{X_1 + X_2}(t) = \phi _{X_1}(t)\phi _{X_2}(t)\) does not always imply that \(X_1\) and \(X_2\) are
independent.
Theorem 2.14.9 (Effect of Change of Origin and Scale).If \(U = \frac {X - a}{h}\), then: \[ \phi _U(t) = e^{-iat/h} \phi _X(t/h) \]
In particular, if \(Z = \frac {X - \mu }{\sigma }\) is the standard variate: \[ \phi _Z(t) = e^{-i\mu t/\sigma } \phi _X(t/\sigma ) \]
Theorem 2.14.10.If \(|\phi _X(s)| = 1\) for some \(s \neq 0\), then for some real \(a\), \(X - a\) is a Lattice variable with mesh \(h = \frac {2\pi }{|s|}\).
Proof :For any fixed \(t\), we can write: \[ \phi _X(t) = |\phi _X(t)| e^{i\alpha t} \] where \(\alpha \) depends on \(t\), since any complex number can be written
in polar form.
Now: \[ |\phi _X(t)| = e^{-i\alpha t} \phi _X(t) = \phi _{X-\alpha }(t) \] \[ = E[\cos t(X - \alpha ) + i\sin t(X - \alpha )] = E[\cos t(X - \alpha )] \] since the left-hand side is real, we must have \(E[\sin t(X - \alpha )] = 0\).
Thus: \[ 1 - |\phi _X(t)| = E[1 - \cos t(X - \alpha )] \]
If \(|\phi _X(s)| = 1\) for some \(s \neq 0\), then for some \(\alpha \) depending on \(s\): \[ E[1 - \cos s(X - \alpha )] = 0 \]
Since \(1 - \cos s(X - \alpha ) \geq 0\), we must have: \[ P[1 - \cos s(X - \alpha ) = 0] = 1 \] \[ \Rightarrow P[\cos s(X - \alpha ) = 1] = 1 \] \[ \Rightarrow P[s(X - \alpha ) = 2n\pi ] = 1 \quad \text {for some integer } n \] \[ \Rightarrow P\left [(X - \alpha ) = \frac {2n\pi }{|s|}\right ] = 1 \]
Thus, \((X - \alpha )\) takes values that are integer multiples of \(\frac {2\pi }{|s|}\), i.e., it is a lattice variable with mesh \(h = \frac {2\pi }{|s|}\). □
Remark 2.14.11.This theorem tells us that if the characteristic function has modulus 1 at some
non-zero point, then the random variable is lattice distributed. This is useful for identifying discrete
distributions from their characteristic functions.
Theorem 2.14.12.If \((a - h, a + h)\) is a continuity interval of the distribution function \(F(x)\), then: \[ F(a + h) - F(a - h) = \lim _{T \to \infty } \frac {1}{2\pi } \int _{-T}^{T} \frac {\sin (ht)}{t} e^{-iat} \phi (t) \, dt \]
In particular, if \(\int _{-\infty }^{\infty } |\phi (t)| dt < \infty \), then the derivative of \(F(x)\) exists, is bounded and continuous on \(\mathbb {R}\), and is given by: \[ f(x) = F'(x) = \frac {1}{2\pi } \int _{-\infty }^{\infty } e^{-itx} \phi (t) \, dt \]
Proof :From the lemma (stated in the PDF), we have: \[ F(a + h) - F(a - h) = \lim _{T \to \infty } \frac {1}{2\pi } \int _{-T}^{T} \frac {\sin (ht)}{t} e^{-iat} \phi (t) \, dt \]
Dividing by \(2h\) and letting \(h \to 0\): \[ \lim _{h \to 0} \frac {F(a + h) - F(a - h)}{2h} = \frac {1}{2\pi } \int _{-\infty }^{\infty } \lim _{h \to 0} \left ( \frac {\sin (ht)}{ht} \right ) e^{-iat} \phi (t) \, dt \]
Since \(\lim _{h \to 0} \frac {\sin (ht)}{ht} = 1\), we get: \[ f(a) = F'(a) = \frac {1}{2\pi } \int _{-\infty }^{\infty } e^{-iat} \phi (t) \, dt \]
If \(\int _{-\infty }^{\infty } |\phi (t)| dt < \infty \), then by the Dominated Convergence Theorem, we can interchange the limit and the integral,
giving the result. □
Corollary 2.14.13 (Criterion for Continuity).If \(\frac {1}{2c} \int _{-c}^{c} e^{-itx} \phi (t) dt \to 0\) as \(c \to \infty \) at a point, then there is no discontinuity in the
distribution function at that point. If it tends to a positive number \(f_j\), the distribution is discontinuous
at that point and the frequency is \(f_j\).
Remark 2.14.14.The inversion theorem is one of the most important results in probability theory.
It tells us that if we know the characteristic function, we can recover the probability density function
(if it exists). This establishes a one-to-one correspondence between characteristic functions and
distributions.
Theorem 2.14.15 (Uniqueness Theorem of Characteristic Functions).Characteristic function
uniquely determines the distribution. A necessary and sufficient condition for two distributions with
p.d.f.’s \(f_1\) and \(f_2\) to be identical is that their characteristic functions \(\phi _1(t)\) and \(\phi _2(t)\) are identical.
Proof :If direction: If \(f_1(x) = f_2(x)\) for all \(x\), then by definition: \[ \phi _1(t) = \int _{-\infty }^{\infty } e^{itx} f_1(x) dx = \int _{-\infty }^{\infty } e^{itx} f_2(x) dx = \phi _2(t) \]
Only if direction: If \(\phi _1(t) = \phi _2(t)\) for all \(t\), then by the inversion theorem: \[ f_1(x) = \frac {1}{2\pi } \int _{-\infty }^{\infty } e^{-itx} \phi _1(t) dt = \frac {1}{2\pi } \int _{-\infty }^{\infty } e^{-itx} \phi _2(t) dt = f_2(x) \]
Thus, \(f_1(x) = f_2(x)\) for all \(x\), so the distributions are identical. □
Remark 2.14.16.This is one of the most fundamental theorems in distribution theory. It implies that
there is a one-to-one correspondence between characteristic functions and probability distributions.
Theorem 2.14.17.A necessary and sufficient condition for the random variables \(X_1\) and \(X_2\) to be
independent is that their joint characteristic function equals the product of their individual
characteristic functions: \[ \phi _{X_1, X_2}(t_1, t_2) = \phi _{X_1}(t_1) \phi _{X_2}(t_2) \]
Proof :Necessary part: If \(X_1\) and \(X_2\) are independent, then: \begin {align*} \phi _{X_1, X_2}(t_1, t_2) &= E(e^{i t_1 X_1 + i t_2 X_2}) \\ &= E(e^{i t_1 X_1} \cdot e^{i t_2 X_2}) \\ &= E(e^{i t_1 X_1}) \cdot E(e^{i t_2 X_2}) \quad (\text {by independence}) \\ &= \phi _{X_1}(t_1) \phi _{X_2}(t_2) \end {align*}
Sufficient part: Assume \(\phi _{X_1, X_2}(t_1, t_2) = \phi _{X_1}(t_1) \phi _{X_2}(t_2)\). Then: \[ \phi _{X_1, X_2}(t_1, t_2) = \int _{-\infty }^{\infty } \int _{-\infty }^{\infty } e^{i(t_1 x_1 + t_2 x_2)} f_{X_1}(x_1) f_{X_2}(x_2) dx_1 dx_2 \]
By the uniqueness theorem, the joint p.d.f. must equal the product of the marginal p.d.f.’s: \[ f_{X_1, X_2}(x_1, x_2) = f_{X_1}(x_1) f_{X_2}(x_2) \]
Thus, \(X_1\) and \(X_2\) are independent. □
Remark 2.14.18.This theorem extends to more than two variables: \(X_1, X_2, \dots , X_n\) are mutually independent if and
only if: \[ \phi _{X_1, X_2, \dots , X_n}(t_1, t_2, \dots , t_n) = \prod _{i=1}^n \phi _{X_i}(t_i) \]
Theorem 2.14.19 (Helly-Bray Theorem).If the sequence of distribution functions \(\{F_n(x)\}\) converges to the
distribution function \(F(x)\) at all points of continuity of the latter, and \(g(x)\) is a bounded continuous function
over \(\mathbb {R}\), then: \[ \lim _{n \to \infty } \int _{-\infty }^{\infty } g(x) \, dF_n(x) = \int _{-\infty }^{\infty } g(x) \, dF(x) \]
Corollary 2.14.20.If \(F_n(x) \to F(x)\), then the corresponding sequence of characteristic functions \(\phi _n(t)\) of \(F_n(x)\) converges to
the characteristic function \(\phi (t)\) of \(F\) at every point \(t\).
Theorem 2.14.21 (Continuity Theorem for Characteristic Functions).For a sequence of distribution
functions \(\{F_n(x)\}\) with corresponding sequence of characteristic functions \(\{\phi _n(t)\}\), a necessary and sufficient
condition that \(F_n(x) \to F(x)\) at all points of continuity of \(F\) is that for every real \(t\), \(\phi _n(t) \to \phi (t)\), which is continuous at \(t = 0\), and \(\phi (t)\) is the
characteristic function corresponding to \(F\).
Remark 2.14.22.
1.
This theorem is one of the most important results in probability theory.
2.
It is used to prove the Central Limit Theorem and many other limit theorems.
3.
It establishes a connection between convergence in distribution and pointwise convergence of
characteristic functions.
0 Comments