Workbook 05-Lab 4- Hypothesis Testing for a Population Proportion

Total Page:16

File Type:pdf, Size:1020Kb

Workbook 05-Lab 4- Hypothesis Testing for a Population Proportion Author: Brenda Gunderson, Ph.D., 2015 License: Unless otherwise noted, this material is made available under the terms of the Creative Commons Attribution- NonCommercial-Share Alike 3.0 Unported License: http://creativecommons.org/licenses/by-nc-sa/3.0/ The University of Michigan Open.Michigan initiative has reviewed this material in accordance with U.S. Copyright Law and have tried to maximize your ability to use, share, and adapt it. The attribution key provides information about how you may share and adapt this material. Copyright holders of content included in this material should contact [email protected] with any questions, corrections, or clarification regarding the use of content. For more information about how to attribute these materials visit: http://open.umich.edu/education/about/terms-of-use. Some materials are used with permission from the copyright holders. You may need to obtain new permission to use those materials for other uses. This includes all content from: Attribution Key For more information see: http:://open.umich.edu/wiki/AttributionPolicy Content the copyright holder, author, or law permits you to use, share and adapt: Creative Commons Attribution-NonCommercial-Share Alike License Public Domain – Self Dedicated: Works that a copyright holder has dedicated to the public domain. Make Your Own Assessment Content Open.Michigan believes can be used, shared, and adapted because it is ineligible for copyright. Public Domain – Ineligible. Works that are ineligible for copyright protection in the U.S. (17 USC §102(b)) *laws in your jurisdiction may differ. Content Open.Michigan has used under a Fair Use determination Fair Use: Use of works that is determined to be Fair consistent with the U.S. Copyright Act (17 USC § 107) *laws in your jurisdiction may differ. Our determination DOES NOT mean that all uses of this third-party content are Fair Uses and we DO NOT guarantee that your use of the content is Fair. To use this content you should conduct your own independent analysis to determine whether or not your use will be Fair. Lab 4: Hypothesis Testing for a Population Proportion Objective: In this lab, you will learn an important statistical technique that will allow you to answer the question, “Was our observation due to chance, or is it more significant?” The objective is to guide you through the ideas behind tests of statistical significance and the statistical language involved. This lab first presents a general overview of testing. Then, the In-Lab Project discusses the large sample Z-test for a population proportion, as well as providing practice in answering the question of whether an event can be attributed to chance. Application: Lucy is an Ann Arbor resident who is considering the possibility of running for a seat on the City Council. To decide if she should invest time and money in her campaign, she wants to conduct some research to see if there is evidence that she could win the election (i.e. she could receive a majority of all the votes). Overview: Hypothesis Tests: A test of hypotheses (or significance test) is a procedure designed to assess what the evidence provided by the data says about some statement about a population parameter. When we conduct this hypothesis test for Lucy, we are interested in testing if the population proportion of votes that would be cast for Lucy is greater than 0.5, ensuring her victory. Hypothesis Testing Steps: 1. Determine appropriate null and alternative hypotheses and set ∝. 2. Check assumptions for performing the test. 3. Calculate the test statistic and determine the p-value. 4. Evaluate the p-value and report a conclusion in the context of the problem. The first step of this hypothesis test is to identify the hypotheses; this step is crucial, as it dictates the procedures for the remainder of the test. The null hypothesis, H0, represents the status quo or statement of no effect. The alternative hypothesis, Ha (or sometimes H1), represents the experimenter's new model, or what the experimenter would like to show. For our application regarding Lucy, we could define p to represent the true proportion of all Ann Arbor residents who would vote for Lucy. We want to test the hypothesis H0: p = 0.5 against the alternative Ha: p > 0.5. Both of the hypotheses are postulated about the same population proportion. The alternative hypothesis can take three different forms – it may be a denial of the null hypothesis (uses≠; called a two-sided test), or it may specify a direction of interest (uses > or <; called a one-sided test). Notice that we never test for equality in Ha. The purpose of a significance test is to assess whether or not the observed data are consistent with the null hypothesis (within the reasonable bounds of sampling variability). If we collect our sample and compute a population proportion of votes for Lucy that is much higher than the 0.5 we specified in the null hypothesis, we have evidence to reject that null hypothesis. To help us make this decision, we use a test statistic, which represents a summary of the data. When we conduct a test about a population proportion, we are performing a Large Sample Z test. The test statistic for this Large sample z test has the following form: �−� � = 0 . �0 (1−�0)/� This �! is the value specified in the null hypothesis. For Lucy’s test: �! = 0.5. The sample proportion of people who will vote for Lucy is our �. The test statistic tells us how many standard errors the sample proportion, � , is from the test value, p0. The test relies on two key assumptions: that we have a random sample (our sample of responses is representative of the large population of all such responses), and that our sample size is large enough. To achieve a large enough sample size, we need at least 10 hypothesized yes answers and at least 10 hypothesized no answers, or said another way, under the null hypothesis, would we expect to see at least 10 yes answers and at least 10 no answers. Conditions: ��!>10 and �(1 − �!)>10 The Z test statistic has a known probability distribution (under the null hypothesis), and will be examined for evidence in favor of or against H0. Under the null hypothesis that the true proportion of votes for Lucy is equal to 0.5, the test statistic Z has a standard normal distribution. In hypothesis testing, another frequently reported value is the p-value, a number that is used to indicate the degree of significance of the data. The p-value is the probability of getting a test statistic as extreme or more extreme than the observed value of the test statistic, assuming the null hypothesis is true. For Lucy’s test, the p-value is the probability of getting a z test statistic like we did or greater, assuming that the true proportion of votes for Lucy is equal to 0.5. We must decide in advance how much evidence against H0 we will require for rejection. This designated amount of evidence is called the level of significance, denoted by α (alpha). Common values of α are 0.01, 0.05, and 0.10. If the p-value is less than or equal to α, we make the decision to reject H0. For Lucy’s test, if we encounter a p-value smaller than the significance level, we would decide to reject the hypothesis that the true proportion of votes for Lucy is exactly 0.5. If we reject the null hypothesis, the results of the test are said to be statistically significant at level α. A “significant” result in the statistical sense does not necessarily imply an “important” result in the practical sense. It simply means that such a difference from the null hypothesis is not likely to happen just by chance. Of course, no procedure is perfect, and as such, there are two types of errors possible during hypothesis testing. If the null hypothesis is true but the decision is to reject H0, then we say that a Type I error has occurred. If we commit a Type I error for Lucy’s test, we would reach the decision that Lucy will win the election by receiving more than 50% of the votes, when in fact the true proportion of votes cast for Lucy is 0.5. Lucy would invest her time and money in her campaign when in fact she will not win the election. A Type II error occurs when the alternative hypothesis is true, but we fail to reject H0. A Type II error could be committed in Lucy’s test if we decide Lucy will lose the election by receiving 50% of the votes or less, when in fact Lucy will receive greater than 50% of the votes and win the election. Lucy would decide not to run in the election when she would have won a seat on the City Council. Each type of error has a probability of occurring. If the null hypothesis is true, the level of significance, α, is also the probability of a Type I error, while the probability of a Type II error is denoted by β. Truth Decision Made Result Associated Probability Reject H Type I Error α 0 H0 True Do Not Reject H0 Correct Decision 1 – α Reject H0 Correct Decision 1 – β = power Ha True Do Not Reject H0 Type II Error β Another important component of a hypothesis test is its power. The power of a test measures its ability to detect an alternative hypothesis when it is true. Power of a particular test is calculated as the probability that the test will reject H0 when the alternative hypothesis is true.
Recommended publications
  • Economic Analysis of Optimal Sample Size in Legal Proceedings
    International Journal of Statistics and Probability; Vol. 8, No. 4; July 2019 ISSN 1927-7032 E-ISSN 1927-7040 Published by Canadian Center of Science and Education Economic Analysis of Optimal Sample Size in Legal Proceedings Aren Megerdichian Correspondence: Aren Megerdichian, Compass Lexecon, 55 S. Lake Avenue, Ste 650, Pasadena CA 91101, United States. E-mail: [email protected] Received: May 6, 2019 Accepted: June 4, 2019 Online Published: June 11, 2019 doi:10.5539/ijsp.v8n4p13 URL: https://doi.org/10.5539/ijsp.v8n4p13 Abstract In many legal settings, a statistical sample can be an effective surrogate for a larger population when adjudicating questions of causation, liability, or damages. The current paper works through salient aspects of statistical sampling and sample size determination in legal proceedings. An economic model is developed to provide insight into the behavioral decision-making about sample size choice by a party that intends to offer statistical evidence to the court. The optimal sample size is defined to be the sample size that maximizes the expected payoff of the legal case to the party conducting the analysis. Assuming a probability model that describes a hypothetical court’s likelihood of accepting statistical evidence based on the sample size, the optimal sample size is reached at a point where the increase in the probability of the court accepting the sample from a unit increase in the chosen sample size, multiplied by the payoff from winning the case, is equal to the marginal cost of increasing the sample size. Keywords: cost-benefit analysis, economic model, legal proceeding, sample size, sampling 1.
    [Show full text]
  • 8.3 Estimating Population Proportions ! We Use the Sample Proportion P ˆ As Our Estimate of the Population Proportion P
    8.3 Estimating Population Proportions ! We use the sample proportion p ˆ as our estimate of the population proportion p. ! We should report some kind of ‘confidence’ about our estimate. Do we think it’s pretty accurate? Or not so accurate. ! What sample size n do we need for a given level of confidence about our estimate. " Larger n coincides with better estimate. 1 Recall: Sampling Distribution of p ˆ ! Shape: Approximately Normal ! Center: The mean is p. ! Spread: The standard deviation is p(1− p) n 2 95% Confidence Interval (CI) for a Population Proportion p ! The margin of error (MOE) for the 95% CI for p is pˆ(1− pˆ) MOE = E ≈ 2 n where p ˆ is the sample proportion. That is, the 95% confidence interval ranges from ( p ˆ – margin of error) to ( p ˆ + margin of error). 3 95% Confidence Interval (CI) for a Population Proportion p ! We can write this confidence interval more formally as pˆ − E < p < pˆ + E Or more briefly as pˆ ± E 4 Example ! Population: Registered voters in the U.S. ! Parameter: Proportion of U.S. voters who are concerned about the spread of bird flu in the United States. Unknown! 5 Example ! Sample: 900 randomly selected registered voters nationwide. FOX News/Opinion Dynamics Poll, Oct. 11-12, 2005. ! Statistic: 63% of the sample are somewhat or very concerned about the spread of bird flu in the United States. 6 Confidence Interval for p ! We are 95% confident that p will fall between pˆ(1− pˆ) pˆ(1− pˆ) pˆ − 2 and pˆ + 2 n n MOE MOE 7 Example Best guess for p.
    [Show full text]
  • Solutions to Homework 3 Statistics 302 Professor Larget
    Solutions to Homework 3 Statistics 302 Professor Larget Textbook Exercises 3.20 Customized Home Pages A random sample of n = 1675 Internet users in the US in January 2010 found that 469 of them have customized their web browser's home page to include news from sources and on topics that particularly interest them. State the population and param- eter of interest. Use the information from the sample to give the best estimate of the population parameter. What would we have to do to calculate the value of the parameter exactly? Solution The population is all internet users in the US. The population parameter of interest is p, the propor- tion of internet users who have customized their home page. For this sample,p ^ = 469=1675 = 0:28. Unless we have additional information, the best point estimate of the population parameter p is p^ = 0:28. To find p exactly, we would have to obtain information about the home page of every internet user in the US, which is unrealistic. 3.24 Average Household Size The latest US Census lists the average household size for all households in the US as 2.61. (A household is all people occupying a housing unit as their primary place of residence.) Figure 3.6 shows possible distributions of means for 1000 samples of household sizes. The scale on the horizontal axis is the same in all four cases. (a) Assume that two of the distributions show results from 1000 random samples, while two others show distributions from a sampling method that is biased.
    [Show full text]
  • 8 Statistical Inference 8.1 Estimates for Population Parameters In
    8 Statistical Inference 8.1 Estimates for Population Parameters In statistical inference, the main goal is to predict population parameters depending on sample statis- tics. In other words, to predict something about the population based on data obtained from sam- ples. Point Estimate and Interval Estimate There are two types of estimates for population parameters. • Point estimate: A point estimate is a single number that is out \best guess" for the parameter. • Interval estimate: An interval estimate is an interval of numbers within which the parameter value is believed to fall. Ex 1: Let the population parameter under consideration be the mean height of Texas Tech stu- dents. \Depending on sample data, we predict that the mean height of Texas Tech students is 170 cm". This is a point estimate. \Depending on sample data, we predict that the mean height of Texas Tech students is 170 ± 3 cm". i.e. between (167, 173) cm. This is an interval estimate. Point Estimate Vs Interval Estimate • A point estimate does not give us any information as to how accurate our guess could be. i.e. how close the estimate is likely to be to the actual parameter value. • Hence, an interval estimate is more useful as it incorporates a margin of error which helps us to measure the accuracy of the point estimate. Point Estimation The best guess for a population parameter is to use an appropriate sample statistic. • For a population proportion, use the sample proportion • For a population mean, use the sample mean Properties of Point Estimators 1. A good estimator has a sampling distribution that is centered at the population parameter.
    [Show full text]
  • Principles of Statistics Xuming He [email protected]
    Principles of Statistics Xuming He [email protected] 1 What can we do with statistics? We use statistics to • summarize and describe data in the way that helps us make decisions • use past data and other information to forecast • draw inference { hypotheses testing; Examples: comparison of treatment with control. • interpret results of statistical analysis; Example: Correlation or causation? Correlation describes the strength of statistical association between two random variables or measurements. Normally it refers to Pearson's correlation coefficient, one of the most common methods to measure linear association. Types of correlation: negative, positive and no correlations. Example of positive correlation: highest temperature of a given day and sales of ice cream on that day; Example of negative correlation: HIV infection rate and condom use for a given population (e.g., sex workers in Thailand) Correlation is not causation! Example: there is a positive correlation between how high a bomber (airplane) is flying at the time of attack and the precision of the bombs. This seems counter-intuitive. Reason: the pilots decide to fly low only when the visibility is low. Low visibility reduces accuracy of bombing. The visibility is a confounding variable. It relates to both the altitude of the plane and the precision of bombing. Correlation of two variables may not tell the whole story, since there may exist confounding variables which relate to both variables. We must think hard about possible confounders. Example: there is no correlation between the number of study hours per week of a high school student and the rank of the university he or she goes to after high school.
    [Show full text]
  • Making Sense of Statistical Studies
    Making Sense of Statistical Studies Roxy Peck Cal Poly, San Luis Obispo Daren Starnes The Lawrenceville School And don't Yeah, forget about I'm Tyler and us . that's my with friend, Kayla. Henry Kranendonk Milwaukee Public Schools Mathematics Curriculum Specialist June Morita University of Washington Production Team Martha Aliaga Megan Murphy Advisor Illustrator Nicholas Horton Rebecca Nichols Production Administrator Illustrator Henry Kranendonk Roxy Peck Contributor Advisor Jerry Moreno Valerie Snider Advisor Designer and Editorial Production Manager June Morita Contributor Daren Starnes Executive Editor ©2009 by American Statistical Association Alexandria, VA 22314-1943 Visit www.amstat.org/education/msss. All rights reserved. No part of this book may be re- produced, in any form or by any means, without permission in writing from the publisher. Doodles courtesy of Scribbles & Doodles brushes at www.obsidiandawn.com. Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 978-0-9791747-6-6 Library of Congress Cataloging-in-Publication Data Peck, Roxy. Making sense of statistical studies / Roxy Peck, Daren Starnes ; with Henry Kranendonk, June Morita. p. cm. ISBN 978-0-9791747-6-6 (alk. paper) 1. Mathematical statistics--Study and teaching (Secondary)--United States. I. Starnes, Daren S. II. Title. QA276.18.P43 2009 519.5--dc22 2009009395 Table of Contents Foreword v Preface vii Acknowledgements viii Introduction 1 Investigation #1: Did You Wash Your Hands? 4 Section I: Observational Studies 10 Investigation #2: Get Your Hot Dogs
    [Show full text]
  • Some Practical Guidelines for Effective Sample-Size Determination in Observational Studies
    Aceh International Journal of Science and Technology, 1 (2): 51-53 August 2 12 ISSN: 2 88-986 SHORT COMMUNICATION Some Practical Guidelines for Effective Sample-Size Determination in Observational Studies 1Wan Muhamad Amir W Ahmad, 2Wan Abdul Aziz Wan Mohd Amin, 3Nor Azlida Aleng, and 4Norizan Mohamed 1, 3, 4Department of Mathematics, Faculty of Science and Technology, 2Department of Language and ommunication, Universiti Malaysia Terengganu (UMT) 1wmamir&umt.edu.my, 2(i(a&umt.edu.my, 4nori(an&umt.edu.my, 3a(lida_aleng&umt.edu.my Abstract- The purpose of this present study was to determine the right sample si(e in observational study which is focusing on medical or health sciences field. Sample si(e calculation is actually depends on the type of how the study is designed. For example different formulas are used to calculate the sample si(e in different type of the study. ,n this article, the formula of single proportion and two proportions is discussed and an example from medical research, which may contribute to the understanding of this problem, is presented. Keywords- Sample si(e determination, single proportion, and two proportions. ,n a research study, most of researchers design experiments with do(ens of treatment combinations. .n experiment that they had design can involve several of measurement include of dichotomous variables. Sample si(e calculations for dichotomous variables do not re/uire 0nowledge of any standard deviation. Statistical analysis is based on the 0ey idea that observation on a sample of sub1ects is made and then draws inferences about the population from which the sample is drawn (2aing, 2003).
    [Show full text]
  • Confidence Intervals for a Population Proportion P
    ST 305 Chapter 19 Reiland Confidence Intervals for Proportions “Far better an approximate answer to the right “The truth is seldom pure and never simple.” question, . than an exact answer to the wrong Oscar Wilde question.” John Tukey “They make things admirably plain, but one hard question will remain: If one hypothesis you lose, Another in its place you choose …” James Russell Lowell, Credidimus Jovem Regnare IN THE REAL WORLD On the CNN evening news Wolfe Blitzer reports that, based on a CNN survey of registered voters, 52% of voters would vote for a particular candidate if the election were held today. He concludes the report with the statement that the estimate is “accurate to within 2.5 percentage points." What does this statement concerning the accuracy of their survey results really mean? Unit Objectives At the conclusion of this chapter you will be able to: ú Estimate the unknown value of a population proportion and population mean by constructing confidence intervals based on the information contained in a single sample. Reading Assignment Chapter 19 Highlights from the Readings OVERVIEW ÄÄTO THIS POINT: In the preceding chapters we learned that populations are characterized by numerical descriptive measures called parameters such as the (population) mean .5, the (population) standard deviation , or a (population) proportion p. The value of a particular population descriptive measure is typically unknown; a reliable estimate of one of these unknown values is frequently needed. NASA may be very interested in an estimate of the reliability of a crucial component in the space shuttle; a candidate for an elective office may need an estimate of the proportion of voters that will vote for him/her to plan campaign strategy.
    [Show full text]
  • Tests for One Proportion
    PASS Sample Size Software NCSS.com Chapter 100 Tests for One Proportion Introduction The One-Sample Proportion Test is used to assess whether a population proportion (P1) is significantly different from a hypothesized value (P0). This is called the hypothesis of inequality. The hypotheses may be stated in terms of the proportions, their difference, their ratio, or their odds ratio, but all four hypotheses result in the same test statistics. For example, suppose that the current treatment for a disease cures 62% of all cases. A new treatment method has been proposed and studied. In a sample of 80 subjects with the disease that were treated with the new method, 63 were cured. Do the results of this study support the claim that the new method has a higher response rate than the existing method? This procedure calculates sample size and statistical power for testing a single proportion using either the exact test or other approximate z-tests. Exact test results are based on calculations using the binomial (and hypergeometric) distributions. Because the analysis of several different test statistics is available, their statistical power may be compared to find the most appropriate test for a given situation. This procedure has the capability for computing power using both the normal approximation and binomial enumeration for all tests. Some sample size programs use only the normal approximation to the binomial distribution for power and sample size estimates. The normal approximation is accurate for large sample sizes and for proportions between 0.2 and 0.8, roughly. When the sample sizes are small or the proportions are extreme (i.e.
    [Show full text]
  • Sampling Distribution and Central Limit Theorem
    Theoretical Foundations Sampling Distribution and Central Limit Theorem Monia Ranalli [email protected] Ranalli M. Theoretical Foundations - Sampling Distribution and Central Limit Theorem Lesson # 1 1 / 13 Lesson 3 Objectives I understand the meaning of sampling distribution I apply the central limit theorem to calculate approximate probabilities for sample means Ranalli M. Theoretical Foundations - Sampling Distribution and Central Limit Theorem Lesson # 1 2 / 13 Introduction Goal: inferential statistics aims at estimating the characteristics of the population (i.e. a parameter) using the characteristics of the sample (i.e. a statistic) I Continuous Population ! estimate the population mean (the parameter) using the sample mean (the statistic) I Categorical Population ! estimate the population proportion (the parameter) using the sample proportion (the statistic) + We need to describe the sampling distribution of the statistics Remark: the sample statistic is a single value that estimates a population paramater ) we refer to the statistic as a point estimate. Ranalli M. Theoretical Foundations - Sampling Distribution and Central Limit Theorem Lesson # 1 3 / 13 Notation & Terms I Notation I Sample mean:¯x I Population mean: µ I Sample proportion:^π (orp ^) I Population proportion: π (or p) I Terms I Standard error: standard deviation of a sample statistic I Standard deviation: it relates to a sample I Parameters, such as mean (µ) and standard deviation (σ), are summary measures of population. These are fixed. I Statistics, such as sample mean (¯x) and sample standard deviation (s). These vary: when a sample is drawn, this is not always the same, and therefore the statistics change. ) variability that occurs from sample to sample (sampling variation) makes the sample statistics themselves to have a distribution.
    [Show full text]
  • Inference for Proportions IPS Chapter 8
    Inference for Proportions IPS Chapter 8 8.1: Inference for a Single Proportion 828.2: C ompar ing Two Propor tions © 2012 W.H. Freeman and Company Inference for Proportions 8.1 Inference for a Single Proportion © 2012 W.H. Freeman and Company Objectives 8.1 Inference for a single proportion Large-sample confidence interval for p “Plus four” confidence interval for p Significance test for a single proportion Choosinggp a sample size Sampling distribution of sample proportion The sampling distribution of a sample proportion pˆ 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 p ˆ is close to p(1 − p) n 3. The sample size n is larggge enough that the sam pgpling 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 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 p ˆ calculated from the data, an approximate level C confidence interval for p is: pˆ ± m, m is the margin of error m = z * SE = z * pˆ (1− pˆ ) n C mm Use this method when the number of successes and the number of −Z* Z* failures are both at least 15 .
    [Show full text]
  • Understanding Inference
    Statistics for Common Core and SAT: Understanding Inference Daren Starnes The Lawrenceville School [email protected] NCSSM TCM Conference 2017 Common Core State Standards in Mathematics Making Inferences and Justifying Conclusions S-IC Make inferences and justify conclusions from sample surveys, experiments, and observational studies 3. Recognize the purposes of and differences among sample surveys, experiments, and observational studies; explain how randomization relates to each. 4. Use data from a sample survey to estimate a population mean or proportion; develop a margin of error through the use of simulation models for random sampling. 5. Use data from a randomized experiment to compare two treatments; use simulations to decide if differences between parameters are significant. Redesigned SAT Math Test Inference from sample statistics and margin of error 1. Use sample mean and sample proportion to estimate population mean and population proportion. Utilize, but do not calculate, margin of error. 2. Interpret margin of error; understand that a larger sample size generally leads to a smaller margin of error. Evaluating statistical claims: observational studies and experiments 1. With random samples, describe which population the results can be extended to. 2. Given a description of a study with or without random assignment, determine whether there is evidence for a causal relationship. 3. Understand why random assignment provides evidence for a causal relationship. 4. Understand why a result can be extended only to the population from which the sample was selected. Statistics for Common Core and SAT Daren Starnes [email protected] 1 I. Do parents monitor teen internet use? Inference for Sampling The Pew Research Center asked a random sample of 439 parents of U.S.
    [Show full text]