Question: Please Solve the following using RSTUDIO coding language Q 4 ABCDEQuestion 4 ( 9 points ) 4 ( a ) 1 p t Set the
Please Solve the following using RSTUDIO coding language Q ABCDEQuestion points
a
Set the seed to the final two digits of your Banner number and generate values from a normal distribution
with mean and variance
b pts
Use the values generated in a to form a matrix, called with rows and columns values entered by
row Then, calculate ie the transpose of matrix multiplied by
c pts
Use the apply function on to calculate the th percentile for each row. Hint: use the quantile function.
Compare these values to the true th percentile of this distribution.
d pts
Create a threeelement list. The first element should be the second and forth rows of The second element
should be the last two rows of The third element of the list should be the vector with elements equal to
the thth and th sample percentiles of the entire matrix Check that your list is of length
e
Use the lapply function to return the maximum of each element of your list. In the question that says banner number use any two digit number you can think of as an example
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
