Professional Documents
Culture Documents
Introduction to
probability
Probability
Introduction
2
Why Probability?
Plays an important role in decision making in
day-to-day activities (Weather, ….).
How do the insurance companies determine the
premiums?
How do the manufacturing companies determine
the warranty period?
3
Why Probability?cont’d
4
Probability
Definitions
Random Experiment
Examples:
1. Flip a coin
2. Flip a coin 3 times
3. Roll a die
5
Probability
Definitions
Sample Space
Examples:
1. Toss a coin once
S = {H, T}
2. Toss a die once
S = {1, 2, 3, 4, 5, 6} 6
Probability
Definitions
Sample Space
If two dice are rolled ( or, equivalently, if one die is rolled
twice), the sample space is shown in the fig.
7
Sample space Types
Sample space
Discrete Continuous
• Finite or countable •Interval.
infinite •S=[10,30] “like temperature”
• S={y,n} •S=[2,15] “Nile depth”
• S={1,2,3,…….}
8
Probability
Definitions
Sample Space(example):
If a batch consists of 3 items {a,b,c}
Our experiment is to select two items out of 3.
write the sample space for the following
i. The two items selected together
ii. The two items selected with replacement
iii. The two items selected without replacement
one after another
9
Probability
Definitions
Sample Space(example):
If a batch consists of 3 items {a,b,c}
Our experiment is to select two items out of 3.
write the sample space for the following
i. The two items selected together
S={ab,ac,bc}
10
Probability
Definitions
Sample Space(example):
If a batch consists of 3 items {a,b,c}
Our experiment is to select two items out of 3.
write the sample space for the following
ii. The two items selected with replacement
S={aa,ab,ac,ba,bb,bc,ca,cb,cc}
Probability
Definitions
Sample Space(example):
If a batch consists of 3 items {a,b,c}
Our experiment is to select two items out of 3.
write the sample space for the following
iii. The two items selected without replacement
one after another
S={ab,ac,ba,bc,ca,cb}
Probability
Definitions
Sample Space(example):
Suppose that there are 5 defective (D) parts and
95 good(G) parts in a batch . Our experiment
is to select two parts without replacement
(one after another) . write the sample space
S={GG,GD,DG,DD}
If there were only one defective part in the batch
S={GG,GD,DG}
Sample Space
Tree Diagrams
• Sample spaces can also be described
graphically with tree diagrams.
– When a sample space can be constructed in
several steps or stages, we can represent each
of the n1 ways of completing the first step as a
branch of a tree.
– Each of the ways of completing the second step
can be represented as n2 branches starting from
the ends of the original branches.
14
Sample Space
S={HH,HT,TH,TT}
T
T
15
Probability
Definitions
Events
16
Probability
Definitions
17
Rolling Dice
S={1,2,3,4,5,6}
Roll a single die once. Find the following
events:
the event A in which odd number is
appeared A={1,3,5}
– the event B in which even number is
appeared B={2,4,6}
– Note: A ,B are mutually exclusive events
18
Rolling Dice
S={1,2,3,4,5,6}
Roll a single die once. Find the following
events:
the event C in which prime number is
appeared
C={2,3,5}
– the event D(number greater than 10)
D=
– the event E(at least 3)
E={3,4,5,6} 19
Tossing coin
Example If two coins are tossed. Find the following events:
S={HH,HT,TH,TT}
• Exactly one tail A={HT,TH}
• At least one head
B={HH,HT,TH}
• At most one head C={HT,TH,TT}
• Both tails
D={TT}
• Similar E={HH,TT}
20
We can use Venn Diagrams to
represent the relationship between
events
21
We can use Venn Diagrams to
represent the relationship between
events
22
We can use Venn Diagrams to
represent the relationship between
events
23
Example:
24
Probability measure
27
Probability measure
Definition
28
Probability measure
Example
29
Probability measure
Axioms of Probability
30
Probability measure
S={HH,HT,TH,TT} 32
Example
A bowl contains three balls, one red, one
blue and one green. A child selects two
balls at random one after another. What is
the probability that at least one is red?
1st Ball 2nd Ball Ei P(Ei)
RB 1/6 D={RB,RG,BR,GR}
RG 1/6 P(at least 1 red)
BR 1/6
= 4/6 = 2/3
BG 1/6
GB 1/6
GR 1/6
S={RB,RG,BR,BG,GB,GR} 33
Addition Rules
34
ADDITION RULE 35
P (A B ) = P (A ) + P (B ) – P (A B )
Let's look at a Venn Diagram to see
why this is true:
If we count A
AA BB
35
36
P (A B ) = P (A ) + P (B )
Mutually exclusive means the events are disjoint.
This means A B =
36
Addition Rules
Three Events
37
Addition Rules
38
39
probability of complement
This is read "E complement" and is the set of all
E elements in the sample space that are not in E
PE PE 1
This is more often used in the form
P E 1 P E
If we know the probability of rain is 20% or 0.2 then the
probability of the complement (no rain) is 1 - 0.2 = 0.8 or 80%
39
40
Probability of difference
P ( A B ) P (A B ) P (A ) P (A B )
AB
40
41
Summary
P (A ) 1 P (A )
P ( A B ) P (A B ) P (A ) P (A B )
A
B
P( A) P(B) P( A B)
P( A B) P( A) P(B) A, B Mutually exclusive
41
42
Example(try)
:
Show that
.
i. P ( A B ) 1 P ( A) P ( B ) P ( A B )
42
Example:
Example: if p(A)=0.3, p(B)=0.2, P(AB)=0.1
Find the following:
i. P( A) 1 P ( A) 1 0.3 0.7
ii. P(AB) = P(A) + P(B) – P(AB)=0.3+0.2-0.1=0.4
iii. P( A B) P ( B ) P ( A B ) 0.2 0.1 0.1
iv. P( A B) 1 P( A B ) 1 0.4 0.6
43
Example:
Example: Suppose that there were 120
students in the classroom, and that
they could be classified as follows:
Event A: brown hair Brown Not Brown
P(A) = 50/120 Male 20 40
Event B: female Female 30 30
P(B) = 60/120
P(AB) = P(A) + P(B) – P(AB)
= 50/120 + 60/120 - 30/120
= 80/120 = 2/3
44
Example: in a group of 160 students, 92 are
enrolled in a course of Math, 63 are enrolled
in a course of Computer, and 40 are enrolled
in both courses. If one student is selected
find the probability of the following:
i. The student enrolled in Math or Computer
M C
52 40 23
Direct form diagram 45
47
Example: in a group of 160 students, 92 are
enrolled in a course of Math, 63 are enrolled
in a course of Computer, and 40 are enrolled
in both courses. If one student is selected find
the probability of the following:
iv. The student enrolled in at least one course
C
The same as i M
52 40 23
45
48
Example (Continuous sample space):
A point is chosen at random inside a circle of radius r .
find the probability p that:
i. The point is closer to the circumference than to the center.
ii.The point is at most r/3 from the center.
2
r
r
2 r/2
i. P 2 3
.
r2 4
2
r r/3
ii. P 2
3 1
.
r 9
49
Example(large number of sample space points)
• A certain club has 5 male and 7 female members.
– Find the probability that form a 5 member committee
consisting of 3 men and 2 women?
C3 C2 210
5 7
p 12 0.265
C5 792
51
Note:
A balanced coin is tossed twice. Calculate
the probability for each outcome?
To get the probability for each path Multiply
1 1 1
P ( HH ) .
2 2 4
1 1 1
P ( HT ) .
2 2 4
1 1 1
P (TH ) .
2 2 4
1 1 1
P (TT ) .
2 2 4
52
Example:
A not balanced coin is tossed twice with
p(H)=0.6 and p(T)=0.4. Calculate the
probability for each outcome?
P ( HH ) 0.6 0.6 0.36.
Example
Box contains 3 Red balls and 5 Green balls ,
2 balls are selected (without replacement-
one after another )
i. Find the probability that the second ball is
3 2 3
Red? P ( RR ) .
8 7 28
3 5 15
P ( RG ) .
8 7 56
5 3 15
P (GR ) .
8 7 56
5 4 10
P (GG ) .
8 7 28
54
Example
the probability that the second ball is Red
3 15 21
P (2 nd _ Re d ) .
28 56 56
3 2 3
P ( RR ) .
8 7 28
3 5 15
P ( RG ) .
8 7 56
5 3 15
P (GR ) .
8 7 56
5 4 10
P (GG ) .
8 7 28
55
Example
ii. Find the probability that the second ball
is green or the first ball is red
3 35 15
P (1st _ R 2 nd _ G )
8 56 56
3 2 3
P ( RR ) .
8 7 28
3 5 15
P ( RG ) .
8 7 56
5 3 15
P (GR ) .
8 7 56
5 4 10
P (GG ) .
8 7 28
56
60
Example(try)
A manufacturer company uses the following
acceptance scheme: Boxes of 25 items are readied for
shipment, and a sample of 3 items is tested for
defective. If any defectives are found, the entire box is
sent back for 100% screening. If no defectives are
found, the box is shipped.