Docsity

Solutions to Problem Set 2 - Probability with Engineering Applications | ECE 313, Assignments of Statistics

Toggle sidebar
bg1
University of Illinois Spring 2007
ECE 413: Solutions to Problem Set 4
1. (a) (b) The graphs are as shown below.
0
0.2
0.4
0 1 2 3 4 5 6 7 8 9 10
p = 0.1
p = 0.9
0
0.1
0.2
0.3
012345678910
p = 0.25
p = 0.75
0
0.1
0.2
0.3
0 1 2 3 4 5 6 7 8 9 10
p = 0.4
p = 0.6
p = 0.5
0
0.2
0.4
0 1 2 3 4 5 6 7 8 9 10
(c) The pmfs of Xpand X1−pare “reverses” of each other. For each choice of k,k=
0,1, . . . , 10, and any value of p,P{Xp=k}=P{X1−p= 10 −k}. Note that Xpcounts
the number of occurrences on 10 independent trials of an event Aof probability p. But,
if Xp=k, then the complementary event Ac(of probability 1 −p), must have occurred
10 −ktimes, and the number of occurrences of Acis counted by X1−p.
2. (a) Xdenotes a binomial random variable with parameters (N, p). It counts the number of
occurrences of an event Aof probability pon Nindependent trials. Y=N− X counts
the number of occurrences of Ac, an event of probability 1 −p, on the Nindependent
trials and is thus a binomial random variable with parameters (N, 1−p).
(b) P{X is even}=µN
0(1 −p)N+µN
2(1 −p)N−2p2+µN
4(1 −p)N−4p4+· · ·
Now, a minor extension to Problem 1(e) of Problem Set 2 shows that
(x+y)N+ (x−y)N= 2 ·µN
0xN+µN
2xN−2y2+· · · ¸, and so, setting x= 1 −p,
y=p, we get P{X is even}=1
2£(1 −p+p)N+ (1 −p−p)N¤=1
2£1 + (1 −2p)N¤.
Notice that the probability is 1/2 for p= 1/2.
3. Xtakes on values 0,1,2,3,4,5,6,7,8 with probabilities pX(i)1
256 ,8
256 ,28
256 ,56
256 ,70
256 ,56
256 ,28
256 ,8
256 ,1
256 .
(a) E[X] =
8
X
i=0
i·pX(i) = 4 by tedious calculation, or, more simply, E[X] = np = 4.
(b) Ytakes on values 1,2,3,0 with probabilities 28
256 ,8
256 ,1
256 , and 1 −28+8+1
256 =219
256 .
(c) i. E[Y] =
3
X
i=0
i·pY(i) = 47
256. ii. E[Y] =
8
X
i=0
max{X − 5,0} · pX(i) = 47
256
(d) The airline has collected $400 in fares from the passengers.
The operating cost is $200 + 10(X − Y ) and the airline pays out $70Yin returned fares
plus penalties. Thus, $Z= 400 −200 −10(X − Y)−70Y= 200 −10X − 60Yis the net
profit from the flight. Hence, E[Z] = 200 −10E[X]−60E[Y]≈$148.98 ....
Notice how LOTUS and the linearity of expectation allow us to ezily compute E[Z]
without finding the pmf of Zfirst.
pf2

Partial preview of the text

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

University of Illinois Spring 2007 ECE 413: Solutions to Problem Set 4

  1. (a) (b) The graphs are as shown below.

p = 0.

p = 0. 0

p = 0.

p = 0.

p = 0.

p = 0.

p = 0.

(c) The pmfs of Xp and X 1 −p are “reverses” of each other. For each choice of k, k = 0 , 1 ,... , 10, and any value of p, P {Xp = k} = P {X 1 −p = 10 − k}. Note that Xp counts the number of occurrences on 10 independent trials of an event A of probability p. But, if Xp = k, then the complementary event Ac^ (of probability 1 − p), must have occurred 10 − k times, and the number of occurrences of Ac^ is counted by X 1 −p.

  1. (a) X denotes a binomial random variable with parameters (N, p). It counts the number of occurrences of an event A of probability p on N independent trials. Y = N − X counts the number of occurrences of Ac, an event of probability 1 − p, on the N independent trials and is thus a binomial random variable with parameters (N, 1 − p).

(b) P {X is even} =

N

(1 − p)N^ +

N

(1 − p)N^ −^2 p^2 +

N

(1 − p)N^ −^4 p^4 + · · ·

Now, a minor extension to Problem 1(e) of Problem Set 2 shows that

(x + y)N^ + (x − y)N^ = 2

