Solutions to ECE 313 Problem Set 8, University of Illinois, Assignments of Statistics

Solutions to problem set 8 of the ece 313 course offered by the university of illinois. It includes calculations and explanations related to continuous probability distributions, expected values, and geometric random variables.

Typology: Assignments

Pre 2010

Uploaded on 02/24/2010

koofers-user-f0b
koofers-user-f0b 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
University of Illinois Fall 2008
ECE 313: Solutions to Problem Set 8
1. (a) F(u) =
0u < 0,
u2,0u < 1,
1, u 1.
is a valid CDF. P{|X| >0.5}=P{X >0.5}= 1 F(0.5) = 3
4.
(b) F(u) =
0u < 1,
2uu2,1u2,
1, u > 2.
is not a valid CDF since F(1) = 1 > F (2) = 0.
(c) F(u) = (1
2exp(2u)u0,
11
4exp(3u), u > 0,is not a valid CDF since it is not right-continuous at 0.
(d) F(u) = (1
2exp(2u)u < 0,
11
4exp(3u), u 0,is a valid CDF.
P{|X | >0.5}= 1 P{|X | 0.5}= 1 (F(0.5) F(0.5)) = 1
2exp(1) + 1
4exp(1.5).
2. (a) P{X = 2}=FX(2+)FX(2) = 1
4,P{X <2}=FX(2) = 1
2,P{X >2}= 1 FX(2) = 1
4,
P{1 X 3}=FX(3) FX(1) = 7
81
4=5
8, and P{X >2| X >0}=P{X >2}
P{X >0}=2
7.
(b) E[X] is the area between the CDF and the line at height 1 as shown in the figure below. Elementary
geometry gives E[X] = 1
2×1×7
8+6
8+1
2+1
2×2×1
4=25
16 = 1.5625.
University Problem Set #8: Solutions ECE 313
of Illinois Page 1 of 2 Spring 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}
= P({X > 2}{X > 0})
P{X > 0} = 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.
Noncredit Exercise: How does this compare with the number reported by Eta Kappa Nu in their survey?
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.
3. If f(u) is a nonnegative (or nonpositive) function with finite nonzero area A, then A1·f(u) is a valid
pdf. If f(u) takes on both positive and negative values, then C·f(u) is not a valid pdf for any choice
of real number C.
(a) f(u)=2u, 0<u<1 is a valid pdf.
(b) f(u) = |u|,|u|<1
2is not a valid pdf, but 4 ·f(u) is.
(c) f(u)=1 |u|,|u|<1 is a valid pdf.
(d) f(u) = ln u, 0< u < 1 is not a valid pdf but f(u) is.
(e) f(u) = ln u, 0< u < 2 is not a valid pdf, nor is C·f(u) a valid pdf for any choice of C.
(f) f(u) = 2
3(u1),0< u < 3,is not a valid pdf, nor is C·f(u) a valid pdf for any choice of C.
(g) f(u) = exp(2u), u > 0 is not a valid pdf but 2 ·f(u) is.
(h) f(u)=4e2ueu, u > 0,is not a valid pdf, nor is C·f(u) a valid pdf for any choice of C.
(i) f(u) = exp(−|u|),|u|<1 is not a valid pdf but e/[2(e1)] ·f(u) is.
pf2

Partial preview of the text

Download Solutions to ECE 313 Problem Set 8, University of Illinois and more Assignments Statistics in PDF only on Docsity!

University of Illinois Fall 2008

ECE 313: Solutions to Problem Set 8

  1. (a) F (u) =

0 u < 0 , u^2 , 0 ≤ u < 1 , 1 , u ≥ 1.

is a valid CDF. P {|X | > 0. 5 } = P {X > 0. 5 } = 1 − F (0.5) = 34.

(b) F (u) =

0 u < 1 , 2 u − u^2 , 1 ≤ u ≤ 2 , 1 , u > 2.

is not a valid CDF since F (1) = 1 > F (2) = 0.

(c) F (u) =

1 2 exp(2u)^ u^ ≤^0 , 1 − 14 exp(− 3 u), u > 0 ,

is not a valid CDF since it is not right-continuous at 0.

(d) F (u) =

1 2 exp(2u)^ u <^0 , 1 − 14 exp(− 3 u), u ≥ 0 ,

is a valid CDF.

P {|X | > 0. 5 } = 1 − P {|X | ≤ 0. 5 } = 1 − (F (0.5) − F (− 0 .5)) = 12 exp(−1) + 14 exp(− 1 .5).

  1. (a) P {X = 2} = FX (2+) − FX (2−) =

, P {X < 2 } = FX (2−) =

, P {X > 2 } = 1 − FX (2) =

P { 1 ≤ X ≤ 3 } = FX (3) − FX (1−) =

, and P {X > 2 | X > 0 } =

P {X > 2 }

P {X > 0 }

(b) E[X ] is the area between the CDF and the line at height 1 as shown in the figure below. Elementary geometry gives E[X ] =

2 ×^1 ×

2 ×^2 ×^

16 = 1.^5625.

University Problem Set #8: Solutions ECE 313 of Illinois Page 1 of 2 Spring 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} = P({ X^ > 2}P{ X ∩> 0}{ X^ > 0})= P{P{ XX^ > 2}> 0} =

1 – F X (2+)

1 – F X (0+)

=^14 ×^87 = 2/7.

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.375 hours. Noncredit Exercise: How does this compare with the number reported by Eta Kappa Nu in their survey?

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)^1 =^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, ∫

