Question

In: Statistics and Probability

Suppose you role a die twice in succession, getting X1 and X2. Then divide them, getting...

Suppose you role a die twice in succession, getting X1 and X2. Then divide them, getting Y=X1X2. Thus, Y

is discrete, ranging from a minimum of 1/6 to a maximum of 6.

X1 = c(1,2,3,4,5,6)
X2 = c(1,2,3,4,5,6)

Y = c()

for (i in X1) {
  for (j in X2) {
     Y = c(Y, i/j)
  }
}

Find the mean of the Y.

Simulate 10,000 (or more) iid observations Yi(=Xi1Xi2)

. Draw the graph of successive average (cumulative mean) of these Ys. Discuss your observations.

Solutions

Expert Solution

R code:

x1=c(1,2,3,4,5,6)
x2=c(1,2,3,4,5,6)
y=c()
for( i in x1)
{
for (j in x2)
{
y=c(y,i/j)
}
}
y
mean(y)
n=100000
k= sample(y,n,replace= TRUE)
cummean= c()
cummean[1]=k[1]
for (i in 2:length(k))
{
cummean[i] = (i-1)/i*cummean[i-1] + k[i]/i
}
x=seq(1,n)
plot(x,cummean)

mean(y) = 1.4292

simulation is done in the variable k :

[1] 1.5000000 1.0000000 2.0000000 0.1666667 2.0000000 0.4000000 3.0000000
[8] 2.0000000 1.5000000 0.1666667 2.0000000 1.6666667 1.3333333 0.2000000
[15] 0.6000000 1.3333333 3.0000000 4.0000000 1.5000000 0.1666667 2.0000000
[22] 4.0000000 0.5000000 1.6666667 0.5000000 2.5000000 0.3333333 1.0000000
[29] 1.3333333 1.6666667 0.8333333 1.0000000 1.0000000 1.2500000 6.0000000
[36] 0.2500000 0.2000000 3.0000000 1.6666667 1.0000000 1.0000000 1.0000000
[43] 0.5000000 5.0000000 0.5000000 0.8000000 0.4000000 1.0000000 1.5000000
[50] 1.6666667 1.0000000 5.0000000 1.2000000 0.7500000 1.5000000 1.0000000.........

The plot says that, as the sample increases the cumulative mean goes to the population mean i.e. mean of y.


Related Solutions

True or False and explain: a) If a die is rolled twice, the chance of getting...
True or False and explain: a) If a die is rolled twice, the chance of getting at least on ace is 1/6 + 1/6 =1/3 b) If a coins is tossed twice, the chance of getting at least one head is 100%
2.2.8. Suppose X1 and X2 have the joint pdf f(x1, x2) = " e−x1 e−x2 x1...
2.2.8. Suppose X1 and X2 have the joint pdf f(x1, x2) = " e−x1 e−x2 x1 > 0, x2 > 0 0 elsewhere . For constants w1 > 0 and w2 > 0, let W = w1X1 + w2X2. (a) Show that the pdf of W is fW (w) = " 1 w1− w2 (e−w/w1 − e−w/w2) w > 0 0 elsewhere . (b) Verify that fW (w) > 0 for w > 0. (c) Note that the pdf fW...
19. Suppose you find that MU1( x1,x2)=2x2 and MU2( x1,x2)=2x1. What is the rate at which...
19. Suppose you find that MU1( x1,x2)=2x2 and MU2( x1,x2)=2x1. What is the rate at which the consumer is willing to trade good 2 for good 1 at bundle (2,4)? (Note: enter a positive number, i.e. enter the quantity of good 2 that the consumer is willing to give up for an additional—marginal—unit of good 1.) 20. Suppose you find that the expressions of the marginal utilities for a consumer are given by MU1( x1,x2)=1 and MU2( x1,x 2)=3. Then...
Suppose there are 2 goods, x1 and x2. The price of x1 goes up. x1 is...
Suppose there are 2 goods, x1 and x2. The price of x1 goes up. x1 is inferior, and x2 is normal. Using income and substitution effects, show which of the claims below is correct. Question options: x1 will decrease in quantity, but x2 will go up x1 may increase or decrease in quantity, the same is true for x2 the quantity of both goods will go down the quantity of both goods will go up
Example : In rolling a die once , suppose that the event A is getting an...
Example : In rolling a die once , suppose that the event A is getting an even number and the event B is getting a prime number and the event C is getting the five calculate the following probabilities : 1) P(A) , P(B) , P( C ) 2) ??∪?, ??∩?, ? ?∩??, ???, ? (??P(A∪B), P(A∩B), P( A∩B^c ), P(A^c ), p (B^c)   ------------------------- Example : A coin is tossed three times , suppose that the event A is...
Suppose that X1 and X2 are two random variables. Suppose that X1 has mean 1 and...
Suppose that X1 and X2 are two random variables. Suppose that X1 has mean 1 and variance 4 while X2 has mean 3 and variance 9. Finally, suppose that the correlation between X1 and X2 is 3/8. Denote Y = 2X1 − X2. (67) The mean of Y is (a) 1 (b) 4 (c) -2 (d) -1 (68) The variance of Y is (a) 25 (b) 4 (c) 9 (d) 16 (69) The standard deviation of Y is (a) 5...
Suppose X1,  X2,  X3 are i.i.d. Exp( λ ), and that we observe the realizations X1 = 1.0,  X2...
Suppose X1,  X2,  X3 are i.i.d. Exp( λ ), and that we observe the realizations X1 = 1.0,  X2 = 2.0, and X3 = 3.0. What is the maximum likelihood estimate of Pr(X1> 2)? Please explain your steps/answers if possible.
Suppose that a firm has the p production function f(x1; x2) = sqrt(x1) + x2^2. (a)...
Suppose that a firm has the p production function f(x1; x2) = sqrt(x1) + x2^2. (a) The marginal product of factor 1 (increases, decreases, stays constant) ------------ as the amount of factor 1 increases. The marginal product of factor 2 (increases, decreases, stays constant) ----------- as the amount of factor 2 increases. (b) This production function does not satisfy the definition of increasing returns to scale, constant returns to scale, or decreasing returns to scale. How can this be? (c)Find...
Suppose a 6-sided die and a 7-sided die are rolled. What is the probability of getting...
Suppose a 6-sided die and a 7-sided die are rolled. What is the probability of getting sum less than or equal to 5 for the first time on the 4th roll? Show your work to receive credit.
Suppose that a consumer has a utility function U(x1,x2) = x1 ^0.5 x2^0.5 . Initial prices...
Suppose that a consumer has a utility function U(x1,x2) = x1 ^0.5 x2^0.5 . Initial prices are p1 =1and p2 =1,andincomeism=100. Now, the price of good1 increases to 2. (a) On the graph, please show initial choice (in black), new choice (in blue), compensating variation (in green) and equivalent variation (in red). (b) What is amount of the compensating variation? How to interpret it? (c) What is amount of the equivalent variation? How to interpret it?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT