Applied Statistics and Probability For Engineers
Applied Statistics and Probability For Engineers
Engineers
Chapter 2
Probability
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Random Experiment and Sample Spaces
An experiment is a procedure that is carried out
under controlled conditions, and executed to
discover an unknown result.
2
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Random Experiment and Sample Spaces
Or a coin is flipped
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Random Experiment and Sample Spaces
Suppose a six-sided die is rolled. The possible
outcomes are that the die could land
S = {1, 2, 3, 4, 5, 6}
6
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Tree diagrams
H TH
T
T TT
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-1: Sample Space Is Defined By A Tree Diagram
Messages are classified as on-time or late. 3 messages
are classified.
Tree diagram for three messages.
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Event combinations
Suppose a six-sided die is rolled. The event that
the die would land on an even number would be
E = {2, 4, 6}
What would the event be that is the die NOT
landing on an even number?
E ′ = {1, 3, 5}
This is an example of complementary events.
The Complement of an event is the set of
outcomes in the sample space that are not
contained in the event, denoted as E′ ( or Ec ).
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Event combinations
Suppose a six-sided die is rolled.
The event that the die would land on an even number would be
A = {2, 4, 6}
The event that the die would land on a prime number would be
B = {2, 3, 5}
What would be the event A or B happening?
A or B = {2, 3, 4, 5, 6} : example of the union of two events.
A or B = A ∪ B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Event combinations
Suppose a six-sided die is rolled.
The event that the die would land on an even number would be
A = {2, 4, 6}
The event that the die would land on a prime number would be
B = {2, 3, 5}
What would be the event A and B happening?
A and B = {2} : example of the intersection of two events.
A and B = A ∩ B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Event combinations
Suppose a six-sided die is rolled.
Consider the following 2 events:
A = {2,3,4,5,6} B = {2,4,6}
B⊂ A
If B ⊂ A and A⊂B then A= B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Event combinations
Suppose a six-sided die is rolled.
Consider the following 2 events:
A = {2} B = {6}
On a single die roll, is it possible for A and B to happen at the
same time?
These events are mutually exclusive.
A ∩ B = Φ ( empty set )
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Mutually Exclusive Events - Laws
15
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Mutually Exclusive Events - Laws
• DeMorgan’s law:
– (A U B)′ = A′ ∩ B′ The complement of the
union is the intersection of the complements.
– (A ∩ B)′ = A′ U B′ The complement of the
intersection is the union of the complements.
• Complement law:
(A′)′ = A.
16
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Venn Diagrams
Let’s revisit rolling a die and getting an even or a prime number
A or B = {2, 3, 4, 5, 6}
Another way to represent this is with a Venn Diagram.
A or B would be 4 3
any number in
either circle. 2
6 5
1 Let the rectangle
represent the sample
space.
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Venn Diagrams
A and B = {2}
4 3
2
6 5
1
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Practice with Venn Diagrams
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Practice with Venn Diagrams
A B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Practice with Venn Diagrams
A B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Practice with Venn Diagrams
A B
Com Sci
C
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Practice with Venn Diagrams
A B
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-2 Discrete Event Algebra
– E1∩ E2=Ø
– E1∩ E3={yn,ny}
– E1UE3=S
– E2={nn}
24
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-3 Continuous Event Algebra
25
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-4 Hospital Emergency Visits
27
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Multiplication Rule
• Multiplication rule:
– Let an operation consist of k steps and there
are
• n1 ways of completing step 1,
• n2 ways of completing step 2, … and
• nk ways of completing step k.
– Then, the total number of ways to perform k
steps is:
• n 1 · n 2 · … · nk
28
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-5 Web Site Design
29
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Permutation Rule
There are 5 possible choices for which person stands in the first
position (either a, b, c, d, or e). For each of these five
possibilities, there are 4 possible choices left for who is in the
next position. For each of these four possibilities, there are 3
possible choices left for the next position, and so on. Therefore,
there are 5 × 4 × 3 × 2 × 1 = 120 distinct permutations
30
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Permutation Rule
n! = n·(n-1)·(n-2)·…·2·1
By definition: 0! = 1
31
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Permutation Rule
32
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Permutation Rule
n!
P = n( n − 1)( n − 2)...( n − r + 1) =
n
( n − r )!
r
33
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-6 Printed circuit board
8! 8 ⋅ 7 ⋅ 6 ⋅ 5 ⋅ 4!
P =
4
8
= = 8 ⋅ 7 ⋅ 6 ⋅ 5 = 1,680
(8 − 4)! 4!
34
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting - Similar Item Permutations
35
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-7: Bar Codes
9! 9 ⋅ 8 ⋅ 7 ⋅ 6 ⋅ 5 ⋅ 4!
= = 1260
4!⋅ 3!⋅ 2! 2 ⋅1 ⋅ 3 ⋅ 2 ⋅ 1 ⋅ 4!
36
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Combination Rule
Sec 2- 37
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Counting – Combination Rule
⎛n⎞ n!
C =⎜ ⎟=
n
⎝ r ⎠ r !( n − r )!
r
39
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-8: Sampling without Replacement-1
• How many ways are there for selecting 2 parts from the
3 defective parts?
3!
C =3
2 = 3 different ways
2!⋅1!
40
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.
Example 2-8: Sampling without Replacement-2
• How many ways are there for selecting 4 parts from the
47 non-defective parts?
47! 47 ⋅ 46 ⋅ 45 ⋅ 44 ⋅ 43!
C447 = = = 178,365 different ways
4!⋅ 43! 4 ⋅ 3 ⋅ 2 ⋅ 1 ⋅ 43!
• How many ways are there to obtain
¾2 from 3 defectives, and 4 from 47 non-defectives?
41
Copyright © 2014 John Wiley & Sons, Inc. All rights reserved.