Using Rstudio and R commands Question 1: Create an n?m matrix (n=100, m=5; hint: you could use cbind function to combine m vectors). In this matrix, each column is a vector with n random values follo

Using Rstudio and R commands 

Question 1: Create an n?m matrix (n=100, m=5; hint: you could use cbind function to combine m vectors). In this matrix, each column is a vector with n random values following uniform distribution. Generate the scatterplot of these five variables (hint: use function pairs()). Write down your commands in your report as well as inserting the screenshot for your scatterplot and the data that you generated.

Question 2: What are the estimator formulas for the mean, variance, standard deviation of a variable.

Question 3: What are the estimator formulas for the covariance and correlation coefficient of two variables.  

Question 4: Conduct summary statistics of the matrix that you generated in Question 1. Write down the mean, variance, standard deviation of each variable. Write down the covariance matrix

and correlation coefficients of the five variables.

Show more