Statistics for Business and Economics Module 1:Probability Theory and Statistical Inference Spring 2010 Lecture 8: Tests of significance and confidence.

Slides:



Advertisements
Similar presentations
Inference for Proportions Inference for a Single Proportion
Advertisements

Significance Tests About
Business Statistics for Managerial Decision
Chapter 9 Hypothesis Testing.
Inference for proportions - Comparing 2 proportions IPS chapter 8.2 © 2006 W.H. Freeman and Company.
Inference for proportions - Comparing 2 proportions IPS chapter 8.2 © 2006 W.H. Freeman and Company.
Comparing 2 proportions BPS chapter 21 © 2006 W. H. Freeman and Company These PowerPoint files were developed by Brigitte Baldi at the University of California,
Inference about a population proportion BPS chapter 20 © 2006 W.H. Freeman and Company.
Chapter 8 Inference for Proportions
8.1 Inference for a Single Proportion
Inference for proportions - Inference for a single proportion IPS chapter 8.1 © 2006 W.H. Freeman and Company.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Objectives (BPS chapter 20) Inference for a population proportion  The sample proportion  The sampling distribution of  Large sample confidence interval.
Confidence intervals are one of the two most common types of statistical inference. Use a confidence interval when your goal is to estimate a population.
CHAPTER 20: Inference About a Population Proportion
The Practice of Statistics Third Edition Chapter 10: Estimating with Confidence Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
CHAPTER 9 Testing a Claim
Introduction to the Practice of Statistics Fifth Edition Chapter 6: Introduction to Inference Copyright © 2005 by W. H. Freeman and Company David S. Moore.
Chapter 9: Testing a Claim Section 9.2 Tests About a Population Proportion.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 22 Comparing Two Proportions.
CHAPTER 20: Inference About a Population Proportion ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Comparing 2 Proportions © 2006 W.H. Freeman and Company.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 8 First Part.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 4 First Part.
Fall 2002Biostat Statistical Inference - Proportions One sample Confidence intervals Hypothesis tests Two Sample Confidence intervals Hypothesis.
© Copyright McGraw-Hill 2004
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.2 Tests About a Population.
Hypothesis Tests for 1-Proportion Presentation 9.
Statistics for Business and Economics Module 1:Probability Theory and Statistical Inference Spring 2010 Lecture 4: Estimating parameters with confidence.
Objectives (PSLS Chapter 19) Inference for a population proportion  Conditions for inference on proportions  The sample proportion (p hat )  The sampling.
Daniel S. Yates The Practice of Statistics Third Edition Chapter 12: Significance Tests in Practice Copyright © 2008 by W. H. Freeman & Company.
The Practice of Statistics Third Edition Chapter 12: Significance Tests in Practice Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Copyright © 2009 Pearson Education, Inc t LEARNING GOAL Understand when it is appropriate to use the Student t distribution rather than the normal.
Comparing Two Proportions Chapter 21. In a two-sample problem, we want to compare two populations or the responses to two treatments based on two independent.
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Chapter 8: Inference for Proportions
Chapter 10: Comparing Two Populations or Groups
Chapter 8 Inference for Proportions
CHAPTER 22: Inference about a Population Proportion
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 8 Inference for Proportions
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Unit 5: Hypothesis Testing
Chapter 9: Testing a Claim
Chapter 10: Comparing Two Populations or Groups
Presentation transcript:

Statistics for Business and Economics Module 1:Probability Theory and Statistical Inference Spring 2010 Lecture 8: Tests of significance and confidence interval estimators 3 Priyantha Wijayatunga, Department of Statistics, Umeå University These materials are altered ones from copyrighted lecture slides (© 2009 W.H. Freeman and Company) from the homepage of the book: The Practice of Business Statistics Using Data for Decisions :Second Edition by Moore, McCabe, Duckworth and Alwan.

Inference for a single proportion  Conditions for inference on p  Large-sample confidence interval for p  Plus four confidence interval for p  Significance test for a proportion  Choosing a sample size

Introduction  Many studies collect data on categorical variables, such as race or occupation of a person, the make of a car, etc.  The parameters of interest in these settings are population proportions.  The statistic used to estimate a population proportion is the sample proportion.

