1 Lecture 19: Hypothesis Tests Devore, Ch. 8.1. Topics I.Statistical Hypotheses (pl!) –Null and Alternative Hypotheses –Testing statistics and rejection.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

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.
Inference Sampling distributions Hypothesis testing.
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
1/55 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 10 Hypothesis Testing.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Basic Business Statistics.
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 8-1 Chapter 8 Fundamentals of Hypothesis Testing: One-Sample Tests Statistics.
BCOR 1020 Business Statistics
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 11 Introduction to Hypothesis Testing.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 8 Tests of Hypotheses Based on a Single Sample.
Chapter 10 Hypothesis Testing
Confidence Intervals and Hypothesis Testing - II
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 9 Introduction to Hypothesis Testing.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests Business Statistics,
© 2003 Prentice-Hall, Inc.Chap 9-1 Fundamentals of Hypothesis Testing: One-Sample Tests IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION.
Introduction to Biostatistics and Bioinformatics
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
4-1 Statistical Inference The field of statistical inference consists of those methods used to make decisions or draw conclusions about a population.
Lecture 20: Single Sample Hypothesis Tests: Population Mean and Proportion Devore, Ch
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
Chapter 10 Hypothesis Testing
Chapter 8 Introduction to Hypothesis Testing
Lecture 7 Introduction to Hypothesis Testing. Lecture Goals After completing this lecture, you should be able to: Formulate null and alternative hypotheses.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
STA Statistical Inference
10.2 Tests of Significance Use confidence intervals when the goal is to estimate the population parameter If the goal is to.
Testing of Hypothesis Fundamentals of Hypothesis.
Lecture 16 Dustin Lueker.  Charlie claims that the average commute of his coworkers is 15 miles. Stu believes it is greater than that so he decides to.
CHAPTER 17: Tests of Significance: The Basics
Chapter 9 Tests of Hypothesis Single Sample Tests The Beginnings – concepts and techniques Chapter 9A.
Lecture 16 Section 8.1 Objectives: Testing Statistical Hypotheses − Stating hypotheses statements − Type I and II errors − Conducting a hypothesis test.
1 When we free ourselves of desire, we will know serenity and freedom.
Chap 8-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 8 Introduction to Hypothesis.
MATH 2400 Ch. 15 Notes.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
Lecture 18 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
Lecture 17 Dustin Lueker.  A way of statistically testing a hypothesis by comparing the data to values predicted by the hypothesis ◦ Data that fall far.
CHAPTER 15: Tests of Significance The Basics ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
CHAPTER 9 Testing a Claim
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
AP Statistics Section 11.1 B More on Significance Tests.
© 2004 Prentice-Hall, Inc.Chap 9-1 Basic Business Statistics (9 th Edition) Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
© 2001 Prentice-Hall, Inc.Chap 9-1 BA 201 Lecture 14 Fundamentals of Hypothesis Testing.
STA Lecture 221 !! DRAFT !! STA 291 Lecture 22 Chapter 11 Testing Hypothesis – Concepts of Hypothesis Testing.
What is a Hypothesis? A hypothesis is a claim (assumption) about the population parameter Examples of parameters are population mean or proportion The.
One Sample Inf-1 In statistical testing, we use deductive reasoning to specify what should happen if the conjecture or null hypothesis is true. A study.
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.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 9 Testing a Claim 9.1 Significance Tests:
C HAPTER 2  Hypothesis Testing -Test for one means - Test for two means -Test for one and two proportions.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 9 Hypothesis Testing: Single.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 7 Inferences Concerning Means.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 9 Hypothesis Testing: Single.
Chapter 9 Hypothesis Testing: Single Population
When we free ourselves of desire,
CONCEPTS OF HYPOTHESIS TESTING
Confidence Intervals.
Chapter 9: Significance Testing
Chapter 9 Hypothesis Testing: Single Population
Statistical Test A test of significance is a formal procedure for comparing observed data with a claim (also called a hypothesis) whose truth we want to.
STA 291 Spring 2008 Lecture 17 Dustin Lueker.
Presentation transcript:

1 Lecture 19: Hypothesis Tests Devore, Ch. 8.1

Topics I.Statistical Hypotheses (pl!) –Null and Alternative Hypotheses –Testing statistics and rejection regions II.Errors in Hypothesis Testing –Type I and II errors

I. A Statistical Hypothesis.. Is a claim about the value of a single population characteristic, or relationship between several population characteristics. –Examples of Claims: Mean diameter of the engine cylinder is 81 mm. Mean of batch 1 is no different than the mean of batch 2. Variance of batch 1 is different than variance of batch 2. % Defective of batch 1 is less than 5%. In hypothesis testing, we take a sample of data and test a claim.

Null and Alternative Hypotheses To evaluate a claim, you identify a null and alternative hypothesis. Null Hypothesis, Ho –Claim that is initially assumed to be true. Alternative Hypothesis, Ha –Assertion that is contradictory to Ho. Null Hypothesis is rejected if sample evidence suggests that it is false. If not false, we fail to Reject Ho. So, possible outcomes of test are: –Reject Ho Or Fail to Reject Ho –NOTE: fail to reject Ho is different from saying that we have proven Ho is true.

“Favored Claim” In setting up a test, we typically have a favored claim which is the Ho. –In practice, we typically set Ho as the condition with the “=“ sign, and Ha as the condition with “ ”, or “≠” Familiar analogy: innocent until proven guilty. Practical examples: –Suppose you want to determine if a worker performs his job ok. Ho: worker is meeting the minimum job requirements. Ha: worker is not meeting the minimum job requirements. –Suppose you want to know whether to rework a machine- tool. Ho: machine produces a part feature average on target. Ha: machine does not produce a feature average on target.

