Math 318, Summer 2021, Garren

Required R Homework #2

due Friday, May 28, 3 p.m.

Using R:

(A) Generate 100 random variates from a Normal(0, 1) distribution.

(B) Label the variable as "Z". (You will need to print these 100 random variates.)

(C) Graph your 100 random variates in a histogram.

(D) Print the normal Q-Q plot associated with these 100 random variates.

(E) Determine the mean, standard deviation, and variance of your 100 random variates (using R).

(F) Generate 800 random variates from a Normal(50, 3) distribution.

(G) Label the variable as "X". (You will NOT need to print these 800 random variates.)

(H) Graph your 800 random variates in a histogram.

(I) Print the normal Q-Q plot associated with these 800 random variates.

(J) Determine the mean, standard deviation, and variance of your 800 random variates (using R).

(K) Generate 900 random variates from a binomial(200, 0.4) distribution.

(L) Label the variable as "cointoss". (You will NOT need to print these 900 random variates.)

(M) Graph your 900 random variates in a histogram.

(N) Print the normal Q-Q plot associated with these 900 random variates.

(O) Determine the mean, standard deviation, and variance of your 900 random variates (using R).

(P) Submit your R-code and R-output in the above order, and label all parts: (A), (B), (C), etc.

(Q) Although you are allowed to receive help from others, list the names of those who helped you and the names of those whom you helped, as well as what type of help was given. If you did not give or receive help, then write, "No help." Submit your homework as a .pdf to Canvas.

Return to Dr. Garren's home page.