Problem Set 5 Solutions - Probability with Engineering Application | ECE 313, Assignments of Statistics

Material Type: Assignment; Class: Probability with Engrg Applic; Subject: Electrical and Computer Engr; University: University of Illinois - Urbana-Champaign; Term: Summer 2003;

Typology: Assignments

Pre 2010

Uploaded on 03/16/2009

koofers-user-56e
koofers-user-56e 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
University Problem Set #5: Solutions ECE 313
of Illinois Page 1 of 4 Summer 2003
1. (a) FX(1) = 1, FX(3/2) = 3/4. Thus, FX(u) is not a nondecreasing function and thus cannot be a valid CDF.
(b) Yes. FX(u) is a valid CDF, and is continuous except at u = 0.
P{|X| > 0.5} = 1 -–P{|X| 0.5} = 1 – (FX(0.5) – FX(–0.5)) = 1 – (FX(0.5) – FX(–0.5))
= 1 -–(1 – (1/4)exp(–3/2) – (1/2)exp(–1)) = (1/4)exp(–3/2) + (1/2) exp(–1).
(c) FX(u) is not right continuous at u = 0 and thus cannot be a valid CDF.
2.(a) P(works for exactly 2 hours) = P{X = 2} = FX(2+) – FX(2) = 1/4.
(b) P(works for more than 2 hours) = P{X > 2} = 1 – FX(2+) = 1/4.
(c) P(works for less than 2 hours) = P{X < 2} = FX(2) = 1/2.
(d) P(works for exactly 3 hours) = P{X = 3} = FX(3+) – FX(3) = 0.
(e) P(works for more than 1/2 but less than 3 hours) = P{1/2 < X < 3} = FX(3) – FX((1/2)+) = 7/8 – 3/16 =
11/16.
(f) P(works for more than 2 hours given that the student works at all) = P{X > 2|X > 0}
= }0{
}0{}2{
>
>>
X
XXP = P{X > 2}
P{X > 0} =
1 – FX(2+)
1 – FX(0+) = 1
4 ×8
7 = 2/7.
1
1234
F(u)
u
0.5
0.75
0.25
(g) The CDF is as shown, and as discussed in class, E[X] = shaded area between CDF and the line at height 1.
By elementary geometry, the shaded area is 1× (7/8 + 6/8)/2 + 1/2 + (1/2) × (2) × (1/4) = 22/16 = 1.375
hours.
3.(a) E[X] =
0
P{X>u}du =
0
1
P{X>u}du +
1
2
P{X>u}du +
2
3
P{X>u}du + … But, X takes on only integer
values. Thus, for any given nonnegative integer k, it must be that for all u [k,k+1), P{X > u} = P{X >
k}. Hence,
k
k+1
P{X > u} du = P{X > k} and thus E[X] = P{X >0} + P{X >1} + … =
k=0
P{X > k} .
This is the CompE version: some spoilsport EEs insist on writing this result as E[X] =
k=1
P{X k} .
(b) If X is a geometric random variable with parameter p, then P{X > k} = P{first k trials ended in failure}
= (1–p)k. This formula holds even when k = 0, since obviously P{X > 0} = 1.
Hence, E[X] =
k=1
P{X k} =
k=0
P{X > k} =
k=0
(1–p)k = 1 + (1–p) + (1–p)2 + … = 1
1 – (1–p) = 1
p
4.(a) This is a valid pdf. (b) This is a valid pdf.
(c) This is not a valid pdf because the function is negative for 0 < u < 1. However,
0
1
ln u du = u ln u – u
1
0
= –1, so –ln u, u (0,1) is a valid pdf.
(d) This is not a valid pdf because the function is negative for u (0,1). Also, since the function is positive
for u (1,2), Cf(u) cannot be a valid pdf for any C.
(e) This is a valid pdf.
pf3
pf4

Partial preview of the text

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

of Illinois Page 1 of 4 Summer 2003

1. (a) F X (1) = 1, F X (3/2) = 3/4. Thus, F X (u) is not a nondecreasing function and thus cannot be a valid CDF.

(b) Yes. F X (u) is a valid CDF, and is continuous except at u = 0.

P{| X | > 0.5} = 1 -–P{| X | ≤ 0.5} = 1 – (F X (0.5) – F X (–0.5–)) = 1 – (F X (0.5) – F X (–0.5)) = 1 -–(1 – (1/4)exp(–3/2) – (1/2)exp(–1)) = (1/4)exp(–3/2) + (1/2) exp(–1). (c) F X (u) is not right continuous at u = 0 and thus cannot be a valid CDF.

2.(a) P(works for exactly 2 hours) = P{ X = 2} = F X (2 +^ ) – F X (2 – ) = 1/4.

(b) P(works for more than 2 hours) = P{ X > 2} = 1 – F X (2 +^ ) = 1/4.

(c) P(works for less than 2 hours) = P{ X < 2} = F X (2 – ) = 1/2.

(d) P(works for exactly 3 hours) = P{ X = 3} = F X (3 +^ ) – F X (3 – ) = 0.

(e) P(works for more than 1/2 but less than 3 hours) = P{1/2 < X < 3} = F X (3 – ) – F X ((1/2) +^ ) = 7/8 – 3/16 =

11/16.

(f) P(works for more than 2 hours given that the student works at all) = P{ X > 2| X > 0}

X

P X X

P{ X > 2}

P{ X > 0} =

1 – F X (2 +^ )

1 – F X (0 +^ )

4 ×

F(u)

u

(g) The CDF is as shown, and as discussed in class, E[ X ] = shaded area between CDF and the line at height 1.

By elementary geometry, the shaded area is 1× (7/8 + 6/8)/2 + 1/2 + (1/2) × (2) × (1/4) = 22/16 = 1. hours.

3.(a) E[ X ] = ⌡⌠

0

P{ X >u}du = ⌡⌠

0

1

P{ X >u}du + ⌡⌠

1

2

P{ X >u}du + ⌡⌠

2

3 P{ X >u}du + … But, X takes on only integer

values. Thus, for any given nonnegative integer k, it must be that for all u ∈ [k,k+1), P{ X > u} = P{ X >

k}. Hence, ⌡⌠

k

k+

P{ X > u} du = P{ X > k} and thus E[ X ] = P{ X >0} + P{ X >1} + … = ∑

k=

∞ P{ X > k}.

This is the CompE version: some spoilsport EEs insist on writing this result as E[ X ] = ∑

k=

∞ P{ X ≥ k}.

(b) If X is a geometric random variable with parameter p, then P{ X > k} = P{first k trials ended in failure}

= (1–p) k. This formula holds even when k = 0, since obviously P{ X > 0} = 1.

Hence, E[ X ] = ∑

k=

P{ X ≥ k} = ∑

k=

∞ P{ X > k} = (^) ∑ k=

∞ (1–p) k^ = 1 + (1–p) + (1–p) 2 + … =

1 – (1–p) =

p

4.(a) This is a valid pdf. (b) This is a valid pdf.

(c) This is not a valid pdf because the function is negative for 0 < u < 1. However, ⌡⌠

ln u du = u ln u – u

^1

= –1, so –ln u, u ∈ (0,1) is a valid pdf. (d) This is not a valid pdf because the function is negative for u ∈ (0,1). Also, since the function is positive

for u ∈ (1,2), Cf(u) cannot be a valid pdf for any C. (e) This is a valid pdf.

of Illinois Page 2 of 4 Summer 2003

(f) Although ⌡⌠

(2/3)(u–1) du = (1/3)(u–1) 2

^3

= 1, this is not a valid pdf because the function is negative for

u ∈ (0,1). Also, since the function is positive for u ∈ (1,3), Cf(u) cannot be a valid pdf for any C.

(g) Since ⌡⌠

exp(–2u)du = 1/2, this is not a valid pdf. However, 2 exp(–2u), u ∈ (0,∞) is a valid pdf; it is the

exponential density with parameter 2.

(h) Although ⌡⌠

4exp(–2u) – exp(–u)du = 2 – 1 = 1, this is not a valid pdf because the function is negative for

u > ln 4. Since the function is positive for u < ln 4, Cf(u) cannot be a valid pdf for any C.

5. 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.

6.(a) No, the tank is empty after 500 gallons have been sold, and towards the end of the week, the people asking for the extra 180 gallons are s.o.l. (b) Sure, with 70 gallons to spare. (c) The weekly demand can be satisfied if it (the demand) does not exceed 0.5. Thus,

P{ X ≤ 0.5} =

5(1 – u)^4 du = –(1 – u)^5

0

1 2

5

31 32

(d) We want the smallest value of C such that P{ X > C} ≤ 10 –5. But,

P{ X > C} = ⌡⌠

C

5(1 – u)^4 du = –(1 – u)^5

^1

C

= (1 – C)^5 ≤ 10 –5 if C ≥ 0.9. Thus, a 900 gallon tank is

required to achieve the desired goal. (e,f,g) Let Y denote the amount of gasoline sold per week (measured in thousands of gallons). Then,

Y = (^) 

X if X ≤ C, Cif X > C. Hence, the weekly gross profit is 640 Y , and the^ average^ weekly^ gross^ profit is

E[640 Y ] = ⌡⌠

C

5(1–u) 4 640u du + ⌡⌠

C

5(1–u) 4 640C du =

640 6 [1 – (1 – C)^

(^6) ]. As a function of C, the size of the

tank, this increases from 0 if C = 0 (no tank!) to $640/6 if C = 1. Now, the average net profit

of Illinois Page 4 of 4 Summer 2003

(d) The electrical charge is uniformly distributed on the surface of the sphere. The surface charge density is S =Q/4π R^2 >Q/4π. For x>Q/4π, F S (x) = P{ S ≤ x} = P{Q/4π R^2 ≤ x} = P{1 > R ε Q/4πx } = 1 – (Q/4πx)1.5.

Hence, f S (x) = (3/2x)(Q/4πx)1.5 for x > Q/4π, and 0 otherwise.

10.(a) If X ≥ H, he sells all the papers. This event occurs with probability P{ X ≥ H} = 1 – F X (H –^ )

= 1 – F X (H–1). (Why on earth does F X (H –^ ) equal F X (H–1)?)

(b) If demand X ≤ H, the newsboy sells X papers and returns H– X papers to the publishers. Thus, his profit is (c 3 – c 2 ) X – (c 2 – c 1 )(H– X ) = (c 3 – c 1 ) X – (c 2 – c 1 )H. Otherwise, X > H, and the profit is (c 3 – c 2 )H. Hence, Z is related to X and H as

Z = 

(c 3 – c 1 )^ X^ – (c 2 – c 1 )H,0^ ≤^ X^ ≤^ H, (c 3 – c 2 )H, X > H.

(c) LOTUS gives E[ Z ] = ∑

k=

H

p X (k)[(c 3 – c 1 )k – (c 2 – c 1 )H] + ∑

k=H+

∞ p X (k)(c 3 – c 2 )H = g(H). Note that we can

factor out (c 3 – c 2 )H from the second sum and simplify it to (c 3 – c 2 )HP{ X ≥ H+1} = (c 3 – c 2 )H(1–F X (H)).

(d) The extra ((H+1)-th) paper provides extra profit of (c 3 – c 2 ) cents if X > H (which occurs with probability

1 – F X (H)) and a loss of (c 2 – c 1 ) cents if^ X^ ≤^ H (which occurs with probability F X (H)). Hence, the average additional profit when one extra paper (over and above the usual number H) is purchased is given by A(H) = (c 3 – c 2 )(1 – F X (H)) – (c 2 – c 1 )F X (H) = (c 3 – c 2 ) – (c 3 – c 1 )F X (H).

(e) The CDF is a non-decreasing function, i.e.… F X (H–1) ≤ F X (H) ≤ F X (H+1) …, and hence A(H) is a non-

increasing function of H, i.e. … A(H–1) ≥ A(H) ≥ A(H+1) … (f) A(H) = (c 3 – c 2 ) – (c 3 – c 1 )F X (H) ≤ 0 if F X (H) ≥ (c 3 – c 2 )/(c 3 – c 1 ). But, c 3 – c 1 > c 3 – c 2 > 0, that is,

0 < (c 3 – c 2 )/(c 3 – c 1 ) < 1 so that as H increases, F X (H) eventually exceeds the quantity (c 3 – c 2 )/(c 3 – c 1 ) as it increases towards its limiting value F X (∞) = 1.

(g) Extra papers mean extra profits as long as A(H) > 0. Since A(H) is negative for large H, let H 0 denote the

smallest integer for which A(H 0 ) ≤ 0, i.e. H 0 is the smallest integer for which F X (H 0 ) ≥ (c 3 – c 2 )/(c 3 – c 1 ). This is the number of papers that should be bought. (If F X (H 0 ) = (c 3 – c 2 )/(c 3 – c 1 ) exactly, the additional average profit from the (H 0 +1)-th paper is 0. Why work harder than you have to?)