Docsity

Testing Hypotheses: Examples in Statistical Analysis, Study notes of Probability and Statistics

Partial preview of the text

Download Testing Hypotheses: Examples in Statistical Analysis and more Study notes Probability and Statistics in PDF only on Docsity!

STAT 100 Lecture 17:

Testing Hypotheses: Examples

Nate Strawn

November 7

Last Time...

(^1) Formulating the hypotheses.

(^2) Test criterion and rejection region.

(^3) Two types of error and their probabilities.

Two types of error and their probabilities

Definition Type I error: Rejection of H 0 when H 0 is true. Type II error: Nonrejection of H 0 when H 1 is true. α = Probability of making type I error (also called the level of significance) β = Probability of making type II error

Two types of error and their probabilities

α = Probability of making type I error, β = Probability of making type II error.

Performing a Large Sample Normal Test or Z Test

Example The observed value of the Z test statistic is

z =

which is in R. Therefore, we reject H 0 at the α = 0. 05 level.

P-value: How Strong is a rejection of H 0?

Question How small an α could we use and still arrive at the conclusion of rejecting H 0?

Answer The observed z = − 1. 88. Calculate the rejection probability

P[Z ≤ − 1 .88] = 0. 0301

P–value

Definition The P–value is the probability, calculated under H 0 , that the test statistic takes a value equal to or more extreme than the value actually observed.

The P–value serves as a measure of the strength of evidence against H 0.

A small P–value means that the null hypothesis is strongly rejected or the result is highly statistically significant.

The Steps for Testing Hypotheses

Definition (^1) Formulate the null hypothesis H 0 and the alternative hypothesis H 1. (^2) Test criterion: State the test statistic and the form of the rejection region. (^3) With a specified α, determine the rejection region. (^4) Calculate the test statistic from the data. (^5) Draw a conclusion: State whether or not H 0 is rejected at the specified α and interpret the conclusion in the context of the problem. Also, it is a good statistical practice to calculate the P–value and strengthen the conclusion.

Two types of alternative hypothesis.

So far, we have only seen one-sided hypotheses:

H 0 : μ = μ 0 versus H 1 : μ > μ 0

or H 0 : μ = μ 0 versus H 1 : μ < μ 0

The corresponding tests are called one-sided tests or one-tailed tests.

We can also have two-sided alternative or two-sided hypothesis:

H 0 : μ = μ 0 versus H 1 : μ 6 = μ 0

Two types of alternative hypothesis.

Figure: Rejection region for one-sided alternative.

Figure: Rejection region for two-sided alternative.

Summary

Large Sample Test for μ When the sample size is large, a Z test concerning μ is based on the normal test statistic

Z =

X − μ 0 S/

n

The rejection region is one- or two-sided depending on the alternative hypothesis. Specifically,

H 1 : μ > μ 0 requires R : Z ≥ zα.

H 1 : μ < μ 0 requires R : Z ≤ −zα.

H 1 : μ 6 = μ 0 requires R : |Z | ≥ zα/ 2.

For Next Time

Read Section 8.5 from Johnson and Bhattacharyya

Online homework 8.4: 8.37, 8.41, 8.49, 8.51, 8.