Docsity

Probability of Guilty Defendants Being Declared Guilty in Binomial Context, Assignments of Statistics

Toggle sidebar
bg1
University of Illinois, Urbana–Champaign Fall 2007
ECE 313: Solutions to Homework 4
21. (a) Let X∼B(n, p) be a binomial r.v. for the number of judges who vote for guilty, where
nis the number of judges and pis the probability that a judge votes for guilty.When a
defendant is guilty, p= 0.7.
i. X∼B(9,0.7). If more than 4 judges vote for guilty, the defendant is declared guilty.
Pr(X≥5) = P9
i=5 9
i0.7i0.39−i= 0.9012
ii. X∼B(8,0.7). If more than 5 judges (or 4 judges depending on the definition of ma-
jority) vote for guilty, the defendant is declared guilty. Pr(X≥5) = P8
i=5 8
i0.7i0.38−i=
0.8059. Or Pr(X≥4) = P8
i=4 8
i0.7i0.38−i= 0.9420
iii. X∼B(7,0.7). If more than 4 judges vote for guilty, the defendant is declared guilty.
Pr(X≥4) = P7
i=4 7
i0.7i0.37−i= 0.8740
(b) The defense attorney needs to find a strategy that minimizes the probability that the
client is declared guilty. For each strategy, the attorney will compute the probability by
Pr(guilty defendant declared guilty)Pr( guilty client)+Pr(innocent defendant is declared
guilty)Pr(innocent client), where Pr(guilty client) is 0.6 and Pr(innocent client) is 0.4.
From (a) we have computed the probability for a guilty defendant to declare guilty, in a
similar way we can find the probability for an innocent defendant to be declared guilty
with p= 0.3. The answer for an innocent client to be declared guilty is 0.0988 for 9
judges, 0.0580(0.1941) for 8 judges and 0.1260 for 7 judges.
If the attorney does not exercise peremptory challenge right, the probability that the
client is declared guilty is 0.9012 ·0.6 + 0.0988 ·0.4 = 0.5802. If the attorney removes
one judge, the probability is 0.8059 ·0.6 + 0.0580 ·0.4 = 0.5067 or 0.6428 if majority is
4 out of 8. If the attorney removes two judges, the probability is 0.5748. To minimize
the probability, the attorney should choose to remove one judge if majority is 5 out of 8.
Otherwise, the attorney should remove two judges.
22. Intuitively, the probability of rejecting a lot should not depend on the size of lot since the failure
rate for each item is independent. If a purchaser examines 4 components, the probability that
all 4 are good is 0.94= 0.6561. So the rejection rate is 1 −0.6561 = 0.3439.
Then we show that our intuition is true. Let nbe the number of components in a lot. For a
lot with kdefective components for k≤n−4, the probability that the purchaser accepts the
lot equals Pr(kdefective components in n) Pr(the purchaser chooses 4 good ones). It is
n
k0.1k0.9n−kn−k
4
n
4=n−4
k0.1k0.9n−k
The right hand side means that all defect components fall into the set that the purchaser does
not select. It is obvious that k≤n−4 otherwise the purchaser always gets defect components.
To sum them up for all k’s, Pn−1
k=0 n−4
k0.1k0.9n−4−k+4 = 0.94. The result is thus proved.
23. Let Xbe the r.v. standing for the number of passengers left behind. Note that the maximum
value of Xis 3. The probability of kpassengers left behind for k > 0 is the probability that
k+ 4 passengers show up. When k= 0, the probability is that for k≤4 passengers showing
up. As k > 0, Pr(X=k) = 7
k+40.5k+40.53−k. The expectation of the number of passengers
left behind is E(X) = P3
k=1 kPr(X=k) = 0.1641 + 0.0547 ·2 + 0.0078 ·3 = 0.2969.
24. (a) Since you have to toss the coin at least twice to get two Heads and you may toss an
arbitrary number of times to get two Heads, Nis an integer from 2 to positive infinity.
(b) Pr(N=n) = n−1
1p(1 −p)n−2p= (n−1)p2(1 −p)n−2for n= 2,3, . . ..
pf2

