Question

# Let Y ∼ Unif(1, 5) R1. Write code in R that will simulate the setup in...

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?

#### Homework Answers

Answer #1

THE CODE AND EXPLANATION IS GIVEN

NOTE:: I HOPE THIS ANSWER IS HELPFUL TO YOU...*** PLEASE SUPPORT ME WITH YOUR RATING..THANK YOU

Know the answer?
Your Answer:

#### Post as a guest

Your Name:

What's your source?

#### Earn Coins

Coins can be redeemed for fabulous gifts.

##### Not the answer you're looking for?
Ask your own homework help question
ADVERTISEMENT
##### Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

ADVERTISEMENT