New Student to R Questions

(b) Normal distribution

Given a random sample of size x (i.e., x numbers); the x numbers are normally distributed with mean 0 and standard deviation 1. Write a function that plot the histogram of this sample.

Then try apply the function and plot a histogram of a sample of size 500.

Tip: you need rnorm() and hist()

I've been trying to figure out how I need to structure this for a couple hours now, and I keep failing to do so. Any help would be appreciated. Thanks!

Please have a look into our homework policy

Can we delete this thread? Thanks!

Thanks for asking to delete this thread. I unlisted it.

Again, we don't allow verbatim hw questions, but we do love questions from new students to R! If you have a specific stopping point that we can help with, please do ask. If it's getting really close to your homework, be sure to tag your question homework.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.