Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapters 7 and 10: Expected Values of Two or More Random Variables

Similar presentations


Presentation on theme: "Chapters 7 and 10: Expected Values of Two or More Random Variables"— Presentation transcript:

1 Chapters 7 and 10: Expected Values of Two or More Random Variables http://blogs.oregonstate.edu/programevaluation/2011/02/18/timely-topic-thinking-carefully/

2 Covariance

3 Joint and marginal PMFs of the discrete r.v. X (Girls) and Y (Boys) for family example Boys, B 012 3 Total Girls, G 00.150.100.08670.03670.3734 10.100.17670.113300.3900 20.08670.1133000.2000 30.0367000 Total0.37340.39000.20000.03671.0001

4 Example: Covariance(1) A nut company markets cans of deluxe mixed nuts containing almonds, cashews and peanuts. Suppose the net weight of each can is exactly 1 lb, but the weight contribution of each type of nut is random. Because the three weights sum to 1, a joint probability model for any two gives all necessary information about the weight of the third type. Let X = the weight of almonds in a selected can and Y = the weight of cashews. The joint PDF is f X (x) = 12x (1 – x) 2, f Y (y) = 12y (1 – y) 2 What is the Cov(X,Y)?

5 Example: Covariance (2) a) Let X be uniformly distributed over (0,1) and Y= X 2. Find Cov (X,Y). b) Let X be uniformly distributed over (-1,1) and Y = X 2. Find Cov (X,Y).

6 Example: Correlation (1) a) Let X be uniformly distributed over (0,1) and Y= X 2. Find Cov (X,Y). b) Let X be uniformly distributed over (-1,1) and Y = X 2. Find Cov (X,Y).

7 Example 7.20: Correlation (2) Suppose that A and B are events with positive probability. Show that I A and I B are positively correlated, negatively correlated, or uncorrelated depending on whether P(B|A) is greater than, less than, or equal to P(B). x

8 Example: Correlation (3) A nut company markets cans of deluxe mixed nuts containing almonds, cashews and peanuts. Suppose the net weight of each can is exactly 1 lb, but the weight contribution of each type of nut is random. Because the three weights sum to 1, a joint probability model for any two gives all necessary information about the weight of the third type. Let X = the weight of almonds in a selected can and Y = the weight of cashews. The joint PDF is f X (x) = 12x (1 – x) 2, f Y (y) = 12y (1 – y) 2, Cov(X,Y)=-0.0267 What is the  (X,Y)?

9 Example: Correlation (4) a) Let X be uniformly distributed over (0,1) and Y= X 2. Find  (X,Y). b) Let X be uniformly distributed over (-1,1) and Y = X 2. Find Cov (X,Y).

10 Table : Conditional PMF of Y (Boys) for each possible value of X (Girls) Boys, B 012 3 p X (x) Girls, G 00.40170.26780.23220.09830.3734 10.25640.45310.290500.3900 20.43350.5665000.2000 310000.0367 p Y (y)0.37340.39000.20000.0367 Determine and interpret the conditional expectation of the number of boys given the number of girls is 2?

11 Example: Conditional Expectation A nut company markets cans of deluxe mixed nuts containing almonds, cashews and peanuts. Suppose the net weight of each can is exactly 1 lb, but the weight contribution of each type of nut is random. Because the three weights sum to 1, a joint probability model for any two gives all necessary information about the weight of the third type. Let X = the weight of almonds in a selected can and Y = the weight of cashews. The joint PDF is f X (x) = 12x (1 – x) 2, f Y (y) = 12y (1 – y) 2 What is the conditional expectation of Y given X = x?

12 Example 7: Law of Total Expectation Supposed that we know that the average height of 2 men is 6’ = 72” and the average height of 3 women is 5’5” = 65”. a) Determine the mean height of all of the people. b) Formulate the work in part (a) in ‘probability’. x

13 Table : Conditional PMF of Y (Boys) for each possible value of X (Girls) Boys, B 012 3 p X (x) Girls, G 00.40170.26780.23220.09830.3734 10.25640.45310.290500.3900 20.43350.5665000.2000 310000.0367 p Y (y)0.37340.39000.20000.0367

14 Example: Double Expectation (1) Suppose that N(t), the number of people who pass by a museum at or prior to t, is a Poisson process having rate λ. If a person passing by enters the museum with probability p, what is the expected number of people who enter the museum at or prior to t? x

15 Example: Double Expectation (2) A quality control plan for an assembly line involves sampling n finished items per day and counting X, the number of defective items. Let p denote the probability of observing a defective item. p varies from day to day and is assume to have a uniform distribution in the interval from 0 to ¼. a) Find the expected value of X for any given day.

16 Example: Conditional Variance A nut company markets cans of deluxe mixed nuts containing almonds, cashews and peanuts. Suppose the net weight of each can is exactly 1 lb, but the weight contribution of each type of nut is random. Because the three weights sum to 1, a joint probability model for any two gives all necessary information about the weight of the third type. Let X = the weight of almonds in a selected can and Y = the weight of cashews. The joint PDF is f X (x) = 12x (1 – x) 2, f Y (y) = 12y (1 – y) 2 What is the conditional variance of Y given X = x?

17 Example: Law of Total Variance A fisherman catches fish in a large lake with lots of fish at a Poisson rate (Poisson process) of two per hour. If, on a given day, the fisherman spends randomly anywhere between 3 and 8 hours fishing, find the expected value and variance of the number of fish he catches.


Download ppt "Chapters 7 and 10: Expected Values of Two or More Random Variables"

Similar presentations


Ads by Google