Docsity

Probability for Engineering Applications - Problem Set 8 with Solutions | ECE 313, Assignments of Statistics

Toggle sidebar
bg1
University Problem Set #8: Solutions ECE 313
of Illinois Page 1 of 4 Fall 2001
1.(a) With N-ary replication of each component, each replicated component has probability of failure pN since all
the N copies of the component must fail for the replicated component to fail. The probability that all M
replicated components are in working order is thus (1 – pN)M, and the probability of failure for the system
in the left-hand figure is thus 1 – (1 – pN)M
On the other hand, suppose that the entire system is replicated N times as shown in the right-hand figure.
Since each copy of the entire system fails with probability 1 – (1–p)M, the probability of failure for the
system in the right-hand figure is [1 – (1–p)M]N.
(b) 1 – (1 – 0.2N)5 ≤ 0.001 ⇒ (1 – 0.2N)5 ≥ 0.999 ⇒ (1 – 0.2N) ≥ 0.99979992 ⇒ 0.2N ≤ 0.000200080
⇒ N ≥ 6. More generally, N ≥ ln(1 – (1–α)1/M)
ln p where α is the desired maximum failure probability.
[1 – (1 – 0.2)5]N ≤ 0.001 ⇒ 0.67232N ≤ 0.001 ⇒ N ≥ 18. More generally, N ≥ ln α
ln(1 – (1–p)M)
Put another way, in our car example, having a single gigantic car with 6 engines, 6 transmissions, 6
brakes, … will provide more reliable transportation than having 17 separate cars. This may (or may not!)
explain why people buy one large SUV rather than 18 compact cars!
(c) If M = 1000, we get N ≥ 9 in the one case. The other case blows up on many calculators because the
quantity 1 – (1–p)M ≈ 1 – exp(–Mp) (huh?) = 1 – exp(–200) is very nearly 1. The Unix high-precision
utility bc gives its value as 0.999…99861610344 where there are 87 9’s preceding the 8616…. Since most
cars have 1000 (or more!) parts, the number of separate cars required to provide reliable transportation is far
larger than the number of cars in this world! On the other hand, a car with nine engines, nine transmissions
etc will provide the necessary reliability but it will be difficult to squeeze into most parking spaces!
Moral: Replicate at the component level, instead of replicating entire systems. It's a lot cheaper!
2. Linguistic innocents are reminded that both Arabic and Hebrew are read from right to left. Number the
links as shown. Let Vi denote the event that the i-th link is viable (i.e. working) and let A denote the event
that it is possible to call from ORIAC to SUCSAMAD.
ORIAC
ZEUS
NAMMA
NONABEL
SUCSAMAD
VIVA LET
12
3
4
5
6
7
(a) If Vc
4 has occurred, i.e. the VIVA LET to NAMMA link has been severed, then,
P(A|Vc
4 ) = P(V1V2V5V7 ∪ V1V3V6V7|Vc
4 ) = P(V1V2V5V7 ∪ V1V3V6V7) by independence!
= P(V1V2V5V7) + P(V1V3V6V7) – P(V1V2V3V5V6V7) = 2(1 – p)4 – (1 – p)6 by independence! On the
other hand, if V4 has occurred, i.e the VIVA LET to NAMMA link is viable, then
P(A|V4) = P(V1(V2 ∪ V3)(V5 ∪ V6)V7|V4) = P(V1(V2 ∪ V3)(V5 ∪ V6)V7) by independence!
= P(V1)×P(V2∪ V3)×P(V5 ∪ V6)×P(V7) = (1 – p)2×[(1 – p) + (1 – p) – (1 – p)2]2 = (1 – p)2(1 – p 2)2
= (1 – p)4(1 + p)2 by repeated use of the independence of events. Hence,
P(A) = p×[2(1 – p)4 – (1 – p)6] + (1 –p)×(1 – p)4(1 + p)2= (1 – p)4×(1 + 2p + p2 – 2p 3)
(b) P(Vc
3 |A) = P(A∩ Vc
3 )/P(A). But, P(A∩ Vc
3 ) = P(V1V2(V5 ∪ V4V6)V7)
= (1 – p)2×[(1 – p) + (1 – p)2 – (1–p)3]×(1 – p) = (1 –p )4×(1 + p – p2). Hence,
P(V3|A) = 1 – P(Vc
3 |A) = 1 – (1–p)4×(1 + p – p2)
(1-p)4×(1 + 2p + p2 - 2p3) = p(1 + 2p – 2p2)
1 + 2p + p2 – 2p3 .
(c) Clearly X is nonnegative, and cannot exceed 70. Also, X = 0 if either link #1 or link #7 has been severed
i.e. if Vc
1 ∪ Vc
7 occurs. Thus, assume that V1V7 has occurred. As in part(a), we can calculate the
capacity given that Vc
4 has occurred and also given that V4 has occurred. Thus, given that V1Vc
4 V7 has
occurred, the capacity from ORIAC to SUCSAMAD is 20 if only one of the paths from ZEUS to
NONABEL is working, and 40 if both are working, etc.. These capacities are indicated on the two
“Karnaugh” maps shown on the next page.
pf3
pf4

