Statistical Inference

Slides:



Advertisements
Similar presentations
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Advertisements

Hypothesis Testing A hypothesis is a claim or statement about a property of a population (in our case, about the mean or a proportion of the population)
Chapter 12 Tests of Hypotheses Means 12.1 Tests of Hypotheses 12.2 Significance of Tests 12.3 Tests concerning Means 12.4 Tests concerning Means(unknown.
Chapter 10 Section 2 Hypothesis Tests for a Population Mean
Hypothesis Testing: One Sample Mean or Proportion
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
An Inference Procedure
Ch. 9 Fundamental of Hypothesis Testing
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 8-1 TUTORIAL 6 Chapter 10 Hypothesis Testing.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
CHAPTER 2 Statistical Inference 2.1 Estimation  Confidence Interval Estimation for Mean and Proportion  Determining Sample Size 2.2 Hypothesis Testing:
Hypothesis testing is used to make decisions concerning the value of a parameter.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 9 Introduction to Hypothesis Testing.
Fundamentals of Hypothesis Testing: One-Sample Tests
Section 9.1 Introduction to Statistical Tests 9.1 / 1 Hypothesis testing is used to make decisions concerning the value of a parameter.
1 Virtual COMSATS Inferential Statistics Lecture-17 Ossam Chohan Assistant Professor CIIT Abbottabad.
Testing of Hypothesis Fundamentals of Hypothesis.
Hypothesis and Test Procedures A statistical test of hypothesis consist of : 1. The Null hypothesis, 2. The Alternative hypothesis, 3. The test statistic.
Introduction Hypothesis testing for one mean Hypothesis testing for one proportion Hypothesis testing for two mean (difference) Hypothesis testing for.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Hypothesis Testing. “Not Guilty” In criminal proceedings in U.S. courts the defendant is presumed innocent until proven guilty and the prosecutor must.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
C HAPTER 4  Hypothesis Testing -Test for one and two means -Test for one and two proportions.
Understanding Basic Statistics Fourth Edition By Brase and Brase Prepared by: Lynn Smith Gloucester County College Chapter Nine Hypothesis Testing.
6.2 Large Sample Significance Tests for a Mean “The reason students have trouble understanding hypothesis testing may be that they are trying to think.”
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
+ Homework 9.1:1-8, 21 & 22 Reading Guide 9.2 Section 9.1 Significance Tests: The Basics.
INTRODUCTION TO TESTING OF HYPOTHESIS INTRODUCTION TO TESTING OF HYPOTHESIS SHWETA MOGRE.
Introduction to Inference Tests of Significance Proof
Chapter Nine Hypothesis Testing.
Warm Up #’s 12, 14, and 16 on p. 552 Then answer the following question; In a jury trial, what two errors could a jury make?
Chapter 10 Hypothesis Testing 1.
9.3 Hypothesis Tests for Population Proportions
Unit 4 – Inference from Data: Principles
FINAL EXAMINATION STUDY MATERIAL III
Keller: Stats for Mgmt & Econ, 7th Ed Hypothesis Testing
Business Statistics Topic 7
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Three Views of Hypothesis Testing
CHAPTER 9 Testing a Claim
Hypothesis Tests for 1-Sample Proportion
Sampling Distributions
Hypothesis Testing: Hypotheses
Inferences About Means from Two Groups
Understanding How Hypothesis Testing Works
Determining Sample Size
Intro to Statistical Inference
Student’s t-Distribution
Inferences About Means from Two Independent Groups
CHAPTER 9 Testing a Claim
Chapter 9: Hypothesis Testing
LESSON 20: HYPOTHESIS TESTING
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Inferences About the Population Proportion
CHAPTER 9 Testing a Claim
Virtual University of Pakistan
Hypothesis Testing A hypothesis is a claim or statement about the value of either a single population parameter or about the values of several population.
EQT 272 PROBABILITY AND STATISTICS ROHANA BINTI ABDUL HAMID
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Chapter 9 Hypothesis Testing.
Last Update 12th May 2011 SESSION 41 & 42 Hypothesis Testing.
Chapter 9: Significance Testing
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Presentation transcript:

Statistical Inference Hypothesis Testing Each slide has its own narration in an audio file. For the explanation of any slide click on the audio icon to start it. Professor Friedman's Statistics Course by H & L Friedman is licensed under a  Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. 

Hypothesis Testing Testing a Claim: Companies often make claims about products. For example, a frozen yogurt company may claim that its product has no more than 90 calories per cup. This claim is about a parameter – i.e., the population mean number of calories per cup (μ). The claim is tested is by taking a sample - say, 100 cups - and determining the sample mean. If the sample mean is 90 calories or less we have no evidence that the company has lied. Even if the sample mean is greater than 90 calories, it is possible the company is still telling the truth (sampling error). However, at some point – perhaps, say, a sample average of 500 calories per cup – it will be clear that the company has not been completely truthful about its product. Hypothesis Testing

Hypothesis Testing A hypothesis is made about the value of a parameter, but the only facts available to estimate the true parameter are those provided by the sample. If the statistic differs (and of course it will) from the hypothesis stated about the parameter, a decision must be made as to whether or not this difference is significant. If it is, the hypothesis is rejected. If not, it cannot be rejected.   H0: The null hypothesis. This contains the hypothesized parameter value which will be compared with the sample value. H1: The alternative hypothesis. This will be “accepted” only if H0 is rejected. Technically speaking, we never accept H0 What we actually say is that we do not have the evidence to reject it. Hypothesis Testing

Two Types of Errors: Alpha and Beta Two types of errors may occur: α (alpha) and β (beta). The α error is often referred to as a Type I error and β error as a Type II error. You are guilty of an alpha error if you reject H0 when it really is true. You commit a beta error if you “accept” H0 when it is false. Hypothesis Testing

Two Types of Errors: Alpha and Beta This alpha error is related to the (1- α) we just learned about when constructing confidence intervals. We will soon see that an  error of .05 in testing a hypothesis (two-tail test) is equivalent to a confidence of 95% in constructing a two-sided interval estimator. Hypothesis Testing

Two Types of Errors: Alpha and Beta TRADEOFF! There is a tradeoff between the alpha and beta errors. We cannot simply reduce both types of error. As one goes down, the other rises. As we lower the  error, the β error goes up: reducing the error of rejecting H0 (the error of rejection) increases the error of “Accepting” H0 when it is false (the error of acceptance). This is similar (in fact exactly the same) to the problem we had earlier with confidence intervals. Ideally, we would love a very narrow interval, with a lot of confidence. But, practically, we can never have both: there is a tradeoff. Hypothesis Testing

Tradeoff in Type I / Type II Errors: Examples Our legal system understands this tradeoff very well. If we make it extremely difficult to convict criminals because we do not want to incarcerate any innocent people we will probably have a legal system in which no one gets convicted. On the other hand, if we make it very easy to convict, then we will have a legal system in which many innocent people end up behind bars. This is why our legal system does not require a guilty verdict to be “beyond a shadow of a doubt” (i.e., complete certainty) but “beyond reasonable doubt.” Hypothesis Testing

Tradeoff in Type I / Type II Errors: Examples Quality Control. A company purchases chips for its smart phones, in batches of 50,000. The company is willing to live with a few defects per 50,000 chips. How many defects? If the firm randomly samples 100 chips from each batch of 50,000 and rejects the entire shipment if there are ANY defects, it may end up rejecting too many shipments (error of rejection). If the firm is too liberal in what it accepts and assumes everything is “sampling error,” it is likely to make the error of acceptance. This is why government and industry generally work with an alpha error of .05 Hypothesis Testing

Steps in Hypothesis Testing   Formulate H0 and H1. H0 is the null hypothesis, a hypothesis about the value of a parameter, and H1 is an alternative hypothesis. e.g., H0: µ=12.7 years; H1: µ≠12.7 years Specify the level of significance (α) to be used. This level of significance tells you the probability of rejecting H0 when it is, in fact, true. (Normally, significance level of 0.05 or 0.01 are used) Select the test statistic: e.g., Z, t, F, etc. So far, we have been using the Z distribution. We will be learning about the t-distribution (used for small samples) later on. Establish the critical value or values of the test statistic needed to reject H0. DRAW A PICTURE! Determine the actual value (computed value) of the test statistic. Make a decision: Reject H0 or Do Not Reject H0. Hypothesis Testing

One-Tail and Two-Tail Hypothesis Tests   When we Formulate H0 and H1, we have to decide whether to use a one-tail or two-tail test. With a “two-tail” hypothesis test, α is split into two and put in both tails. H1 then includes two possibilities: μ = # OR μ ≠ #. This is why the region of rejection is divided into two tails. Note that the region of rejection always corresponds to H1. With a “one-tail” hypothesis test, the α is entirely in one of the tails. Hypothesis Testing

One-Tail and Two-Tail Hypothesis Tests   For example, if the company claims that a certain product has exactly 1 mg of aspirin, that would result in a two-tail test. Note words like “exactly” suggest two tail tests. There are problems with too much aspirin and too little aspirin in a drug. On the other hand, if a firm claims that a box of its raisin bran cereal contains at least 100 raisins, a one-tail test has to be used. If the sample mean is more than 100, everything is ok. The problems arise only if the sample mean is less than 100. The question will be whether we are looking at sampling error or perhaps the company is lying and the true (population) mean is less than 100 raisins. Hypothesis Testing

Two-Tail Tests A company claims that its soda vending machines deliver exactly 8 ounces of soda. Clearly, You do not want the vending machines to deliver too much or too little soda. How would you formulate this? Answer: H0: µ = 8 ounces H1: µ ≠ 8 ounces If you are testing at α=.01, The .01 is split into two: .005 in the left tail and .005 in the right tail The critical values are ±2.575 Hypothesis Testing

Two-Tail Tests A company claims that its bolts have a circumference of exactly 12.50 inches. (If the bolts are too wide or narrow, they will not fit properly): Answer: H0: µ = 12.50 inches H1: µ ≠ 12.50 inches A company claims that a slice of its bread has exactly 2 grams of fiber. Formulate this: Answer: H0: µ = 2 grams H1: µ ≠ 2 grams Hypothesis Testing

One-Tail Tests   A company claims that its batteries have an average life of at least 500 hours. How would you formulate this? Answer: H0: µ ≧ 500 hours H1: µ < 500 hours If you are testing at an α = .05, The entire .05 is in the left tail (hint: H1 points to where the rejection region should be.) The critical value is -1.645. Hypothesis Testing

One-Tail Tests A company claims that its overpriced, bottled spring water has no more than 1 mcg of benzene (poison). How would you formulate this: Answer: H0: µ ≦ 1 mcg. benzene H1: µ > 1 mcg. benzene If you are testing at an α = .05, The entire .05 is in the right tail (hint: H1 points to where the rejection region should be.) The critical value is +1.645. Hypothesis Testing

Example: Two-Tail Test A pharmaceutical company claims that each of its pills contains exactly 20.00 milligrams of Cumidin (a blood thinner). You sample 64 pills and find that the sample mean X̅ =20.50 mg and s = .80 mg. Should the company’s claim be rejected? Test at α = 0.05.  Formulate the hypotheses H0: µ =20.00 mg H1: µ  20.00 mg Choose the test statistic and find the critical values; draw region of rejection Test statistic: Z At α = 0.05, the critical values are ±1.96. Use the data to get the calculated value of the test statistic Z = = = 5 [ .80/√.64 = .10 This is the standard error of the mean. ]  Come to a Conclusion: Reject H0 or Do Not Reject H0 The computed Z value of 5 is deep in the region of rejection. Thus, Reject H0 at p < .05 Hypothesis Testing

Example: Two-Tail Test Suppose we took the above data, ignored the hypothesis, and constructed a 95% confidence interval estimator. 20.50  1.96(.10) 95%, CIE: 20.304 mg  20.696 mg We note that 20.00 mg is not in this interval. As you can see, hypothesis testing and CIE are virtually the same exercise; they are merely two sides of the same coin. Both rely on the sample evidence. If a claim is made about a parameter, do a hypothesis test. If no claim is made and a company wants to use sample evidence to estimate a parameter (perhaps to determine what claims may be made in the future about a parameter), construct a confidence interval estimator. Hypothesis Testing

Example: One-Tail Test A company claims that its LED bulbs will last at least 8,000 hours. You sample 100 bulbs and find that X̅ =7,800 hours and s=800 hours. Should the company’s claim be rejected? Test at α = 0.05.  H0: µ ≧ 8,000 hours H1: µ < 8,000 hours Z = 7,800 – 8,000 / (800/√100) = -200/80 = -2.50 [800/√100 = 80, the standard error of the mean] The computed Z value of -2.50 is in the region of rejection. Thus, reject H0 at p < .05 Note: When testing a hypothesis, we often have to perform a one-tail test if the claim requires it. However, we will always use only two-sided confidence interval estimators when using sample statistics to estimate population parameters. Hypothesis Testing

Homework Practice, practice, practice. Do lots and lots of problems. You can find these in the online lecture notes. Hypothesis Testing