Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,

Slides:



Advertisements
Similar presentations
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Advertisements

Anthony Greene1 Simple Hypothesis Testing Detecting Statistical Differences In The Simplest Case:  and  are both known I The Logic of Hypothesis Testing:
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)
Inference Sampling distributions Hypothesis testing.
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
Chapter 9 Hypothesis Testing
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
Inferential Statistics & Hypothesis Testing
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
Fall 2006 – Fundamentals of Business Statistics 1 Chapter 8 Introduction to Hypothesis Testing.
BCOR 1020 Business Statistics Lecture 21 – April 8, 2008.
Inference about a Mean Part II
8-2 Basics of Hypothesis Testing
Inferences About Process Quality
BCOR 1020 Business Statistics Lecture 18 – March 20, 2008.
BCOR 1020 Business Statistics
5-3 Inference on the Means of Two Populations, Variances Unknown
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Statistical Hypothesis Testing. Suppose you have a random variable X ( number of vehicle accidents in a year, stock market returns, time between el nino.
Lecture Slides Elementary Statistics Twelfth Edition
Overview Definition Hypothesis
Confidence Intervals and Hypothesis Testing - II
Introduction to Hypothesis Testing
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Fundamentals of Hypothesis Testing: One-Sample Tests
Tests of significance & hypothesis testing Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap th Lesson Introduction to Hypothesis Testing.
Review of Statistical Inference Prepared by Vera Tabakova, East Carolina University ECON 4550 Econometrics Memorial University of Newfoundland.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
1 Today Null and alternative hypotheses 1- and 2-tailed tests Regions of rejection Sampling distributions The Central Limit Theorem Standard errors z-tests.
Overview Basics of Hypothesis Testing
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Copyright © 2012 by Nelson Education Limited. Chapter 7 Hypothesis Testing I: The One-Sample Case 7-1.
Hypothesis Tests In statistics a hypothesis is a statement that something is true. Selecting the population parameter being tested (mean, proportion, variance,
Agresti/Franklin Statistics, 1 of 122 Chapter 8 Statistical inference: Significance Tests About Hypotheses Learn …. To use an inferential method called.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
Large sample CI for μ Small sample CI for μ Large sample CI for p
Hypothesis Testing State the hypotheses. Formulate an analysis plan. Analyze sample data. Interpret the results.
1 Chapter 9 Hypothesis Testing. 2 Chapter Outline  Developing Null and Alternative Hypothesis  Type I and Type II Errors  Population Mean: Known 
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Economics 173 Business Statistics Lecture 4 Fall, 2001 Professor J. Petry
1 9 Tests of Hypotheses for a Single Sample. © John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger. 9-1.
Physics 270 – Experimental Physics. Let say we are given a functional relationship between several measured variables Q(x, y, …) x ±  x and x ±  y What.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview.
Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall 9-1 σ σ.
Hypothesis Testing An understanding of the method of hypothesis testing is essential for understanding how both the natural and social sciences advance.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Fall 2002Biostat Statistical Inference - Confidence Intervals General (1 -  ) Confidence Intervals: a random interval that will include a fixed.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
MeanVariance Sample Population Size n N IME 301. b = is a random value = is probability means For example: IME 301 Also: For example means Then from standard.
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Math 4030 – 9a Introduction to Hypothesis Testing
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
© Copyright McGraw-Hill 2004
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Hypothesis Testing. Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ.
Hypothesis Tests. An Hypothesis is a guess about a situation that can be tested, and the test outcome can be either true or false. –The Null Hypothesis.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
A.P. STATISTICS EXAM REVIEW TOPIC #2 Tests of Significance and Confidence Intervals for Means and Proportions Chapters
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Chapter 9 Hypothesis Testing Understanding Basic Statistics Fifth Edition By Brase and Brase Prepared by Jon Booze.
Chapter 9 -Hypothesis Testing
Parameter Estimation.
Hypothesis Testing: Hypotheses
Chapter Nine Part 1 (Sections 9.1 & 9.2) Hypothesis Testing
Presentation transcript:

Statistical Hypotheses & Hypothesis Testing

Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis, denoted by H 0, assumes the sample observations result purely from chance. Alternative Hypothesis The alternative hypothesis, denoted by H 1, states the counter-assumption that sample observations are influenced by some non-random cause. Note: The Alternate Hypothesis is always the logical opposite of the Null Hypothesis. Example: Suppose we wanted to determine whether a coin was fair and balanced. A null hypothesis might be that half the flips would be Heads and half of the flips would be Tails. The alternative hypothesis would be that the number (percent) of Heads and Tails would be very different. Symbolically, these hypotheses would be expressed as: H 0 : р = 0.5where р = Probability of Heads H 1 : р ≠ 0.5

Hypothesis Testing Hypothesis testing is a decision making process about accepting or rejecting a statement (assumption) regarding a population parameter. Frequently, hypothesis testing is applied to a assumption about a population mean. For example, test the assumption that the population mean μ is equal to 120 versus μ is not equal to 120; i.e., H 0 : μ = 120 versus H 1 : μ ≠ 120.

References David Harper - Bionic Turtle Null and Alternate Hypothesis

Hypothesis Testing

Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ 2 = 50. To test this assumption, we sample the blood pressure of 42 randomly selected adults. Sample statistics are Mean ¿ = Variance s 2 = 50.3 Standard Deviation s = √50.3 = 7.09 Standard Error = s / √n = 7.09 / √42 = 1.09

Central Limit Theorem The distribution of all sample means of sample size n from a Normal Distribution (μ, σ 2 ) is a normally distributed with Mean = μ Variance = σ 2 / n For our case: Mean μ = 120 Variance σ 2 / n = 50 / 42 = 1.19 Note: Theoretically we can test the hypothesis regarding the mean and the hypothesis regarding the variance; however one usually presumes the sample variances are stable from sample to sample and any one sample variance is an unbiased estimator of the population variance. As such, hypothesis testing is most frequently associated with testing assumptions regarding the population mean.

Hypothesis Testing Test the assumption H 0 : μ = 120 vs. H 1 : μ ≠ 120 using a level of significance α = 5% Note: If our sample came from the assumed population with mean μ = 120, then we would expect 95% of all sample means of sample size n = 42 to be within ± Z α/2 = ± 1.96

a / 2 = 2.5% Confidence Interval 95% Level of Significance a = 5% +Z a/2 = Z a/2 = %

Calculate Upper and Lower Bounds on ¿ ¿ Lower = μ – Z α/2 (s /√n) = 120 – 1.96(1.09) =117.9 ¿ Upper = μ + Z α/2 (s /√n) = (1.09) =122.1

a / 2 = 2.5% Confidence Interval 95% Level of Significance a = 5% +Z a/2 = Z a/2 = ¿ Lower = ¿ Upper = μ = %

Hypothesis Testing Comparisons Compare our sample mean ¿ = To the Upper and Lower Limits.

a / 2 = 2.5% Confidence Interval 95% Level of Significance a = 5% +Z a/2 = Z a/2 = ¿ Lower = ¿ Upper = μ = % ¿ = 122.4

Hypothesis Testing Conclusions Note: Sample mean ¿ = falls outside of the 95% Confidence Interval. We can reach one of two logical conclusions: One, that we expect this to occur for 2.5% of the samples from a population with mean μ = 120. Two, our sample came from a population with a mean μ ≠ 120. Since 2.5% = 1/40 is a rather “rare” event; we opt for the conclusion that our original null hypothesis is false and we reject H 0 : μ = 120 and therefore accept vs. H 1 : μ ≠ 120.

Confidence Interval 95% Level of Significance a = 5% ¿ = μ ≠ 120 Conclude μ ≠ 120

Alternate Method Rather than compare the sample mean to the 95% lower and upper bounds, one can use the Z Transformation for the sample mean and compare the results with ± Z α/2. Z 0 = ( ¿ – μ ) / (s / √n) = (122.4 – 120) / 1.09 = 2.20

a / 2 = 2.5% Confidence Interval 95% Level of Significance a = 5% +Z a/2 = Z a/2 = % Z 0 = 2.20

Alternate Method Note: Since Z 0 = 2.20 value exceeds Z α/2 =1.96, we reach the same conclusion as before; Reject H 0 : μ = 120 and Accept H 1 : μ ≠ 120.

Alternate Method - Extended We can quantify the probability (p-Value) of obtaining a test statistic Z 0 at least as large as our sample Z 0. P( |Z 0 | > Z ) = 2[1- Φ (|Z 0 |)] p-Value = P( |2.20| > Z ) = 2[1- Φ (2.20)] p-Value = 2(1 – ) = = 2.8% Compare p-Value to Level of Significance If p-Value < α, then reject null hypothesis Since 2.8% < 5%, Reject H 0 : μ = 120 and conclude μ ≠ 120.

Hypothesis Testing Errors

Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean μ = 120 and variance σ 2 = 50. To test this assumption, we sample the blood pressure of 42 randomly selected adults. Sample statistics are Mean ¿ = Variance s 2 = 50.3 Standard Deviation s = √50.3 = 7.09 Standard Error = s / √n = 7.09 / √42 = 1.09 Z 0 = ( ¿ – μ ) / (s / √n) = (122.4 – 120) / 1.09 = 2.20

a / 2 = 2.5% Confidence Interval 95% Level of Significance a = 5% +Z a/2 = Z a/2 = % Z 0 = 2.20

Conclusion (Critical Value) Since Z 0 = 2.20 exceeds Z α/2 = 1.96, Reject H 0 : μ = 120 and Accept H 1 : μ ≠ 120.

Conclusion (p-Value) We can quantify the probability (p-Value) of obtaining a test statistic Z 0 at least as large as our sample Z 0. P( |Z 0 | > Z ) = 2[1- Φ (|Z 0 |)] p-Value = P( |2.20| > Z ) = 2[1- Φ (2.20)] p-Value = 2(1 – ) = = 2.8% Compare p-Value to Level of Significance If p-Value < α, then reject null hypothesis Since 2.8% < 5%, Reject H 0 : μ = 120 and conclude μ ≠ 120.

Confidence Interval = 99% Level of Significance α = 1% Z 0 = ( ¿ – μ ) / (s / √n) = (122.4 – 120) / 1.09 = 2.20 Z α/2 = +2.58

a / 2 = 0.5% Confidence Interval 99% Level of Significance a = 1% +Z a/2 = Z a/2 = % Z 0 = 2.20

Conclusion (Critical Value) Since Z 0 = 2.20 is less than Z α/2 =2.58, Fail to Reject H 0 : μ = 120 and conclude there is insufficient evidence to say H 1 : μ ≠ 120.

Conclusion (p-Value) We can quantify the probability (p-Value) of obtaining a test statistic Z 0 at least as large as our sample Z 0. P( |Z 0 | > Z ) = 2[1- Φ (|Z 0 |)] p-Value = P( |2.20| > Z ) = 2[1- Φ (2.20)] p-Value = 2(1 – ) = = 2.8% Compare p-Value to Level of Significance If p-Value < α, then reject null hypothesis Since 2.8% > 1%, Fail to Reject H 0 : μ = 120 and conclude there is insufficient evidence to say H 1 : μ ≠ 120.

Hypothesis Testing Conclusions As can be seen in the previous example, our conclusions regarding the null and alternate hypotheses are dependent upon the sample data and the level of significance. Given different values of sample mean and the sample variance or given a different level of significance, we may come to a different conclusion.

Null Hypotheses And Alternate Hypotheses

Hypothesis Testing Hypotheses are always about the population and never about the sample. The true value of a hypothesis can never be known or confirmed. Conclusions regarding hypotheses are never absolute and as such are susceptible to some degree of definable/calculable risk of error. Type I Error Rejecting H 0 when H 0 is True Type II Error Failing to Reject H 0 when H 0 is False Probability of Type I Error = α Probability of Type II Error = β

Power of the Test Probability of Correctly Rejecting a False Null Hypothesis = 1 - β Probability of Correctly Rejecting H 0 when H 1 is true = 1 - β Probability of Rejecting H 0 when H 0 is False = 1 - β Probability of Accepting H 1 when H 1 is True = 1 - β

Probability of Type I and Type II Errors The Level of Significance α establishes the Probability of a Type I Error. The Probability of a Type II Error depends on the magnitude of the true mean and the sample size.

Probability of Type II Errors Consider H 0 : μ = μ 0 H 1 : μ ≠ μ 0 Suppose the null hypothesis is false and the true magnitude of the mean is μ = μ 0 + δ. and therefore, that is to say Z 0 is normally distributed with mean and variance 1.

Probability of Type II Error Applied Statistics and Probability for Engineers, 3ed, Montgomery & Runger, Wiley 2003