Question

For n = 20, simulate a random sample of size n from N(μ,22), where μ =...

For n = 20, simulate a random sample of size n from N(μ,22), where μ = 1. Note that we just use μ = 1 to generate the random sample. In the problem below, μ is an unknown parameter. Plot in different figures: (a) the likelihood function of μ, (b) the log likelihood function of μ. Mark in both plots the maximum likelihood estimate of μ from the generated random sample.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For generating the random sample of given sample size(n=20) the R commands are as follows:

> sample=rnorm(20,mean=1,sd=22)
> sample
[1] -47.6948966 -6.6970829 22.2942976 -28.8633283 4.6385454 -18.5010092
[7] -4.0632007 4.2480641 10.2491721 0.3968407 -51.0694055 6.5430808
[13] -14.5223233 3.1107569 6.5110824 10.4715205 -3.7742037 -12.0635958
[19] 26.5542630 -50.2837780
> plot(sample)
the output are attached below:

Add a comment
Know the answer?
Add Answer to:
For n = 20, simulate a random sample of size n from N(μ,22), where μ =...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT