1 / 36

Hypothesis Tests One Sample Proportion

Hypothesis Tests One Sample Proportion. What is hypothesis testing?. A statistical hypothesis is an assumption about a population parameter. This assumption may or may not be true.

parson
Download Presentation

Hypothesis Tests One Sample Proportion

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. Hypothesis TestsOne Sample Proportion

  2. What is hypothesis testing? • A statistical hypothesis is an assumption about a population parameter. This assumption may or may not be true. • The best way to determine whether a statistical hypothesis is true would be to examine the entire population. Since that is often impractical, researchers typically examine a random sample from the population. • If sample data are consistent with the statistical hypothesis, the hypothesis is accepted; if not, it is rejected.

  3. Types of questions we can answer… • Has the president’s approval rating changed since last month? • Has teenage smoking decreased in the past five years? • Is the global temperature increasing? • Did the Super Bowl ad we bought actually increase sales? To answer such questions, we test hypotheses about models.

  4. Take a sample & find x. But how do I know if this x is one that I expect to happen or is it one that is unlikelyto happen? How can I tell if they really are underweight? A government agency has received numerous complaints that a particular restaurant has been selling underweight hamburgers. The restaurant advertises that it’s patties are “a quarter pound” (4 ounces). Hypothesis test will help me decide!

  5. What are hypothesis tests? Calculations that tell us if a value occurs by random chance or not – if it is statistically significant Is it . . . • a random occurrence due to variation? • a biased occurrence due to some other reason?

  6. Nature of hypothesis tests - How does a murder trial work? • First begin by supposing the “effect” is NOT present • Next, see if data provides evidence against the supposition Example: murder trial First - assume that the person is innocent Then – must have sufficient evidence to prove guilty Hmmmmm … Hypothesis tests use the same process!

  7. Nonstatistical Hypothesis Testing… • A criminal trial is an example of hypothesis testing without the statistics. • In a trial a jury must decide between two hypotheses. The null hypothesis is The defendant is innocent • The alternative hypothesis or research hypothesis is The defendant is guilty • The jury does not know which hypothesis is true. They must make a decision on the basis of evidence presented.

  8. Nonstatistical Hypothesis Testing… • In the language of statistics convicting the defendant is called rejecting the null hypothesis in favor of the alternative hypothesis. That is, the jury is saying that there is enough evidence to conclude that the defendant is guilty (i.e., there is enough evidence to support the alternative hypothesis). • If the jury acquits it is stating that there is not enough evidence to support the alternative hypothesis. Notice that the jury is not saying that the defendant is innocent, only that there is not enough evidence to support the alternative hypothesis. That is why we never say that we accept the null hypothesis.

  9. Notice the steps are the same except we add hypothesis statements – which you will learn today Steps: • Hypothesis statements & define parameters • Assumptions • Calculations • Conclusion, in context

  10. Writing Hypothesis statements: • Null hypothesis – is the statement being tested; this is a statement of “no effect” or “no difference” • Alternative hypothesis – is the statement that we suspect is true H0: Ha:

  11. The form: Null hypothesis H0: parameter = hypothesized value Alternative hypothesis Ha: parameter > hypothesized value Ha: parameter < hypothesized value Ha: parameter = hypothesized value

  12. Hypotheses for proportions: H0: p = value Ha: p > value where p is the true proportion of context Use >, <, or ≠

  13. A large city’s Department of Motor Vehicles claimed that 80% of candidates pass driving tests, but a newspaper reporter’s survey of 90 randomly selected local teens who had taken the test found only 61 who passed. I’ll assume that the passing rate for teenagers is the same as the DMV’s overall rate of 80%, unless there’s strong evidence that it’s lower. State the hypotheses : H0: p = .8 Ha: p < .8 Where p is the true proportion of teenagers that pass the driving test

  14. A government agency has received numerous complaints that a particular restaurant has been selling underweight hamburgers. The restaurant advertises that it’s patties are “a quarter pound” (4 ounces). State the hypotheses : H0: 𝜇 = 4 Ha: 𝜇 < 4 Where 𝜇is the true mean weight of hamburger patties

  15. A car dealer advertises that is new subcompact models get 47 mpg. You suspect the mileage might be overrated. State the hypotheses : H0: 𝜇 = 47 Ha: 𝜇< 47 Where 𝜇is the true mean mpg

  16. Many older homes have electrical systems that use fuses rather than circuit breakers. A manufacturer of 40-A fuses wants to make sure that the mean amperage at which its fuses burn out is in fact 40. If the mean amperage is lower than 40, customers will complain because the fuses require replacement too often. If the amperage is higher than 40, the manufacturer might be liable for damage to an electrical system due to fuse malfunction. State the hypotheses : H0: 𝜇= 40 Ha: 𝜇= 40 Where 𝜇is the true mean amperage of the fuses

  17. Must use parameter (population) x is a statistics (sample) Activity: For each pair of hypotheses, indicate which are not legitimate & explain why Must be NOT equal! p is the population proportion! Must use same number as H0! rho is parameter for population correlation coefficient – but H0MUST be “=“ !

  18. The Reasoning of Hypothesis Testing • Assumptions All models require assumptions, so state the assumptions and check any corresponding conditions. • Assumptions are the same for the corresponding confidence interval. • Your plan should end with a statement like • Because the conditions are satisfied, I can model the sampling distribution of the proportion with a Normal model and…. • Watch out, though. It might be the case that your model step ends with “Because the conditions are not satisfied, I can’t proceed with the text.” If that’s the case, stop and reconsider.

  19. The Reasoning of Hypothesis Testing (cont.) 2. Assumptions • Each test we discuss in this class has a name that you should include in your report. • The test about proportions is called a one-proportion z-test.

  20. A large city’s DMV claimed that 80% of candidates pass driving tests. A reporter has results from a survey of 90 randomly selected local teens who had taken the test.Are the conditions for inference satisfied? • The 90 teens surveyed were a random sample of local teenage driving candidates. • 90(.80)≥10 and 90(.20)≥10 72≥10 and 18≥10 • The population of the teenagers who take driving test in a large city would be at least 10(90) = 900. • The conditions are satisfied, so it’s okay to use a normal distribution and perform a one-proportion z-test.

  21. The Reasoning of Hypothesis Testing (cont.) • Calculations • Under “calculations” we place the actual calculation of our test statistic from the data. • Different tests will have different formulas and different test statistics.

  22. The Reasoning of Hypothesis Testing (cont.) • Calculations • The ultimate goal of the calculation is to obtain a P-value. • The P-value is the probability that the observed statistic value (or an even more extreme value) could occur if the null model were correct. • If the P-value is small enough, we’ll reject the null hypothesis. • Note: The P-value is a conditional probability—it’s the probability that the observed results could have happened if the null hypothesis is true.

  23. P-values - • The probability that the test statistic would have a value as extreme or morethan what is actually observed In other words . . . is it far out in the tails of the distribution?

  24. Formula for hypothesis test:

  25. A large city’s DMV claimed that 80% of candidates pass driving tests, but a survey of 90 randomly selected local teens who had taken the test found only 61 who passed. What’s the P-value for the one-proportion z-test? • n=90, x=61, and a hypothesized p=.80 Do this in your calculator: Select STAT  TESTS #5 (1-PropZTest) <enter> Z-Test Inpt: DataStats Po: _____ x: _____ n: _____ prop  po <po>po Calculate Draw P-hat =

  26. The Reasoning of Hypothesis Testing (cont.) • Conclusion • The conclusion in a hypothesis test is always a statement about the null hypothesis. • The conclusion must state either that we reject or that we fail to reject the null hypothesis. • And, as always, the conclusion should be stated in context.

  27. The Reasoning of Hypothesis Testing (cont.) • Conclusion • Your conclusion about the null hypothesis should never be the end of a testing procedure. • Often there are actions to take or policies to change.

  28. Statistically significant - • In statistics, a result is called statistically significant if it is unlikely to have occurred by chance. • What constitutes “surprisingly”? • We typically use a standard of 5%. • Denoted by 𝛼 • Can be any value • Usual values: 0.1, 0.05, 0.01 • Most common is 0.05

  29. Statistically significant – • The p-value is as small or smaller than the level of significance (𝛼) • If p > 𝛼, “fail to reject” the null hypothesis at the𝛼level. • If p <𝛼, “reject” the null hypothesis at the𝛼level.

  30. Facts about p-values: • ALWAYSmake decision about the null hypothesis! • Large p-values show support for the null hypothesis, but never that it is true! • Small p-values show support that the null is not true. • Never accept the null hypothesis! but say “we fail to reject the null hypothesis”

  31. Never“accept” the null hypothesis! Never“accept” the null hypothesis! Never“accept” the null hypothesis!

  32. At an𝛼level of .05, would you reject or fail to reject H0 for the given p-values? • p=.03 • p=.15 • p=.45 • p=.023 Reject Fail to reject Fail to reject Reject

  33. “Since the p-value < (>) 𝛼, I reject (fail to reject) the H0. There is (is not) sufficient evidence to suggest that Ha.” Be sure to write Ha in context (words)!

  34. A large city’s DMV claimed that 80% of candidates pass driving tests. Using the P-value of .002, what do these findings conclude? • Since the p-value is < α, I reject the H0. There is sufficient evidence to suggest that the passing rate for teenagers taking the driving test is lower than 80%.

  35. A company is willing to renew its advertising contract with a local radio station only if the station can prove that more than 20% of the residents of the city have heard the ad and recognize the company’s product. The radio station conducts a random sample of 400 people and finds that 90 have heard the ad and recognize the product. Is this sufficient evidence for thecompany to renew its contract?

  36. One Proportion Z-Test H0: p = .2 where p is the true proportion of people who heard the ad Ha: p > .2 • Assumptions: • Have an SRS of people • np = 400(.2) = 80 & n(1-p) = 400(.8) = 320 - Since both are greater than 10, this distribution is approximately normal. • Population of people is at least 4000. • Since the conditions are satisfied, so it’s okay to use a normal distribution and perform a one-proportion z-test. Use the parameter in the null hypothesis to check assumptions! Use the parameter in the null hypothesis to calculate standard deviation! Since the p-value > , I fail to reject the null hypothesis. There is not sufficient evidence to suggest that the true proportion of people who heard the ad is greater than .2.

More Related