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

I need help with the hand written calculations to make the QQ Plot. When making

ID: 3272683 • Letter: I

Question

I need help with the hand written calculations to make the QQ Plot.

When making a QQplot for 2 data sets with unequal sample sizes we do the following: 1 Start with the data set with the smallest sample size say n_1 2 Make a table computing the quantiles p = i-5/n_1 for i = 1,2. . . , n_1 3 Then you need to find the corresponding quantiles, Q_2(P), of the larger data set for each p you get in step 2 4 Lastly you plot Q_1(p) vs Q_2(p) Exercise: Suppose you have the following data: X_1 = (4,5,6,10) X_2 = (5,8,9,10,11,13) There will be 4 coordinate pairs in a QQplot for X_1 and X_2. Give the 4 pairs and make the corresponding QQplot.

Explanation / Answer

> X1 = c(4,5,6,10)
> X1
[1] 4 5 6 10
> X2 = c(5,8,9,10,11,13)
> X2
[1] 5 8 9 10 11 13
> X3=quantile(X2,probs=ppoints(X1))
> X3
14.70588% 38.23529% 61.76471% 85.29412%
7.205882 8.911765 10.088235 11.529412
> plot(X1,X3)