CHAPTER 9 - Random Variable Lesson 1 of 8 - Pelajar
CHAPTER 9 - Random Variable Lesson 1 of 8 - Pelajar
CHAPTER 9 - Random Variable Lesson 1 of 8 - Pelajar
LECTURE 1 OF 8
LEARNING
OUTCOMES : At the end of the lesson, students should be able to :
CONTENTS
If we toss a fair coin twice, the number of heads obtained could be 0, 1 or 2. The
probabilities of these occurring are as follows:
Number of heads 0 1 2
Probability 0.25 0.5 0.25
The variable being considered is ‘the number of heads obtained in two tosses’ and it can
be denoted by X. It can only take exact values, 0, 1 or 2 and so is called a discrete
variable.
1
Mathematics SM 025
Topic 9: Random Variables –Musiade Bin Mohd Sharif
________________________________________________________________________
In this example
P(X 0) P(X 1) P( x 2)
0.25 0.5 0.25
1
X 0 1 2
P ( X x) 0.25 0.5 0.25
P( X x) 1
all x
where P( X x 1 ) p 1
P( X x2 ) p2
P( X xn ) pn
pi 1 , i 1,2,.......,n
or P( X x) 1
all x
2
Mathematics SM 025
Topic 9: Random Variables –Musiade Bin Mohd Sharif
________________________________________________________________________
NOTE: P( X x) 1
all x
The sum of all the probabilities is equal one
We usually denote a random variable (r.v.) by a capital letter (X, Y, R, etc.) and the
particular value it takes by a small letter (x, y, r, etc.).
Example
Solution
(a) discrete
(b) continuous
(c) discrete
Example
3 fair coins are tossed. Let X be a discrete variable that is 'the number of head obtained
when the three fair coins are tossed ’. Show that X is a random variable.
Solution
3
Mathematics SM 025
Topic 9: Random Variables –Musiade Bin Mohd Sharif
________________________________________________________________________
Then,
3
2
P(X = 0) = P(TTT) = 1 = 1
8
2 2 2
3 3
= 1 1 1
3
8
= 3
P(X 2) P(HHT) P(HTH) P(THH)
3
2 2 2
3
= 1 1 1
3
= 3 8
P(X 3) P(HHH)
2
= 1
3
= 1
8
Now P(X x ) 18 83 83 18
all x
=1
4
Mathematics SM 025
Topic 9: Random Variables –Musiade Bin Mohd Sharif
________________________________________________________________________
Example
Let X be the discrete variable ‘the number of fours obtained when two dice are thrown’.
Show that X is a random variable, i.e. that the sum of the probabilities is 1. Illustrate the
probability distribution on a diagram
Solution
When two fair dice are thrown , the number of fours obtained is 0, 1 or 2.
Therefore X can take the values 0, 1 and 2 only.