Upcoming SlideShare
×

# Chapter10 Revised

1,243 views

Published on

AP Statistics Powerpoint Notes for Chapter 10

Published in: Education
0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

• Be the first to like this

Views
Total views
1,243
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
24
0
Likes
0
Embeds 0
No embeds

No notes for slide
• page 374 of text The term ‘accept’ is somewhat misleading, implying incorrectly that the null has been proven. The phrase ‘fail to reject’ represents the result more correctly.
• Example on page 375 of text
• page 377 in text
• ### Chapter10 Revised

1. 1. Chapter 10 Introduction to Inference Section 10.1 Estimating with Confidence
2. 2. Twenty five samples from the same population gave these 95% confidence intervals, 95% of all samples give an interval that contains the population mean u.
3. 3. In 95% of all samples, x-bar lies within ± 9 of the unknown population mean µ. Also µ lies within ± 9 of x-bar of the samples.
4. 4. To say that x-bar is a 95% confidence interval for the population mean µ is to say that in repeated samples, 95% of these intervals capture the µ
5. 5. The central probability 0.8 under a standard normal curve lies between -1.28 and + 1.28. That is, there is area .1 to the left and to the right of the curve.
6. 6. The central probability C under a standard normal curve lies between –z* and + z* has area (1-C)/2 to its right under the curve, we call it the upper (1-C)/2 critical value.
7. 7. <ul><li>As we learned in Chapter 9, because of sampling variability, the statistic calculated from a sample is rarely equal to the true parameter of interest. Therefore, when we are trying to estimate a parameter, we must go beyond our statistic value to construct a reasonable range that captures the true parameter value. </li></ul>
8. 8. <ul><li>Confidence Interval: </li></ul><ul><ul><ul><li>The data must come from SRS of the population of interest </li></ul></ul></ul><ul><ul><ul><li>The sampling distribution of x-bar is approximately normal </li></ul></ul></ul>
9. 9. <ul><li>Sampling Distribution of p-hat Proportions: </li></ul><ul><li>Let p-hat be the proportion of successes in a random sample of size n from a population whose proportion is p. </li></ul><ul><li>The mean value of p-hat is µp-hat and standard deviation σ -p-hat </li></ul><ul><li>Rule 1: µ p-hat = p </li></ul><ul><li>Rule 2: σ p-hat = </li></ul><ul><li>Rule 3: when n is large and p is not very close to 0 </li></ul><ul><li>or 1, the sampling distribution of p is </li></ul><ul><li>approximately normal. </li></ul>
10. 10. <ul><li>Sampling Distribution of x-bar – Means </li></ul><ul><li>Let x-bar be the mean of the observations in a random sample of size n having mean µ and standard deviation σ . The mean value of the </li></ul><ul><li>x-bar distribution µ and standard deviation of x-bar is σ </li></ul><ul><li>Rule 1: µ xbar = µ </li></ul><ul><li>Rule 2: σ xbar = σ / as long as 10% of the population is in the sample. </li></ul><ul><li>Rule 3: when the population distribution is normal, the sampling distribution of x-bar is also normal for any sample size n </li></ul><ul><li>Rule 4: (Central Limit Theorem) CLT when n is sufficiently large, the sampling distribution of x-bar is well approximated by a normal curve even when the population is not itself normal. </li></ul>
11. 11. Confidence Level C Single Tail Area (1-C)/2 Critical z value 90% .05 1.645 95% .025 1.960 99% .005 2.576
12. 12. Estimating with Confidence – Interval Behavior <ul><li>Margin of Error = (z critical value) σ / </li></ul><ul><li>What are some ways in which we could lower our margin of error? </li></ul><ul><li>z get smaller – as smaller confidence level </li></ul><ul><li>σ gets smaller </li></ul><ul><li>n gets larger </li></ul>
13. 13. Confidence Interval for p Single Proportion Confidence Interval for µ Single Mean ( σ known) Conditions Conditions If an SRS of size n is chosen from a population with unknown proportion p, then a level C Confidence Interval for p is: If an SRS of size n is chosen from a population with unknown proportion, µ then a level C Confidence Interval for µ is: p-hat ± z critical value ( ((p(1-p)/ n) X-bar ± z critical value ( σ /
14. 14. <ul><li>We will follow the 4 step process outlined below throughout the chapter. </li></ul>
15. 15. Inference Toolbox: Confidence Intervals <ul><li>To Construct a Confidence Interval for a parameter </li></ul><ul><li>(1)Identify the population of interest and the parameter you want to draw conclusions about </li></ul><ul><li>(2)Choose the appropriate inference procedure. </li></ul><ul><li>Verify the conditions for the selected parameter </li></ul><ul><li>(3)If the conditions are met, carry out the inference procedures. </li></ul><ul><li>CI = estimate ± margin of error </li></ul><ul><li>(4)Interpret the results in the context of the problem </li></ul>
16. 16. <ul><li>Example Problem 1 </li></ul><ul><li>A manufacturer of high resolution video terminals must control the tension of the viewing screen to avoid tears and wrinkles. The tension is measured in millivolts (mV). Careful study has shown that when the process is operating properly, the standard deviation of the tension reading is 43mV. </li></ul><ul><li>(1) Given a sample of 20 screens, with xbar = 306.3 mV, from a single day’s production, construct a 90% confidence interval for the mean tension µ of all the screens produced on this day. Follow the steps from the previous slide. </li></ul>
17. 17. <ul><li>1)Identify the population of interest and the parameter you want to draw conclusions about all video terminal produced on the same day </li></ul><ul><li>Choose the appropriate inference procedure. σ is known use CI for µ of SRS of 20 </li></ul><ul><li>Verify the conditions for the selected parameter x-bar is approximately normal </li></ul><ul><li>If the conditions are met, carry out the inference procedures. </li></ul><ul><li>CI = estimate ± margin of error </li></ul><ul><li>CI = x-bar ± critical z value · σ / </li></ul><ul><li>CI = 306.3 ± 1.645 · 43 / </li></ul><ul><li>= 306.3 ± 15.8 = (290.5, 322.1) </li></ul><ul><li>Interpret the results in the context of the problem </li></ul><ul><li>We are 90% confident that the true mean is between 290.5 and 322.1 </li></ul>
18. 18. <ul><li>2. Suppose the manufacturer wants 99% confidence rather than 90%. Using your data from problem 1, construct a 99% CI. How does it compare to the 90% CI? Why? </li></ul><ul><li>306.3 ± 2.576 (43/ ) = </li></ul><ul><li>306.3 ± 24.768 = </li></ul><ul><li>(281.532, 331.068) the interval is larger. We have greater confidence that the interval captures the true value. </li></ul>
19. 19. <ul><li>3. Company management wants to report the mean screen tension for the day’s production accurate within  5 mV with 95% confidence. How large a sample of video monitors must be measured to comply with this request? </li></ul><ul><li>1.960(43)/ </li></ul><ul><li>84.28 = </li></ul><ul><li>16.856 = </li></ul><ul><li>n = 284.12 approximately 285 </li></ul>
20. 20. <ul><li>Do problems 1,7 and 10 from The Practice of Statistics 2 nd edition. </li></ul>
21. 21. <ul><li>Section 10.2 </li></ul><ul><li>Tests of Significance </li></ul>
22. 22. Tests of Significance: We have learned that Confidence Intervals can be used to estimate a parameter. Often in statistics we want to use sample data to determine whether or not a claim or hypothesis about a parameter is plausible. A test of significance is a procedure in which we can use sample data to test such a claim. We will focus on tests about a population mean μ and proportions p.
23. 23. Note about Identifying H 0 and H A
24. 24. Practice: Identify the Null and Alternative Hypothesis. Express the corresponding null and alternative hypotheses in symbolic form. <ul><li>The proportion of drivers who admit to running red lights is greater than 0.5. </li></ul>
25. 25. <ul><li>The proportion of drivers who admit to running red lights is greater than 0.5. </li></ul><ul><li>First we express the given claim as p > 0.5. </li></ul><ul><li>Next, we notice that the statement does not contain an equality so it has to be the alternative hypothesis. H 0 : p = 0.5 </li></ul><ul><li>H A : p > 0.5. </li></ul>
26. 26. Practice: Identify the Null and Alternative Hypothesis. Express the corresponding null and alternative hypotheses in symbolic form. <ul><li>b) The mean height of professional basketball players is at most 7 ft. </li></ul>
27. 27. <ul><li>b) The mean height of professional basketball players is at most 7 ft. </li></ul><ul><li>Express “a mean of at most 7 ft” in symbols   7. </li></ul><ul><li>The expression µ  7 contains an equality so it is the null hypothesis. </li></ul><ul><ul><ul><li>H 0 : µ  7 </li></ul></ul></ul><ul><li>H A : µ > 0.5 </li></ul><ul><li>. </li></ul>
28. 28. c) The standard deviation of IQ scores of actors is equal to 15. Practice : Identify the Null and Alternative Hypothesis. Express the corresponding null and alternative hypotheses in symbolic form.
29. 29. <ul><li>c) The standard deviation of IQ scores of actors is equal to 15. </li></ul><ul><ul><li>Express the given claim as  = 15. This is the null hypothesis. </li></ul></ul><ul><ul><li>H o :  = 15 </li></ul></ul><ul><ul><li>H A :   15 </li></ul></ul>
30. 30. Example Problem 2 <ul><li>Spinifex pigeons, one of the few bird species that inhabit the desert of Western Australia, rely on seeds for food. The article “Field metabolism and water requirements of Spinifex pigeons in Western Australia” reported the following Minitab analysis of the weight of seed in grams in the stomach contents of Spinifex pigeons. Use the analysis to construct and interpret a 95% confidence interval for the average weight of seeds in this type of pigeon’s stomach and compare your results to the hypothesis that the mean seed amount is 1g for all Spinifex pigeons. </li></ul><ul><li>TEST OF MU = 1.000 VS MU N.E. 1.000 </li></ul><ul><li>N MEAN STDEV SE MEAN T PVALUE </li></ul><ul><li>WEIGHT 16 1.373 1.034 0.258 1.44 0.17 </li></ul>
31. 31. The Spinifex pigeon problem <ul><li>p (z = 1.373 =1.000)/.258 = </li></ul><ul><li>p( z= 1.445) </li></ul><ul><li>p = .1490 </li></ul><ul><li>95% CI: </li></ul><ul><li>1.373  1.96 ( </li></ul><ul><li>1.373  1.96 (.258) </li></ul><ul><li>.8664 < μ < 1.880 </li></ul><ul><li>95% CI confident the mean is between .8664 and 1.880 </li></ul><ul><li>(.8664, 1.880) </li></ul>
32. 32. <ul><li>Do problems 12, 30 and 42 from The Practice of Statistics 2 nd edition </li></ul>
33. 33. <ul><li>Section 10.3 </li></ul><ul><li>Making Sense of Statistical Significance </li></ul>
34. 34. <ul><li>Inference Toolbox: Test of Significance </li></ul><ul><li>Identify the population of interest and the parameter you want to draw conclusions about </li></ul><ul><li>State null and alternative hypotheses in words and symbols </li></ul><ul><li>Choose the appropriate inference procedure </li></ul><ul><li>Verify the conditions for using the procedure </li></ul><ul><li>If the conditions are met, carry out the inference procedures </li></ul><ul><li>Interpret the results in the context of the problem </li></ul>
35. 35. <ul><li>1) The sample observations are a simple random sample. </li></ul><ul><li>2) The conditions for a binomial experiment are satisfied </li></ul><ul><li>The condition np  5 and n(1-p)  5 are satisfied,  so the binomial distribution of sample proportions can be approximated by a normal distribution with µ = np and </li></ul><ul><li> = np(1-p) . </li></ul>Assumptions for Testing Claims About a Population Proportion p
36. 36. To determine the significance at a set level, alpha, one needs to calculate the P-value for the observed statistic. Careful consideration of the test statistic, z, can also be used to determine significance:
37. 37. P -Value The P -value (or p -value or probability value ) is the probability of getting a value of the test statistic that is at least as extreme as the one representing the sample data, assuming that the null hypothesis is true. The null hypothesis is rejected if the P -value is very small, such as 0.05 or less.
38. 39. Two-tailed Test <ul><li>H 0 : = </li></ul><ul><li>H 1 :  </li></ul> is divided equally between the two tails of the critical region Means less than or greater than
39. 40. Right-tailed Test <ul><li>H 0 : = </li></ul><ul><li>H 1 : > </li></ul>Points Right
40. 41. Left-tailed Test <ul><li>H 0 : = </li></ul><ul><li>H 1 : < </li></ul>Points Left
41. 43. Critical Region The critical region (or rejection region ) is the set of all values of the test statistic that cause us to reject the null hypothesis.
42. 44. Practice: Finding P -values. First determine whether the given conditions result in a right-tailed test, a left-tailed test, or a two-tailed test, then find the P -values and state a conclusion about the null hypothesis. <ul><li>A significance level of  = 0.05 is used in testing the claim that p > 0.25 , and the sample data result in a test statistic of z = 1.18 . </li></ul>
43. 45. Practice: Finding P -values. First determine whether the given conditions result in a right-tailed test, a left-tailed test, or a two-tailed test, then find the P -values and state a conclusion about the null hypothesis. a) With a claim of p > 0.25, the test is right-tailed. Because the test is right-tailed, the graph shows that the P -value is the area to the right of the test statistic z = 1.18. Using Table A and find that the area to the right of z = 1.18 is 0.1190. The P -value is 0.1190 is greater than the significance level  = 0.05, so we fail to reject the null hypothesis.
44. 46. Practice: Finding P -values. First determine whether the given conditions result in a right-tailed test, a left-tailed test, or a two-tailed test, then find the P -values and state a conclusion about the null hypothesis. b) A significance level of  = 0.05 is used in testing the claim that p  0.25 , and the sample data result in a test statistic of z = 2.34 .
45. 47. Practice: Finding P -values. First determine whether the given conditions result in a right-tailed test, a left-tailed test, or a two-tailed test, then find the P -values and state a conclusion about the null hypothesis. b) With a claim of p  0.25, the test is two-tailed. Because the test is two-tailed, and because the test statistic of z = 2.34 is to the right of the center, the P-value is twice the area to the right of z = 2.34. Using Table A and find that the area to the right of z = 2.34 is 0.0096, so P-value = 2 x 0.0096 = 0.0192. The P-value of 0.0192 is less than or equal to the significance level, so we reject the null hypothesis.
46. 48. Assumptions for Testing Claims About Population Means <ul><li> 1) The sample is a simple random   sample. </li></ul><ul><li> 2) The value of the population standard deviation  is known. </li></ul><ul><li>3) Either or both of these conditions is satisfied: The population is normally distributed or n > 30. </li></ul>
47. 49. Example Problem 3 10.13 pg. 572 <ul><li>H o : μ = 128 </li></ul><ul><li>H A : μ ≠ 128 </li></ul><ul><li>σ = 15, x-bar = 126.07, n = 72 </li></ul><ul><li>z = x-bar – μ / ( σ / ) </li></ul><ul><li>2 P (z ≥ z |1.09|) = 2(1-.862) = .2758 </li></ul>
48. 50. Example Problem 3 #10.13 pg. 572 <ul><li>More than 27% of the time, an SRS of size 72 will have mean blood pressure at least a far away from 128 as the sample. This is not good evidence that it differs. We fail to reject the null hypothesis </li></ul>
49. 51. Example 4: We are given a data set of 106 body temperatures having a mean of 98.20°F. Assume that the sample is a simple random sample and that the population standard deviation  is known to be 0.62°F. Use a 0.05 significance level to test the common belief that the mean body temperature of healthy adults is equal to 98.6°F. Use the P -value method. This is a two-tailed test and the test statistic is to the left of the center, so the P -value is twice the area to the left of z = –6.64. We refer to Table A to find the area to the left of z = –6.64 is 0.0001, so the P -value is 2(0.0001) = 0.0002. = z = x – µ x  n 98.2 – 98.6 = –6.64  106 H 0 :  = 98.6 H 1 :   98.6  = 0.05 x = 98.2  = 0.62
50. 52. Example 4: We are given a data set of 106 body temperatures having a mean of 98.20°F. Assume that the sample is a simple random sample and that the population standard deviation  is known to be 0.62°F. Use a 0.05 significance level to test the common belief that the mean body temperature of healthy adults is equal to 98.6°F. Use the P -value method. z = –6.64 H 0 :  = 98.6 H 1 :   98.6  = 0.05 x = 98.2  = 0.62
51. 53. Example 4: We are given a data set of 106 body temperatures having a mean of 98.20°F. Assume that the sample is a simple random sample and that the population standard deviation  is known to be 0.62°F. Use a 0.05 significance level to test the common belief that the mean body temperature of healthy adults is equal to 98.6°F. Use the P -value method. z = –6.64 Because the P -value of 0.0002 is less than the significance level of  = 0.05, we reject the null hypothesis. There is sufficient evidence to conclude that the mean body temperature of healthy adults differs from 98.6°F. H 0 :  = 98.6 H 1 :   98.6  = 0.05 x = 98.2  = 0.62
52. 54. Example 5: A survey of n = 880 randomly selected adult drivers showed that 56%(or p-hat = 0.56) of those respondents admitted to running red lights. Find the value of the test statistic for the claim that the majority of all adult drivers admit to running red lights.
53. 55. The claim is that the majority of all Americans run red lights. That is, p > 0.5. The sample data are n = 880, and p = 0.56. np = (880)(0.5) = 440  5 n(1-p) = (880)(0.5) = 440  5
54. 56. Example 5: In an article distributed by the Associated Press included these results from a nationwide survey: Of 880 randomly selected drivers, 56% admitted that they run red lights. The claim is that the majority of all Americans run red lights. That is, p > 0.5. The sample data are n = 880, and p = 0.56. We will use the P -value Method.  H 0 : p = 0.5 H 1 : p > 0.5  = 0.05 Referring to Table A, we see that for values of z = 3.50 and higher, we use 0.9999 for the cumulative area to the left of the test statistic. The P-value is 1 – 0.9999 = 0.0001. p(1-p) n p – p z =  0.56 – 0.5 (0.5)(0.5) 880 = = 3.56
55. 57. Interpretation: In an article distributed by the Associated Press included these results from a nationwide survey: Of 880 randomly selected drivers, 56% admitted that they run red lights. The claim is that the majority of all Americans run red lights. That is, p > 0.5. The sample data are n = 880, and p = 0.56. We will use the P -value Method.  H 0 : p = 0.5 H 1 : p > 0.5  = 0.05 We know from previous chapters that a z score of 3.56 is exceptionally large. The corresponding P -value of 0.0001 is less than the significance level of  = 0.05, we reject the null hypothesis. There is sufficient evidence to support the claim. p(1-p) n p – p z =  0.56 – 0.5 (0.5)(0.5) 880 = = 3.56
56. 58. Interpretation : In an article distributed by the Associated Press included these results from a nationwide survey: Of 880 randomly selected drivers, 56% admitted that they run red lights. The claim is that the majority of all Americans run red lights. That is, p > 0.5. The sample data are n = 880, and p = 0.56. We will use the P -value Method.  H 0 : p = 0.5 H 1 : p > 0.5  = 0.05 z = 3.56
57. 59. <ul><li>Do problems 42 and 44 </li></ul>
58. 60. <ul><li>Section 10.4 </li></ul><ul><li>Inference as Decision </li></ul>
59. 61. Traditional method : Reject H 0 if the test statistic falls within the critical region. Fail to reject H 0 if the test statistic does not fall within the critical region. Decision Criterion
60. 62. P -value method : Reject H 0 if P -value   (where  is the significance level, such as 0.05). Fail to reject H 0 if P -value >  . ** this is the method you will use Decision Criterion**
61. 63. Decision Criterion Confidence Intervals : Because a confidence interval estimate of a population parameter contains the likely values of that parameter, reject a claim that the population parameter has a value that is not included in the confidence interval.
62. 65. Wording of Final Conclusion
63. 66. Accept versus Fail to Reject <ul><li>Some texts use “accept the null hypothesis.” </li></ul><ul><li>We will use the phrase “fail to reject” instead. </li></ul><ul><li>We are not proving the null hypothesis. </li></ul><ul><li>The sample evidence is not strong enough to warrant rejection (such as not enough evidence to convict a suspect). </li></ul>
64. 67. Type I Error <ul><li>A Type I error is the mistake of rejecting the null hypothesis when it is true. </li></ul><ul><li>The symbol   (alpha) is used to represent the probability of a type I error. </li></ul>
65. 68. Type II Error <ul><li>A Type II error is the mistake of failing to reject the null hypothesis when it is false . </li></ul><ul><li>The symbol  (beta) is used to represent the probability of a type II error . </li></ul>
66. 70. Controlling Type I and Type II Errors <ul><li>For any fixed  , an increase in the sample size n will cause a decrease in  </li></ul><ul><li>For any fixed sample size n , a decrease in  will cause an increase in  . Conversely, an increase in  will cause a decrease in  . </li></ul><ul><li>To decrease both  and  , increase the sample size. </li></ul>
67. 71. <ul><li>The ability to detect a false hypothesis is called the power of the test. </li></ul><ul><li>The power of the test is the probability that it correctly rejects a false null hypothesis. </li></ul><ul><li>Power = 1 – β </li></ul>Type II error β OK Fail to Reject H o Power 1- β Type I error α Reject H o H o False H o True
68. 72. <ul><li>When power is high we can be confident </li></ul><ul><li>If we fail to reject the false null hypothesis, </li></ul><ul><li>the test’s power comes into question </li></ul><ul><ul><ul><li>Was the sample big enough? </li></ul></ul></ul><ul><ul><ul><li>Did we miss an effect? </li></ul></ul></ul><ul><ul><ul><li>Did we fail to gather sufficient data? </li></ul></ul></ul><ul><ul><ul><li>Was there too much variability? </li></ul></ul></ul><ul><li>What power is needed? The choice of power is frequently determined by financial or scientific concerns. </li></ul>
69. 73. <ul><li>Summary of the P-Value Method </li></ul><ul><li>Identify the specific claim or hypothesis to be tested, and put it in symbolic form. </li></ul><ul><li>Give the symbolic form that must be true when the original claim is false. </li></ul><ul><li>Of the two symbolic expressions, let the alternative hypothesis H A be the one not containing the equality, so that H A uses the symbol > or < or ≠. Let the null hypothesis H 0 be the symbolic expression that the parameter equals the fixed value being considered. </li></ul><ul><li>Select the significance level α based on the seriousness of a type 1 error. Make α small if the consequences of rejecting a true H 0 are severe. The values of 0.05 and 0.01 are most frequently used. </li></ul><ul><li>Identify the statistic that is relevant to this test and determine its sampling distribution (such as normal, t, or chi square). </li></ul><ul><li>Find the test statistic and find the P-value. Draw a graph and show the test statistic and P-value. </li></ul><ul><li>Reject H 0 if the P-value is less than or equal to the significance level α . Fail to reject H 0 if the P-value is greater than α . </li></ul><ul><li>Restate the decision in simple, non-technical terms and address the original claim. </li></ul>
70. 74. <ul><li>Do problems 68 & 82 from The Practice of Statistics 2 nd Edition </li></ul>
71. 75. Baseball Problem <ul><li>Check conditions: (1) plausible independence condition (2) random condition (3) 10% condition (4) np > 10 and n(1-p)> 10 </li></ul><ul><li>In 2002 in Major League Baseball there were 2425 regular season games. Home teams won 1314 of 2425 or 54.2%. Can this be explained by national sampling variability or home field advantage? We want to know whether the home team in professional baseball is more likely to win. The parameter of interest is the proportion of home team wins. With no advantage, we’d expect that proportion to be .50. </li></ul>
72. 76. <ul><li>p-hat = .542 </li></ul><ul><li>z = p-hat – p/ sd phat = </li></ul>p(z> 4.14) = p < .0001 There is a .0001 chance the home team is more likely to win.
73. 77. CAUTION <ul><li>When the calculation of p results in a decimal with many places, store the number on your calculator and use all of the decimals when evaluating the z test statistic. </li></ul><ul><li>Large errors can result from rounding p hat too much. </li></ul> 