Professional Documents
Culture Documents
ENGINEERING
MATHEMATICS
IV (STATISTICS)
LECTURE 4 :
RANDOM VARIABLES
WHAT IS RANDOM VARIABLE ?
• A random variable is a variable that assumes numerical
values associated with the random outcomes of an
experiment, where one (and only one) numerical value is
assigned to each sample point.
TYPES OF RANDOM VARIABLE
EXAMPLE: EXAMPLE:
• NUMBER OF SALES • LENGTH
• NUMBER OF CALLS • DEPTH
• SHARES OF STOCK • VOLUME
• PEOPLE IN LINE • TIME
• MISTAKE PER PAGE • WEIGHT
EXAMPLE 4.1
A coin is tossed three times and the sequence of heads and tails are noted.
1. The sample space for this experiment is S = {HHH, HHT, HTH, HTT, THH, THT, TTH,
TTT}.
2. Let x be the number of heads (H) in the three tosses.
3. X assigns each outcome ω in S a number from the Sx = {0, 1, 2, 3}.
4. The table below lists the eight outcomes of S and the corresponding values of X.
A player pays RM1.50 to play the following game: A coin is tossed three times and the number
of heads X is counted.
The player receives RM1 if X = 2 and RM 8 if X = 3, but nothing otherwise.
f ( x) 0
f ( x) 1
x
P( X x) f ( x)
EXAMPLE 4.5
A shipment of 8 similar motorcar to a retail 3 5
The probability distribution for X is
outlet contains 3 that are defective. 0 2 10
f ( 0 ) P( X 0 )
If a car dealer makes a random purchase of 8 28
2 of these motorcars, find the probability
2 x 0 1 2
distribution for the number of defectives.
3 5 f(x) 10/28 15/28 3/28
1. Let X be a random variable whose
values x are the possible numbers of 1 1 15
f ( 1 ) P( X 1 )
defective motorcars purchased by the 8 28
dealer. 2
2. Then x can be any of the number 0, 1, 3 5
and 2.
2 0 3
f ( 2 ) P( X 2 )
8 28
2
EXAMPLE 4.6
A player receives RM1 if the number of heads in three coin tosses is 2, RM8 if the number is
3, but nothing otherwise.
Find the probability distribution of the reward Y.
1. S = {HHH, HHT, HTH, THH, TTH, THT, HTT, TTT}
Solution
a) P(X=6) = 26 32
6 1
________ = 0.0245
58
• 7
EXAMPLE 4.7
Solution
b) P(X≥6) = P(X=6) + P(X=7)
26 32 26 32
3 1 7 0
= ___________ + ___________
58 58
7 7
= 0.0245 + 0.022
= 0.0267
Discrete Probability
Distribution
• The cumulative distribution function F(x) of a discrete
random variable X with probability distribution f(x) is
F ( x) P( X x) f (t ), for x
tx
P( X b) 1 Fx (b)
EXAMPLE 4.8
Find the cumulative distribution function of the random variable X in Example 4.7.
Using F(x), verify that f(2) = 3/8.
1. f(0) = 1/16, f(1) = 1/4, f(2) =3/8, f(3) = 1/4, f(4) = 1/16
2. F(0) = f(0) = 1/16
3. F(1) = f(0) + f(1) = 5/16
4. F(2) = f(0) + f(1) +f(2) = 11/16
5. F(3) = f(0) + f(1) + f(2) + f(3) = 15/16
6. F(4) = f(0) + f(1) + f(2) + f(3) + f(4) = 1
7. f(2) =F(2) – F(1) = 11/16 – 5/16 = 3/8
EXAMPLE 4.9