[(

N

xN^ +

N

xN^ −^2 y^2 + · · ·

]

, and so, setting x = 1 − p,

y = p, we get P {X is even} =

[

(1 − p + p)N^ + (1 − p − p)N^

]

[

1 + (1 − 2 p)N^

]

Notice that the probability is 1/2 for p = 1/2.

  1. X takes on values 0, 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 with probabilities pX (i) 2561 , 2568 , 25628 , 25656 , 25670 , 25656 , 25628 , 2568 , 2561.

(a) E[X ] =

∑^8

i=

i · pX (i) = 4 by tedious calculation, or, more simply, E[X ] = np = 4.

(b) Y takes on values 1, 2 , 3 , 0 with probabilities 25628 , 2568 , 2561 , and 1 − 28+8+1 256 = 219256.

(c) i. E[Y] =

∑^3

i=

i · pY (i) =

. ii. E[Y] =

∑^8

i=

max{X − 5 , 0 } · pX (i) =

(d) The airline has collected $400 in fares from the passengers. The operating cost is $200 + 10(X − Y) and the airline pays out $70Y in returned fares plus penalties. Thus, $Z = 400 − 200 − 10(X − Y) − 70 Y = 200 − 10 X − 60 Y is the net profit from the flight. Hence, E[Z] = 200 − 10 E[X ] − 60 E[Y] ≈ $148. 98.. .. Notice how LOTUS and the linearity of expectation allow us to ezily compute E[Z] without finding the pmf of Z first.

  1. Each die has probability 16 of matching your chosen number. Thus, the number of dice that match is a binomial random variable with parameters (3, 16 ).

(a) (b) You lose $6 if none of the dice show your chosen number. This occurs with probability ( (^5) 6

= 125216. If one of the dice matches, you win $6 with probability 3 · 16 ·

6

= 21675. You win $12 with probability 3 · 56 ·

6

= 21615 , and you win $18 with probability

6

Rationality test: 125 + 75 + 15 + 1 = 216.

(b) E[X ] = (−6)

(c) If all three dice show different numbers (which has probability 66 ··^56 ··^46 = 120216 of occurring), you win $1 on the three numbers but lose $1 on the other three for a net gain of $0. If two dice show the same number (which has probability 3 · 66 ··^16 ··^56 = 21690 of occurring) you win $2 for that number and $1 for the other number showing, but lose $1 on the remaining four for a net loss of $1. If all three dice show the same number (which has probability 6 · 16 ··^16 ··^16 = 2166 of occurring), you win $3 for that number, but lose $1 on the other five for a net loss of $2. Thus,

E[Y] = (0)

Thus, the average loss is the same regardless of whether you split your bet or not. Worse yet, your wealth will never increase if you split your bet: you will never win any money, whereas if you bet your money on one number, there is a small chance that you will be ahead at some time. (Do remember to quit while you are ahead, will ya?)

  1. (a) P {Y is even} = P {Y = 0} + P {Y = 2} + P {Y = 4} + · · · = exp(−λ)

[

λ^2 2!

λ^4 4!

]

= exp(−λ) cosh(λ) by recognizing the series in square brackets.

(b)

[

1 + (1 − 2 p)N^

]

[

2 λ N

)N ]

[1+exp(− 2 λ)] = exp(−λ)

exp(λ) + exp(−λ) 2 = exp(−λ) cosh(λ).

  1. (a) On average, E[X ] = 105 × 0 .9 = 94.5 passengers show up for the flight. (b) P {X ≤ 100 } = 1 − P {X > 100 } = 1 − P {X = 101} − P {X = 102} − P {X = 103} − P {X = 104} − P {X = 105} = 1 −

101

(0.9)^101 (0.1)^4 −

102

(0.9)^102 (0.1)^3 −

103

(0.9)^103 (0.1)^3 −

104

( (0.9)^104 (0.1)^1 −

105 105

(0.9)^105 (0.1)

4

(0.9)^101 (0.1)^4 −

3

(0.9)^102 (0.1)^3 −

2

(0.9)^103 (0.1)^3 −

1

(0.9)^104 (0.1)^1 −

0

(0.9)^105 (0.1) = 0. 9832...

(c) We saw earlier that if X is a binomial random variable with parameters (n, p), then Y = n − X is a binomial random variable with parameters (n, 1 − p). (d) P {Y ≥ 5 } = 1 − P {Y = 0} − P {Y = 1} − P {Y = 2} − P {Y = 3} − P {Y = 4}

= 1 − exp(− 10 .5)

[

(10.5)^2

(10.5)^3

(10.5)^4

]

  1. (a) Your net worth decreases by $1 with probability 3132 and increases by $28 with probability 1 32 for an average^ loss^ of $^

3 32 per drawing. A fair bet would have a prize of $32, not $29. (b) Let X denote the number of the trial on which 7 occurs for the first time. Then, X is a geo-

metric random variable with parameter 321. Your winnings are $Y =

$29 − X , X ≤ 29 ,

−$29, X > 29 ,

and LOTUS gives $E[Y] = −$1. 80529.. .. On average, you lose less than (29 × $ 323 ), be- cause you don’t always bet on all 29 draws; you prudently stop when you have won.

(c) P {X > 21 } =

= 0.5133884, and so you lose $1 with probability 0.

and win $1 with probability 1 − 0 .5133884 = 0.4866116 for an average loss of $0. per Minibucks ticket.