6. Independence. The function rnorm(n,mean,sd)
generates n
draws from
a normal distribution. Generate 1000 observations from a normal distribution with mean 0 and standard
deviation 1 twice. Using cor()
, compute the correlation between the two sets of draws. After that,
construct a scatterplot with the two sets of draws.