1 / 23

Chris Morgan, MATH G160 csmorgan@purdue February 3, 2012 Lecture 11

Chris Morgan, MATH G160 csmorgan@purdue.edu February 3, 2012 Lecture 11. Chapter 5.3: Expectation (Mean) and Variance. Expected Value.

ilya
Download Presentation

Chris Morgan, MATH G160 csmorgan@purdue February 3, 2012 Lecture 11

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chris Morgan, MATH G160 csmorgan@purdue.edu February 3, 2012 Lecture 11 Chapter 5.3: Expectation (Mean) and Variance

  2. Expected Value Question: How do you determine the “value” of a game? Is it better to play Roulette than the Lottery? We are looking for ways of describing random variables. Definition of an Expected Value –The expected value of a random variable X with PMF is given by: –The expected value is a weighted average of the possible values of X, weighted by the probabilities.

  3. Expected Value We may interchangeably use the terms mean, average, expectation, and expected value and the notations E(X) or μ Note: The expected value of a random variable can be understood as the long-run-average value of the random variable in repeated independent trials. If you are playing a game, and X is what you win in the game, then E(X) would be your average win if you would play the game many manymanymanymanymanymanymanymany times.

  4. Example #1 Recall from last lecture: x P(x) 0 1/16 1 4/16 2 6/16 3 4/16 4 1/16

  5. Fundamental Expected-Value Formula Instead of E(X) we can also compute the expected value of a function of X. – If X is a discrete random variable with PMF and is any real valued function of X, then:

  6. Example #2 Recall from last lecture: I can also compute: x P(x) 0 1/16 1 4/16 2 6/16 3 4/16 4 1/16

  7. Example #3 Or I can compute: or even: x P(x) 0 1/16 1 4/16 2 6/16 3 4/16 4 1/16 So then: E(X+3) = E(X) + 3 E(2X) = 2*E(X) E(X2) ≠ E(X)2

  8. Expectation in a Linear Operator Let X be a random variable and a, b be constants. Then: Let X1,…,Xn be random variables. Then:

  9. Variance The definition of variance of a random variable is a measure of the spread of its distribution. It is the expected squared deviation from the mean: where μ = E[X] If we know the pmf of X then we can calculate the variance as follows: We can simplify the variance equation to this:

  10. Variance • Var(X) is always non-negative (Var(X) >= 0) • Sometimes, we’ll abbreviate: σ2 • - Var(X) is a measure of the spread of the random variable. If Var(X)=0, then the spread is zero, i.e. all the probability is concentrated in one point (nothing is random anymore). • - The variance is not measured in the same units that the random variable is measure in. (This is a disadvantage!)

  11. Example #4 Recall from last lecture: I can also compute: Then:

  12. Example #4 Theorem: Variance is not a linear operator! Let X be a random variable and a, b, c be constants. Then:

  13. Variance If X1, X2, …, Xn are independent, then:

  14. Standard Deviation Standard deviation of a random variable X is: Note: unlike variance, standard deviation is measured in the same units

  15. Practice #5 Let X be a discrete random variable with PMF: E(X)= Var(X)= E(2X-3)= Var(2x-3)=

  16. Practice #6 Let X be a RV with mean μ=5 and variance σ²=9 Find E((X-1)2). Find the standard deviation of X.

  17. Practice #7 For a game, you tell a friend that if a 6-sided die rolls a 2, you will pay her $2. If the die rolls a 3, she will pay you $3. Any other numbers (so 1, 4, 5, or 6) you pay her a quarter. Let W be the random variable representing your friend’s winnings.

  18. Practice #7 What is the pmf of W? What is the expected amount of money your friend will win?

  19. Practice #7 What is the standard deviation of your friend’s winnings?

  20. Practice #7 If you and your friend played this game 5 times, what would the overall expected value and standard deviation of your friend’s winnings be?

  21. Practice #8 If Var(Z) = 4, then find: Var(5) = Var(Z+1) = Var(2Z) = Var(aZ + b) = Var(b-aZ) =

  22. Practice #8 Given that the Var(Y) = 9 and the E(Y) = 4, can we find E(Y2)?

More Related