Question: Create a vector named A and a vector named B. Each of these vectors should contain 1000 random numbers generated from a uniform distribution on
Create a vector named A and a vector named B. Each of these vectors should contain 1000 random numbers generated from a uniform distribution on the interval [0; 1]. Hint: Use the runif( ) function. This is Random UNIForm, not RUN IF. (c) Create a vector named X and a vector named Y . Each of these vectors should contain 1000 random numbers generated from a normal distribution with mean 0 and standard deviation 1. Hint: Use the rnorm( ) function. This is Random NORMal. (d) Combine A, B, X , and Y into a single data frame and give it a name. (e) Construct a scatterplot of A and B. Give it a clear title. Print it. (f) Construct a scatterplot of X and Y . Give it a clear title. Print it. (g) Compare the two plots you produced. Use text/comments in your script to describe any similarities and/or differences you see and speculate about what produced them.
Step by Step Solution
There are 3 Steps involved in it
To complete this task Ill provide a stepbystep guide using R for crea... View full answer
Get step-by-step solutions from verified subject matter experts