Sample Null Hypotheses Identify a null and alternative hypothesis for each of the prior examples. –Mean diameter of the engine cylinder is 81 mm. –Mean of batch 1 is not different than mean of batch 2. –Variance of batch 1 is different than the variance of batch 2. –% Defective of batch 1 is less than 5%.

A Test of Hypotheses A test of hypotheses is a method for using sample data to decide whether the null hypothesis should be rejected.

Statistical Hypothesis Tests Hypothesis tests often involve one of the following: –Comparison of Means Single mean to a standard value Two sample means More than two sample means –Comparison of Variances Single variance to a standard value Two sample variances More than two sample variances. –Comparison of Proportions Single proportion to a standard value Two proportions Of course, they may be applied to any test statistic: e.g., correlation, median, if distribution is normal, etc.

Test Procedures To perform a hypothesis test, you need: –Null and Alternative Hypothesis –An assumed data pattern / distribution (e.g., normal, iid) –Test Statistic - function of the sample data on which the decision is based. –Rejection region - set of test statistic values for which the Ho is rejected. (based on error threshold)

Example: Cylinder Bore Suppose you take a sample of 25 cylinders and consider a mean to be off target if bore diameter < –If X ~ N(  = 81,  x  = )  x-bar = ? Construct a 95% two-sided CI on the true mean, ,? With 95% confidence, would you conclude that a sample mean of 80.9 is different than a mean = 81?

II. Errors in Hypothesis Testing Rejection region of a hypothesis test is based on an acceptance of error when drawing a conclusion. When drawing a conclusion based on a test, four results are possible (hint: think of possible outcomes in a jury trial). TRUTHWhat the Jury Says Innocent / Guilty

Outcomes of a Decision Conclude Or Say Not Different Truth Not Different Different 

Definitions of Error Types Type I error [also known as alpha (  ) error] - FORMAL: Reject Ho when Ho is true PRACTICAL: Conclude a difference exists when no difference exists. Type II error [also known as beta (  ) error] - FORMAL: Fail to Reject Ho when Ho is false PRACTICAL: Conclude no difference exists when a difference exists. Why might a decision from a statistical test be wrong? Can we eliminate both types of errors?

Rejection Region: Suppose an experiment and a sample size are fixed, and a test statistic is chosen. Decreasing the size of the rejection region to obtain a smaller value of results in a larger value of, for any particular parameter value consistent with H a.

Significance Level Specify the largest value of that can be tolerated and find a rejection region having that value of. This makes as small as possible subject to the bound on. The resulting value of is referred to as the significance level.

Level Test A test corresponding to the significance level is called a level test. A test with significance level is one for which the type I error probability is controlled at the specified level.

P(type I error) ~  If we assume that Ho is true, we may calculate the probability of a wrong conclusion. Requirements: need an assumed distribution and estimates of distribution parameters (e.g., expected mean, variance). We do this by finding the probability of some value, X, relative to its underlying distribution (or pdf/cdf). –Value for X given X ~ Bin (15, 0.2) –Value for X given X ~ Normal (81, )

P(type I error) - Example Suppose 1% of books for a particular textbook fail a binding test. You wish to test the hypothesis that p=0.01 when X ~ Bin(200, 0.01). –Test Statistic: X is the number of test failures. –Rejection Region: Conclude the failure rate has increased (reject Ho) if you draw a sample with X >= 5. Accept Ho X<=4 –Identify a Ho and Ha for this situation. –If Ho is true, what is the probability that you will observe 5 or more failures? [Hint: 1 - Pr(X <= 4)] –When Ho is true, what % of the time will you make a wrong conclusion? –If you wanted to be 95% confident in your decision, would you conclude the Ho is true? What is alpha in this example?

P(type II error) ~  P(type II error) ~ prob conclude no difference exists, when a difference exists. In other words, failure to detect some difference, . –Example: suppose  shifts some , so  new =  +  –A type II error would be a failure to detect  shift (i.e., conclude no difference exists even though a shift has occurred) Unlike  the  error does not exist for a unique value of test parameter (rejection limit). Rather, it varies based on the value for the amount of difference, , you are trying to detect given some sample size. –Ho: p = 0.01 (single value); Ha: p > 0.01 (many values exist)

Binding test example, Find  If the fraction defective, p, equal to 0.01; n = 200. –Rejection Region: X >= 5 What is the probability that you will fail to detect a shift in p from 0.01 to (n=200)? What is the probability that you will fail to detect a shift in p from 0.01 to 0.05 (n=200)?

Engine Cylinder:  &  Errors Suppose you take a sample of 25 cylinders –If X ~ N(  = 81,  x = )  x-bar = ? –Suppose you reject batch if sample mean <= What is Pr(type I error)? –P(Ho is rejected when Ho is true)? What is Pr(type II error) if true mean shifts to 80.9 mm? What is Pr(type II error) if true mean shifts to mm?

 /  and Rejection Regions Suppose you wish to reduce type I errors by increasing the rejection region, what happens to  error if you maintain the same test and same sample size, n. In our prior example, what is Pr(type I error) if rejection region is expanded to 80.75? What happens to Pr(type II error) if rejection region is expanded to and you try to detect a shift from ? Identify general statement about ,  and rejection regions given same experiment and fixed n.

 /  and Sample Size Suppose you wish to increase the sample size from 25 to 50. If If X ~ N(  = 81,  x = ) What happens to Pr(type I error) if n increases to 50? What happens to Pr(type II error) if n increases to 50 and you try to detect a new mean = 80.75? Comment about ,  and n.