Hypothesis testing - Steps



Similar documents
Estimation of σ 2, the variance of ɛ

Coefficient of Determination

HYPOTHESIS TESTING: POWER OF THE TEST

SIMPLE LINEAR CORRELATION. r can range from -1 to 1, and is independent of units of measurement. Correlation can be done on two dependent variables.

Interaction between quantitative predictors

Regression Analysis: A Complete Example

22. HYPOTHESIS TESTING

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

Point Biserial Correlation Tests

Pearson's Correlation Tests

Introduction to Hypothesis Testing. Hypothesis Testing. Step 1: State the Hypotheses

Lesson 1: Comparison of Population Means Part c: Comparison of Two- Means

3.4 Statistical inference for 2 populations based on two samples

1. What is the critical value for this 95% confidence interval? CV = z.025 = invnorm(0.025) = 1.96

Chapter 2. Hypothesis testing in one population

Unit 26 Estimation with Confidence Intervals

Correlational Research

Chapter 8 Hypothesis Testing Chapter 8 Hypothesis Testing 8-1 Overview 8-2 Basics of Hypothesis Testing

LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING

Simple Regression Theory II 2010 Samuel L. Baker

Using Excel for inferential statistics

HYPOTHESIS TESTING (ONE SAMPLE) - CHAPTER 7 1. used confidence intervals to answer questions such as...

Hypothesis Testing --- One Mean

How To Test For Significance On A Data Set

Two Related Samples t Test

Odds ratio, Odds ratio test for independence, chi-squared statistic.

Comparing Two Groups. Standard Error of ȳ 1 ȳ 2. Setting. Two Independent Samples

Introduction to Hypothesis Testing

Study Guide for the Final Exam

Section 7.1. Introduction to Hypothesis Testing. Schrodinger s cat quantum mechanics thought experiment (1935)

THE FIRST SET OF EXAMPLES USE SUMMARY DATA... EXAMPLE 7.2, PAGE 227 DESCRIBES A PROBLEM AND A HYPOTHESIS TEST IS PERFORMED IN EXAMPLE 7.

Descriptive Statistics

Two-Sample T-Tests Assuming Equal Variance (Enter Means)

research/scientific includes the following: statistical hypotheses: you have a null and alternative you accept one and reject the other

Lesson 9 Hypothesis Testing

" Y. Notation and Equations for Regression Lecture 11/4. Notation:

Part 2: Analysis of Relationship Between Two Variables

UNDERSTANDING THE DEPENDENT-SAMPLES t TEST

Outline. Topic 4 - Analysis of Variance Approach to Regression. Partitioning Sums of Squares. Total Sum of Squares. Partitioning sums of squares

An Introduction to Statistics Course (ECOE 1302) Spring Semester 2011 Chapter 10- TWO-SAMPLE TESTS

Simple Linear Regression Inference

5/31/2013. Chapter 8 Hypothesis Testing. Hypothesis Testing. Hypothesis Testing. Outline. Objectives. Objectives

Two-Sample T-Tests Allowing Unequal Variance (Enter Difference)

6: Introduction to Hypothesis Testing

C. The null hypothesis is not rejected when the alternative hypothesis is true. A. population parameters.

1.5 Oneway Analysis of Variance

Using Stata for One Sample Tests

Chapter 2 Probability Topics SPSS T tests

Recall this chart that showed how most of our course would be organized:

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Normal distribution. ) 2 /2σ. 2π σ

BA 275 Review Problems - Week 5 (10/23/06-10/27/06) CD Lessons: 48, 49, 50, 51, 52 Textbook: pp

Class 19: Two Way Tables, Conditional Distributions, Chi-Square (Text: Sections 2.5; 9.1)

Independent samples t-test. Dr. Tom Pierce Radford University

Principles of Hypothesis Testing for Public Health

Tests for Two Proportions

Difference of Means and ANOVA Problems

Confidence intervals

August 2012 EXAMINATIONS Solution Part I

Chapter 3 RANDOM VARIATE GENERATION

Example: Boats and Manatees

BA 275 Review Problems - Week 6 (10/30/06-11/3/06) CD Lessons: 53, 54, 55, 56 Textbook: pp , ,

Testing a claim about a population mean

Good luck! BUSINESS STATISTICS FINAL EXAM INSTRUCTIONS. Name:

Chapter Study Guide. Chapter 11 Confidence Intervals and Hypothesis Testing for Means

2 Sample t-test (unequal sample sizes and unequal variances)

Independent t- Test (Comparing Two Means)

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

Non-Inferiority Tests for Two Proportions

Confidence Intervals for Spearman s Rank Correlation

Introduction. Hypothesis Testing. Hypothesis Testing. Significance Testing

Lecture Notes Module 1

1 Simple Linear Regression I Least Squares Estimation

Hypothesis Testing. Reminder of Inferential Statistics. Hypothesis Testing: Introduction

Summary of Formulas and Concepts. Descriptive Statistics (Ch. 1-4)

KSTAT MINI-MANUAL. Decision Sciences 434 Kellogg Graduate School of Management

Tests for One Proportion

Review of Bivariate Regression

Method To Solve Linear, Polynomial, or Absolute Value Inequalities:

Pearson s Correlation

Sample Size and Power in Clinical Trials

Week TSX Index

Comparing Means in Two Populations

NPV Versus IRR. W.L. Silber We know that if the cost of capital is 18 percent we reject the project because the NPV

NCSS Statistical Software. One-Sample T-Test

Module 2 Probability and Statistics

In the general population of 0 to 4-year-olds, the annual incidence of asthma is 1.4%

Paired T-Test. Chapter 208. Introduction. Technical Details. Research Questions

Stat 5102 Notes: Nonparametric Tests and. confidence interval

Mind on Statistics. Chapter 12

