CS计算机代考程序代写 CMPUT 397 Worksheet on Probabilities January 13, 2021

CMPUT 397 Worksheet on Probabilities January 13, 2021
1. Compute the partial derivatives of f (x, y) = xln(y) with respect to (x, y). The partial derivatives are simply the derivatives for each variable, assuming the others are fixed. Com- puting each partial derivative uses the exact same rules as derivatives for single variables.
∇f(x,y) =
∂y
􏰀∂f(x,y)􏰁 ∂x
∂f(x,y)
1

CMPUT 397 Worksheet on Probabilities January 13, 2021
2. Consider the following game: you roll two (fair) 6-sided dice.
(a) What is the expected value of the sum of the two dice? (b) What is the variance of the sum of the two dice?
You win $1 if the sum of the dice roll is 2, 5, 7, 8 or 11. Otherwise, you lose $1.
(a) What is the expected value of the winnings for playing this game. In other words, how much money are you expected to gain (or lose).
(b) What is the variance of the winnings for this game?
(c) Would you play this game as stated above? How about if the amount won or lost was $100? How about $1000?
2

CMPUT 397 Worksheet on Probabilities January 13, 2021
3. Suppose that in a lottery you have 0.01% chance of winning and the prize is $1000. The ticket to enter the lottery costs you $10. What is the expected amount you would earn, when buying a ticket for this lottery?
3

CMPUT 397 Worksheet on Probabilities January 13, 2021
4. Adam and Martha propose a simple dice game to you. You can throw a die up to two times, and they will reward you with the amount equivalent to the face value of the die. If you throw a die once and 3 comes up, you can choose to take $3 or throw again. If you choose to throw again and 2 comes up, you earn only $2. The amount you earn is not additive and you only earn the amount of your last roll.
(a) Suppose in your first roll, the dice comes up as a 1. What is the expected amount you would earn in your second roll?
(b) For what values in your first roll should you re-roll the die?
(c) What is the expected amount you would earn in this game if you play optimally?
4

CMPUT 397 Worksheet on Probabilities January 13, 2021
5. Prove the tower property
E[X] = E [E[X|Y ]] .
E[X|Y ] is a random variable and can be thought of as a function g(Y ) of Y .
Hint :
5

CMPUT 397 Worksheet on Probabilities January 13, 2021
6. We say an estimator is unbiased if its expected value equals the true value of the parameter being estimated. For example, if we roll a die 10 times and denote the value of the ith roll to be Xi, then the sample mean (average roll) is an unbiased estimator of the true mean since
􏰀􏰂10 X􏰁
E i=1 i = E[X].
10
Where E[X] is the expected value of a roll.
Suppose you would like to estimate what the expected roll of a fair die is but you only have
a loaded die with probability mass function p ̃(x). Show that Y = X 1/6 is an unbiased p ̃ ( X )
estimator of the mean for a roll with a fair die, where X is the outcome of the loaded die.
6