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 Q4 ABCDEQuestion 4(9 points)
4(a)1pt
Set the seed to the final two digits of your Banner number and generate 100 values from a normal distribution
with mean 0 and variance 3.
4(b) pts]
Use the values generated in (a) to form a matrix, called m, with 5 rows and 20 columns (values entered by
row). Then, calculate m'm, i.e., the transpose of matrix m multiplied by m.
4(c) pts]
Use the apply function on m to calculate the 90th percentile for each row. Hint: use the quantile function.
Compare these values to the true 90 th percentile of this distribution.
4(d) pts]
Create a three-element list. The first element should be the second and forth rows of m. The second element
should be the last two rows of m. The third element of the list should be the vector with elements equal to
the 90th,95th, and 99th sample percentiles of the entire matrix m. Check that your list is of length 3.
4(e)1pt
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)
 Please Solve the following using RSTUDIO coding language Q4 ABCDEQuestion 4(9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!