Docsity

Approach 1 & 2 for Expectation of Sum with Conditional Expectation & Simulation, Exams of Probability and Statistics

Toggle sidebar
bg1
Bonus Question 6 (By Yijiang Li)
Approach 1 (Using the properties of Conditional Expectation)
E (Y)= E [E (Y|N)]
Property of Conditional Expectation
= E [E (y1+y2+y3+…+ yN-1+yN|N)]
Y is the sum of the numbers facing up, and we treat N as a Random Variable
= E [E (y1|N) + E (y2|N) + E (y3|N) +…+ E (yN-1|N) + E (yN|N)]
Property of Conditional Expectation
= E [3*(N-1) + 6]
For each casting before the last one, E (yi|N) is 3 (0<=i<N); And For the last casting E (yN|N) = 6
= 3*E [N] + 3
Expectation is a linear operation
= 3*6 + 3
For Geometric Distribution: E (N) = 1/p = 6; or we can calculate using the formula mentioned in
class.
= 21
Approach 2 (Using R to simulate the process or to verify the results)
This method cannot give us a very accurate value, since the nature of simulation. However, it can be
used as a way to verify our final results.
See the attached Bonus6_Li.R for more information.

Partial preview of the text

Download Approach 1 & 2 for Expectation of Sum with Conditional Expectation & Simulation and more Exams Probability and Statistics in PDF only on Docsity!

Bonus Question 6 (By Yijiang Li)

Approach 1 (Using the properties of Conditional Expectation)

E (Y)= E [E (Y|N)]

Property of Conditional Expectation

= E [E (y 1 +y 2 +y 3 +…+ yN-1+yN|N)] Y is the sum of the numbers facing up, and we treat N as a Random Variable

= E [E (y 1

|N) + E (y 2

|N) + E (y 3

|N) +…+ E (y N-

|N) + E (y N

|N)]

Property of Conditional Expectation

= E [3*(N-1) + 6]

For each casting before the last one, E (y i

|N) is 3 (0<=i<N); And For the last casting E (y N

|N) = 6

= 3*E [N] + 3

Expectation is a linear operation

For Geometric Distribution: E (N) = 1/p = 6; or we can calculate using the formula mentioned in class.

Approach 2 (Using R to simulate the process or to verify the results)

This method cannot give us a very accurate value, since the nature of simulation. However, it can be used as a way to verify our final results.

See the attached Bonus6_Li.R for more information.