Professional Documents
Culture Documents
Recap
• For any event 𝐴, 0 ≤ 𝑃 (𝐴) ≤ 1,
• 𝑃 (𝑆) = 1,
• If 𝐴 and 𝐵 are mutually exclusive events then
𝑃 (𝐴𝑈𝐵) = 𝑃 (𝐴) + 𝑃 (𝐵)
• If 𝐴1, 𝐴2,−−−−−−−− − is a sequence of mutually exclusive events then
𝑃 (𝐴1𝑈𝐴2𝑈 −−−−−−−− −) = 𝑃 (𝐴1) + 𝑃 (𝐴2) +−−−−−− −.
• 𝑃 (𝐴′) = 1 − 𝑃 (𝐴)
• Probability of an impossible event is 0.
i.e., 𝑃 (𝜙) = 0
• If 𝐴 and 𝐵 are events in a sample space and 𝐴 𝐵 then
𝑃 (𝐴) ≤ 𝑃 (𝐵)
• If 𝐴 and 𝐵 are two events in a sample space , then
𝑃(𝐴𝑈𝐵) = 𝑃 (𝐴) + 𝑃 (𝐵) − 𝑃(𝐴 ∩ 𝐵)
Counting Techniques
1. The sum rule:
If a first task can be done in n1 ways and 𝑛1 𝑛2
Solution: 23 + 15 + 19 = 57 projects.
2. The product rule:
Suppose that a procedure can be broken down
into two tasks. If there are 𝑛1 ways to do the 𝑛1
𝑛1 × 𝑛2
first task and 𝑛2 ways to do the second task after 𝑤𝑎𝑦𝑠
A B
43= 64 = B| |A|
Example 4
• A homeowner doing some remodeling requires the services of
both a plumbing contractor and an electrical contractor. If there
are 12 plumbing contractors and 9 electrical contractors available
in the area, in how many ways can the contractors be chosen?
Solution:
Answer: 12
Permutations
• A Permutation is an arrangement of items in a particular order.
That is the professor could give 5040 different four question exams
without using the same assignment of graders to questions.
Combinations
• A Combination is an arrangement of items in which order does
not matter.
• Definition: The number of ways of choosing r elements from S
(order does not matter).
• An r-combination of elements of a set is an
unordered selection of r elements from the set.
C C (n, r )
n
r ( nr ) p ( n, r )
r!
n!
r!( nr )!
Example 7
• To play a particular card game, each player is dealt five cards from
a standard deck of 52 cards. How many different hands are
possible?
52! 52!
52 C5
5! (52 5)! 5!47!
52 * 51 * 50 * 49 * 48
2,598,960
5* 4* 3* 2*1
Conditional probability
Definition:
For any two events 𝐴 and 𝐵 with 𝑃 (𝐵) > 0,
the conditional probability of 𝐴 given that 𝐵 has occurred is defined
by 𝑃 (𝐴/𝐵).
𝑷(𝑨∩𝑩)
𝑃 (𝐴/𝐵) is given by, 𝑷 (𝑨/𝑩)= ; 𝑷 (𝑩) > 𝟎.
𝑷(𝑩)
Note:
If 𝑃 𝐵 = 0 the above formula make no sense. So the conditional
probability is defined only for 𝑃 (𝐵) > 0.
Multiplication rule
• If 𝐴 and 𝐵 are any two events in a sample space, and 𝑃 (𝐴) ≠ 0, then
𝑷 (𝑨 ∩ 𝑩) = 𝑷 (𝑨). 𝑷 (𝑩/𝑨)
• If 𝐴, 𝐵 and 𝐶 are any three events in a sample space 𝑆, such that
𝑃 (𝐴) ≠ 0, and 𝑃 (𝐴 ∩ 𝐵) ≠ 0 then
𝑷(𝑨 ∩ 𝑩 ∩ 𝑪) = 𝑷(𝑨). 𝑷(𝑩/𝑨). 𝑷(𝑪/ 𝑨 ∩ 𝑩)
Example 7
• Suppose the following three boxes are given:
Box 𝑋 has 10 light bulbs of which 4 are defective.
Box 𝑌 has 6 light bulbs of which 1 are defective.
Box 𝑍 has 8 light bulbs of which 3 are defective.
A box is chosen at random, and then a bulb is randomly selected from the
chosen box.
a) Find the probability 𝑝 that the bulb is non defective.
b) If the bulb is non defective, find the probability that it came from box
𝑍.
Solution:
Here we perform a sequence of two experiments:
i. Select one of the three boxes.
ii. Select a bulb which is either defective(D) or non defective(N).
Tree diagram 2/5 D
X
1/3 N
3/5
1/6 D
1/3
Y
5/6 N
3/8 D
1/3
Z
5/8 N
Continue….
• (a) since there are three disjoint paths which lead to a non
defective bulb N, the sum of the probability of these paths gives us
the required probability. Namely
1 3 1 5 1 5
𝑝 = 𝑃 𝑁 = ∙ + ∙ + ∙ = 0.686
3 5 3 6 3 8
1 5 5
(b) 𝑃(𝑍 ∩ 𝑁)= ∙ =
3 8 24
𝑃(𝑍∩𝑁)
𝑃 (𝑍/𝑁)= ; 𝑃 𝑁 = 0.686 > 0
𝑃(𝑁)
5 75
24
= 247 = = 0.304
360 247
Independent events.
An event 𝑩 is said to be independent of an event 𝑨, if the probability that B occurs
is not influenced by whether 𝑨 has or has not occurred. In other words if
𝑷 (𝑩) = 𝑷 (𝑩/𝑨)
then 𝐴 and 𝐵 are said to be independent.
By the definition.
𝑃 (𝐴 ∩ 𝐵) = 𝑃 (𝐴). 𝑃 (𝐵/𝐴)
𝑷 (𝑨 ∩ 𝑩) = 𝑷 (𝑨). 𝑷 (𝑩)
= 0.037
Bayes’ Theorem
Suppose𝐸1 , 𝐸2 , … … , 𝐸𝑛 is a partition of 𝑆 and 𝐴 be any event , then for any 𝑖 ,
where 1 ≤ 𝑖 ≤ 𝑛
P(E i /A) n
P(A/Ei ) . P(E i )
i , and P(Ei) > 0
P(A/E ) . P(E )
i 1
i i
By Bayes’ Theorem;
P(E1 /D)
P(D/E1 )P(E1 ) = 0.5 * 0.03
3
P(D/E )P(E )
i i 0.5 * 0.03 0.3 * 0.04 0.2 * 0.05
i 1
= 0.015
0.037
= 15
37
Example 9
A judge is 65% sure that a suspect has committed a crime. During
the course of the trial a witness convinces the judge that there is an
85% chance that the criminal is left handed. If 23% of the
population is innocent and the suspect is also left handed with this
new information, how certain should the judge be of the guilt of the
suspect
Solution:-
Let G – be the event that the suspect is quilt
I – be the event that the suspect is innocent
A – be the event that the suspect is left handed
We are given P(G)=0.65 P(A|G)=0.85 P(A|I)=0.23 P(I)=0.35
By Bayes’ theorem
P( A | G).P(G) =
0.85 * 0.65
P( A | G).P(G) P( A | I ).P( I ) 0.85 * 0.65 0.23 * 0.35
= 0.87
Exercise:
In a certain residential suburb, 60% of all households subscribe to
the metropolitan newspaper published in a nearby city, 80%
subscribe to the local paper, and 50% of all households subscribe to
both papers. If a household is selected at random, what is the
probability that it subscribes to
i. at least one of the two news papers.
ii. exactly one of the two news papers.
Summary
• Conditional probability
P(A E)
P(A/E) , P(E) 0
P(E)
• Multiplication rule
P (AB) = P (A). P (B/A)
• An event B is said to be independent of an event A then P (B) = P (B/A)
P (AB) = P (A). P (B)
n
• Bayes’ Theorem
P(E i /A) n
P(A/Ei ) . P(E i )
i , and P(Ei) > 0
P(A/E ) . P(E )
i 1
i i