Question: This exercise reguires you to use R. We are going to generate two random sets of continuous random variables. The first will follow a normal

This exercise reguires you to use R. We are going to generate two random sets of continuous random variables. The first will follow a normal distribution with mean 1 and standard deviation 1. The second will follow an exponential distribution with lambda = 1. Run the following set of code and use it answer the following questions. set.seed(2020) x1 = rnorm(n=1000,mean=1,sd=1) x2 = rexp(n=1000,rate=1) You have one attempt on each part. (a) Which dataset has a larger sample mean? 0 X2 (j X1 (b) Which dataset has larger variance? (j X2 0x1 (c) Which dataset is highly skewed? (Hint: use the hist function) (j X1 0x2 (d) Which dataset has the greater probability of being a number less than 1? '\" X1 9x2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
