68 69-###Question 4 [8 points] 70 a) Create a new variable **normal z** $1PhiAt-
ID: 3045263 • Letter: 6
Question
68 69-###Question 4 [8 points] 70 a) Create a new variable **normal z** $1PhiAt-1fracfi-0.5)-12000]1), i=1,2,cdots , 2000$, where $Phi^{-1)s is quantile/inverse function of a standard normal distribution. values to a new variable **sorted sales**. plot(normal-z, sorted-sales), and the second is 71 b) Standardize the variable **Sales**, sort and assign the standardized 72 c) Put two graphs in one plot using parO. The first graph is Fi qqnorm(sorted sales) . Add necessary titles and other options to improve your plots. 73 d) Google qqplot', read relative materials and summarize your findings. 75 76Explanation / Answer
The sales data is not provided in the question , however the R code can be as follows
## scale the data
normal_z <- scale(sales)
## sort the data by variable 1
sorted_sales <- sales[order(variable1),]
## set the paramaters
par(mfrow=c(1,2)) ## split the screen into 1 row and 2 columns
plot(normal_z,sorted_sales,main=" scatterplot")
plot(qqplot(sales),main="quantile quantile plot ")
## this creates a plot
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.