Download Math 243: Confidence Intervals & Hypothesis Tests for Proportions & Means - Prof. N. Phill and more Exams Probability and Statistics in PDF only on Docsity! Math 243: Lecture File 19 N. Christopher Phillips 2 June 2009 N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 1 / 26 Announcements Sample problems for the final exam have been posted. Partial review session information has been posted. Instructions for the final exam will be given either Thursday or in the discussion sections. Deadline for all extra credit: Midnight the night of Tuesday 9 June 2009. (We need to get it soon enough to get grades in by the university’s deadline.) There is a quiz in the discussion sections this week. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 2 / 26 Information on the the final exam The sample problem collection contains almost no problems from before the midterm. The final exam itself will, however, be cumulative, although with greater emphasis on material covered since the midterm. Look at the sample problem list for the midterm for sample problems on earlier material. The sample problems are in a rather random order. The emphasis that a topic receives on the final exam will not be the same as in this list of sample problems, for at least two reasons. First, the final exam will be much shorter. Second, some groups of related problems in this sample collection are longer because they illustrate a number of possible outcomes. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 3 / 26 Information on the the final exam (continued) Caution: Some confidence interval and hypothesis test problems present information in a form that can’t be directly entered into a calculator, or ask for the result in a form different from the usual calculator output. For example, the TI-83 calculator does not, as far as I can tell, give confidence intervals in the form (estimator)± (margin of error). Also, there are some proportion problems which give the sample proportion instead of the number of successes. If you try to calculate the number of successes from the sample proportion, you might not get an integer. (This can occur because of rounding errors.) However, my calculator does not allow one to enter a noninteger number of successes. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 4 / 26 Information on the the final exam (continued) Questions asked on the sample final problems or on the sample midterm problems about one of the procedures we have learned, say the one sample z procedure, may be asked on the actual exam about a different procedure (such as the matched pairs t procedure). There are no problems on the sample problem list which ask for the standard error in a test, but there will be some on the final exam. Also, review the comments on the sample midterm problems. As for the midterm, you may bring one two-sided page of notes and a calculator, but no cell phones. Exams will be available for inspection after they are graded. The original final exams will not be returned, but you can get a copy of your exam on request. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 5 / 26 Example: Is this problem silly? You choose a simple random sample of 100 students at the University of Oregon, and find that 72% of them think it is ridiculous to have problems in Math 243 which involve crumple-horned snorkacks. You also choose a simple random sample of 200 students at Oregon State University, and find that 67.5% of them think it is ridiculous to have problems in Math 243 which involve crumple-horned snorkacks. Find a 98% confidence interval for the difference in the proportions of students at the two universities who think such problems are ridiculous. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 6 / 26 Is this problem silly? (continued) Let p1 be the true proportion of students at the University of Oregon who think it is ridiculous to have problems in Math 243 which involve crumple-horned snorkacks. Let p2 be the true proportion of students at Oregon State University who think it is ridiculous to have such problems in Math 243. Note: There is no particular reason we couldn’t have reversed the labels. I chose p1 for the University of Oregon proportion for no better reason than that it was mentioned first. Can we use the large sample confidence interval? N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 7 / 26 Is this problem silly? (continued) 72% of 100 students at the University of Oregon think my problems are ridiculous. So do 67.5% of 200 students at Oregon State University. Can we use the large sample confidence interval? Both samples must have at least 10 successes and at least 10 failures. The University of Oregon sample has 0.72 · 100 = 72 successes and 100− 72 = 28 failures. The Oregon State University sample has 0.675 · 200 = 135 successes and 200− 135 = 65 failures. So we can use the large sample confidence interval. Note: There is nothing wrong with using the “plus four” confidence interval. But be sure to make clear which you do! N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 8 / 26 Summary of conditions for using the tests (continued) Two sample t procedure: confidence interval and hypothesis test (for comparing two population means). The data must come from simple random samples of the populations. Use the guidelines for the one sample t procedure with the sum n1 + n2 of the two sample sizes in place of n, but considering the shapes of both distributions. For sample sizes as small as n1 = n2 = 5, and with equal sample sizes, some skewness can be tolerated as long as both distributions have similar shapes. As examples of the last item: n1 = n2 = 5 and both distributions somewhat skewed left is OK n1 = 5, n2 = 8, and both distributions somewhat skewed left: No. n1 = n2 = 5, one distributions somewhat skewed left, and the other somewhat skewed right: No. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 17 / 26 Summary of conditions for using the tests (continued) One proportion z procedure: confidence interval (for a population proportion). The data must come from a simple random sample of the population. For the large sample version, there must be at least 15 successes and at least 15 failures. For the “plus four” version: Sample size n ≥ 10. Confidence level C ≥ 0.90 (that is, 90%). N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 18 / 26 Summary of conditions for using the tests (continued) One proportion z procedure: hypothesis test (for a population proportion). The data must come from a simple random sample of the population. Let p0 be what the null hypothesis says the true proportion is supposed to be. Then the sample size n must be large enough that np0 ≥ 10 and n(1− p0) ≥ 10. Remember that the test is carried out assuming that the null hypothesis is true. Thus, the assumption is that the null hypothesis says there should be at least 10 successes and at least 10 failures. There is no “plus four” version of a hypothesis test! N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 19 / 26 Summary of conditions for using the tests (continued) Two proportion z procedure: confidence interval (for comparing two population proportions). The data must come from simple random samples of the populations. For the large sample version, there must be at least 10 successes and at least 10 failures in each sample. For the “plus four” version, both sample sizes must be at least 5. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 20 / 26 Summary of conditions for using the tests (continued) Two proportion z procedure: hypothesis test (for comparing two population proportions). The data must come from simple random samples of the populations. There must be at least 5 successes and at least 5 failures in each sample. There is no “plus four” version of a hypothesis test! N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 21 / 26 Examples of conditions for population procedures Out of a simple random sample of 200 high school seniors in Megalopolis (a very large city), 25 are taking calculus. Out of a simple random sample of 50 high school seniors in Gorman (a moderate size town with about 2000 high school students), 10 are taking calculus. Out of a simple random sample of 20 high school seniors in Snailsville (also a moderate size town with about 2000 high school students), 9 are taking calculus. Out of a simple random sample of 20 high school seniors in East Snailsville (which has one high school with about 600 students), 6 are taking calculus. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 22 / 26 Examples of conditions for population procedures (continued) Out of a simple random sample of 200 high school seniors in Megalopolis (a very large city), 25 are taking calculus. There are surely more than 20,000 high school students in Megalopolis, so more than 5000 high school seniors, and the population is much bigger than the sample. There are at least 15 each successes and failures in the sample, so both confidence interval procedures apply. We can also do most reasonable hypothesis tests. We can’t, however, test whether at least 4% of Megalopolis high school seniors are taking calculus. This would give p0 = 0.04, so np0 = (200)(0.04) = 8, which is less than 10. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 23 / 26 Examples of conditions for population procedures (continued) Out of a simple random sample of 20 high school seniors in East Snailsville (which has one high school with about 600 students), 6 are taking calculus. There are probably only about 150 high school seniors in East Snailsville. So the population is less than 10 times the sample size, and we can do no tests at all. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 24 / 26 Examples of conditions for population procedures (continued) Out of a simple random sample of 20 high school seniors in Snailsville (also a moderate size town with about 2000 high school students), 9 are taking calculus. There are probably about 400 high school seniors in Snailsville. So the population is about 20 times the sample size, and we can do tests. We can’t use the large sample confidence interval, since there are less than 15 successes. We can use the “plus four” confidence interval to get a 95% confidence interval or a 90% confidence interval, but not an 80% confidence interval. We can test for whether less than half (or more than half, or different from a half) of high school seniors in Snailsville are taking calculus, since then np0 = 10 and n(1− p0) = 10. We can’t do any other hypothesis tests. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 25 / 26 Examples of conditions for population procedures (continued) Out of a simple random sample of 50 high school seniors in Gorman (a moderate size town with about 2000 high school students), 10 are taking calculus. As for the Snailsville problems, there are probably about 400 high school seniors in Gorman. So the population is about 20 times the sample size, and we can do tests. Are more than 10% of high school seniors in Gorman taking calculus? To use the one proportion z hypothesis test procedure, we need np0 ≥ 10 and n(1− p0) ≥ 10. Here np0 = (50)(0.10) = 5, so we can’t use the test. Are less than 30% of high school seniors in Gorman taking calculus? Here np0 = (50)(0.30) = 15 and n(1− p0) = (50)(0.70) = 35. Both are at least 10, so we can use the test. N. Christopher Phillips () Math 243: Lecture File 19 2 June 2009 26 / 26