Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. (a) Generate X1,- . . ,Xn from N(0, 1) and Y1, . . .,Y;,, from N(0.5,1.5). Consider testing Hg : #x pry = 0
5. (a) Generate X1,- . . ,Xn from N(0, 1) and Y1, . . .,Y;,, from N(0.5,1.5). Consider testing Hg : #x pry = 0 vs Ha : pix pry s 0. Compute the pvalue from two sample ttest. Repeat this process 1000 times. Estimate the empirical power for this test at a = 0.05 for n = 10, 20, 30, ..., 100. Based on your plot, what is the minimum sample size to achieve power > 80%. (b) An approximate sample size formula for comparing two population means using zrtest for the hypothesis in (a) is n = (m + was; + as (#x #142 Compare your results in (a) to this sample size formula. (Note: You do not need to show how the formula is derived.)
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