Partial preview of the text

Download Probability of Guilty Defendants Being Declared Guilty in Binomial Context and more Assignments Statistics in PDF only on Docsity!

University of Illinois, Urbana–Champaign Fall 2007 ECE 313: Solutions to Homework 4

  1. (a) Let X ∼ B(n, p) be a binomial r.v. for the number of judges who vote for guilty, where n is the number of judges and p is the probability that a judge votes for guilty.When a defendant is guilty, p = 0.7.

i. X ∼ B(9, 0 .7). If more than 4 judges vote for guilty, the defendant is declared guilty. Pr(X ≥ 5) =

i=

i

  1. 7 i 0. 39 −i^ = 0. 9012 ii. X ∼ B(8, 0 .7). If more than 5 judges (or 4 judges depending on the definition of ma- jority) vote for guilty, the defendant is declared guilty. Pr(X ≥ 5) =

i=

i

  1. 7 i 0. 38 −i^ = 0 .8059. Or Pr(X ≥ 4) =

i=

i

  1. 7 i 0. 38 −i^ = 0. 9420 iii. X ∼ B(7, 0 .7). If more than 4 judges vote for guilty, the defendant is declared guilty. Pr(X ≥ 4) =

i=

i

  1. 7 i 0. 37 −i^ = 0. 8740

(b) The defense attorney needs to find a strategy that minimizes the probability that the client is declared guilty. For each strategy, the attorney will compute the probability by Pr(guilty defendant declared guilty)Pr( guilty client)+Pr(innocent defendant is declared guilty)Pr(innocent client), where Pr(guilty client) is 0.6 and Pr(innocent client) is 0.4. From (a) we have computed the probability for a guilty defendant to declare guilty, in a similar way we can find the probability for an innocent defendant to be declared guilty with p = 0.3. The answer for an innocent client to be declared guilty is 0.0988 for 9 judges, 0.0580(0.1941) for 8 judges and 0.1260 for 7 judges. If the attorney does not exercise peremptory challenge right, the probability that the client is declared guilty is 0. 9012 · 0 .6 + 0. 0988 · 0 .4 = 0.5802. If the attorney removes one judge, the probability is 0. 8059 · 0 .6 + 0. 0580 · 0 .4 = 0.5067 or 0.6428 if majority is 4 out of 8. If the attorney removes two judges, the probability is 0.5748. To minimize the probability, the attorney should choose to remove one judge if majority is 5 out of 8. Otherwise, the attorney should remove two judges.

  1. Intuitively, the probability of rejecting a lot should not depend on the size of lot since the failure rate for each item is independent. If a purchaser examines 4 components, the probability that all 4 are good is 0. 94 = 0.6561. So the rejection rate is 1 − 0 .6561 = 0.3439. Then we show that our intuition is true. Let n be the number of components in a lot. For a lot with k defective components for k ≤ n − 4, the probability that the purchaser accepts the lot equals Pr(k defective components in n) Pr(the purchaser chooses 4 good ones). It is

