CH 2
CH 2
http://www.est.uc3m.es/icascos/eng/probability_notes/discrete-random-variables.html
and
Page 4 Semester B 2023-2024
Note that we can assign/define RVs in many different ways
for a particular sample space, e.g., we may also set
and for odd and even number events, respectively.
But we can define the RVs based on a specific problem so
that it will be solved in an easier manner.
RV can be classified as:
▪ Discrete: its range is countable, with finite or a countably
infinite number of values on the real line.
▪ Continuous: It has a range with uncountably infinite
number of values on the real line.
Example 2.1
Consider the experiment of flipping a coin until a tail occurs.
Define a RV for this experiment and discuss its property.
Example 2.2
Can we define a discrete RV on a continuous sample space?
And can we define a continuous RV on a discrete sample
space? For each case, use an example for illustration.
Yes, for both. First, suppose the sample space is any point in
the interval (0,1]. We can define a RV that maps (0,0.5] to 0
and (0.5,1] to 1.
Consider the outcome of flipping a coin, which is either head
(H) or tail (T). We can define a RV which is selected in (0,0.5]
to represent that H occurs, while (0.5,1] for T.
Page 6 Semester B 2023-2024
Distribution Functions for Random Variables
(2.2)
Example 2.3
Consider the experiment of rolling 2 fair dice and the outcome
is the sum of the faces. Assign RV for this experiment and
then plot the PMF and CDF. Compute the probability that the
sum is between 6 and 8.
Page 9 Semester B 2023-2024
To facilitate the probability computation, we assign as the
sum value, i.e., .
Applying the probability theory, e.g., the sum is 2 only when
both dice give “1”, hence , we obtain:
Or
(2.4)
(2.5)
Example 2.5
4 fair coins are flipped and assuming that the outcomes are
independent. Compute the probability of obtaining 2 heads.
How about the probability of obtaining at most 2 heads?
Let RV be the number of heads. With and , the
Page 15 Semester B 2023-2024
required probability of the former is:
(2.6)
(2.10)
(2.11)
(2.12)
(2.14)
(2.15)
Example 2.11
Consider a Gaussian RV . What is ?
Furthermore, what is ?
Hence
(2.17)
(2.18)
(2.19)
(2.20)
(2.21)
Page 35 Semester B 2023-2024
The moment can also be computed about a point , i.e.,
(2.22)
Example 2.14
Determine the mean of the Bernoulli RV with success
probability . When , what is the expected number of
experiment(s) to obtain one success?
Page 36 Semester B 2023-2024
Using (2.19):
Note that .
Example 2.16
Calculate for Poisson RV with the use of .
Based on (2.7):
Note that the identity holds for both continuous and discrete
cases:
(2.23)
Page 42 Semester B 2023-2024
The expectation operator can be generalized to a function of
RV , i.e., and it is clear that is a RV:
(2.24)
(2.25)
Let . As , we have .
Applying (2.10)
(2.26)
Example 2.21
Suppose the amplitude of signal is a discrete RV with PMF:
That is,
(2.27)
(2.28)
In general:
(2.30)
(2.31)
From (2.23):
From (2.23):