Question

R Programming Exercise Book Problem 57 (Difficulty: Easy) A normal distribution has a standard deviation of...

R Programming Exercise Book

Problem 57 (Difficulty: Easy)

A normal distribution has a standard deviation of 35 and mean of 15. From this generate 2 to 400 samples. After generating the samples utilize the plot command to plot the mean of the generated sample (x-axis) against the number of samples. Create a second plot of the density of the 400 samples that you generated.

This code can be solved in 4 to 8 lines.


For this problem use the following variables:

For the mean use: Mean_of_graph

For Standard Deviation use: Standard_deviation_of_data

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

> særnorm(400,15,35);s (1) 17.21392109-13.96711623 30.18211245 41.68563806 -35.25119099 (6) 46.07753 777 20.70320792 18.23545>x=seq(15-4*35,15+4*35,0.1) > pr=dnorm(x,15,35) > plot(x,pr,l) 0.010 0.008 0.006 pr 0.004 0.002 0.000 -100 -50 100 150

Add a comment
Know the answer?
Add Answer to:
R Programming Exercise Book Problem 57 (Difficulty: Easy) A normal distribution has a standard deviation of...
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