Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started