Presentation is loading. Please wait.

Presentation is loading. Please wait.

Testing Hypotheses about a Population Proportion

Similar presentations


Presentation on theme: "Testing Hypotheses about a Population Proportion"— Presentation transcript:

1 Testing Hypotheses about a Population Proportion
Lecture 31 Sections 9.1 – 9.3 Wed, Mar 16, 2005

2 Discovering Characteristics of a Population
Any question about a population must first be described in terms of a population parameter. Then the question about that parameter generally falls into one of two categories. What is the value of the parameter? That is, estimate its value. Does the evidence support or refute a claim about the value of the parameter? That is, test a hypothesis concerning the parameter.

3 Example A standard assumption is that a newborn baby is as likely to be a boy as to be a girl. However, some people believe that boys are more likely. Suppose a random sample of 1000 live births shows that 520 are boys and 480 are girls. Use the data to estimate the proportion of male births. Does this evidence support the claim that a greater proportion of births are boys?

4 Two Approaches for Hypothesis Testing
Classical approach. Determine the critical value and the rejection region. See whether the statistic falls in the rejection region. Report the decision. p-Value approach. Compute the p-value of the statistic. See whether the p-value is less than the significance level. Report the p-value.

5 Classical Approach H0

6 Classical Approach H0

7 Classical Approach H0 z c

8 Classical Approach H0 z c Acceptance Region Rejection Region

9 Classical Approach H0 z c Acceptance Region Rejection Region

10 Classical Approach H0   Reject z c z Acceptance Region
c z Acceptance Region Rejection Region

11 Classical Approach H0 z c Acceptance Region Rejection Region

12 Classical Approach H0  Accept  z z c Acceptance Region
z c Acceptance Region Rejection Region

13 p-Value Approach H0

14 p-Value Approach H0

15 p-Value Approach H0 z

16 p-Value Approach H0 z Acceptance Region Rejection Region

17 p-Value Approach H0 z Acceptance Region Rejection Region

18 p-Value Approach H0 z z Acceptance Region Rejection Region

19 p-Value Approach H0  p-value <   Reject z z Acceptance Region
z Acceptance Region Rejection Region

20 p-Value Approach H0 z Acceptance Region Rejection Region

21 p-Value Approach H0 z z Acceptance Region Rejection Region

22 p-Value Approach H0 p-value >   Accept  z z Acceptance Region
z Acceptance Region Rejection Region

23 The Steps of Testing a Hypothesis (p-Value Approach)
The basic steps are 1. State the null and alternative hypotheses. 2. State the significance level. 3. Compute the value of the test statistic. 4. Compute the p-value. 5. State the conclusion. See page (I omitted the first step.)

24 Step 1: State the Null and Alternative Hypotheses
Let p = proportion of live births that are boys. The null and alternative hypotheses are H0: p = 0.50. H1: p > 0.50.

25 State the Null and Alternative Hypotheses
The null hypothesis should state a hypothetical value p0 for the population proportion. H0: p = p0. The alternative hypothesis must contradict the null hypothesis in one of three ways: H1: p < p0. (Direction of extreme is left.) H1: p  p0. (Direction of extreme is left and right.) H1: p > p0. (Direction of extreme is right.)

26 Explaining the Data The observation is 520 males out of 1000 births, or 52%. That is, p^ = 0.52. Since we did not observe 50%, how do we explain the discrepancy? Chance, or The true proportion is not 50%, but something larger, maybe 52%.

27 Step 2: State the Significance Level
The significance level  should be given in the problem. If it isn’t, then use  = 0.05. In this example, we will use  = 0.05.

28 The Sampling Distribution of p^
To decide whether the sample evidence is significant, we will compare the p-value to . If we were using the classical approach, we would use  to find the critical value(s).  is the probability that the value of the test statistic is at least as extreme as the critical value(s), if the null hypothesis is true.

29 The Sampling Distribution of p^
Therefore, when we compute the p-value, we do it under the assumption that H0 is true, i.e., that p = p0.

30 The Sampling Distribution of p^
We know that the sampling distribution of p^ is normal with mean p and standard deviation Thus, we assume that p^ has mean p0 and standard deviation:

31 Step 3: The Test Statistic
Test statistic – The z-score of p^, under the assumption that H0 is true. Thus,

32 The Test Statistic In our example, we compute
Therefore, the test statistic is Now, to find the value of the test statistic, all we need to do is to collect the sample data and substitute the value of p^.

33 Computing the Test Statistic
In the sample, p^ = 0.52. Thus, z = (0.52 – 0.50)/ = 1.26.

34 Step 4: Compute the p-value
To compute the p-value, we must first check whether it is a one-tailed or a two-tailed test. We will compute the probability that Z would be at least as extreme as the value of our test statistic. If the test is two-tailed, then we must take into account both tails of the distribution to get the p-value.

35 Compute the p-value In this example, the test is one-tailed, with the direction of extreme to the right. So we compute P(Z > 1.26) =

36 Compute the p-value An alternative is to evaluate
normalcdf(0.52, E99, 0.50, ) on the TI-83. It should give the same answer (except for round-off).

37 Step 5: State the Conclusion
Since the p-value is greater than , our decision is not to reject the null hypothesis. State the conclusion in a sentence. “The data do not support the claim, at the 5% level of significance, that more than 50% of live births are male.”

38 Let’s Do It! Let’s do it! 9.2, p. 529 – Improved Process?
Let’s do it! 9.3, p. 530 – ESP. Let’s do it! 9.4, p. 531 – Working Part Time.

39 Example Article in the Journal of the American Medical Association.

40 Testing Hypotheses on the TI-83
The TI-83 has special functions designed for hypothesis testing. Press STAT. Select the TESTS menu. Select 1-PropZTest… Press ENTER. A window with several items appears.

41 Testing Hypotheses on the TI-83
Enter the value of p0. Press ENTER and the down arrow. Enter the numerator x of p^. Press ENTER and the down arrow. Enter the sample size n. Press ENTER and the down arrow. Select the type of alternative hypothesis. Press the down arrow. Select Calculate. Press ENTER. (You may select Draw to see a picture.)

42 Testing Hypotheses on the TI-83
The display shows The title “1-PropZTest” The alternative hypothesis. The value of the test statistic Z. The p-value. The value of p^. The sample size. We are interested in the p-value.

43 The Classical Approach
The five steps 1. State the null and alternative hypotheses. 2. State the significance level. 3. Define the test statistic to be used. 4. State the decision rule. 5. Compute the value of the test statistic. 6. State the conclusion.

44 Example of the Classical Approach
Test the hypothesis that there are more male births than female births. Let p = the proportion of live births that are male. Step 1: State the hypotheses. H0: p = 0.50 H1: p > 0.50

45 Example of the Classical Approach
Step 2: State the significance level. Let  = 0.05. Step 3: Define the test statistic.

46 Example of the Classical Approach
Step 4: State the decision rule. Find the critical value. On the standard scale, the value z0 = cuts off an upper tail of area 0.05. Therefore, we will reject H0 if z >

47 Example of the Classical Approach
Step 5: Compute the value of the test statistic.

48 Example of the Classical Approach
Step 6: State the conclusion. Since z < 1.645, our decision is to accept H0. Our conclusion is that the proportion of male births is the same as the proportion of female births.


Download ppt "Testing Hypotheses about a Population Proportion"

Similar presentations


Ads by Google