140 likes | 364 Views
Economics 105: Statistics. Any questions ? GH 15 due Wednes day. Hypothesis Testing for Using t.
E N D
Economics 105: Statistics Any questions? GH 15 due Wednesday
Hypothesis Testing for Using t Pharmaceutical manufacturer is concerned about impurity concentration in pills, not wanting it to be different than 3%. A random sample of 16 pills was drawn and found to have a mean impurity level of 3.07% and a standard deviation (s) of .6%. Test the following hypothesis at the 1% level on the test statistic scale. Perform the test on the sample statistic scale. What is the p-value for this test? Calculate the 99% confidence interval.
When to use z or t-test for H0: = 0 Xi~N Xi not ~ N s s n ≥ 30 n<30 n ≥ 30 n<30 n ≥ 30 n<30 n ≥ 30 n<30
Nonparametric versus Parametric HypothesisTesting require the estimation of one or more unknown parameters (e.g., population mean or variance). often, unrealistic assumptions are made about the normality of the underlying population. large sample sizes are often required to invoke the Central Limit Theorem typically more powerful if normality can be assumed Parametric Tests
usually focus on the sign or rank of the data rather than the exact numerical value do not specify the shape of the parent population can often be used in smaller samples can be used for ordinal data usually more powerful if normality can’t be assumed require special tables of critical values if small n Nonparametric versus Parametric HypothesisTesting Nonparametric Tests (“distribution-free”)
Nonparametric Counterparts Source: Doane and Seward (2009), Applied Statistics in Business & Economics, 2e; McGraw-Hill
One-Sample Runs Test The one-sample runs test (Wald-Wolfowitz test) detects non-randomness. Ask – Is each observation in a sequence of binary events independent of its predecessor? A nonrandom pattern suggests that the observations are not independent. The hypotheses areH0: Events follow a random patternH1: Events do not follow a random pattern Wald-Wolfowitz Runs Test
One-Sample Runs Test To test the hypothesis, first count the number of outcomes of each type.n1 = number of outcomes of the first typen2 = number of outcomes of the second typen = total sample size = n1 + n2 A run is a series of consecutive outcomes of the same type, surrounded by a sequence of outcomes of the other type. Wald-Wolfowitz Runs Test
One-Sample Runs Test For example, consider the following series representing 44 defective (D) or acceptable (A) computer chips: DAAAAAAADDDDAAAAAAAADDAAAAAAAADDDDAAAAAAAAAA The grouped sequences are: A run can be a single outcome if it is preceded and followed by outcomes of the other type. Wald-Wolfowitz Runs Test
One-Sample Runs Test There are 8 runs (R = 8).n1 = number of defective chips (D) = 11n2 = number of acceptable chips (A) = 33n = total sample size = n1 + n2 = 11 + 33 = 44 The hypotheses are:H0: Defects follow a random sequenceH1: Defects follow a nonrandom sequence Wald-Wolfowitz Runs Test
One-Sample Runs Test When n1> 10 and n2> 10, then the number of runs R may be assumed Wald-Wolfowitz Runs Test calc
One-Sample Runs Test Decision rule for large-sample runs tests at .01 level Critical values on test statistic scale = +/- 2.576 Test statistic Conclusion? Wald-Wolfowitz Runs Test