Sampling distribution of a sample proportion The sampling distribution of a sample proportion is approximately normal (normal approximation of a binomial distribution) when the sample size is large enough.

Conditions for inference on p Assumptions: 1.The data used for the estimate are an SRS from the population studied. 2.The population is at least 10 times as large as the sample used for inference. This ensures that the standard deviation of is close to 3.The sample size n is large enough that the sampling distribution can be approximated with a normal distribution. How large a sample size is required depends in part on the value of p and the test conducted. Otherwise, rely on the binomial distribution.

Large-sample confidence interval for p Use this method when the number of successes and the number of failures are both at least 15. C Z*Z*−Z*−Z* m Confidence intervals contain the population proportion p in C% of samples. For an SRS of size n drawn from a large population and with sample proportion calculated from the data, an approximate level C confidence interval for p is: C is the area under the standard normal curve between −z* and z*.

Medication side effects Arthritis is a painful, chronic inflammation of the joints. An experiment on the side effects of pain relievers examined arthritis patients to find the proportion of patients who suffer side effects. The experiment found that 23 of a sample of 440 arthritis patients suffered some “adverse symptoms.”

Let’s calculate a 90% confidence interval for the population proportion of arthritis patients who suffer some “adverse symptoms.” What is the sample proportion ? What is the sampling distribution for the proportion of arthritis patients with adverse symptoms for samples of 440? For a 90% confidence level, z* = Using the large sample method, we calculate a margin of error m:  With 90% confidence level, between 2.9% and 7.5% of arthritis patients taking this pain medication experience some adverse symptoms.

Because we have to use an estimate of p to compute the margin of error, confidence intervals for a population proportion are not very accurate. Specifically, we tend to be incorrect more often than the confidence level would indicate. But there is no systematic amount (because it depends on p). Use with caution!

Plus four confidence interval for p A simple adjustment produces more accurate confidence intervals. We act as if we had four additional observations, two being successes and two being failures. Thus, the new sample size is n + 4 and the count of successes is X + 2. The “plus four” estimate of p is: And an approximate level C confidence interval is: Use this method when C is at least 90% and sample size is at least 10.

We now use the “plus four” method to calculate the 90% confidence interval for the population proportion of arthritis patients who suffer some “adverse symptoms.” An approximate 90% confidence interval for p using the “plus four” method is:  With 90% confidence level, between 3.8% and 7.4% of arthritis patients taking this pain medication experience some adverse symptoms. What is the value of the “plus four” estimate of p?

Significance test for p The sampling distribution for is approximately normal for large sample sizes and its shape depends on p and n. Thus, we can easily test the null hypothesis: H 0 : p = p 0 (a given value we are testing). If H 0 is true, the sampling distribution is known  The likelihood of our sample proportion given the null hypothesis depends on how far from p 0 our is in units of standard deviation. This is valid when both expected counts—expected successes np 0 and expected failures n(1 − p 0 )—are each 10 or larger.

P-values and one or two sided hypotheses — reminder If the P-value is as small or smaller than the chosen significance level , then the difference is statistically significant and we reject H 0.

A national survey by the National Institute for Occupational Safety and Health on restaurant employees found that 75% said that work stress had a negative impact on their personal lives. You investigate a restaurant chain to see if the proportion of all their employees negatively affected by work stress differs from the national proportion p 0 = H 0 : p = p 0 = 0.75 vs. H a : p ≠ 0.75 (2 sided alternative) In your SRS of 100 employees, you find that 68 answered “Yes” when asked, “Does work stress have a negative impact on your personal life?” The expected counts are 100 × 0.75 = 75 and 25. Both are greater than 10, so we can use the z-test. The test statistic is:

From Table A we find the area to the left of z = 1.62 is Thus P(Z ≥ 1.62) = 1 − , or Since the alternative hypothesis is two-sided, the P-value is the area in both tails, and P = 2 × =  The chain restaurant data are not significantly different from the national survey results ( = 0.68, z = 1.62, P = 0.11).

Software gives you summary data (sample size and proportion) as well as the actual p-value. Minitab Crunch It!

