Recap of confidence intervals If the 95%CI does not include the hypothesized μ, we conclude that our sample is statistically different from the assumed.

Slides:



Advertisements
Similar presentations
Introduction to Hypothesis Testing
Advertisements

HYPOTHESIS TESTING. Purpose The purpose of hypothesis testing is to help the researcher or administrator in reaching a decision concerning a population.
Introduction to Hypothesis Testing
Our goal is to assess the evidence provided by the data in favor of some claim about the population. Section 6.2Tests of Significance.
Chapter 16 Inferential Statistics
Statistics.  Statistically significant– When the P-value falls below the alpha level, we say that the tests is “statistically significant” at the alpha.
Hypothesis Testing making decisions using sample data.
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)
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
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.
Inferences About Means of Single Samples Chapter 10 Homework: 1-6.
Statistics 201 – Lecture 23. Confidence Intervals Re-cap 1.Estimate the population mean with sample mean Know sample mean is unbiased estimator for 
7/2/2015Basics of Significance Testing1 Chapter 15 Tests of Significance: The Basics.
Chapter 9 Hypothesis Testing.
© 1999 Prentice-Hall, Inc. Chap Chapter Topics Hypothesis Testing Methodology Z Test for the Mean (  Known) p-Value Approach to Hypothesis Testing.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Testing Hypotheses I Lesson 9. Descriptive vs. Inferential Statistics n Descriptive l quantitative descriptions of characteristics n Inferential Statistics.
Overview Definition Hypothesis
Sections 8-1 and 8-2 Review and Preview and Basics of Hypothesis Testing.
Fundamentals of Hypothesis Testing: One-Sample Tests
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Hypothesis Testing (Statistical Significance). Hypothesis Testing Goal: Make statement(s) regarding unknown population parameter values based on sample.
Week 8 Fundamentals of Hypothesis Testing: One-Sample Tests
Adapted by Peter Au, George Brown College McGraw-Hill Ryerson Copyright © 2011 McGraw-Hill Ryerson Limited.
Overview Basics of Hypothesis Testing
Statistical Inference Decision Making (Hypothesis Testing) Decision Making (Hypothesis Testing) A formal method for decision making in the presence of.
Chapter 8 Hypothesis Testing I. Chapter Outline  An Overview of Hypothesis Testing  The Five-Step Model for Hypothesis Testing  One-Tailed and Two-Tailed.
Hypothesis Testing: One Sample Cases. Outline: – The logic of hypothesis testing – The Five-Step Model – Hypothesis testing for single sample means (z.
Introduction to Hypothesis Testing: One Population Value Chapter 8 Handout.
Agresti/Franklin Statistics, 1 of 122 Chapter 8 Statistical inference: Significance Tests About Hypotheses Learn …. To use an inferential method called.
Chapter 9 Fundamentals of Hypothesis Testing: One-Sample Tests.
1 ConceptsDescriptionHypothesis TheoryLawsModel organizesurprise validate formalize The Scientific Method.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
S-012 Testing statistical hypotheses The CI approach The NHST approach.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Chapter 20 Testing Hypothesis about proportions
Statistical Inference An introduction. Big picture Use a random sample to learn something about a larger population.
Hypothesis Testing with One Sample Chapter 7. § 7.1 Introduction to Hypothesis Testing.
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.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Chap 8-1 Fundamentals of Hypothesis Testing: One-Sample Tests.
© Copyright McGraw-Hill 2004
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
Introduction to Hypothesis Testing
Chapter Nine Hypothesis Testing.
Review of Power of a Test
Chapter 10 Hypothesis Testing 1.
CHAPTER 9 Testing a Claim
Chapter 9 Hypothesis Testing.
Hypothesis Testing: One Sample Cases
Review and Preview and Basics of Hypothesis Testing
Hypothesis Testing II: The Two-sample Case
Hypothesis Testing for Proportions
Hypothesis Tests for a Population Mean in Practice
Chapter Review Problems
Chapter 9 Hypothesis Testing.
CHAPTER 9 Testing a Claim
Statistical Inference
Hypothesis Testing.
Lecture 10/24/ Tests of Significance
STA 291 Spring 2008 Lecture 18 Dustin Lueker.
Intro to Confidence Intervals Introduction to Inference
More on Testing 500 randomly selected U.S. adults were asked the question: “Would you be willing to pay much higher taxes in order to protect the environment?”
CHAPTER 9 Testing a Claim
CHAPTER 9 Testing a Claim
Testing Hypotheses I Lesson 9.
CHAPTER 9 Testing a Claim
Type I and Type II Errors
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.
Presentation transcript:

Recap of confidence intervals If the 95%CI does not include the hypothesized μ, we conclude that our sample is statistically different from the assumed population If the 95%CI we calculated includes the hypothesized μ, we conclude that our sample is, is not statistically different from the assumed population

Hypothesis Testing Set-up State the null hypothesis (H 0 ) In statistics, we always start by assuming that the null hypothesis is true (“no effect” or “no difference”) Only if there is convincing evidence do we reject the null hypothesis IQ example In words: “There is no difference in average IQ between group 1 and group 2.” In symbols: μ 1 = μ 2 or μ 1 – μ 2 = 0 Note: The hypothesis is always written in terms of the population parameter, not the sample statistic.

Hypothesis Testing Set-up State the alternate hypothesis (H A, H a, or H 1 ) The alternative hypothesis states that there is a difference Can go in either direction (two-sided or two-tailed) IQ example In words: “There is a difference in average IQ between group 1 and group 2.” In symbols: μ 1 ≠ μ 2 or μ 1 – μ 2 ≠ 0 Note: In the medical literature, specific hypotheses are rarely stated explicitly.

How hypothesis testing is done Define the null and alternate hypotheses Collect relevant data from a sample Calculate the test statistics specific to the null hypothesis Compare the value of the test statistics to that from a known probability distribution Interpret the resultant p-value

What is alpha (α)? The type I error rate The probability threshold beyond which the null hypothesis would be rejected The probability threshold where we allow for the rejection of H 0 when H 0 is true Conventionally set to 5% 2.5%

How is the p-value derived? Look up in table Each test statistic is associated with a p-value

What is the p-value? Under the null hypothesis (H 0 ), the p-value is the probability of obtaining a test statistic at least as extreme as the one observed by chance alone.

What the p-value looks like 0 Theoretical distribution of test statistic Probability Value of test statistic Test statistic Sum of the yellow areas = p-value Area under the curve which represents the probability of obtaining a test statistic at least as extreme as the one observed by chance

Alpha and p-value If p < α then we reject the null hypothesis in favor of the alternate hypothesis. 2.5% Test statistic p-value

Alpha and p-value If p > α then we do not reject the null hypothesis. 2.5% Test statistic p-value

Alpha and p-value: Example CharacteristicCasesControlsp-value Percent female Mean age Mean number of days spent camping Mean daily honey consumption (oz.) Table 1: Baseline characteristics of a sample from a study examining bear attacks in a population of campers We reject H 0 and conclude that there is a statistically significant difference in the sex distribution between cases and controls. We do not reject H 0 and conclude that there is no statistically significant difference in mean age between cases & controls. We do not reject H 0 and conclude that there is no statistically significant difference in the mean of days spent camping between cases & controls. We reject H 0 and conclude that there is a statistically significant difference in mean honey consumption between cases & controls.

Type I and II error Type I error (α) occurs when H 0 is rejected when it shouldn’t be When there truly is no effect or association, but one was observed by chance Type II error (β) occurs when H 0 is not rejected when it should be When there truly is an effect or association, but there was not one detected Is a function of statistical power (1-β)

Power, sample size, alpha, and beta For a given level of α, increasing n (the sample size) will… Increase the power of the study to detect a difference or association Decrease type II error rate (β) Studies with small samples are more likely to be underpowered Large p-values, even if there appears to be an association or difference Wide confidence intervals

Types of error and study conclusions H 0 trueH A true Reject H 0 Type I error (α)Proper decision Do not reject H 0 Proper decisionType II error (β) Unknown reality or truth about population Decision based on study results Analogous to the American justice system… InnocentGuilty Found guiltyType I error (α)Proper decision Found innocentProper decisionType II error (β) Unknown reality or truth about defendant Jury’s decision

Different types of data Age and race are different types of variables State the null hypothesis for the distribution of race. a.The proportion of Whites is the same in cases and controls. b.The proportion of Whites is the different comparing cases to controls. c.The proportion of Whites is lower in the cases than the controls. d.The proportion of Whites is higher in the cases than the controls.