2. To test the null hypothesis pi = P2 with two independent samples of sizes nį and n2, we require that n1 < N1/20, that n2 < N2/20, that n1 * pi * (1 – p1) > 10, and that n2 * p2 * (1– p2) > 10. Our test statistic TS is pi – p2 Va•(1 – p) • (+ + +) where p is the pooled estimate p = (x1 + x2)/(n1 + n2). (a) For a two-tailed test, we may compute +za/2 = ±InvNorm(a/2,0, 1) and check that the test-statistic falls in a tail. Or we may instead compute P = 2 * normalcdf (|TS|, 0,0, 1) and check that P < a. Suppose our null hypothesis is pi p2, that our sample sizes are ni = 1500 and n2 = 1600, and that we find x1 = 506 and x2 = 692. Assume that N1 and N2 are very large. i. If we use a two-tailed test, what is our alternative hypothesis: pi + p2 ? pi < P2 ? or pi > P2 ? ii. What would we conclude if we rejected the null hypothesis with a two-tailed test? iii. Can we reject the null hypothesis at level of significance a = 0.05, using a two-tailed test? iv. Can we reject the null hypothesis at level of significance a = 0.01, using a two-tailed test?
2. To test the null hypothesis pi = P2 with two independent samples of sizes nį and n2, we require that n1 < N1/20, that n2 < N2/20, that n1 * pi * (1 – p1) > 10, and that n2 * p2 * (1– p2) > 10. Our test statistic TS is pi – p2 Va•(1 – p) • (+ + +) where p is the pooled estimate p = (x1 + x2)/(n1 + n2). (a) For a two-tailed test, we may compute +za/2 = ±InvNorm(a/2,0, 1) and check that the test-statistic falls in a tail. Or we may instead compute P = 2 * normalcdf (|TS|, 0,0, 1) and check that P < a. Suppose our null hypothesis is pi p2, that our sample sizes are ni = 1500 and n2 = 1600, and that we find x1 = 506 and x2 = 692. Assume that N1 and N2 are very large. i. If we use a two-tailed test, what is our alternative hypothesis: pi + p2 ? pi < P2 ? or pi > P2 ? ii. What would we conclude if we rejected the null hypothesis with a two-tailed test? iii. Can we reject the null hypothesis at level of significance a = 0.05, using a two-tailed test? iv. Can we reject the null hypothesis at level of significance a = 0.01, using a two-tailed test?
MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
Related questions
Question
Solve questions 1 through 4 please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics and related others by exploring similar questions and additional content below.Recommended textbooks for you
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman