Question

This problem requires using R studio. This question is from Verzani (Problem 6.25) Can some write...

This problem requires using R studio. This question is from Verzani (Problem 6.25) Can some write the code for the answer to the question below:

A q-q plot is an excellent way to investigate whether a distribution is approximately normal. For the symmetric distributions Uniform (0,1), Normal (0,1), and t with 3 degrees of freedom, take a random sample of size 100 and plot a quantile-normal plot using qnorm. Compare the three and comment on the curve of the plot as it relates to the tail length. (The uniform is short-tailed; the t-distribution with 3 degrees of freedom is long-tailed.)

Homework Answers

Answer #1

###R studio code

x=rnorm(100)
y=runif(100)
z=rt(100,3)
qqnorm(x)
qqnorm(y)
qqnorm(z)

Here are the obtained qq plots

1. Uniform

2. Normal

3. T

The qqplot of normal is very similar to straight line which is expected.niform is also similar to straight line but with increasing slope.

As there are few outliers in the plot of t distribution, it shows t is long tailed. Also the slope is less than 1.

Know the answer?
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
Similar Questions
This problem requires using R studio. This question is from Verzani (Problem 2.56) Can some write...
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.
The following question can be answered in R code (using R-Studio or a program of your...
The following question can be answered in R code (using R-Studio or a program of your choice). Load the “star” data from the “faraway” package, and model “temp” using “light”. One may also suspect that the residuals (use all the data) follow a t distribution instead of normal. Using the same logic that we produced the QQ plot for comparing to the normal distribution, produce a QQ plot for comparing to a t distribution. You need to decide the degrees...
This problem requires using R studio. This question is from Verzani (Problem 2.15) Can some write...
This problem requires using R studio. This question is from Verzani (Problem 2.15) Can some write the code for the answer to the question below: The negation operator ! is used with reverse Boolean values. For example: A <- c(True, False, True, False) !A ##[1] False True False False One of De Morgan's laws in R code is ! (A & B) = !A | !B . Verify this with B <- c(False, True, False, True) and A as above.
r code Load the “star” data from the “faraway” package, and model “temp” using “light”. library(faraway)...
r code Load the “star” data from the “faraway” package, and model “temp” using “light”. library(faraway) data(star) fit = lm(temp ~ light, data = star) One may also suspect that the residuals (use all the data) follow a t distribution instead of normal. Using the same logic that we produced the QQ plot for comparing to the normal distribution, produce a QQ plot for comparing to a t distribution. You need to decide the degrees of freedom yourself (consider df...
In this problem, assume that the distribution of differences is approximately normal. Note: For degrees of...
In this problem, assume that the distribution of differences is approximately normal. Note: For degrees of freedom d.f. not in the Student's t table, use the closest d.f. that is smaller. In some situations, this choice of d.f. may increase the P-value by a small amount and therefore produce a slightly more "conservative" answer. In environmental studies, sex ratios are of great importance. Wolf society, packs, and ecology have been studied extensively at different locations in the U.S. and foreign...
In this problem, assume that the distribution of differences is approximately normal. Note: For degrees of...
In this problem, assume that the distribution of differences is approximately normal. Note: For degrees of freedom d.f. not in the Student's t table, use the closest d.f. that is smaller. In some situations, this choice of d.f. may increase the P-value by a small amount and therefore produce a slightly more "conservative" answer. Is fishing better from a boat or from the shore? Pyramid Lake is located on the Paiute Indian Reservation in Nevada. Presidents, movie stars, and people...
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains...
*Answer all questions using R-Script* Question 1 Using the built in CO2 data frame, which contains data from an experiment on the cold tolerance of Echinochloa crus-galli; find the following. a) Assign the uptake column in the dataframe to an object called "x" b) Calculate the range of x c) Calculate the 28th percentile of x d) Calculate the sample median of x e) Calculate the sample mean of x and assign it to an object called "xbar" f) Calculate...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT