This problem requires using R studio. This question is from Verzani (Problem 2.56) Can some write the code for the answer to the question below:
The Michelson(HistData) data set records 100 measurements by Michelson of the speed of light (in the variable velocity). Make a quantile-normal graph and discuss if the graphic shows the points falling on a straight line.
R code:
library(MASS)
data(michelson)
qqnorm(michelson$Speed)
shapiro.test(michelson$Speed)
From the normal quantile-quantile plot, we see that the points fall fairly good on a straight line, which indicates that the underlying distribution is Gaussian.
We can also check the p-value from the Shapiro-Wilk's normality test which comes out to be 0.5137 > 0.05. So we can conclude that the data follows normal distribution.
Get Answers For Free
Most questions answered within 1 hours.