Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( Here are some hints if you have no idea where to start. Your correct approach may not look anything like this! Create a 1
Here are some hints if you have no idea where to start. Your correct approach may not look anything like this!
Create a by vector to hold the results for each confidence interval. It could be a Boolean vector holding values like TRUE and FALSE or a numeric vector holding values like and where means that the true mean is in the confidence interval and means that it isn't.
Create a "for loop" that will run times. Each time through the loop you can compute a new confidence interval using your previous code for Sally's confidence interval with minor adjustments, determine whether or not the true is in the interval, and fill in the corresponding position in the results vector with your conclusion.
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