Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y,...

13
Mean and Variance for Continuous R.V.s

description

Expected Value, E[g(Y)] For a continuous random variable Y, define the expected value of a function of Y as Again, this parallels our earlier definition for the discrete case:

Transcript of Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y,...

Page 1: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Mean and Variance for Continuous R.V.s

Page 2: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Expected Value, E(Y)

• For a continuous random variable Y, define the expected value of Y as

( ) ( ) , if it exists.E Y y f y dy

• Note this parallels our earlier definition for the discrete random variable:

( ) ( )y

E Y y p y

Page 3: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Expected Value, E[g(Y)]

• For a continuous random variable Y, define the expected value of a function of Y as

[ ( )] ( ) ( ) , if it exists.E g Y g y f y dy

• Again, this parallels our earlier definition for the discrete case:

[ ( )] ( ) ( )y

E g Y g y p y

Page 4: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Properties of Expected Value

• In the continuous case, all of our earlier properties for working with expected value are still valid.

( ) ( )E c c f y dy c

( ) ( )E aY b aE Y b

1 2 1 2[ ( ) ( )] [ ( )] [ ( )]E g Y g Y E g Y E g Y

Page 5: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Properties of Variance

• In the continuous case, our earlier properties for variance also remain valid.

2 2 2( ) [( ) ] ( ) [ ( )]V Y E Y E Y E Y

2( ) ( )V aY b a V Y

and

Page 6: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Problem 4.16

• Find the mean and variance of Y, given

0.2, 1 0( ) 0.2 1.2 , 0 1

0, otherwise

yf Y y y

Page 7: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Problem 4.26• Suppose CPU time used (in hours) has distribution:

2(3/ 64) (4 ), 0 4( )

0, otherwisey y y

f Y

• Find the mean and variance of Y.• If CPU charges are $200 per hour, find the mean

and variance for CPU charges.• Do you expect the CPU charge to exceed $600

very often?

Page 8: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

The Uniform Distribution

Page 9: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Equally Likely

• If Y takes on values in an interval (a, b) such that any of these values is equally likely, then

, for a( )

0, otherwisec y b

f y

• To be a valid density function, it follows that1c

b a

Page 10: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Uniform Distribution

• A continuous random variable has a uniform distribution if its probability density function is given by

1 , for a( )

0, otherwise

y bf y b a

Page 11: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Uniform Mean, Variance

• Upon deriving the expected value and variance for a uniformly distributed random variable, we find

( )2

a bE Y

is the midpoint of the interval

2( )( )12

b aV Y and

Page 12: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Example

• Suppose the round-trip times for deliveries from a store to a particular site are uniformly distributed over the interval 30 to 45 minutes.

• Find the probability the delivery time exceeds 40 minutes.

• Find the probability the delivery time exceeds 40 minutes, given it exceeds 35 minutes.

• Determine the mean and variance for these delivery times.

Page 13: Mean and Variance for Continuous R.V.s. Expected Value, E(Y) For a continuous random variable Y, define the expected value of Y as Note this parallels.

Problem 4.42

• In an experiment, times are recorded and the measurement errors are assumed to be uniformly distributed between – 0.05 and + 0.05 s (“microseconds”).

• Find the probability the measurement is accurate to within 0.01 s.

• Find the mean and variance for the errors.