Interpretation: magnitude vs. reliability of effects The reliability of an interpretation is related to the strength of the evidence. The smaller the p-value, the stronger the evidence against the null hypothesis and the more confident you can be about your interpretation. The magnitude or size of an effect relates to the real-life relevance of the phenomenon uncovered. The P-value does NOT assess the relevance of the effect, nor its magnitude. A confidence interval will assess the magnitude of the effect. However, magnitude is not necessarily equivalent to how theoretically or practically relevant an effect is.

Sample size for a desired margin of error You may need to choose a sample size large enough to achieve a specified margin of error. However, because the sampling distribution of is a function of the population proportion p, this process requires that you guess a likely value for p: p*. The margin of error will be less than or equal to m if p* is chosen to be 0.5. Remember, though, that sample size is not always stretchable at will. There are typically costs and constraints associated with large samples.

What sample size would we need in order to achieve a margin of error no more than 0.01 (1%) for a 90% confidence interval for the population proportion of arthritis patients who suffer some “adverse symptoms.” We could use 0.5 for our guessed p*. However, since the drug has been approved for sale over the counter, we can safely assume that no more than 10% of patients should suffer “adverse symptoms” (a better guess than 50%). For a 90% confidence level, z* =  To obtain a margin of error no more than 1%, we would need a sample size n of at least 2435 arthritis patients.

Comparing two proportions  Comparing two independent samples  Large-sample confidence interval for two proportions  Plus four confidence interval for two proportions  Significance tests  Relative risk

Comparing two independent samples We often need to compare two treatments used on independent samples. We can compute the difference between the two sample proportions and compare it to the corresponding, approximately normal sampling distribution for ( 1 – 2 ):

Large-sample CI for two proportions For two independent SRSs of sizes n 1 and n 2 with sample proportion of successes 1 and 2 respectively, an approximate level C confidence interval for p 1 – p 2 is Use this method only when the populations are at least 10 times larger than the samples and the number of successes and the number of failures are each at least 10 in both samples. C is the area under the standard normal curve between −z* and z*.

“No Sweat” Garment Labels “No Sweat” labels on apparel indicate proper working conditions. Is there a gender difference in the proportion of label users? We want to calculate a 95% confidence interval for the difference in the proportions of label users. So the 95% CI is ± 1.96* = ± We are 95% confident that the difference in the proportions is between 0.04 and Standard error of the difference p 1 − p 2 : Xn Women (1) Men (2)

Plus four CI for two proportions The plus four method again produces more accurate confidence intervals. We act as if we had four additional observations: one success and one failure in each of the two samples. The new combined sample size is n 1 + n and the proportions of successes are: An approximate level C confidence interval is: Use this when C is at least 90% and both sample sizes are at least 5.

“No Sweat” Garment Labels – plus four CI “No Sweat” labels on apparel indicate proper working conditions. Is there a gender difference in the proportion of label users? We want to calculate a 95% confidence interval for the difference in the proportions of label users. Xn Women (1) Men (2) For the plus four procedure, we would use X 1 = 64, n 1 = 298, X 2 = 28, and n 2 = 253.

If the null hypothesis is true, then we can rely on the properties of the sampling distribution to estimate the probability of drawing 2 samples with proportions 1 and 2 at random. Test of significance This test is appropriate when the populations are at least 10 times as large as the samples and all counts are at least 5 (number of successes and number of failures in each sample). =0

“No Sweat” Garment Labels “No Sweat” labels on apparel indicate proper working conditions. Is there a gender difference in the proportion of label users? Are men and women equally likely to be label users? Here is the data summary: H 0 : p 1 = p 2 H a : p 1 ≠ p 2 Xn Women (1) Men (2) The P-value is 2P(Z > 3.3) = 2(0.0005) = The difference is statistically significant.

Relative risk Another way to compare two proportions is to study the ratio of the two proportions, which is often called the relative risk (RR). A relative risk of 1 means that the two proportions are equal. The procedure for calculating confidence intervals for relative risk is more complicated (use software) but still based on the same principles that we have studied. The age at which a woman gets her first child may be an important factor in the risk of later developing breast cancer. An international study selected women with at least one birth and recorded if they had breast cancer or not and whether they had their first child before their 30 th birthday or after. Birth age 30+Sample size Cancer % No149810, % Women with a late first child have 1.45 times the risk of developing breast cancer.