Examples of Discrete Random Ariables Variables
Examples of Discrete Random Ariables Variables
3 4
5 6
Example 1: the frequency and relative frequency Example 1: the frequency and relative
distributions of the number of vehicles owned by
y frequency distributions of the number of
families vehicles owned by families (continued)
Number of Relative
Frequency Number of Vehicles Owned Probability
Vehicles Owned Frequency
x P(x)
0 30 /
30/2000 = .015
0 .015
015
1 470 470/2000 = .235
1 .235
2 850 850/2000 = .425
2 .425
425
3 490 490/2000 = .245
3 .245
4 160 160/2000 = .080
4 .080
N = 2000 Sum = 1.000
P(x) = 1.000
Now let x be the number of vehicles owned by a
randomly
d l selected
l t d ffamily.
il W Write
it th
the probability
b bilit
7 distribution of x. 8
9 10
Breakdowns
0 1 2 3
c)) NO:
NO the
th probability
b bilit off an eventt ((when
h x takes
t k per weekk
value equal to 0.9) cannot be negative, though Probability .15 .20 .35 .30
they
ey sum
su up to o 1.
11 12
Characteristics: Probability p(x) or f(x) function
and cumulative distribution function F(x) Example 2 (continued)
a)) Present this probability
p y distribution
graphically.
13 14
x P(x) 0,25
a) 0,2
0 .15
0 15
0,15
1 .20 0,1
2 .35 0,05
3 .30 0
x
P(x) = 1.00 0 1 2 3
15 16
Example
p 2 ((concluded)) b))
Example 3
i. P (exactly 2 breakdowns) = P (x = 2) = .35
According to a survey, 60% of all students at a
ii. P (0 to 2 breakdowns) = P (0 x 2) large university suffer from math anxiety. Two
= P (x = 0) + P (x = 1) + P (x = 2) students are randomly selected from this
= .15
15 + .20
20 + .35
35 = .70
70
university. Let x denote the number of
iii. P (more then 1 breakdown) = P (x > 1) students in this sample who suffer from math
= P (x = 2) + P (x = 3) anxiety.
i t Your
Y task
t k is
i to
t develop
d l the
th probability
b bilit
= .35 +.30 = .65 distribution of x.
iv. P (at most one breakdown) = P (x 1)
= P (x = 0) + P (x = 1)
= .15 + .20 = .35
17 18
Example 3 Continued:
Tree Diagram Example 3 (continued)
Let us define the following two events:
x P(x) μ = x P (x)
0 .16
16 The mean of a discrete random variable x is also
1 .48 called its expected value and is denoted by E (x);
a is,
that s,
2 .36
36 μ = E (x) = x P (x)
P(x) = 1.00
21 22
23 24
STANDARD DEVIATION OF A Example 5
DISCRETE RANDOM VARIABLE
Baier’s Electronics manufactures computer parts
that are supplied
pp to manyy computer
p companies.
p
The standard deviation of a discrete random Despite the fact that two quality control inspectors
variable x measures the spread of its probability at Baier’s Electronics check every part for defects
distribution and is computed as before it is shipped to another company
company, a few
defective parts do pass through these inspections
undetected. Let x denote the number of defective
¦x
computer parts in a shipment of 400. The
V 2
P ( x) P 2 following table gives the probability distribution of
x. Compute
C t the
th standard
t d dd deviation
i ti off x.
x 0 1 2 3 4 5
P(x) .02 .20 .30 .30 .10 .08
25 26
Example 6 (concluded):
Computations to Find the Mean and
Example 6 (continued) Standard Deviation
x P(x) xP(x) x² x²P(x)
a) The following table lists the probability 4.5 .32 1.440 20.25 6.4800
distribution of x 1.2
1 2 .51
51 .612
612 1 44
1.44 0 7344
0.7344
-2.3 .17 -.391 5.29 0.8993
x P(x)
xP(x)
( ) = 1.661 x²P(x)
( ) = 8.1137
4.5 0.32
1.2 0.51
-2.3
23 0 17
0.17
P ¦ xP x $1.661 million
¦ x P x P
2
8.1137 (1.661)
2 2
$2.314 million
29 30
FACTORIALS AND COMBINATIONS Factorials
y Factorials Definition
y Combinations The symbol n!, read as “n factorial”, represents the
y Using the Table of Combinations product of all the integers from n to 1. In other words,
n! = n(n - 1)(n – 2)(n – 3). . . 3 . 2 . 1
By definition,
0! = 1
31 32
Example 7 Solution
d) (5 – 5)! = 0! = 1
33 34
Cx
notation used to denote the total number of
combinations is = the number of combinations of n
n elements selected x at a time
n Cx
which is read as “the number of combinations of n x denotes the number of elements
elements selected x at a time.” selected p
per selection
35 36
Combinations (continued) Example 8
n!
n Cx
x!(n x)!
37 38
39 40
41 42
Example 10: Determining the THE BINOMIAL PROBABILITY
Val e of 10C3
Value DISTRIBUTION
X=3
y The Binomial Experiment
n x 0 1 2 3 … 20 y The Binomial Probability Distribution and binomial
1 1 1 Formula
2 1 2 1 y Using the Table of Binomial Probabilities
3 1 3 3 1 y Probability of Success and the Shape of the Binomial
. . . . . Distribution
. . . . .
… …
n =10 10 1 10 45 120
. . . . .
43 10 C3 44
Binomial Distrib
Distribution-How
tion Ho to find it ??? Binomial ???
y 1. Sequence of n Identical Trials y Pick 6 students from this class
y Each flips a coin
y 2.Each Trial Has 2 Outcomes
y Count # of heads
y ‘Success’ (Desired/specified Outcome) or
‘F il ’
‘Failure’ y Pick 6 students from this class
y X= # of 1st year students selected
y 3.Constant Trial Probability
y Random digit g dialing g of 100 numbers
y 4. Trials Are Independent y # of Bush-Cheney supporters
y 5. # of successes in n trials is a binomial y Random digit dialing of 100 numbers
random
d variable
i bl y Sum
S off ages off respondents
d t
47 48
Example 11 T
Tree diagram
di ffor selecting
l ti th three VCR
VCRs
49 50
Let Therefore,
D = a selected VCR is defective P (1 VCR is defective in 3)
G = a selected VCR is good = P (DGG
( GG or GDG
G G or GGD
GG )
= P (DGG ) + P (GDG ) + P (GGD )
P (DGG ) = P (D )P (G )P (G )
= .0451
0451 + .0451
0451 + .0451
0451
= (.05)(.95)(.95) = .0451
P (GDG ) = P (G )P (D )P (G ) = .1353
= (.95)(.05)(.95)
( 95)( 05)( 95) = .0451
0451
P (GGD ) = P (G )P (G )P (D )
= (.95)(.95)(.05) = .0451
51 52
E ample 11
Example 11: Ans
Answer
er Ke
Key (continued)
(contin ed) E ample 11
Example 11: Ans
Answer
er Ke
Key (concluded)
(concl ded)
n = total number of trials = 3 VCRs y Therefore, the probability of selecting exactly one
defective VCR.
x = number of successes = number of
defective VCRs = 1
n–x=3-1=2 P( x 1) 3 C1 (.
( 05)1 (.
( 95) 2 (3)(.
)( 05)(.
)( 9025) .1354
p = P (success) = .05 y The probability .1354 is slightly different from the
earlier calculation .1353 because of rounding.
g
q = P (failure) = 1 – p = .95
95
53 54
Example 12 Example 12
At the Express House Delivery Service, providing a) Find the probability that exactly 1 of these 10
high-quality service to customers is the top priority packages will not arrive at its destination within the
off the
th management. t The
Th company guarantees t a specified
f time.
refund of all charges if a package it is delivering b) Find the probability that at most 1 of these 10
does not arrive at its destination byy the specified
p packages will not arrive at its destination within the
time. It is known from past data that despite all specified time.
efforts, 2% of the packages mailed through this
company do not arrive at their destinations within
the specified time. Suppose a corporation mails
10 p packages
g throughg Express
p House Delivery y
Service on a certain day.
55 56
(10)(.02)(.83374776) .1667
57 58
59 60
Example 13: Answer Key Example 13: Answer Key
61 62
x
04
0,4
P (x) 0,35
0,3
0 .0852 0,25
,
1 .3252 0,2
0,15
2 .4140 0,1
0,05
3 .1756 0 x
0 1 2 3
6363 64
According to a 2001 study of college students by Using Table IV of Appendix C, answer the following.
a) Find the probability that exactly three college students
Harvard University’s School of Public health, in this sample abstain from drinking
drinking.
19.3% of those included in the study abstained b) Find the probability that at most two college students
from drinking (USA TODAY, April 3, 2002). in this sample abstain from drinking.
c) Find the probability that at least three college students
S
Suppose that
th t off allll currentt college
ll students
t d t ini th
the in this sample abstain from drinking.
United States, 20% abstain from drinking. A d) Find the probability that one to three college students
random sample of six college students is p abstain from drinking.
in this sample g
e) Let x be the number of college students in this sample
selected. who abstain from drinking. Write the probability
distribution of x and draw a bar graph for this
probability distribution.
65 66
Determining P (x = 3) for n = 6 and p = .20 Example 14: Answers
p =.20
p a) P (x = 3) = .0819
n x .05 .10 .20 … .95 b) P (at most 2) = P (0 or 1 or 2)
n=6 6 0 .7351 .5314 .2621 … .0000
= P (x = 0) + P (x = 1) + P (x = 2)
1 .2321 .3543 .3932 … .0000
= .2621 + .3932 + .2458 = .9011
2 .0305
0305 .0984
0984 .2458
2458 … .0001
0001 c) P ((at least 3)) = P(3( or 4 or 5 or 6))
x=3 3 .0021 .0146 .0819 … .0021
= P (x = 3) + P (x = 4) + P (x =5) + P (x = 6)
4 .0001 .0012 .0154 … .0305
= .0819 + .0154 + .0015 + .0001
= .0989
5 0000
.0000 0001
.0001 0015
.0015 … 2321
.2321
6 .0000 .0000 .0001 … .7351
d) P (1 to 3) = P (x = 1) + P (x = 2) + P (x = 3)
= .3932 + .2458 + .0819 = .7209
P (x = 3) = .0819
67 68
P(x)
x P(x) 0,45
0 .2621 0,4
1 .3932 0,35
0,3
2 .2458
2458
0,25
3 .0819
0,2
4 .0154 0,15
5 .0015 0,1
6 .0001 0,05
0 x
0 1 2 3 4 5 6
69 70
Probability
y of Success and the Shape
p Bar graph from the probability distribution from
previous table.
of the Binomial Distribution
03
0,3
0 .2401
1 .4116 0,2
2 .2646 0,1
3 .0756 0
x
4 .0081 0 1 2 3 4
73 74
Probability
y of Success and the Shape
p Bar graph for the probability distribution
f
from previous
i table
t bl
of the Binomial Distribution cont.
P(x)
3. The binomial probability distribution is skewed 0,5
to the left if p is greater than .50.
04
0,4
0,3
x P(x)
Probability Distribution of x 0 .0016 0,2
for n =4 and p = .80
1 .0256 0,1
2 .1536 0
x
3 .4096 0 1 2 3 4
4 .4096
75 76
Mean and Standard Deviation of the General rules for mean (expected
Binomial Distrib
Distribution
tion values)
al es)
If X and Y are random variables, a and b are constants:
y The mean and standard deviation of a binomial
1) E ( a ) a
distribution are
2) E ( aX ) aE ( X )
P np and V npq E ( aX b) aE ( X ) b
y where n is the total number of trails, p is the probability 3) E ( X Y ) E ( X ) E (Y )
of success, and q is the probability of failure. E ( aX bY ) aE ( X ) bE (Y )
4) E ( XY ) E ( X ) E (Y ) if X and Y are independent
random variables.
77 78
R les for Variance
Rules Example 15
y If X and Y are random variables, a and b are
constants, the variance V(X), V(Y) have: y In a Martiz poll of adult drivers conducted in July
2002, 45% said that they “often” or “sometimes”
1. V ( a ) 0 eatt or drink
d i k while
hil d
driving
i i (USA TODAY
TODAY, O October
t b
23, 2002). Assume that this result is true for the
2. V ( aX ) a 2V ( X ) current ppopulation
p of all adult drivers. A sample
p of
3. V ( aX b) a 2V ( X ) 40 adult drivers is selected. Let x be the number
of drivers in this sample who “often” or
4.. V ( aaX bY
b ) a 2V ( X ) b2V (Y ) if X aandd Y “sometimes”
sometimes eat or drink while driving
driving. Find the
are independent. mean and standard deviation of the probability
distribution of x.
79 80
THE HYPERGEOMETRIC
Example 15: Answer Key PROBABILITY DISTRIBUTION
n = 40 Let
y N = total number of elements in the population
p = .45,
45 and q = .55
55 y r = number of successes in the population
y N – r = number of failures in the population
P np 40(.
( 45) 18 y n = number
b off trials
t i l ((samplel size)
i )
y x = number of successes in n trials
V npq (40)(.
)( 45)(.
)( 55) 3.146 y n – x = number of failures in n trials
81 82
THE HYPERGEOMETRIC
PROBABILITY DISTRIBUTION HYPERGEOMETRIC vs.
vs BINOMIAL
y The probability of x successes in n trials is given by y The hypergeometric distribution is closely related
number
u be ofo ways
ays
number of ways to the binomial distribution.
n – x fail res can be selected
failures
x successes can be selected
from a total of N – r failures y However, for the hypergeometric distribution:
from a total of r successes
in the population y the trials are not independent, and
in the population
r C x N r Cn x
P( x) y the
th probability
b bilit off success changes
h ffrom ttrial
i l
N Cn
y to trial.
number of ways
a sample
l off size
i n can beb selected
l t d
from a population of size N
83 84
Hypergeometric – limit distribution Hypergeometric – limit distribution
y Consider a hypergeometric distribution with n trials and let y Consider a hypergeometric distribution with n trials and let p =
p = (r/n) denote the probability of a success on the first (r/n) denote the probability of a success on the first trial.
trial.
trial y If the
th population
l ti size
i is
i llarge, th
the tterm (N – n)/(N
)/(N – 1)
y If the population size is large, the term (N – n)/(N – 1) approaches 1.
approaches 1
1. y The
eeexpected
pec ed value
a ue a
and
d variance
a a ce ca
can be written
e
y The expected value and variance can be written E(x) = np and Var(x) = np(1 – p). ?? Binomial ??
E(x) = np and Var(x) = np(1 – p). y When the population size is large, a hypergeometric
distribution can be approximated by a binomial
Note that these are the expressions for the expected distribution with n trials and a probability of success
value and variance of a binomial distribution. p = (r/N)
(r/N).
85 86
N Cn 25 C 4
shipped 25 auto parts to a dealer. Later on, it 25!
found out that five of those parts were defective. 4!(25 4)!
B the
By th time
ti th
the company manager contacted
t t d theth (1140)(5)
.4506
dealer, four auto parts from that shipment have 12,650
already been sold
sold. What is the probability that
three of those four parts were good parts and
Thus, the probability that three of the four parts sold are
one was defective? good and one is defective is .4506.
4506
87 88
89 90
THE POISSON PROBABILITY
Example 17: Answers DISTRIBUTION
91 92
Conditions to Apply the Poisson Probability 1. The number of accidents that occur on a given
Distribution highway during a one-week period.
2. The number of customers entering a grocery store
y The following three conditions must be satisfied to during a one –hour interval.
apply the Poisson probability distribution. 3. The
Th numberb off television
t l i i sets t sold
ld att a d
department
t t
1. x is a discrete random variable. store during a given week.
2
2. The occurrences are random
random.
3. The occurrences are independent.
93 94
j 0! 0.9197
j 0 j 0 j
P( X ! 2) 1 P( X d 2) 8.03%
97 98
99 100
103 104
x 1.1 1.2 … 2.0 = 2.0
y On average, two new accounts are opened per day at
0 .1353
1353
an Imperial Saving Bank branch. Using the Poisson
1 .2707
table, find the probability that on a given day the 2 .2707
number of new accounts opened at this bank will be 3 .1804
a) exactly 6 4 .0902
y b) at most 3 5 .0361
x=6 6 .0120 P (x = 6)
y c) at least 7
7 .0034
8 0009
.0009
9 .0002
105 106
P O
a) P (x = 6) = .0120
b) P (at most 3) =P (x = 0) + P (x = 1) + P (x = 2) +
P (x = 3) =.1353 +.2707 +
.2707 + .1804 = .8571
c) P (at least 7) = P (x = 7) + P (x = 8) + P (x = 9)
= .0034 + .0009 + .0002 = .0045 V2 O
V O
107 108
Example 22: Answers
Example 22 P b bilit Distribution
Probability Di t ib ti off x for
f = .9
9
P O
0 35
0,35
0,3 .9 car
0,25
02
0,2
0,15
V2 O .9
0,1
0 05
0,05
0
V O .9 .949 car
x
0 1 2 3 4 5 6
111 112