Answered step by step
Verified Expert Solution
Link Copied!
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

image text in transcribed
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

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Maximum Principles And Geometric Applications

Authors: Luis J AlĂ­as, Paolo Mastrolia, Marco Rigoli

1st Edition

3319243373, 9783319243375

More Books

Students explore these related Mathematics questions