Confidence Intervals for Cp

Hypothesis testing. c 2014, Jeffrey S. Simonoff 1

Definition 8.1 Two inequalities are equivalent if they have the same solution set. Add or Subtract the same value on both sides of the inequality.

Two Correlated Proportions (McNemar Test)

Final Exam Practice Problem Answers

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Linear Equations and Inequalities

Econometrics Simple Linear Regression

Transcription:

Hypothesis testing - Steps Steps to do a two-tailed test of the hypothesis that β 1 0: 1. Set up the hypotheses: H 0 : β 1 = 0 H a : β 1 0. 2. Compute the test statistic: t = b 1 0 Std. error of b 1 = b 1 ˆσ b1 3. Read critical value off the t table: t α/2,n 2 4. Reach your conclusion: If t > critical value conclude H a. If t critical value, conclude H 0 or fail to reject H 0 at level α. Stat 328 - Fall 2004 1

One-tailed hypothesis tests We can also test one-sided or one-tailed hypothesis. A one-sided hypotheses would be: or H a : β 1 < 0. H 0 : β 1 = 0 H a : β 1 > 0, Steps are exactly the same, but now the critical value is t α,n 2 (we do not divide α into 2). If the test statistic t is larger than the critical value off the table and we conclude H a, we would be concluding that β 1 is larger (or smaller, depending on the test we set up) than zero. Stat 328 - Fall 2004 2

Hypothesis testing (cont d) If we wish to test a two-sided hypothesis about β 1 at level α we can also use the 100(1 α)% confidence interval to do so. We will conclude H a whenever the CI does not include the hypothesized value for β 1 (the value in H 0 ). If the null hypothesis is H 0 : β 1 = 0, then we will reject the null at level α when the CI does not contain the value zero. Why? Stat 328 - Fall 2004 3

Hypothesis testing (cont d) Note that the test of hypothesis (two-tailed) says: H 0 : β 1 = 0 if fail to reject b 1 0 ˆσ b1 > tα 2,n 2 or b 1 0 ˆσ b1 < tα 2,n 2. Equivalently, by multiplying both sides of expressions above by ˆσ b1 and subtracting b 1 from both sides also, note that we fail to reject when 0 > b 1 tα 2,n 2ˆσ b1 and 0 < b 1 + tα 2,n 2ˆσ b1 in other words, when 0 is inside the 100(1 α)% CI for β 1. This applies only to two-sided tests. Stat 328 - Fall 2004 4

Hypothesis testing (cont d) JMP and SAS produce a p value. The p value is the smallest α level that still leads to rejecting H 0. A p value of 0.001 means that if I conclude H a I only have a 1 in a thousand chance of reaching the wrong conclusion. A p value of 0.3 means that if I conclude H a I have a 1 in 3 chances of reaching the wrong conclusion. Typically we choose H a only if the chance of making the wrong choice is small, say below 5%. Thus, p values of 0.05 or smaller lead to H a. The p values produced by computer programs the test H 0 : β 1 = 0 versus H a : β 1 0. Stat 328 - Fall 2004 5

Hypothesis testing (cont d) We can test any hypothesis that might seem appropriate for the application at hand. For example, we might wish to test H 0 : β 1 = 250 H a : β 1 > 250, if that makes sense from a subject-matter point of view. The appropriate test statistic is t = b 1 250 ˆσ b1 and the rest is the same as in the one-tailed test described earlier. Stat 328 - Fall 2004 6

Coefficient of correlation The coefficient of correlation r measures the linear association between two variables. r is defined to be between -1 and +1. Given n measurements x and y on a sample of units: r = S xy Sxx S yy Stat 328 - Fall 2004 7

Coefficient of correlation (cont d) Since b 1 = SS xy /SS xx, we can also compute r as r = b 1 SS xx SS yy. so b 1 and r will always be of the same sign. A positive (negative) r means positive (negative) linear association between x and y. An r close to zero means no linear association (but there can be nonlinear association!). Note that the correlation between x and itself is equal to 1 because: r xx = SS xx SSxx SS xx = SS xx SS xx = 1. Stat 328 - Fall 2004 8

Correlation coefficient - Example Consider the five stores on which me measured advertising expenses and units of a product sold. From earlier example we had: SS xx = 10, SS xy = 8, SS yy = 8.8 and b 1 = 0.8. Then r = 8 = 8 10 8.8 9.38 = 0.85. Using the other formula: r = 0.8 10 8.8 = 0.85. Stat 328 - Fall 2004 9

Correlation coefficient - Test of hypothesis The sample correlation r estimates the population correlation ρ. If r is close to zero, we tend to believe that the true population correlation is also zero. As in the case of β 1, we can test hypotheses about the true population correlation ρ. Steps are the same as before: 1. Set up hypothesis (one or two tailed) H 0 and H a and choose α 2. Construct test statistic t and compare t to critical value from table. 3. If statistic falls in critical region, reject H 0. Stat 328 - Fall 2004 10

Correlation - Test of hypothesis (cont d) For a two-tailed test, hypotheses are: H 0 : ρ = 0 versus H a : ρ 0. Test statistic is given by: t = r n 2 1 r 2 Test statistic is distributed as a t random variable with n 2 degrees of freedom. Thus, for a test with level α, the critical value is t α/2,n 2 from the t table. Stat 328 - Fall 2004 11

Correlation - Test of hypothesis (cont d) Decision is: If t > t α/2,n 2 : reject H 0. If t t α/2,n 2 : fail to reject H 0. For a one-tailed test, the only change is in the formulation of H a and in the critical value, that now is equal to t α,n 2. A test of hypothesis for ρ is equivalent to the test for β 1. If one test results in rejecting H 0, the other will too. Example in class. Stat 328 - Fall 2004 12