Download Review

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Statistics wikipedia , lookup

History of statistics wikipedia , lookup

Ars Conjectandi wikipedia , lookup

Inductive probability wikipedia , lookup

Birthday problem wikipedia , lookup

Probability interpretations wikipedia , lookup

Probability wikipedia , lookup

Transcript
THE UNIVERSITY OF HONG KONG
DEPARTMENT OF STATISTICS AND ACTUARIAL SCIENCE
STAT1301
PROBABILITY AND STATISTICS I
EXAMPLE CLASS 2
Review
Definition of conditional probability
For any two events A and B, the conditional probability of A given the occurrence of B is written as
P (A|B) and is defined as
P (A ∩ B)
P (A|B) =
P (B)
provided that P (B > 0).
Multiplication theorem
(a) For any two events A and B with P (B) > 0,
P (A ∩ B) = P (B)P (A|B).
(b) For any three events A, B, C with P (B ∩ C) > 0,
P (A ∩ B ∩ C) = P (C)P (B|C)P (A|B ∩ C).
Independence
(a) Two events A and B are called independent if and only if
P (A ∩ B) = P (A)P (B).
If P (A) > 0,then A and B are independent if P (B|A) = P (B).
(b) The events A1 , A2 , · · ·, Ak are (mutually) independent if and only if the probability of the intersection of any combination of them is equal to the product of the probabilities of the corresponding
1
single events.
For example, A1 , A2 , A3 are independent if and only if
P (A1 ∩ A2 ) = P (A1 )P (A2 )
P (A1 ∩ A3 ) = P (A1 )P (A3 )
P (A2 ∩ A3 ) = P (A2 )P (A3 )
P (A1 ∩ A2 ∩ A3 ) = P (A1 )P (A2 )P (A3 )
Bayes’ Theorem (Bayes’ rule, Bayes’ law)
For any two event A and B with P (A) > 0 and P (B) > 0,
P (B|A) = P (A|B)
P (B)
.
P (A)
Bayes’ Theorem
If B1 , B2 , ..., Bk are mutually exclusive and exhaustive events (i.e. a partition of the sample space), and
A is any event with P (A) > 0, then for any Bj ,
P (Bj |A) =
P (A|Bj )P (Bj )
P (Bj )P (A|Bj )
= k
,
P (A)
X
P (Bi )P (A|Bi )
i=1
where k can also be ∞.
Law of total probability
(a) If 0 < P (B) < 1, then P (A) = P (A|B)P (B) + P (A|B c )P (B c ) for any A.
(b) If B1 , B2 , ..., Bk are mutually exclusive and exhaustive events (i.e. a partition of the sample space),
then for any event A,
k
X
P (A) =
P (A|Bj )P (Bj ),
j=1
where k can also be ∞.
2
Problems
Problem 1
A and B are two events. Suppose that P (A|B) = 0.6, P (B|A) = 0.3, and P (A∪B) = 0.72. LetP (A) = a.
(a) Express P (A ∩ B) and P (B) in terms of a.
(b) Using the results of (a), or otherwise, find the value of a.
(c) Are A and B independent events? Explain your answer briefly.
Solution:
(a)
P (A ∩ B) = P (B|A)P (A) = 0.3a
P (A|B)P (B) = P (A ∩ B)
0.6P (B) = 0.3a
P (B) = 0.5a
(b)
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
0.72 = a + 0.5a − 0.3a
a = 0.6
(c)
P (A|B) = 0.6 = P (A)
P (B|A) = 0.3 = 0.5 × 0.6 = P (B)
and
therefore A and B are independent events.
Problem 2
A and B are two events. Suppose that P (B c |A) = 34 , P (Ac |B) = 35 , and P (Ac ) = 52 , where Ac and B c
are complementary events of A and B respectively. Let P (B) = p, where 0 < p < 1.
(a) Find P (A ∩ B c ).
(b) Express P (Ac ∩ B) in terms of p.
3
(c) Using the fact that Ac ∪ B is the complementary event of A ∩ B c , or otherwise, find the value of p.
(d) Are A and B mutually exclusive? Explain your answer.
Solution:
(a)
3
2
9
P (A ∩ B c ) = P (B c |A)P (A) = P (B c |A)[1 − P (Ac )] = [1 − ] =
4
5
20
(b)
3
P (Ac ∩ B) = P (Ac |B)P (B) = p
5
(c)
P (Ac ∪ B)
P (Ac ) + P (B) − P (Ac ∩ B)
2
3
+p− p
5
5
2
p
5
= 1 − P (A ∩ B c )
= 1 − P (A ∩ B c )
9
= 1−
20
3
=
20
3
p =
8
(d)
P (A ∩ B) + P (Ac ∩ B) = P (B)
3
3 3
=
P (A ∩ B) + ·
5 8
8
3
P (A ∩ B) =
6= 0
20
therefore A and B are not mutually exclusive.
Problem 3
(a) Say that C1 , C2 , ···, Ck are (mutually) independent events that have respective probabilities p1 , p2 , ··
·, pk . Argue that the probability of at least one of C1 , C2 , · · ·, Ck happens is equal to
1 − (1 − p1 )(1 − p2 ) · · · (1 − pk )
HINT:(C1 ∪ C2 ∪ · · · ∪ Ck )c = C1c ∩ C2c ∩ · · · ∩ Ckc
4
(b) Let C1 , C2 , C3 be independent events with probabilities 21 , 13 , 41 , respectively. Compute
(i) P (C1 ∪ C2 ∪ C3 )
(ii) P [(C1c ∩ C2c ) ∪ C3 ]
Solution:
(a) We first consider C1 and C2 , if the probability of at least one of them happens is P (C1 ∪ C2 ).
P (C1 ∪ C2 ) = 1 − P ((C1 ∪ C2 )c ) = 1 − P (C1c ∩ C2c )
Since C1 and C2 are independent,P(C1 ∩ C2 ) = P (C1 )P (C2 ).
And since P (C1 ∩ C2 ) = P (C1 ) + P (C2 ) − P (C1 ∩ C2 ),then we get
P (C1c ∩ C2c ) =
=
=
=
=
=
P ((C1 ∪ C2 )c )
1 − P (C1 ∪ C2 )
1 − P (C1 ) − P (C2 ) + P (C1 ∩ C2 )
1 − P (C1 ) − P (C2 ) + P (C1 )P (C2 )
(1 − P (C1 ))(1 − P (C2 ))
P (C1c )P (C2c )
Therefore C1c and C2c are independent. Then we can calculate
P (C1 ∩ C2 ) = 1 − P (C1c )P (C2c ) = 1 − (1 − p1 )(1 − p2 )
Based on mathematical induction we can get similar result, which is that C1c , C2c , · · ·, Ckc are
independent, P (C1c ∩ C2c ∪ · · · ∪ Ckc ) =. Therefore the probability of at least one of C1 , C2 , · · ·, Ck
happens is P (C1 ∪ C2 ∪ · · · ∪ Ck ) = P (C1c )P (C2c ) · · · P (Ckc ), which is equal to
1 − P [(C1 ∪ C2 ∪ · · · ∪ Ck )c ]
1 − P (C1c ∩ C2c ∪ · · · ∪ Ckc )
1 − P (C1c )P (C2c ) · · · P (Ckc )
1 − (1 − p1 )(1 − p2 ) · · · (1 − pk )
P (C1 ∪ C2 ∪ · · · ∪ Ck ) =
=
=
=
(b)
(i)
P (C1 ∪ C2 ∪ C3 ) = 1 − (1 − P (C1 ))(1 − P (C2 ))(1 − P (C3 )) = 1 −
3
1 2
× × 34 =
2 3
4
(ii)
P [(C1c ∩ C2c ) ∪ C3 ] = 1 − [1 − P (C1c ∩ C2c )](1 − P (C3 ))
= 1 − [1 − P (C1c )P (C2c )](1 − P (C3 ))
1 2
1
1
= 1 − (1 − × )(1 − ) =
2 3
4
2
5
Problem 4
A small plane have gone down, and the search is organized into three regions. Starting with the likeliest,
they are:
Region
Initial Chance Plane is There Chance of Being Overlooked in the Search
Mountains
0.5
0.3
Praire
0.3
0.2
Sea
0.2
0.9
The last column gives the chance that if the plane is there, it will not be found, it will not be found. For
example, if it went down at sea, there is 90% chance it will have disappeared, or otherwise not be found.
Since the pilot is not equipped to long survive a crash in the mountains, it is particularly important to
determine the chance that the plane went down in the mountains.
(a) Before any search is started, what is this chance in the mountains?
(b) The initial search was in the mountains, and the plane was not found. Now what is the chance
the plane is nevertheless in the mountains?
(c) The search was continued over the other two regions, and unfortunately the plane was not found
anywhere. Finally now what is the chance that the plane is in the mountains?
(d) Describing how and why the chances changed from (a) to (b) to (c).
Solution:
Let M, P, S be the events that the plan went down in the mountains, Prairie, sea respectively. Let
OM, OP, OS be the events that the plane is not found in mountains, prairie, sea respectively. Then we
have
P (M ) = 0.5
P (P ) = 0.3
P (S) = 0.2
P (OM |M ) = 0.3
P (OP |M ) = P (OS|M ) = 1
P (OP |P ) = 0.2
P (OM |M ) = P (OS|P ) = 1
P (OS|S) = 0.9
P (OM |S) = P (OP |S) = 1
(a) P (M ) = 0.5
(b)
P (OM |M )P (M )
P (OM |M )P (M ) + P (OM |P )P (P ) + P (OM |S)P (S)
(0.3)(0.5)
=
= 0.2308
(0.3)(0.5) + 0.3 + 0.2
P (M |OM ) =
6
(c)
P (OM, OP, OS) = P (OM, OP, OS|M )P (M ) + P (OM, OP, OS|P )P (S) + P (OM, OP, OS|S)P (S)
= P (OM |M )P (M ) + P (OP |P )P (P ) + P (OS|S)P (S)
= (0.3)(0.5) + (0.2)(0.3) + (0.9)(0.2) = 0.39
P (OM |M )P (M )
(0.3)(0.5)
=
= 0.3846
P (OM, OP, OS)
0.39
P (M |OM, OP, OS) =
(d) Prior to any search, the probability is 0.5. After the initial search, the plane was not found in
the mountains. Therefore given this information the probability decreased to 0.2308. However,
after the continued search, the plane was also not found in other regions. Hence the probability
increased to 0.3846 due to this additional information.
Problem 5
Let S = {1, 2, · · ·, n} and suppose that A and B are, independently, equally likely to be any of the 2n
subsets ( including the null set and S itself) of S.
3
(a) Show that P (A ⊂ B) = ( )n .
4
HINT: Let N (B) denote the number of elements in B. Use
n
X
P (A ⊂ B) =
P (A ⊂ B|N (B) = i)P (N (B) = i)
i=0
3
(b) Show that P (A ∩ B = φ) = ( )n .
4
Solution:
(a) Denote N (B) as the number of elements in B. Then
2i
P (A ⊂ B|N (B) = i) = n = 2i−n
2
n
P (N (B) = i) =
/2n
j
Using law of total probability,
P (A ⊂ B) =
=
n
X
i=0
n
X
P (A ⊂ B|N (B) = i)P (N (B) = i)
i−n
2
i=0
= 2
−2n
n
X
n
×
/2n
j
(2i )
i=0
3
= 2−2n (2 + 1)n = ( )n
4
7
(binomial
theorem)
3
(b) P (A ⊂ B = φ) = P (A ⊂ B c ) = ( )n
4
(B c and B have equivalent probabilistic behavior)
Problem 6 (The Monty Hall Problem)
Suppose you are on a game show, and you are given the choice of three boxes. In one box is a key to a
new BMW while empty in others. You pick a box A. Then the host, Monty Hall, who knows what are
inside the boxes, opens another box, say box B, which is empty. He then says to you, ”Do you want to
abandon your box and pick box C?”
Is it to your advantage to switch your choice?
Solution:
Let SB = {hostchooseB}, we have known
P (SB|A) =
1
2
P (SB|Ac , B) = 0 P (SB|Ac , B c ) = 1 P (A) = P (B) = P (C) =
1
2
1
P (SB, B c |Ac ) = P (SB|B c , A)P (B c |A) =
2
P (SB, B c |Ac ) = P (SB|B c , Ac )P (B c |Ac ) =
Therefore
P (SB, B c |A)P (A)
P (A|SB, B ) =
=
P (SB, B c |Ac )P (Ac ) + P (SB, B c |A)P (A)
c
8
1
2
1
2
2
3
× 31
× + 12 ×
1
3
=
1
3
1
3