ch 7
ch 7
Reference: Ch 3 (Walpole)
Objectives
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Random Variable
3 4 5 6 7 8 4
2
2
3
1
2 3 4 5 6 7 5
1
2
0
0 0
1
1 2
2 3
3 4
4 5
5
6 7
6
0 1 2 3 4 5 6 7
X 2 3 4 5 6 7 8 9 10 11 12 Total
1 2 3 4 5 6 5 4 3 2 1
PX(x) 36 36 36 36 36 36 36 36 36 36 36 1
Introduction
In an experiment of chance, outcomes occur randomly.
We often summarize the outcome from a random experiment by a
simple number.
Definition
A variable is a symbol such as X, Y, Z, x or H, that assumes
values for different elements. If the variable can assume only one
value, it is called a constant.
Solution:
Random Variable, X : the numbers of head
HH ¼ 2
HT ¼ 1
TH ¼ 1
TT ¼ 0 (No head)
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
TWO TYPES OF RANDOM VARIABLES
Definition:
Continuous Random Variable
A random variable is continuous if its set of possible values
consist of an entire interval on the number line.
Note:
A continuous random variable often represents measured data,
such as height, length etc.
Discrete and Continuous Random Variables
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
DISCRETE PROBABILITY DISTRIBUTIONS
Definition:
• If X is a discrete random variable, the function given by f(x)=P(X=x)
for each x within the range of X is called the probability
distribution of X.
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Example 4
Check whether the distribution is a probability distribution.
X 0 1 2 3 4
P(X=x) 0.125 0.375 0.025 0.375 0.125
P( X = x) = P( X = 0) + P( X = 1) + P( X = 2) + P( X = 3) + P( X = 4)
0
= 0.125+0.375+0.025+0.375+0.125
= 1.025
1 Since the summation of all probabilities is not
equal to 1, so the distribution is not a
probability distribution
Example 5
• Check whether the given function can serve as the
probability distribution random variable
x+2
f ( x) = for x =1,2,3,4,5
25
Solution
5 5
x+2
1
f ( x) =
1 25
= f (1) + f (2) + f (3) + f (4) + f (5)
1+ 2 2 + 2 3 + 2 4 + 2 5 + 2
= + + + +
25 25 25 25 25
3 4 5 6 7
= + + + +
25 25 25 25 25
25
=
25
=1
Four patients have made appointments to have their blood pressure checked at
a clinic. Let X be the number of them that have high blood pressure. Based on
data from the National Health and Examination Survey, the probability
distribution of X is
x 0 1 2 3 4
P(x) 0.23 0.41 0.27 0.08 0.01
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Solution
x 0 1 2 3 4
P(x) 0.23 0.41 0.27 0.08 0.01
Solution:
(a) Find P(2 or 3)
The events “2” and “3” are mutually exclusive, since they cannot both happen.
We use the Addition Rule for Mutually Exclusive events:
P(2 or 3) = P(2) + P(3) = 0.27 + 0.08 = 0.35
(b) Find P(More than 1)
“More than 1” means “2 or 3 or 4.” We use the Addition Rule for Mutually
Exclusive events:
P(More than 1) = P(2 or 3 or 4) = 0.27 + 0.08 + 0.01 = 0.36
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Solution
x 0 1 2 3 4
P(x) 0.23 0.41 0.27 0.08 0.01
Solution:
(c) Find P(At least one)
We use the Rule of Complements:
P(At least one) = 1 – P(0) = 1 – 0.23 = 0.77
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Objective 3
Describe the connection between probability
distributions and populations
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Probability Distributions and Populations
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Example 7
Solution (continued):
Number of households with 2 cars 423
P (2) = = = 0.423
Total number of households 1000
Number of households with 3 cars 57
P (3) = = = 0.057
Total number of households 1000
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Objective 4
Compute the mean of a discrete random
variable
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Expected Value of a Random
Variable
Expected value is just the average or mean (µ)
of random variable x.
E( X ) = x p(x )
all x
i i
Continuous Case:
E( X ) =
all x
xi p(xi )dx
Symbol Interlude
E(X) = µ
These symbols are used interchangeably
Mean of a Random Variable
µX = Σ[x·P(x)].
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Example 8
Solution:
The mean is
µX = 0(0.2) + 1(0.5) + 2(0.2) + 3(0.1)
= 1.2.
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Expected gain and Expected loss
A mineral economist estimated that a particular mining venture had probability 0.4
of a $30 million loss, probability 0.5 of a $20 million profit, and probability 0.1
of a $40 million profit. Let X represent the profit, in millions of dollars. Find the
probability distribution of the profit and the expected value of the profit. Does this
venture represent an expected gain or an expected loss?
Solution:
The probability distribution of X is as follows:
x –30 20 40
P(x) 0.4 0.5 0.1
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Objective 6
Compute the variance and standard deviation of
a discrete random variable
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Variance/Standard Deviation
2 = Var(x) = E(x-)2
“The expected (or average) squared distance (or
deviation) from the mean”
all x
Variance
Discrete Case:
Var ( X ) = (x
all x
i − ) p(xi )
2
Continuous Case:
all x
Variance and Standard Deviation of a Random Variable
x = x2
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Symbol Interlude
Var(X)= 2
SD(X) =
Solution:
In a previous example, we found that the mean µX = 1.2. Now,
x2 = ( x − x )2 P ( x ) = (0 − 1.2)2 0.2 + (1 − 1.2)2 0.5 + (2 − 1.2)2 0.2 + (3 − 1.2)2 0.1
= 0.76
The standard deviation is the square root of the variance:
x = x2 = 0.76 = 0.872
Copyright ©2014 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
H.W
Walpole Exercise of Ch 3,
Reading: Sec 3.1-3.2 (with all examples)
Q 1- Q30 (Do all Qs relevant to this lecture)