1 / 51

Chapter 6.1

Chapter 6.1. Estimating with Confidence. Point estimation. Sample mean is the natural estimator of the unknown population mean. Is the point estimation a good method? 1. It may never hit the true value (population mean).

asabi
Télécharger la présentation

Chapter 6.1

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 6.1 Estimating with Confidence

  2. Point estimation • Sample mean is the natural estimator of the unknown population mean. • Is the point estimation a good method? 1. It may never hit the true value (population mean). 2. We have no idea about the variability of the estimation. Therefore, we have no confidence about how close our estimator is to the true value. Net Gun Taser Gun • Idea: It is better to use an INTERVAL than a POINT estimator.

  3. Review: Chapter 1.3: All Normal curves N(m,s) share 68-95-99.7 Rule • About 68% of all observations are within 1 SD (s) of mean (m). • Called: C=68%, z*≈1 • About 95% of all observations are within 2 s of the mean m. • Called: C=95%, z* ≈ 2 • Almost all (99.7%) observations are within 3 s of the mean. • Called: C=99.7%, z* ≈ 3 Standard Normal Distribution N(0, 1) Reminder: µ (mu) is the mean of the idealized curve, while x¯ is the mean of a sample. s (sigma) is the standard deviation of the idealized curve, while s is the s.d. of a sample.

  4. Point estimation versus interval • When population mean is unknown, it is better to use an interval than a point to estimate it. • The theory behind interval estimation looks at the sampling distribution of the statistic. • Confidence level C- CI for the population mean µ is : For a particular confidence level, C, the appropriate z* value is given in the last row of Table D. Example: For a 98% confidence level, z*=2.326

  5. The confidence interval is thus: Confidence levels Confidence intervals contain the population mean m in C% of samples. Different areas under the curve give different confidence levels C. z*: • z* is related to the chosen confidence level C. • C is the area under the standard normal curve between −z* and z*. C −z* z* Example: For an 80% confidence level C, 80% of the normal curve’s area is contained in the interval.

  6. Specific Confidence Intervals for population mean 99% CI for the population mean µ is : i.e.: C=99%, z*=2.576 95% CI for the population mean µ is : i.e.: C=95%, z*=1.960 90% CI for the population mean µ is : i.e.: C=90%, z*=1.645

  7. Example 1 • The average lifetime of 36 randomly selected certain brand TVs is 20 years. Suppose the SD of all TVs is 2 years. • Construct a 95% CI for the average lifetime of all TVs from this brand. A 95% CI for the average lifetime of all TVs from this brand is: (19.35, 20.65)

  8. Example 2 1. The average height of 100 randomly selected UNCW students is 5.9 feet. Suppose the SD of the heights of all students is 1.2 feet. • Construct 99%, 95% and 90% CIs for the average height of all students. A 99% CI for the average height of all students is: (5.5904, 6.2096) A 95% CI for the average height of all students is: (5.6648, 6.1352) A 90% CI for the average height of all students is: (5.702, 6.098) Note: Confidence level C gets smaller, CI gets smaller 2. Select another set of 100 UNCW students randomly. The average height of second set of 100 students is 5.5 feet. Suppose the SD of the heights of all students is 1.2 feet. • Construct 95% CIs for the average height of all students. A 95% CI for the average height of all students is: (5.2648, 5.7352)

  9. Outlines for Z* • Z* depends on the level of confidence C. • What does “confidence” mean? See applet. • This idea is only true for simple random samples and completely randomized experiments. • Margin of error: Z*/√(n) • http://bcs.whfreeman.com/ips7e/#616906__657132__

  10. Understanding of Confidence Intervals With 95% confidence, we can say that µ should be within roughly 2 standard deviations (that is, 2*s/√n) from our sample mean . • About 95% of all possible samples of this size n, µ will indeed fall in our confidence interval. • About only 5% of samples would be farther from µ. • applet.

  11. C m m −z* z* Link between confidence level and margin of error The margin of error depends on z. Higher confidence C implies a larger margin of error m (thus less precision in our estimates). A lower confidence level C produces a smaller margin of error m (thus better precision in our estimates).

  12. Example 3 • A 90% CI for the average life that this medicine can prolong for all cancer patients is: (3.8453, 4.1547); • Z*=1.645; MOE=(1.645)*(0.75)/sqrt(n)=0.1; so n=(1.645*0.75/0.1)^2=152.2139. • We will take n=153.

  13. Summary to Confidence Interval • If Confidence level C gets larger and n stays the same, what will happen to z*, MOE, CI, and prediction precision? • If Z* and  stay the same, when n goes bigger, what will happen to MOE and CI?

  14. Chapter 6.2 Hypothesis Testing

  15. 6.2 Tests of hypothesis 5 Steps to Hypothesis Testing • State the hypothesis • State the level of significance • Calculate the test statistic • Find the p-value • Conclusion (both statistical and non-statistical)

  16. Hypothesis Testing • The idea of hypothesis testing is to use the data to make a decision. In hypothesis testing, there are only two “decisions”, also called hypotheses, in which the data could support. The two hypotheses are called the null hypothesis and the alternative hypothesis. • Forms of Null and Alternative Hypotheses

  17. Null Hypothesis Expectation --- what somebody believes or claims before the sample available. • Null hypothesis: the hypothesis you assume to be true, the one you are comparing against your data. denoted by H0. • Many times the null hypothesis is a statement of “no effect” or of “no difference”… • “Being fair” • E.g.: Last year, your company’s service technicians took an average of 2.6 hours to response to trouble calls from business customers who had purchased service contracts. Do this year’s data show a lower average response time?

  18. Alternative Hypothesis Expectation is not correct --- the difference between the expectation and sample statistic is real. • Alternative hypothesis: express the hopes or suspicions we bring to data. • The test is designed to assess the strength of evidence against the null hypothesis, denoted by Ha . • It’s a statement that “supports” the information from the data. • E.g.: Last year, your company’s service technicians took an average of 2.6 hours to response to trouble calls from business customers who had purchased service contracts. Do this year’s data show a lower average response time?

  19. Example 1 • Exercise 6.55 (p. 391): Translate each of the following research questions into appropriate H0 and Ha. • Census Bureau data show that the mean household income in the area served by a shopping mall is $62,500 per year. A market research firm questions shoppers at the mall to find out whether the mean household income of mall shoppers is higher than that of the general population. a) H0 : µ = $62,500 verse Ha : µ > $62,500.

  20. Example 1 cont. • Exercise 6.55 (p. 391): Translate each of the following research questions into appropriate H0 and Ha. b) Last year, your company’s service technicians took an average of 2.6 hours to response to trouble calls from business customers who had purchased service contracts. Do this year’s data show a different average response time? b) H0 : µ = 2.6 hours verse Ha : µ ≠ 2.6 hours.

  21. 6.2 Tests of hypothesis 5 Steps to Hypothesis Testing • State the hypothesis • State the level of significance (α=0.05 unless otherwise stated) • Calculate the test statistic • Find the p-value • Conclusion (both statistical and non-statistical)

  22. 6.2 Tests of hypothesis--Review E.g.: Last year, your company’s service technicians took an average of 2.6 hours to response to trouble calls from business customers who had purchased service contracts. Do this year’s data show a lower average response time? E.g.: Census Bureau data show that the mean household income in the area served by a shopping mall is $62,500 per year. A market research firm questions shoppers at the mall to find out whether the mean household income of mall shoppers is higher than that of the general population. E.g.: Last year, your company’s service technicians took an average of 2.6 hours to response to trouble calls from business customers who had purchased service contracts. Do this year’s data show a different average response time? a) H0 : µ = 2.6 hours verse Ha : µ < 2.6 hours. b) H0 : µ = $62,500 verse Ha : µ > $62,500. c) H0 : µ = 2.6 hours verse Ha : µ ≠ 2.6 hours.

  23. One-sided and two-sided tests for P-value • A two-tail or two-sided test of the population mean has these null and alternative hypotheses: H0 :  µ= [a specific number] Ha: µ [a specific number] • A one-tail or one-sided test of a population mean has these null and alternative hypotheses: H0 :   µ= [a specific number] Ha :   µ < [a specific number] OR H0 :   µ = [a specific number] Ha :   µ > [a specific number]

  24. Sampling distribution σ/√n µdefined by H0 Find P-value The P-value is the area under the sampling distribution for values at least as extreme, in the direction of Ha, as that of our random sample. Use Table A, or NORMALCDF in calculator. e.g. H0 : µ = 2.6 hours verse Ha : µ < 2.6 hours gives test statistic Z=-1.6. Q: Find the p-value.

  25. P-value in one-sided and two-sided tests One-sided (one-tailed) test Two-sided (two-tailed) test To calculate the P-value for a two-sided test, use the symmetry of the normal curve. Find the P-value for a one-sided test, and double it.

  26. Example 3: One-sample Z-test A test of the null hypothesis H0 : µ = µ0 gives test statistic Z=-1.6 a) What is the P-value if the alternative is Ha : µ > µ0 ? b) What is the P-value if the alternative is Ha : µ < µ0 ? c) What is the P-value if the alternative is Ha : µ ≠ µ0 ?

  27. Example 3(cont.): One-sample Z-test A test of the null hypothesis H0 : µ = µ0 gives test statistic Z=2.1 a) What is the P-value if the alternative is Ha : µ > µ0 ? b) What is the P-value if the alternative is Ha : µ < µ0 ? c) What is the P-value if the alternative is Ha : µ ≠ µ0 ?

  28. How to do 5 steps • State H0 and Ha • State the level of significance (Usually α is 5% ). • Calculate the test statistic (ASSUMING THE NULL HYPOTHESIS IS TRUE) • Find the P-value, that is the probability in the direction of Ha. • Draw Conclusion: If P-value ≤ α, then we reject H0 (Enough evidence). If P-value > α, then we do not reject H0 (No Enough evidence). Note: The two possible conclusions are rejecting or not rejecting H0.

  29. Example 2: The P-value for a significance test is 0.032 a) Do you reject the null hypothesis at level α = 0.05? b) Do you reject the null hypothesis at level α = 0.01? c) Explain your answers. Note that: If P-value ≤ α, then we reject H0 (Enough evidence). If P-value > α, then we do not reject H0 (No Enough evidence).

  30. Chap 5: Sampling distribution of a sample mean=distribution of Population

  31. One-sample Z-test for population mean: • Test statistics is a Z-score to the sampling distribution of the sample mean (see chapter 5.1)

  32. Example 4: One-sample Z-Test (one sided) • The National Center for Health Statistics reports that the mean systolic blood pressure for males 35 to 44 years of age is 128 with a population SD=15. • The medical director of a company looks at the medical records of 72 company executives in this age group and finds that the mean systolic blood pressure in this sample is 126.07. Is this evidence that executives blood pressures are lower than the national average?

  33. Answer to Example 4: (1) Hypothesis: H0 : µ = 128 v.s. Ha : µ <128. (2) α = 5% (3) One-sample Z-Test statistics (4) From table A, the area under the standard normal curve to the left of z is 0.1379.Thus, P-value = normalcdf(-999, -1.09, 0, 1) = 0.1379 = 13.79%. (5) (Statistical Conclusion) Since P-value > α, we do not reject H0. (Non- Statistical Conclusion) That is, there is NO evidence that executives blood pressures are lower than the national average.

  34. Example 5: One-sample Z-Test(two sided) A new medicine treating cancer was introduced to the market decades ago and the company claimed that on average it will prolong a patient’s life for 5.2 years. Suppose the SD of all cancer patients is 2.52. In a 10 years study with 64 patients, the average prolonged lifetime is 4.6 years. With normality assumption, do the 10-year study’s data show a different average prolonged lifetime?

  35. Answer to Example 5: (1) Hypothesis: H0 : µ = 5.2 year versus Ha : µ ≠ 5.2 year. (2) α = 5% (3) One-sample Z-Test statistics (4) From table A, the area under the standard normal curve to the left of z=-1.90 is normalcdf(-999, -1.90, 0, 1) = 0.0287.Thus, P-value = 2*0.0287 = 0.0574=5.74%. (Statistical Conclusion) Since P-value > α, we do not reject H0. (Non-Statistical Conclusion) There is NOT enough evidence to conclude that 10-year study’s data show a different average prolonged lifetime.

  36. Example 5.1 (Based on Example 5) Find a 95% confidence interval for the average prolonged lifetime for all patients. A 95% CI for the average prolonged lifetime for all patients is given by: [3.9826, 5.2174] Note: Since H0 : µ =5.2, we have µ0 =5.2 which falls inside the 95% CI. We are therefore 95% confident that µ is equal to 5.2. Therefore, we did not reject H0 at the level of 5%.

  37. α /2 α /2 Confidence intervals to test hypotheses For a level atwo-sided significance test: Rejects H0: m = m0 exactly when the hypothesized value m0 falls outside a level (1-a)100% confidence interval for m . In a two-sided test, C = 1 – α. C confidence level α significance level

  38. Logic of confidence interval test Ex: Your sample gives a 99% confidence interval of . With 99% confidence, could samples be from populations with µ = 0.86? µ = 0.85? Cannot reject H0: m = 0.85 Reject H0 : m = 0.86 99% C.I.

  39. Example 6: The P-value for a two-sided test of the null hypothesis H0 : µ = 30 is 0.04. • Does the 95% confidence interval include the value 30? Why? • Does the 90% confidence interval include the value 30? Why? • Note that In a two-sided test, C = 1 – α. C confidence level , α significance level

  40. Example 7: A 90% confidence interval for a population mean is (12, 15). a) Can you reject the null hypothesis that H0 : µ = 13 at the 10% significance level? Why? b) Can you reject the null hypothesis that H0 : µ = 10 at the 10% significance level? Why?

  41. Multiple Choice Questions 10. The P-value for a two-sided test of the null hypothesis is 0.09, a) the 99% confidence interval includes the value 30. b) the 95% confidence interval includes the value 30. c) the 90% confidence interval does not include the value 30. d) All of the above are correct.

  42. Exercises on Hypothesis Testing (One-sample Z-test) 1. Because of variation in the manufacturing process, tennis balls produced by a particular machine do not have identical diameters, which is supposed to be 3in. The population SD is 0.15 in. If the average diameters of the first 36 balls made from a machine is 3.2in, shall we stop and calibrate the machine? 2. A new medicine treating cancer was introduced to the market decades ago and the company claimed that on average it will prolong a patient’s life for 5 years. The population SD is 0.4 year. In a 10 years study with 81 patients, the average prolonged lifetime is 4.5 years. With normality assumption, shall we reject the original claim? 3. The registrar office claims that the average SAT score of UNCW students is 1050. The population SD is 80. Suppose you randomly select 100 UNCW students the SAT score average of your sample is 1020. Do you agree with the claim? 4. National data shows that on the average, college freshmen spend 7.5 hours a week going to parties. The population SD is 2 hours. One administrator takes a random sample of 81 freshmen from her college and finds out that her students’ average hours spent on parties is 6.6. Shall the administrator believe that the national data applies to her students?

  43. Solutions • H0 : µ = 3, Ha : µ ≠ 3; α = 5%;Z=(3.2-3)/(.15/(36)^.5)=8; P-value = 2*0= 0<5%;we reject H0 and we shall stop and calibrate the machine. • H0 : µ = 5, Ha : µ ≠ 5; α = 5%;Z=(4.5-5)/(.4/(81)^.5)=-11.25; P-value = 2*0= 0<5%;we reject H0 and we shall reject the claim that the average is 5 years. • H0 : µ = 1050,Ha :µ ≠ 1050; α = 5%;Z=(1020-1050)/(80/(100)^.5)=-3.75; P-value = 2*0= 0<5%;we reject H0 and we shall stop and calibrate the machine. • H0 : µ = 7.5, Ha : µ ≠ 7.5; α = 5%;Z=(6.6-7.5)/(2 /(81)^.5)=-4.05; P-value = 2*0= 0<5%;we reject H0 and the national data does not apply.

  44. Multiple Choice Questions 1. Which of the following is not needed to compute a confidence interval for the population mean? a) The sample size. b) The confidence level. c) The sample mean. d) All above are needed to compute a confidence interval for the population mean.

  45. Multiple Choice Questions 2. In a large population of adults, the mean IQ is 112 with standard deviation 20. Suppose 200 adults are randomly selected for a market research campaign. The distributions of the sample mean IQ is:  a) Exact Normal, mean 112, standard deviation 20. b) Approximately normal, mean 112, standard deviation 20. c) Approximately normal, mean 112, standard deviation 1.414. d) Approximately normal, mean 112, standard deviation 0.1.

  46. Multiple Choice Questions 3. A recent Gallup Poll interviewed a random sample of 1523 adults. Of these, 868 bought a lottery ticket in the past year. Suppose that in fact (unknown to Gallup) exactly 60% of all adults bought a lottery ticket in the past year. If Gallup took many SRSs of 1523 people, the sample proportion who bought a ticket would vary from sample to sample. The sampling distribution would be close to normal with a) mean 0.6 and standard deviation 0.00016. b) mean 0.6 and standard deviation 0.0126. c) mean 0.6 and standard deviation 0.4899. d) mean 0.6 and standard deviation 0.0251.

  47. Multiple Choice Questions 7. The margin of error of a confidence interval decreases as a) the confidence level C decreases. b) the sample size n increases. c) the population standard deviation decreases. d) all of the above are correct.

  48. Multiple Choice Questions 8. If a significance test gives a P-value of 0.50, a) the margin of error is 0.50. b) the effect of interest is practically significant. c) we do not have good evidence against the null hypothesis d) we do have good evidence against the null hypothesis.

  49. Multiple Choice Questions 9. A test of the null hypothesis verse alternative hypothesis gives test statistic z is 2.5. a) we conclude that the null hypothesis and the alternative hypothesis are the same. b) we reject the null hypothesis at the 5% significance level. c) we fail to reject the null hypothesis at the 5% significance level. d) we reject the alternative hypothesis at the 5% significance level.

  50. Sample Test Questions 13.Antonio measures the alcohol content of whiskey for his Chemistry 101 lab. He actually measures the mass of 5 milliliters of whiskey – a chemical calculation then finds the percent alcohol from the mass. The standard deviation of students’ measurements of mass is milligrams (mg). How many times must Antonio repeat the measurement to reduce the standard deviation of to be 5 mg?

More Related