Partial preview of the text

Download Probability for Engineering Applications - Problem Set 8 with Solutions | ECE 313 and more Assignments Statistics in PDF only on Docsity!

of Illinois Page 1 of 4 Fall 2001

1.(a) With N-ary replication of each component, each replicated component has probability of failure pN^ since all the N copies of the component must fail for the replicated component to fail. The probability that all M replicated components are in working order is thus (1 – pN)M, and the probability of failure for the system in the left-hand figure is thus 1 – (1 – pN)M On the other hand, suppose that the entire system is replicated N times as shown in the right-hand figure. Since each copy of the entire system fails with probability 1 – (1–p)M, the probability of failure for the system in the right-hand figure is [1 – (1–p)M]N.

(b) 1 – (1 – 0.2N)^5 ≤ 0.001 ⇒ (1 – 0.2N)^5 ≥ 0.999 ⇒ (1 – 0.2N) ≥ 0.99979992 ⇒ 0.2N^ ≤ 0.

⇒ N ≥ 6. More generally, N ≥

ln(1 – (1–α)1/M^ ) ln p

where α is the desired maximum failure probability.

[1 – (1 – 0.2)^5 ]N^ ≤ 0.001 ⇒ 0.67232N^ ≤ 0.001 ⇒ N ≥ 18. More generally, N ≥

ln α ln(1 – (1–p)M) Put another way, in our car example, having a single gigantic car with 6 engines, 6 transmissions, 6 brakes, … will provide more reliable transportation than having 17 separate cars. This may (or may not!) explain why people buy one large SUV rather than 18 compact cars! (c) If M = 1000, we get N ≥ 9 in the one case. The other case blows up on many calculators because the

quantity 1 – (1–p)M^ ≈ 1 – exp(–Mp) (huh?) = 1 – exp(–200) is very nearly 1. The Unix high-precision utility bc gives its value as 0.999…99861610344 where there are 87 9’s preceding the 8616…. Since most cars have 1000 (or more!) parts, the number of separate cars required to provide reliable transportation is far larger than the number of cars in this world! On the other hand, a car with nine engines, nine transmissions etc will provide the necessary reliability but it will be difficult to squeeze into most parking spaces! Moral: Replicate at the component level, instead of replicating entire systems. It's a lot cheaper!

2. Linguistic innocents are reminded that both Arabic and Hebrew are read from right to left. Number the links as shown. Let Vi denote the event that the i-th link is viable (i.e. working) and let A denote the event that it is possible to call from ORIAC to SUCSAMAD.

ORIAC

ZEUS

NAMMA

NONABEL

SUCSAMAD

VIVA LET

(a) If V

c 4 has occurred, i.e. the VIVA LET to NAMMA link has been severed, then, P(A|V

c 4 ) = P(V 1 V 2 V 5 V 7 ∪^ V 1 V 3 V 6 V 7 |V

c 4 ) = P(V 1 V 2 V 5 V 7 ∪^ V 1 V 3 V 6 V 7 ) by independence! = P(V 1 V 2 V 5 V 7 ) + P(V 1 V 3 V 6 V 7 ) – P(V 1 V 2 V 3 V 5 V 6 V 7 ) = 2(1 – p)^4 – (1 – p)^6 by independence! On the other hand, if V 4 has occurred, i.e the VIVA LET to NAMMA link is viable, then P(A|V 4 ) = P(V 1 (V 2 ∪ V 3 )(V 5 ∪ V 6 )V 7 |V 4 ) = P(V 1 (V 2 ∪ V 3 )(V 5 ∪ V 6 )V 7 ) by independence! = P(V 1 )×P(V 2 ∪ V 3 )×P(V 5 ∪ V 6 )×P(V 7 ) = (1 – p)^2 ×[(1 – p) + (1 – p) – (1 – p)^2 ]^2 = (1 – p)^2 (1 – p^2 )^2 = (1 – p)^4 (1 + p)^2 by repeated use of the independence of events. Hence, P(A) = p×[2(1 – p)^4 – (1 – p)^6 ] + (1 –p)×(1 – p)^4 (1 + p)^2 = (1 – p)^4 ×(1 + 2p + p^2 – 2p^3 )

(b) P(V

c 3 |A) = P(A∩^ V

c 3 )/P(A). But, P(A∩^ V

c 3 ) = P(V 1 V 2 (V 5 ∪^ V 4 V 6 )V 7 ) = (1 – p)^2 ×[(1 – p) + (1 – p)^2 – (1–p)^3 ]×(1 – p) = (1 –p )^4 ×(1 + p – p^2 ). Hence,

P(V 3 |A) = 1 – P(V

c 3 |A) = 1 –^

(1–p)^4 ×(1 + p – p^2 ) (1-p)^4 ×(1 + 2p + p^2 - 2p^3 )

p(1 + 2p – 2p^2 ) 1 + 2 p + p 2 – 2p^3

(c) Clearly X is nonnegative, and cannot exceed 70. Also, X = 0 if either link #1 or link #7 has been severed

i.e. if V

c 1 ∪^ V

c 7 occurs. Thus, assume that V 1 V 7 has occurred. As in part(a), we can calculate the capacity given that V

c 4 has occurred and also given that V 4 has occurred. Thus, given that V 1 V

c 4 V 7 has occurred, the capacity from ORIAC to SUCSAMAD is 20 if only one of the paths from ZEUS to NONABEL is working, and 40 if both are working, etc.. These capacities are indicated on the two “Karnaugh” maps shown on the next page.

of Illinois Page 2 of 4 Fall 2001

V 1 V

c 4 V^7 occurred^ V 1 V 4 V 7 occurred V 2 V 5 → 00 01 11 10 V 2 V 3 → (^00 01 11 ) V 3 V 6 ↓ 00 0 0 20 0 V 5 V 6 ↓ 00 0 0 0 0 01 0 0 20 0 01 0 20 20 20 11 20 20 40 20 11 0 50 70 20 10 0 0 20 0 10 0 50 50 20 From this, we get P{ X = 70} = (1 – p)^7 { check: all links must work to get a capacity of 70}, P{ X = 50} = [(1 – p)^2 – (1 – p)^4 ](1 – p)^3 = (1 – p)^5 – (1 – p)^7 = (1 – p)^5 [2p – p^2 ] { check: links 1, 3, 4, 5, 7 must work, and at least one of 2 and 6 must have failed which has prob p + p – p^2 , why? }, P{ X = 40} = (1 – p)^6 p { check: all links except 4 must be in working condition}, P{ X = 20} = 2(1 – p)^4 p^3 + 7(1 – p)^5 p^2 + 2(1 – p)^6 p, { check: the first term corresponds to 1-2-5-7 and 1-3-6-7 as the only working links, the last term corresponds to 3 or 5 being the only failed link, and the middle term corresponds to everything working except (2 and exactly one of 4 and 5) or (3 and exactly one of 4, 5, 6) or (4 and exactly one of 5 and 6)}, P{ X = 0} = 1–P{ X ≠ 0} = 1 – [(1–p)^7 + (1–p)^5 – (1–p)^7 + p(1–p)^6 + 2(1–p)^4 p^3 + 7(1–p)^5 p^2 + 2(1–p)^6 p] = 1 – (1 –p )^4 (1 + 2p + p^2 – 2p^3 ) = 1 – P(A) as it should be! Finally, E[ X ] = 70P{ X = 70} + 50P{ X = 50} + 40P{ X = 40} + 20P{ X = 20} = 20(1 – p)^7 + 80(1 – p)^6 p + 50(1 – p)^5 + 40(1 – p)^4 p^3 + 140(1 – p)^5 p^2. As a quick check, note that E[ X ] = 70 if p = 0 (totally incompetent terrorists!) and E[ X ] = 0 if p = 1 (fearless liberation fighters not afraid to die in the attempt!). It is interesting to plot these probabilities and expected values as a function of p. P(A) ≈ 80% for p = 0.05 and decreases to 50% at roughly p = 0.2419… when E[ X ] = 21.…

