Question

In: Statistics and Probability

A random spectator is to be selected from the audience of a basketball game and given...

A random spectator is to be selected from the audience of a basketball game and given the chance to shoot 10 free throws. Let Y be the number of free throws made by the selected spectator and let P be the probability with which the selected spectator makes a free throw on any attempt. Assume that P and Y follow the hierarchical model

Y |P ∼ Binomial(10, P)

P ∼ Beta(2, 2)

. (a) Run a Monte Carlo simulation to generate many realizations of Y.

Use the realizations of Y to get approximate values for

i. EY

. ii. Var Y .

(b) Find E[Y |P]

(c) Find E[Y ].

(d) Find Var[Y |P].

(e) Find Var[Y ]

. (f) Find values of α and β such that EY = 4 when P ∼ Beta(α, β).

Solutions

Expert Solution

(a) The following R code uses Monte Carlo simulation:

n_sim = 10000
y = replicate(n_sim, rbinom(1,10,rbeta(1,2,2)))
#E(Y):
mean(y)
#Var(Y):
sd(y)^2


Related Solutions

in a basketball game a referee throws the basketball upwards from an initial height of 2.00...
in a basketball game a referee throws the basketball upwards from an initial height of 2.00 meters above the floor, with sufficient initial speed such that its highest point will be 4.20 meters above the floor. a basketball players outstretched hand is 2.50 meters above the floor when he holds his hand above his head, and he can jump with an initial speed of 3.90m/s upwards. how long after the ball is released from the referees hand should the player...
The heights and weights of a random sample of male Senior HS basketball players are given...
The heights and weights of a random sample of male Senior HS basketball players are given in the table. Is there enough evidence that the heights and weights have a linear relationship? height/weight: (76,246), (72,207), (75,220), (74,200), (72,170), (71,175), (68,150), (74,210), (74,245), (72,200)
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2 ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim. Assume that a simple random sample is selected from a normally distributed...
Test the given claim. Assume that a simple random sample is selected from a normally distributed population. Use either the​ P-value method or the traditional method of testing hypotheses. Company A uses a new production method to manufacture aircraft altimeters. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2​ ft, which was the...
Test the given claim: Assume that a simple random sample is selected from a normally distributed...
Test the given claim: Assume that a simple random sample is selected from a normally distributed population. Use either the P-value method or the traditional method of testing hypotheses Company A uses a new production method to manufacture aircraft altimeteers. A simple random sample of new altimeters resulted in errors listed below. Use a 0.05 level of significance to test the claim that the new production method has errors with a standard deviation greater than 32.2 ft, which was the...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT