STAT - 835 Probability and Statistics: Basics of Probability III
STAT - 835 Probability and Statistics: Basics of Probability III
PROBABILITY AND
STATISTICS
Basics of
Probability III
(mopping up the basics)
Muhammad Ijaz
December 20th, 2016
Set Theory
A B A B
x x
A x A
B B
A B
Example 1
n(A B) = 20
3 x 5 Find x
Answer:
n(A B) = n(A) + n(B) – n(A B)
20 = (3+x) + (x+5) – x
=> x = 12
STAT 835 - Probability and Statistics 4
Set Theory
Example 2
P
n(P Q) = 100
Q
x
n(P) = 70
n(Q) = 43
Find x
Answer:
n(P Q) = n(P) + n(Q) – n(P Q)
100 = 70 + 43 – x
=> x = 13
Example 3
P Q
x 4 7
U = 25
5 n(P Q)’ = 5
Find x
Answer:
Obviously, n(P Q) = U – n(P Q)’ = 20
Then from Morgan’s Law,
n(P Q) = n(P) + n(Q) – n(P Q)
=> 20 = (4 + x) + 11 – 4
=> x = 9
STAT 835 - Probability and Statistics 6
Set Theory
A B
B
A B A
B A B
S S S A S
Venn diagram of A&B AB: intersection of A&B AB: union of A&B A & B mutually exclusive
n( A B) n( A) n(B) n( A B)
n(U ) n(U ) n(U ) n(U )
U
A B
p(A B C)
If A, B and C are disjoint (i.e., they cannot occur simultaneously;
they are mutually exclusive), then
U
A n(A) n(A') n(U
)
Dividing through by n(U) gives:
n( A) n( A') n(U )
n(U ) n(U )
n(U )
p(A) P( A') 1
The sum of the probabilities of complementary events is always = 1
STAT 835 - Probability and Statistics 13
Set Theory
So far…
p( A)
n( A) n(U
)
p(A B) p(A) p(B) p(A B)
p(A) 1 P(A')
STAT 835 - Probability and Statistics 14
Work Examples on Mutually Exclusive Events
Answer:
p(A or B) = p(A u B) = p(A) + p(B) – p(A ∩ B)
But A and B are mutually exclusive, so p(A ∩ B) = 0
Therefore
p(A or B) = p(A) + p(B) = 0.28 + 0.41 = 0.69
p(A u B)‟ = 1 – p(A u B) = 1 – 0.69 = 0.31
Answer:
p(E or G) = p(E u G) = p(E) + p(G) – p(E ∩ G)
But E and G are mutually exclusive, so p(E ∩ G) = 0
Therefore
p(E or G) = p(E) + p(G) = 0.22 + 0.38 = 0.60 p(E‟)
= 1 – p(E) = 1 – 0.22 = 0.78
lunch.
Compound
Simple Events p(A u B) = p(A) + p(B) – p(A ∩ B)
Not applicable
Statistically Statistically
Independent Dependent
p(A ∩ B) = p(A) * p(B) p(A ∩ B) = p(A) * p(B/A)
23
Mutually Exclusive vs. Independent
Independent events
– The outcome of event A, has no effect on the outcome of event B. Such as "It rained on
Monday" and "My chair broke at work".
– When calculating the probabilities for independent events you multiply the
probabilities.
– You are effectively saying what is the chance of both events happening bearing in mind
that the two were unrelated.
– So, if A and B are mutually exclusive, they cannot be independent. If A and B are
independent, they cannot be mutually exclusive.
Answer
Let F denote the event that the system developed a fault Let C denote
the event that the system collapses
We seek p(F/C)
P(F/C)= p(C∩ F)/P(C) = 0.002 / 0.007 = 0.286
2 Pants
2 Pairs of Shoes
42
List all of Mr. X’s outfits
1
2
3
43
List all of Mr. X’s outfits
1
2
3
44
List all of Mr. X’s
outfits 1
2
3
6
7
45
1
2
3
6
7
9
10
46
1
2
3
6
7
9
10
11
36
Basics of Probability III
Permutation
To find the total number of ways an event can
occur, we apply the Multiplication Rule.
Example:
At 1:00 pm tomorrow, I wish to have a sandwich
for Lunch at a fast food. I can go to BK,
McDonalds, Subway or Wendy's. At each of these
joints there are three different kinds of sandwiches:
chicken, beef, and veggie.
What is the total number of choices available to me?
Beef
MD veggie
chicken
SW Beef
veggie
WY chicken
Beef
veggie
MULTIPLICATION RULE
Example 2
In how many ways can the letters a, b, and c
be arranged?
Answer:
ab c c
b
ac b c b
b ac a
a c
b ca b c
ca b a
c a
cba b
b a
n1 = 3 n2 = 2 n3 = 1
STAT 835 - Probability and Statistics 58
Permutations and Combinations(cont‟d)
Basics of Probability III
Example 3
In how many ways can the letters a,
b, c and d be arranged?
Answer
n=4
Number of permutations = n! = 4! =
4*3*2*1 = 24 ways.
dc b
c
a d
a
c
b d
c a
b
d
d
a
b
c
n1 = 4 n2 = 3 51
STAT 835 - Probability and Statistics
Permutations and Combinations(cont‟d)
Basics of Probability III