3.(a) P{ X = 4} = P{A wins 4 straight} + P{B wins four straight} = (1/2)^4 + (1/2)^4 = 1/8.

P{ X = 5} = 2•P{A loses only one games #1-#4} = 2•( )

P{ X = 6} = 2•P{A loses 2 games out of games #1-#5} = 2•( )

P{ X = 7} = 2•P{A loses 3 games out of games #1-#6} = 2•( )

(^7) = 5/16 also.

E[ X ] = 4•(1/8) + 5•(1/4) + (6 + 7)•(5/16) = 5.8125 games. Both teams are equally likely to win the Series, and both are equally likely to win in five games. (b) Let p denote the chances of winning at home and q = 1–p the chances of winning on the road. In both formats, the first four games are two at home and two on the road. Hence, A and B have the same chance p^2 q^2 of winning the Series in four games. Thus, P{ X = 4} = 2p^2 q^2. If a team is leading 3-1 after four games, then either it has lost one of its two home games or one of its two road games, and the probability of this is [2•p^3 q + 2•q^3 p] = 2pq•(p^2 + q^2 ) for each team. Hence, the Series is tied 2-2 after 4 games with probability 1 – 2p^2 q^2 – 4pq•(p^2 + q^2 ). Alternatively, the Series is tied 2-2 after 4 games with probability p^4 + q^4 + 4p^2 q^2 where the terms can be identified as the chances of home team always wins, home team always loses, and one loss in each stadium. Exercise: prove the two expressions are equal. Reality check: p^4 + q^4 + 4p^2 q^2 + 2p^2 q^2 + 2•[2•p^3 q + 2•q^3 p] = (p + q)^4 = 1 by the binomial theorem. Returning to the case when one team leads 3-1 after 4 games, A wins the Series (at home) in 5 games with probability 2pq•(p^2 + q^2 )•p in the AABBABA format and in 5 games (on the road) with probability 2pq•(p^2 + q^2 )•q in the AABBBAA format. B wins in 5 on the road with probability 2pq•(p^2 + q^2 )•q in the AABBABA format, and at home with probability 2pq•(p^2 + q^2 )•p in the AABBBAA format. Thus, P{ X = 5} = 2pq•(p^2 + q^2 ) in either format. Next, consider that if A leads 3-1 after 4 games, then it wins the Series 4-2 (on the road) with probability 2pq•(p^2 + q^2 )•q•q in the AABBABA format and (at home) with probability 2pq•(p^2 + q^2 )•p•p in the AABBBAA format. If B leads 3-1, then it wins the Series 4-2 (at home) with probability 2pq•(p^2 + q^2 )•p•p in the AABBABA format and (on the road) with probability 2pq•(p^2 + q^2 )•q•q in the AABBBAA format. On the other hand, if the Series is tied 2-2 after 4 games, then in either format, the next two games are home and away for both teams. Thus, A and B both have equal chance p•q of winning both. Hence, A wins 4-2 with probability 2pq•(p^2 + q^2 )•q•q + pq•(p^4 + q^4 + 4p^2 q^2 ) = 6p^3 q^3 + 3pq^5 + p^5 q in the AABBABA format (the terms correspond to one home and one road loss, two home losses, two road losses respectively. A wins 4-2 with probability 2pq•(p^2 + q^2 )•p•p + pq•(p^4 + q^4 + 4p^2 q^2 ) = 6p^3 q^3 + pq^5 + 3p^5 q in the AABBBAA format. For B, the probabilities of winning 4-2 are interchanged for the two formats.

of Illinois Page 4 of 4 Fall 2001

5. Since X takes on positive values only, E[ X ] = ∫

P{ X > u}du = area between CDF and line at height 1 to

the right of the origin = (1 – (1/2)•(1/2)•1) + 1/3 + 1/12 = 7/6 (see the three areas shaded below).

6. (Look, Ma! No integration!) The pdf is as shown below.

u

2–2u

f(u)

u

f(u)

u

f(u)

u

The total area under the curve is (1/2)×α×1 = α/2 which gives α = 2.

(a) P{6 X^2 > 5 X – 1} = P{6 X^2 – 5 X + 1 > 0} = P{(3 X – 1)(2 X – 1) > 0} = P[({ X > 1/3} ∩ { X > 1/2}) ∪ ({ X < 1/3} ∩ { X < 1/2})] = P[{ X > 1/2} ∪ { X < 1/3}] = 1 – P[1/3 ≤ X ≤ 1/2]. Now, P[1/3 ≤ X ≤ 1/2] = area under the pdf from 1/3 to 1/2. This is the difference of two triangular areas and is thus (1/2)×[(4/3)×(2/3) – 1×(1/2)] = 7/36. Hence, P{6 X^2 > 5 X – 1} = = 1 – P[1/3 ≤ X ≤ 1/2] = 1 – 7/36 = 29/36. (b) F X (u) is the area under the pdf upto the point u. By inspection, we have that F X (u) = 0 if u < 0 and

F X (u) = 1 if u > 1. For 0 ≤ u ≤ 1, F X (u) is the area shaded in the right–hand figure above = 1 – (1/2)×(1–u)×(2–2u) = 1 – (1–u)^2 = 2u – u^2.

(a) exp(x) is an increasing function, and exp(0) = 1. Since λ > 0, exp(λ(u–n/2)) > 1 for u > n/2. The series of inequalities is now obvious. In the sum for P{ X > n/2}, we replace 1•p X (u) by exp(λ(u–n/2))•p X (u) to get an upper bound, and then expand the sum to all u ≥ 0 to get an even looser bound. Finally, we invoke LOTUS in reverse to write the upper bound as an expectation.

(b) LOTUS gives E[exp(λ X )] = ∑

i=

n

exp(λi)•( )

n i p

i(1–p)n–i (^) =

i=

n

n i (exp(λ)•p)

i(1–p)n–i (^) = (p•exp(λ)+1–p)n

by the binomial theorem. Substituting in the Chernoff bound, we get P{ X > n/2} ≤ E[exp(λ( X –n/2))] = exp(–λn/2)•E[exp(λ X )] = exp(–λn/2)•(1 – p + p•exp(λ))n^ for λ > 0.

(c) The bound has value 2–n/2•(1+p)n^ for λ = ln 2 and pn/2•(2–p)n^ ≈ (4p)n/2^ if p is small and λ = – ln p.

(d) The derivative is (–n/2)•exp(–nλ/2)•(1–p+p•exp(λ))n^ + exp(–λn/2)•n•(1–p+p•exp(λ))n–1•p•exp(λ) and this equals 0 if (–n/2)•(1–p+p•exp(λ)) + n•p•exp(λ) = 0, i.e. at exp(λ) = (1–p)/p which gives a minimum.

The value of the bound at exp(λ) = (1–p)/p is [p/(1–p)]n/2•(2•(1–p))n^ = ( 2 p(1–p)) n^ = (4p)n/2•(1–p)n/2.

For small values of p, (1–p) is nearly 1, ln(1–p) is nearly 0 and thus λ = ln((1–p)/p) = ln(1–p) – ln p ≈ – ln p where the bound is has slightly larger value (4p)n/2.

(e) If p = 0.01, ( 2 p(1–p)) n/2^ ≤ 10 –5^ for n ≥ 8 which is a huge improvement over parts (c) or (d).

Who gets the raise? The balding guy with pointy tufts of hair, of course!