Question: R language only 1. How to generate 50 random numbers with set.seed(200) from the normal distribution with = 0 and = 2 in R language

R language only

1. How to generate 50 random numbers with set.seed(200) from the normal distribution with = 0 and = 2 in R language

2. Given this synthetic data in (a), estimate and using the MLE. Use optim() or nlm() function. Check whether the estimated parameters are close to the actual ones.

3. Repeat this exercise with 5000 generated numbers instead of 50 numbers with set.seed(200). What would the difference be?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!