ln u du = u ln u – u

= –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.

  1. If f (u) is a nonnegative (or nonpositive) function with finite nonzero area A, then A−^1 · f (u) is a valid pdf. If f (u) takes on both positive and negative values, then C · f (u) is not a valid pdf for any choice of real number C. (a) f (u) = 2u, 0 < u < 1 is a valid pdf. (b) f (u) = |u|, |u| < 12 is not a valid pdf, but 4 · f (u) is. (c) f (u) = 1 − |u|, |u| < 1 is a valid pdf. (d) f (u) = ln u, 0 < u < 1 is not a valid pdf but −f (u) is. (e) f (u) = ln u, 0 < u < 2 is not a valid pdf, nor is C · f (u) a valid pdf for any choice of C. (f) f (u) = 23 (u − 1), 0 < u < 3 , is not a valid pdf, nor is C · f (u) a valid pdf for any choice of C. (g) f (u) = exp(− 2 u), u > 0 is not a valid pdf but 2 · f (u) is. (h) f (u) = 4e−^2 u^ − e−u, u > 0 , is not a valid pdf, nor is C · f (u) a valid pdf for any choice of C. (i) f (u) = exp(−|u|), |u| < 1 is not a valid pdf but e/[2(e − 1)] · f (u) is.
  1. In the absence of any qualification of the phrase “at random”, the interpretation of the statement is that the position of the point is a random variable X that is uniformly distributed on the interval (0, L) (or the interval [0, L] if you prefer). The two segments of the line are of lengths X and L − X respectively. - If X <

L

, the ratio of the length of the shorter segment to the length of the longer segment is X L − X , and this ratio is smaller than^1 4 if X < L 5

  • If X >

L

, the ratio of the length of the shorter segment to the length of the longer segment is L − X X , and this ratio is smaller than^1 4 if X > 4 L 5

It is easy to determine that P {ratio < 1 / 4 } = P {X < L/ 5 } + P {X > 4 L/ 5 } = 2/5 by inspection. Anti-segregationists (that is, those who believe in integration) are asked to verify for themselves that ∫ (^) L/ 5

0

L

du +

∫ L

4 L/ 5

L

du =

  1. One measure of efficiency is the average distance from the point of breakdown to the nearest service station. Let X denote the location of the breakdown. Then, X is a random variable uniformly distributed on [0, 100]. Let g(X ) denote the distance from the breakdown to the nearest service station. The function is plotted for the two different cases, with the left depicting when stations are at the 0, 50, and 100 mile points and the one on the right when stations are at the 25, 50, and 100 mile points.

And so we need to calculate

E[g(X )] =

0

g(u)f (u) du =

0

g(u)

du

in the two cases. As in the previous problem, the hard way to do this is to write expressions for the various line segments and then integrate. The easier way is to recognize that we are, in essence, computing the area under the function g(u), and hence (via high-school geometry!)

E[g(X )] =

×

[

50 × 25 + 50 × 25

]

×

= 12.5 miles in the first case

and

E[g(X )] =

×

[

25 × 25 + 25 × 12 .5 + 25 × 12 .5 + 25 × 25

]

×

= 9.375 miles in the second case.

Consequently, it is more efficient to have the stations at the proposed distances. In fact, it would be even more efficient to have the service stations at miles 1006 = 16. 66.. ., 50, and 5006 = 83. 33... leading to a maximum distance of 16. 66... miles from a service station and an average distance of

E[g(X )] =

×

[

×

]

× 6 ×

= 8. 33... miles in the best case.

Sketch g(u) in this case and work it out!