Question: Using R Studio, Generate a standard normal random. using rnorm() Check whether this number is >1.96 or

Using R Studio,

Generate a standard normal random. using rnorm()

Check whether this number is >1.96 or <-1.96.

Replicate this 1000 times and count the number of observations that are greater than 1.96 or less than -1.96.

Calculate the ratio of this number to the the number of replications and see whether this is close to 0.05.

HINT:

num <- 0

for (i in 1 : 1000) {

+a <-

+

}

num/1000

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!