Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using R Use rnorm() from earlier in this assignment to create a normal distribut

ID: 3736554 • Letter: U

Question

Using R

Use rnorm() from earlier in this assignment to create a normal
distribution consisting of 10 samples with an approximated mean of 75
and standard deviation of 10.5. Plot the histogram and density line of this
sample. Repeat with a second data set containing 1,000,000 samples.
Your (separate) graphs should look similar to the following. Pay
attention to the details. Save the commands in a history file called
question8.txt.
Full marks if you can get rid of the grades that are > 100 or < 0 before
plotting.
Estimated Class Grades
Grade

Explanation / Answer

x1 <- rnorm(10, mean = 75, sd = 10.5)
hx1 <- hist(x1, breaks=100, plot=FALSE)
plot(hx1, col=ifelse(abs(hx1$breaks) < 1.669, 4, 2))


x2 <- rnorm(1000000, mean = 75, sd = 10.5)
hx2 <- hist(x2, breaks=100, plot=FALSE)
plot(hx2, col=ifelse(abs(hx2$breaks) < 1.669, 4, 2))

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote