This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 5. use t test as above 6. state rejection region for the statistic as above 7. does ybar fall within L and U? 8. no, so reject statistic 4. % Part IV: Type I error sig = 2; % Assume true variance is 2% zL = (L-mu0)/(sig/sqrt(n)); zU = (U-mu0)/(sig/sqrt(n)); % This one matches z about right on the one-sided Matlab t-table x = 0.9862; tinv(x,Inf) 2*(1-x) % So probability of a Type I error is 2.76% 5. % Part V: Type II error mu = 70.2; % Assume this is actual mean and keep sig = 2 zL = (L-mu)/(sig/sqrt(n)); zU = (U-mu)/(sig/sqrt(n)); % This one matches zU pretty well tinv(0.316,Inf) % P(z<zU) = 31.6% tinv(1e-6,Inf) % P(z < zL) ~ 0...
View Full Document
- Summer '07