Docsity

Solutions to Problem Set 7 in ECE 413 at University of Illinois Spring 2005, Assignments of Statistics

Toggle sidebar
bg1
University of Illinois Spring 2005
ECE 413: Solutions to Problem Set 7
1. (a)P(4 −0) = p4;P(0 −4) = q4.P(4 −1) = 4
1p4q;P(4 −1) = 4
1pq4since the loser’s single
point must be one of the first 4 points, not the last (winning) point. Similarly P(4 −2) =
5
2p4q2;P(2 −4) = 5
2p2q4. As a sanity check, add the seven probabilities: p4+ 4p4q+
10p4q2+ 20p3q3+ 10p2q4+ 4pq4+q4and verify that the sum is 1. Mathematica is helpful here.
(b)P(Awins) = p4+ 4p4q+ 10p4q2+p2
1−2pq (20p3q3) = p4+ 4p4q+10p4q2
1−2pq =f(p).
(c) If Awins points with probability p= 0, he will not win any games either! So, f(0) = 0. Similarly,
if Awins points with probability p= 1, he wins all games too. Hence, f(1) = 1. Finally,
f(1/2) = 1/2 since the players are perfectly matched. The function f(p) obtained in part (b)
satisfies all these properties, but it is not a linear function of p.
(d)d
dpf(p)
p=1
2
= 4p3+ 16p3q−4p4+(1 −2pq)(40p3q2−20p4q)−(−2q+ 2p)10p4q2
(1 −2pq)2
p=1
2
= 2.5 and
so f(1
2+) = 1
2+ 2.5+· · · so that small differences between the point win probabilities are am-
plified in the game win probabilities. If Ahas a 51% chance of winning each point, he has a
52.5% chance of winning a game. Such amplification is much stronger for set win probabilities
and match win probabilities. See “The Drunken Tennis Player” in Ian Stewart’s Game, Set, and
Math, Penguin Books, 1981.
(e)E[X] = 4(p4+q4) + 5(4p4q+ 4pq4) + 6(10p4q2+ 10p2q4) + 6 + 2
p2+q220p3q3= 63
4at p=1
2.
Exercise: show that as a function of p,E[X] is maximum at p=1
2.
2. (a) The bill passes if the Conservative Republicans and at least one other group votes for it, i.e.
the event A∩(B∪C∪D) occurs, or if all groups except the Conservative Republicans vote for
it, i.e. the event Ac∩B∩C∩Doccurs. Note that these are disjoint events (Why?). Now,
(B∪C∪D)c=Bc∩Cc∩Dcby DeMorgan’s theorem, and thus we can partition Ainto two
disjoint events as follows: A=A∩(B∪C∪D)∪(A∩(Bc∩Cc∩Dc)). Hence, we see that
P(A∩(B∪C∪D)) = P(A)−P(A∩Bc∩Cc∩Dc) = P(A)−P(A)P(Bc)P(Cc)(Dc)
by independence. Since P(Ac∩B∩C∩D) = P(Ac)P(B)P(C)P(D) by independence, we get
P(bill passes) = P(A∩(B∪C∪D)) + P(Ac∩B∩C∩D)
=P(A)−P(A)P(Bc)P(Cc)P(Dc) + P(Ac)P(B)P(C)P(D)
= 0.9×[1 −0.4×0.5×0.8] + 0.1×0.6×0.5×0.2 = 0.756 + 0.006 = 0.762.
(b) The Conservative Republicans must be in favor for the motion to override to pass. Furthermore,
since politics makes strange bedfellows, either the Liberal Democrats must also be in favor or
both the other groups must also be in favor. Hence,
P(veto overriden) = P(E∩(H∪(F∩G)))
=P(E)×P(H∪(F∩G)) by independence of Eand H∪(F∩G)
=P(E)×[P(H) + P(F∩G)−P(F∩G∩H)]
=P(E)×[P(H) + P(F)P(G)−P(F)P(G)(H)] independence again!
= 0.99 ×[0.1+0.4×0.6−0.6×0.4×0.1] = 0.31284.
pf2

Partial preview of the text

Download Solutions to Problem Set 7 in ECE 413 at University of Illinois Spring 2005 and more Assignments Statistics in PDF only on Docsity!