( n k

  1. 1 k 0. 9 n−k

(n−k 4

(n 4

n − 4 k

  1. 1 k 0. 9 n−k

The right hand side means that all defect components fall into the set that the purchaser does not select. It is obvious that k ≤ n − 4 otherwise the purchaser always gets defect components. To sum them up for all k’s,

∑n− 1 k=

(n− 4 k

  1. 1 k 0. 9 n−^4 −k+4^ = 0. 94. The result is thus proved.

  2. Let X be the r.v. standing for the number of passengers left behind. Note that the maximum value of X is 3. The probability of k passengers left behind for k > 0 is the probability that k + 4 passengers show up. When k = 0, the probability is that for k ≤ 4 passengers showing up. As k > 0, Pr(X = k) =

k+

  1. 5 k+4 0. 53 −k. The expectation of the number of passengers left behind is E(X) =

k=1 k^ Pr(X^ =^ k) = 0.1641 + 0.^0547 ·^ 2 + 0.^0078 ·^ 3 = 0.2969.

  1. (a) Since you have to toss the coin at least twice to get two Heads and you may toss an arbitrary number of times to get two Heads, N is an integer from 2 to positive infinity.

(b) Pr(N = n) =

(n− 1 1

p(1 − p)n−^2 p = (n − 1)p^2 (1 − p)n−^2 for n = 2, 3 ,.. ..

(c) Using ML estimation, we need to find the probability p that maximizes the probability mass at N = n. To find the critical points in the continuous function f (p) = (n−1)p^2 (1− p)n−^2 , we do the first derivative test. df dp^ (p )= 0 and solve it we get p = 0, (^) n^2 , 1. Then we need to show that the function is increasing in the region p ∈ [0, (^2) n ] and decreasing in the other. f (0) = f (1) = 0 and f (2/n) > 0 so p = (^) n^2 is the maximum. Or we can do second derivate test to show that d

(^2) f dp^2 <^ 0 at^ p^ =^

2 n.

  1. (a) The number of Heads that will occur on the next 1000 trials follows a binomial distribution with( n = 1000, p = 0.11. We guess the mean value np = 110. The probability is 1000 110
    1. 89890 = 0.0403. Or we could guess the most likely value. To find the maximum value we use ratio test method. ( 1000 k
  1. 11 k 0. 891000 −k ( 1000 k+
  1. 11 k+1 0. 891000 −k−^1

Solving for it we also get k = 110. (b) The number of tosses made to observe the next Head (includes the toss to get the Head) follows a geometric distribution with p = 0.11. If the king wants the exact number of tosses, we should guess 1 where the maximum probability mass occurs. The probability is 0.11. Or we could guess mean value 1/p ≈ 9 where probability is 0. 8980 .11 = 0.0433. (c) The number of tosses made to observe the 105th Head follows a negative binomial dis- tribution with r = 105, p = 0.11. We could guess the mean value r/p ≈ 955 where the probability is

104

    1. 89850 = 0.0045. Or we could find the most likely value. Again using the ratio method. (^) ( k− 1 104
    1. 89 k−^105 ( (^) k 104
    1. 89 k+1−^105

Solving for it we get k = 946. The probability mass is 0.0046.

  1. For Binomial r.v., E[X] = np = 6, var(X) = np(1 − p) = 2.4. Solve it we have p = 0. 6 , n = 10.

(a) Pr(X = 5) =

5

(b) Pr(2X ≥ 5) = Pr(X ≥ 2 .5) =

k=

k

  1. 6 k 0. 410 −k^ = 0. 9877 (c) var(3X − 2) = 9var(X) = 21. 6 (d) Using the equation E[X^3 ] = npE[(Y + 1)^2 ] where Y is Binom(n − 1 , p). Hence, E[X^3 ] = 6 E[Y 2 + 2Y + 1] = 6((n − 1)(n − 2)p^2 + (n − 1)p + 2(n − 1)p + 1) = 6(72(.36) + 3(5.4) + 1) = 258 .72. In general, we could use z-transform method for arbitrary distributions. For Binomial r.v, the z-transform is E[zX^ ] =

∑n k=

(n k

(zp)k^ (1 − p)k^ = (1 − p + pz)n.

d^3 dz^3

E[zX^ ]|z=1 = E[X(X − 1)(X − 2)] = E[X^3 ] − 3 E[X^2 ] + 2E[X]

We also have d^3 dz^3

(1 − p + pz)n|z=1 = n(n − 1)(n − 2)p^3 = 155. 52

We know that E[X^2 ] = var(X)+E[X]^2 = 38.4. So E[X^3 ] = 155. 52 − 2 ·6+3· 38 .4 = 258.72.

  1. Since nRn ∼ Binom(n, P (A)), var(Rn) = P (A)(1 − P (A))/n = 0. 0099 /n. From Chebyshev’s inequality, P (|Rn − 0. 01 | ≥ 0 .001) ≤ 0. 0099 / 0. 000001 n. Since we are 99% confident that |Rn− 0. 01 | falls in the range of 0.001, we want the RHS to be less than 0.01, that is 9900 < 0. 01 n, which leads to n > 990 , 000.