chapter3
chapter3
I. Introduction
A random variable is as a real function that maps the elements of the sample space into points
of the real axis. The random variable is represented by a capital letter (X, Y, Z, …), and any
particular real value of the random variable is denoted by a lowercase letter (x, y, z, …). In this
chapter, we present two types of random variables discrete and continuous. We start the chapter
by defining the step an impulse functions because they are used to sketch the probability density
function (pdf) and the cumulative distribution function (cdf) in the case of discrete random
variables (r.v.).
1
The same translations as on the unit step function can be made on the unit impulse function
to obtain Aδ(x-x0). A very interesting integral can be used to deduce the mathematical expression
of a pdf from its graphical representation is:
Solution:
a) When rolling two dice, we obtain this table of probability:
2
Number on each
1 2 3 4 5 6
upper face
1 1/36 1/36 1/36 1/36 1/36 1/36
2 1/36 1/36 1/36 1/36 1/36 1/36
3 1/36 1/36 1/36 1/36 1/36 1/36
4 1/36 1/36 1/36 1/36 1/36 1/36
5 1/36 1/36 1/36 1/36 1/36 1/36
6 1/36 1/36 1/36 1/36 1/36 1/36
c) graphs:
where, fX (x) is a probability density function, it must satisfy these two conditions
Example 2:
Let fX(x) a function defined as
3
a) Find the constant c such that fX(x) is a density function.
b) Compute P(1 < X < 2).
c) Find the distribution function FX (x).
Solution:
(a) The first condition is realized because fX(x) is a nonnegative for the given range of x.
For fX(x) to be a density function, we need to find the constant c as follows:
Solving this integral, we obtain the unique value of c, which realizes the condition:c=2/9. Hence:
Hence
4
II. Moments
II.1. Mathematical expectation
The mathematical expectation, or expected value, or mean value of a discrete random variable is
given by:
For a continuous random variable X with density function fX(x), the expectation of X is defined
as:
Example 3:
Let the random variable X is the result of rolling a fair die. Find the expected value of X.
Solution:
In this experience, xi=1, 2, …, 6 and P(xi)=1/6. Then:
Example 4:
Consider the random variable X with the density function given by the following figure.
- Find E[X].
Solution:
5
The expected value of X is
Let X be a random variable. Then, the function g(X) is also a random variable, and its expected
value, E[g(X)], is
Properties :
1. If c is any constant, then
and
This is called the nth moment of the random variable X about the origin. For n = 2, we obtain the
second moment of X, which is called the mean-square value.
6
Properties :
1. The variance and the standard deviation are positive quantities (V(X)>0, σx>0).
2. If c is any constant, then
and
7
Setting t = 0, we obtain
Similarly, we obtain
8
b) The first moment is E[X]and the second moment is E[X2], they can be calculated from the
mgf as follows:
and
9
The joint density function can be obtained from the distribution function using this expression:
Also, the marginal distribution function of Y, Fy (Y) = P(Y ≤ y), is obtained in the same manner:
and
10
and
Example 7:
Solution:
11
Hence:
Hence:
And the correlation coefficient can be calculated from the covariance using this equation
Hence, Cxy=ρxy=0.
Example 8:
The probability density function of the two-dimensional random variable (X, Y) in the area shown
in the following Figure, is given by
12
- Find ρxy.
Solution:
13