University of Illinois Spring 2005

ECE 413: Solutions to Problem Set 7

  1. (a) P (4 − 0) = p^4 ; P (0 − 4) = q^4. P (4 − 1) =

p^4 q; P (4 − 1) =

pq^4 since the loser’s single point must be one of the first 4 points, not the last (winning) point.( Similarly P (4 − 2) = 5 2

p^4 q^2 ; P (2 − 4) =

p^2 q^4. As a sanity check, add the seven probabilities: p^4 + 4p^4 q + 10 p^4 q^2 + 20p^3 q^3 + 10p^2 q^4 + 4pq^4 + q^4 and verify that the sum is 1. Mathematica is helpful here.

(b) P (A wins) = p^4 + 4p^4 q + 10p^4 q^2 +

p^2 1 − 2 pq

(20p^3 q^3 ) = p^4 + 4p^4 q +

10 p^4 q^2 1 − 2 pq

= f (p).

(c) If A wins points with probability p = 0, he will not win any games either! So, f (0) = 0. Similarly, if A wins points with probability p = 1, he wins all games too. Hence, f (1) = 1. Finally, f (1/2) = 1/2 since the players are perfectly matched. The function f (p) obtained in part (b) satisfies all these properties, but it is not a linear function of p.

(d)

d dp

f (p)

p= (^12)

= 4p^3 + 16p^3 q − 4 p^4 +

(1 − 2 pq)(40p^3 q^2 − 20 p^4 q) − (− 2 q + 2p)10p^4 q^2 (1 − 2 pq)^2

p= (^12)

= 2.5 and

so f ( 12 + ) = 12 + 2. 5  + · · · so that small differences between the point win probabilities are am- plified in the game win probabilities. If A has a 51% chance of winning each point, he has a 52.5% chance of winning a game. Such amplification is much stronger for set win probabilities and match win probabilities. See “The Drunken Tennis Player” in Ian Stewart’s Game, Set, and Math, Penguin Books, 1981.

(e) E[X ] = 4(p^4 + q^4 ) + 5(4p^4 q + 4pq^4 ) + 6(10p^4 q^2 + 10p^2 q^4 ) +

p^2 + q^2

20 p^3 q^3 = 6

at p = 12. Exercise: show that as a function of p, E[X ] is maximum at p = 12.

  1. (a) The bill passes if the Conservative Republicans and at least one other group votes for it, i.e. the event A ∩ (B ∪ C ∪ D) occurs, or if all groups except the Conservative Republicans vote for it, i.e. the event Ac^ ∩ B ∩ C ∩ D occurs. Note that these are disjoint events (Why?). Now, (B ∪ C ∪ D)c^ = Bc^ ∩ Cc^ ∩ Dc^ by DeMorgan’s theorem, and thus we can partition A into two disjoint events as follows: A = A ∩ (B ∪ C ∪ D) ∪ (A ∩ (Bc^ ∩ Cc^ ∩ Dc)). Hence, we see that

P (A ∩ (B ∪ C ∪ D)) = P (A) − P (A ∩ Bc^ ∩ Cc^ ∩ Dc) = P (A) − P (A)P (Bc)P (Cc)(Dc)

by independence. Since P (Ac^ ∩ B ∩ C ∩ D) = P (Ac)P (B)P (C)P (D) by independence, we get

P (bill passes) = P (A ∩ (B ∪ C ∪ D)) + P (Ac^ ∩ B ∩ C ∩ D) = P (A) − P (A)P (Bc)P (Cc)P (Dc) + P (Ac)P (B)P (C)P (D) = 0. 9 × [1 − 0. 4 × 0. 5 × 0 .8] + 0. 1 × 0. 6 × 0. 5 × 0 .2 = 0.756 + 0.006 = 0. 762.

(b) The Conservative Republicans must be in favor for the motion to override to pass. Furthermore, since politics makes strange bedfellows, either the Liberal Democrats must also be in favor or both the other groups must also be in favor. Hence,

P (veto overriden) = P (E ∩ (H ∪ (F ∩ G))) = P (E) × P (H ∪ (F ∩ G)) by independence of E and H ∪ (F ∩ G) = P (E) × [P (H) + P (F ∩ G) − P (F ∩ G ∩ H)] = P (E) × [P (H) + P (F )P (G) − P (F )P (G)(H)] independence again! = 0. 99 × [0.1 + 0. 4 × 0. 6 − 0. 6 × 0. 4 × 0 .1] = 0. 31284.

  1. The likelihood matrix and joint probability matrices are as shown below, and the ML and MAP decision rules are indicated by boldface entries.

Hypothesis Y = 1 Y = 2 Y = 3 P (Hi) Y = 1 Y = 2 Y = 3 H 1 : X = 1 0. 8 0. 1 0. 1 0. 5 0. 4 0. 05 0. 05 H 2 : X = 2 0. 05 0. 9 0. 05 0. 25 0. 0125 0. 225 0. 0125 H 2 : X = 3 0. 15 0. 05 0. 8 0. 25 0. 0375 0. 0125 0. 2

Thus, the ML and MAP rules are the same in this case. Other a priori probabilities could make the MAP rule different from the ML rule...

  1. (a) The likelihood of a hit is P (H|F ) = 25 or P (H|C) = 14 , or P (H|S) = 16 depending on which hypothesis is true. Since P (H|F ) = 25 is the largest, the maximum-likelihood decision is that it was a fastball. (b) We know from Problem Set 6 that P (F ) = 245 , P (C) = 1024 and P (S) = 249. Now we compare the joint probabilities

P (H|F )P (F ) =^2 5

× 5

, P (H|C)P (C) =^1

× 10

=^2.^5

, and P (H|S)P (S) =^1 6

× 9

=^1.^5

to get the Bayesian decision that it was a curveball. Note that it is not necessary to find the a posteriori probabilities P (F |H), P (C|H), and P (S|H) explicitly; the joint probabilities suffice.

  1. (a) The maximum-likelihood decision rule is indicated by the boldface entries in the likelihood matrix shown below. Hypothesis X = 3 X = 6 X = 9 X = 12 H 0 : excellent 0. 02 0. 08 0. 15 0. 75 H 1 : good 0. 1 0. 15 0. 6 0. 15 H 2 : average 0. 2 0. 65 0. 1 0. 05 (b) P (excellent student is labeled as good) = P (X = 9|H 0 ) = 0.15. P (excellent student is labeled as average) = P ({X = 6} ∪ {X = 3}|H 0 ) = 0.02 + 0.08 = 0.1. P (average student is labeled as good or excellent ) = P ({X = 9} ∪ {X = 12}|H 2 ) = 0.15. (c) The conditional error probabilities of the maximum-likelihood decision rule are P (E|H 0 ) = 0.25, P (E|H 1 ) = 0.4, P (E|H 0 2) = 0.15. Hence, the error probability is P (E) = P (E|H 0 )P (H 0 ) + P (E|H 1 )P (H 1 ) + P (E|H 2 )P (H 2 ) = 0.05 + 0.22 + .0375 = 0. 3075. (d) The joint probability matrix is as shown below together with the MAP decision rule. Hypothesis X = 3 X = 6 X = 9 X = 12 H 0 : excellent 0. 004 0. 016 0. 03 0. 15 H 1 : good 0. 055 0. 0825 0. 33 0. 0825 H 2 : average 0. 05 0. 1625 0. 025 0. 0125 P (E) = 1 − (0.15 + 0.33 + 0.1625 + 0.055) = 0.3025 which is slightly smaller than that of the maximum-likelihood rule. But note that students getting D’s are classified as good while students getting C’s are classified as average. Holy capricious grading complaint, Batman! (e) Now the joint probability matrix looks as shown below, and all students are classified as excellent regardless of their grade on the exam! Hypothesis X = 3 X = 6 X = 9 X = 12 H 0 : excellent 0. 019 0. 076 0. 1425 0. 7125 H 1 : good 0. 005 0. 0075 0. 03 0. 0075 H 2 : average 0 0 0 0 Obviously, there is no need for examinations at the Lake Wobegon campus since the results are ignored anyway.

Noncredit exercise: Write a letter to the Governor asking him to suggest to the University that the Lake Wobegon approach be adopted as a cost-cutting measure...