Applied Regression Modeling. Iain Pardoe

Чтение книги онлайн.

Читать онлайн книгу Applied Regression Modeling - Iain Pardoe страница 22

Applied Regression Modeling - Iain Pardoe

Скачать книгу

made a mistake.

Graph depicts the home prices example, density curve for the t-distribution with 29 degrees of freedom, together with the critical value of 1.699 corresponding to a significance level of 0.05, as well as the test statistic of 2.40 corresponding to a p-value less than 0.05. Graphs depict the relationships between critical values, significance levels, test statistics, and p-values for one-tail hypothesis tests. Graphs depict the relationships between critical values, significance levels, test statistics, and p-values for two-tail hypothesis tests.

       State null hypothesis: : .

       State alternative hypothesis: : .

       Calculate test statistic: .

       Set significance level: 5%.

       Look up t‐table:– critical value: The 97.5th percentile of the t‐distribution with 29 degrees of freedom is 2.045 (from Table C.1); the rejection region is therefore any t‐statistic greater than 2.045 or less than (we need the 97.5th percentile in this case because this is a two‐tail test, so we need half the significance level in each tail).– p‐value: The area to the right of the t‐statistic (2.40) for the t‐distribution with 29 degrees of freedom is less than 0.025 but greater than 0.01 (since from Table C.1 the 97.5th percentile of this t‐distribution is 2.045 and the 99th percentile is 2.462); thus, the upper‐tail area is between 0.01 and 0.025 and the two‐tail p‐value is twice as big as this, that is, between 0.02 and 0.05.

       Make decision:– Since the t‐statistic of 2.40 falls in the rejection region, we reject the null hypothesis in favor of the alternative.– Since the p‐value is between 0.02 and 0.05, it must be less than the significance level (0.05), so we reject the null hypothesis in favor of the alternative.

       Interpret in the context of the situation: The 30 sample sale prices suggest that a population mean of seems implausible—the sample data favor a value different from this (at a significance level of 5%).

      

      1.6.3 Hypothesis test errors

      When we introduced significance levels in Section 1.6.1, we saw that the person conducting the hypothesis test gets to choose this value. We now explore this notion a little more fully.

      Whenever we conduct a hypothesis test, either we reject the null hypothesis in favor of the alternative or we do not reject the null hypothesis. “Not rejecting” a null hypothesis is not quite the same as “accepting” it. All we can say in such a situation is that we do not have enough evidence to reject the null—recall the legal analogy where defendants are not found “innocent” but rather are found “not guilty.” Anyway, regardless of the precise terminology we use, we hope to reject the null when it really is false and to “fail to reject it” when it really is true. Anything else will result in a hypothesis test error. There are two types of error that can occur, as illustrated in the following table: Hypothesis test errors

Decision
Do not reject images Reject images in favor of images
Reality images true Correct decision Type 1 error
images false Type 2 error Correct decision

Скачать книгу