Let Y ∼ Unif(1, 5)
R1. Write code in R that will simulate the setup in question 3a, and hence, allow you to roughly check your answer.
3a. If you generate 5 random numbers based on Y , what is the probability you’ll get more (numbers greater than 4) than (numbers less than or equal to 4)?
R2. Write code in R that will simulate the setup in question 3b, and hence, allow you to roughly check your answer.
3b. If you take lots of random values for Y and plug them into the polynomial h(x) = (2x−1)(x+3), what value would you get out of the polynomial on average?
THE CODE AND EXPLANATION IS GIVEN
NOTE:: I HOPE THIS ANSWER IS HELPFUL TO YOU...*** PLEASE SUPPORT ME WITH YOUR RATING..THANK YOU
Get Answers For Free
Most questions answered within 1 hours.