Chapter 04 - Elements of Probability
Chapter 04 - Elements of Probability
1
Learning Outcomes
2
Terminologies
3
• Experiment
A process leading to a well-defined observations or
outcomes that generates a set of data.
• Trial
Each repetition, if the experiment can be repeated any
number of times under identical conditions
4
• Sample Space (S)
5
• Event
A subset of the sample space. Usually denoted in capital
English letters. The class of all events associated with a given
experiment is define to be the event space.
• Simple Event
An event that can be described by a single characteristic
6
Probability
• Probability means possibility.
• If the above two conditions are satisfied, the probability of an event E is calculated as
8
We define Probability of an event A to be to be a successful outcomes
Number of successfuloutcomes( r ) r
P ( A)
Total number of outcomesn n
Not
Successful
r nr
Successful
nr n
P ( Not A) 1
n r
P ( A) P ( Not A) 1
9
Example 01
Example 02
10
Example 03
An ordinary dice is thrown. What is the probability that the number thrown is,
1. less than 4
2. less than or equal to 5
3. More than 6
4. More than or equal to 6
11
Probabilities are representing in many ways.
1.Venn diagram
3. Tree diagram
12
Special Types of Events
13
• The null set (∅) of S is called an impossible event.
15
• Collectively exhaustive events
16
• Independent Events
17
• Joint Events
18
Example 04
In a college, 200 students are randomly selected. 140 like tea, 120 like coffee and 80 like both
tea and coffee.
19
Example 05
Suppose that in a town, 800 people are selected by random types of sampling methods. 280 go to work
by car only, 220 go to work by bicycle only and 140 use both ways( sometimes go with a car and
sometimes with a bicycle).
IV. How many people use at least one of both transportation types?
20
Example 06
In a survey of 500 students of a college, it was found that 49% liked watching football, 53% liked
watching hockey and 62% liked watching basketball. Also, 27% liked watching football and hockey
both, 29% liked watching basketball and hockey both and 28% liked watching football and basket ball
both. 5% liked watching none of these games.
II. Find the ratio of number of students who like watching only football to those who like watching
only hockey.
III. Find the number of students who like watching only one of the three given games.
IV. Find the number of students who like watching at least two of the given games.
21
Laws of the Algebra of Sets
Idempotent Laws
A A A A A A
Associative Laws ( A B) C A ( B C )
( A B) C A ( B C )
Commutative Laws A B B A
A B B A
Distributive Laws A ( B C ) ( A B) ( A C )
A ( B C ) ( A B) ( A C )
Complement Laws A AC U
( AC ) C A
De Morgan’s Laws ( A B ) C AC B C
( A B ) C AC B C
22
Basic Properties
• Consider two events A and B in S. Then,
Pr(𝐴𝑐 ) = 1 - Pr(A)
Pr(A ∪ B) = Pr(A) + Pr(B) − Pr(A ∩ B).
If A ∩ B = ∅ (A and B are mutually exclusive) then,
Pr(A ∪ B) = Pr(A) + Pr(B)
If A1, A2, ... , Ak are mutually exclusive then,
Pr(A1 ∪ A2 ∪···Ak) = Pr(A1) + Pr(A2) + · · · + Pr(Ak)
If A and B are independent then,
Pr(A ∩ B) = Pr(A) * Pr(B)
23
Joint Probability
24
Example 07
Find the probability that you will get a Black-Ace from a playing deck of
cards, if a card is drawn at random.
Example 08
Find the probability that you will get a Red-Jack from a playing deck of
cards, if a card is drawn at random.
25
Marginal Probability
26
Example 09
Find the probability that you will get a King from a playing deck of
cards, if a card is drawn at random.
Example 10
Find the probability that you will get a Black card from a playing deck of
cards, if a card is drawn at random.
27
Conditional Probability
28
Where P(A ∩ B) = Joint probability of A and B
P(A) = Marginal probability of A
P(B) = Marginal probability of B
29
Example 11
From a used car lot, 70% have air conditioning and 40% have a CD
player. 20% of the cars have both. What is the probability that a
car has a CD player, given that it has AC ?
Example 12
If two balanced dice are tossed, find the probability that the sum of
the face values is 8, if the face value of the first one is 3.
30
Example 13
D and E are two events such that
P( D) 0.3 , P( E ) 0.5, and P( D | E ) 0.25
find, P( D E ) , P( D E ) , P ( D | E ) and P( D | E ) .
Example 14
What is the probability that the total of two dice will be greater than
9, given that the first die is a 5?
31
1.31
The Law of Total Probability
For a given probability space (S), if B1 , B2 ,...., Bn be a partition of S
where, they are mutually exclusive and exhaustive events.
P( Bi ) 0 for all i 1,2,..., n then
n
P ( A) P ( A | Bi )P ( Bi ) B1
i 1
B3
A
B2 32
32
Example 15
The members of a consulting firm rent cars from three rental agencies.
60% from agency 1, 30% from agency 2 and 10% from agency 3. If 9%
of the cars from agency 1 need tune up, 20% of the cars from agency 2
need tune up and 6% of the cars from agency 3 need tune up, what is
the probability that a rental car delivered to the firm will need tune up?
33
Bayes’ Theorem
• Let 𝐵1 , 𝐵2 , … , 𝐵𝑛 be mutually exclusive and exhaustive events, and
A be any event. Then for 𝑖 = 1,2, … , 𝑛,
𝑷(𝑩𝒊 ∩𝑨)
𝑷 𝑩𝒊 |𝑨 =
𝑷(𝑨)
𝑷 𝑨|𝑩𝒊 𝑷 𝑩𝒊
B1 𝑷 𝑩𝒊 |𝑨 =
B3 𝑷(𝑨)
B2 A 34
Example 16
I. In a factory, three machines, A, B and C make 30%, 45% and 25% of the products
respectively. It is known from past experience that 2%, 3% and 2% of products made by
each machine respectively are defective. Now, suppose that a finished product is
randomly selected. What is the probability that it is defective?
II. Suppose that one item is selected at random and it is found to be defective, find the
probability that the item was produce by machine
a). A
b). B
c). C
35
Example 17
A company has 4 web developers. The probability that a project is assigned to each developer is equally
likely. If developer 1 completed the project, the customer is satisfied 75% of the time. If developer 2
completed the project, the customer is satisfied 90% of the time. If developer 3 completed the project, the
customer is satisfied 85% of the time. If developer 4 completed the project, the customer is satisfied 95% of
the time. A customer is chosen at random.
36
In Next Chapter…
• Distribution Theory will be discussed
37
Thank You
Rajika Gunarathne
Email: rajikag@uom.lk
38