Lecture 7 The Odds/ Log Odds Ratios

Slides:



Advertisements
Similar presentations
COMM 472: Quantitative Analysis of Financial Decisions
Advertisements

Lesson #22 Inference for Two Independent Means. Two independent samples: Again interested in (  1 –  2 ) n1n1 n2n2 Use to estimate (  1 –  2 )
Overview of Lecture Parametric Analysis is used for
1 Inference About a Population Variance Sometimes we are interested in making inference about the variability of processes. Examples: –Investors use variance.
5-3 Inference on the Means of Two Populations, Variances Unknown
Sample Size Determination
Comparing Population Parameters (Z-test, t-tests and Chi-Square test) Dr. M. H. Rahbar Professor of Biostatistics Department of Epidemiology Director,
Review for Exam 2 Some important themes from Chapters 6-9 Chap. 6. Significance Tests Chap. 7: Comparing Two Groups Chap. 8: Contingency Tables (Categorical.
The Two Sample t Review significance testing Review t distribution
The Neymann-Pearson Lemma Suppose that the data x 1, …, x n has joint density function f(x 1, …, x n ;  ) where  is either  1 or  2. Let g(x 1, …,
Chapter 7 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Chapter 7: The t Test for Two Independent Sample Means To conduct a t test for.
1 GE5 Lecture 6 rules of engagement no computer or no power → no lesson no SPSS → no lesson no homework done → no lesson.
Hypothesis Testing Field Epidemiology. Hypothesis Hypothesis testing is conducted in etiologic study designs such as the case-control or cohort as well.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Please turn off cell phones, pagers, etc. The lecture will begin shortly.
Analyses of Covariance Comparing k means adjusting for 1 or more other variables (covariates) Ho: u 1 = u 2 = u 3 (Adjusting for X) Combines ANOVA and.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #0 Inferences on Odds and Odds Ratios.
R Programming Odds & Odds Ratios 1. Session 3 Overview 1.Odds 2.Odds Ratio (OR) 3.Confidence Intervals for OR’s 4.Inference based on OR’s 2.
Chapter 10 Inferences from Two Samples
AP STATISTICS LESSON COMPARING TWO PROPORTIONS.
Biostatistics Class 6 Hypothesis Testing: One-Sample Inference 2/29/2000.
Multiple Regression and Model Building Chapter 15 Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
The binomial applied: absolute and relative risks, chi-square.
1 Chapter 7 Sampling Distributions. 2 Chapter Outline  Selecting A Sample  Point Estimation  Introduction to Sampling Distributions  Sampling Distribution.
Statistical Significance for a two-way table Inference for a two-way table We often gather data and arrange them in a two-way table to see if two categorical.
Lecture & tutorial material prepared by: Dr. Shaffi Shaikh Tutorial presented by: Dr. Rufaidah Dabbagh Dr. Nurah Al-Amro.
More Contingency Tables & Paired Categorical Data Lecture 8.
Week 13a Making Inferences, Part III t and chi-square tests.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.3 Other Ways of Comparing Means and Comparing Proportions.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved.Copyright © 2010 Pearson Education Section 9-3 Inferences About Two Means:
Variability Mechanics. The Average Deviation Another approach to estimating variance is to directly measure the degree to which individual data points.
CONFIDANCE INTERVALS. The Aim By the end of this lecture, the students will be aware of confidance intervals 2.
Statistical Inferences for Population Variances
Lecture Nine - Twelve Tests of Significance.
Size of a hypothesis test
How many study subjects are required ? (Estimation of Sample size) By Dr.Shaik Shaffi Ahamed Associate Professor Dept. of Family & Community Medicine.
Chapter 4. Inference about Process Quality
STA 291 Spring 2010 Lecture 21 Dustin Lueker.
CHAPTER 6 Statistical Inference & Hypothesis Testing
The binomial applied: absolute and relative risks, chi-square
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Chapter 8: Inference for Proportions
Elementary Statistics
Lecture 6 Comparing Proportions (II)
Lecture 16 Nonparametric Two-Sample Tests
Inferences About Means from Two Groups
Chapter 9 Hypothesis Testing.
Lecture 13 The Quantile Test
Lecture Slides Elementary Statistics Eleventh Edition
Lecture 15 Wilcoxon Tests
9 Tests of Hypotheses for a Single Sample CHAPTER OUTLINE
Lecture 18 The Run Test Outline of Today The Definition
Elementary Statistics
SA3202, Solution for Tutorial 5
Chapter 12: Comparing Independent Means
Lecture 5, Goodness of Fit Test
Lecture 12 Binomial Tests and Quantiles
Undergraduated Econometrics
Lecture 10 Comparing 2xk Tables
Lecture 14 The Sign Test and the Rank Test
Categorical Data Analysis
Lecture 9 Sampling Procedures and Testing Independence
Tutorial 4 For the Seat Belt Data, the Death Penalty Data, and the University Admission Data, (1). Identify the response variable and the explanatory.
Chapter 13: Inferences about Comparing Two Populations Lecture 7a
SA3202, Solution for Tutorial 4
Statistical Inference for the Mean: t-test
STA 291 Spring 2008 Lecture 22 Dustin Lueker.
STA 291 Summer 2008 Lecture 21 Dustin Lueker.
STA 291 Spring 2008 Lecture 21 Dustin Lueker.
Presentation transcript:

Lecture 7 The Odds/ Log Odds Ratios Outline of Today: The Odds Ratio Estimation Asymptotic Distribution Example The Log Odds Ratio 11/29/2018 SA3202, Lecture 7

Definition Problem of Interest It is usually useful to summarize the difference between the two groups in a single measure. Two such measurements are Measure 1: the proportion difference p1-p2 Measure 2: the proportion ratio p1/p2 Odds Ratio: The more satisfactory measure is the “odds ratio”: theta= Odds Ratio=(Odds of Positive Response in Group1)/ (Odds of Positive Response in Group1) =[p1/(1-p1)]/[p2/(1-p2)] Relationship : p1<p2 means theta<1 p1=p2 theta=1 p1>p2 theta>1 11/29/2018 SA3202, Lecture 7

Example The odds ratio may be regarded as a measure of degree of association (relationship, dependence) between the response variable R and the explanatory (classification) variable C. It is a more satisfactory measure than the proportion difference p1-p2. Example Suppose Smoker Non-smoker Probability for Lung Cancer .020 .001 Then the odds ratio = (.020/(1-.020))/(.001/(1-.001))=20.38 the proportion difference=.020-.001=.019 Thus the odds ratio provides a more satisfactory measure of the effect of smoking on lung cancer. Roughly speaking, smokers are 20 times more at risk than nonsmokers. 11/29/2018 SA3202, Lecture 7

Estimation 11/29/2018 SA3202, Lecture 7

Asymptotic Distribution 11/29/2018 SA3202, Lecture 7

A Simple Formula Using the usual notation for two way tables Response Group 1 Group 2 Positive X11 X12 Negative X21 X22 Then The odds ratio = The s.e. Of the odds ratio = 11/29/2018 SA3202, Lecture 7

Example For the Vitamin C Data Placebo Vitamin C Cold 31 17 Not Cold 109 122 Total 140 139 The odds of catching cold for the Placebo group are 31 to 109, whereas for the Vitamin C group the odds are 17 to 122. The odds ratio is (31/109)/(17/122)=2.04 i.e., “The risk of catching cold for not taking Vitamin C, is twice the risk for taking Vitamin C” Alternatively, the odds ratio for “not catching cold” is of course (109/31)/(122/17)=1/2.04=.49 i.e. “the risk of catching cold is halved by taking Vitamin C” 11/29/2018 SA3202, Lecture 7

Example For the Vitamin C Data Placebo Vitamin C Cold 31 17 Not Cold 109 122 Total 140 139 The s.e. of the estimated odds ratio is s.e. ( )=2.04 (1/31+1/109+1/17+1/122)^(1/2)=.672 The 95% CI for is 2.04+/- 1.96*.672=[.72, 3.36] Therefore, H0 is not rejected. That is, the effect of Vitamin C may not be all that significant. This is inconsistent with the previous result based on the proportion difference test. 11/29/2018 SA3202, Lecture 7

Testing Equality of the Proportions H0: p1=p2 is equivalent to H0: =1 The latter hypothesis may be tested by a Z-test based on . Under H0, Var( |H0)=theta^2 (1/n1+1/n2) /(p(1-p)) Estimating p by the pooled estimator of p: We get s.e. ( |H0)= Therefore, asymptotically, Z=( -1)/s.e.( |H0)~ AN(0,1) Thus, the Z-test is conducted via comparing the Z-value with the table value of N(0,1). 11/29/2018 SA3202, Lecture 7

Example For the Vitamin C Data Placebo Vitamin C Cold 31 17 Not Cold 109 122 Total 140 139 Under H0, the pooled sample proportion and the s.e. ( |H0) are (31+17)/(140+139)=.172 s.e. ( |H0 )=2.04 ((1/140+1/139)/(.172*(1-.172)))^(1/2)=.647 (compare with .672 not under H0) Thus Z=(2.04-1)/.647=1.61 < 1.645, Do not reject H0: =1 against H1: >1 The 95% CI under H0 for is 2.04+/- 1.96*.647=[.77, 3.31] (compare with [.72, 3. 36] not under H0) Therefore, H0 is NOT rejected. 11/29/2018 SA3202, Lecture 7

The Log Odds Ratio Log Odds Ratio: It is sometimes more convenient to work with the logarithm of the odds ratio Main Features: 1. Take any value in the real line 2. The zero value corresponds to “independence” (p1=p2) 3. The magnitude reflects the degree of the association 4. The sign reflects the direction p1<p2 means the log odds ratio <0 p1=p2 =0 p1>p2 >0 5. It has a simpler expression of the asymptotic variance 11/29/2018 SA3202, Lecture 7

Statistical Inferences Estimation The natural estimator of the log odds ratio is the sample log odds ratio Asymptotic Normality For large sample sizes, the estimator is asymptotically normal with mean And variance Var( )=(1/(n1p1(1-p1))+1/(n2p2(1-p2))) The s.e. Of is then s.e. ( )= which can be simplified as 11/29/2018 SA3202, Lecture 7

Testing Equality of the Proportions H0: p1=p2 is equivalent to H0: =0 The latter hypothesis may be tested by a Z-test based on . Under H0, Var( |H0)=(1/n1+1/n2) /(p(1-p)) Estimating p by the pooled estimator of p: We get s.e. ( |H0)= Therefore, asymptotically, Z=( -1)/s.e.( |H0)~ AN(0,1) Thus, the Z-test is conducted via comparing the Z-value with the table value of N(0,1). 11/29/2018 SA3202, Lecture 7

Example For the Vitamin C Data Placebo Vitamin C Cold 31 17 Not Cold 109 122 Total 140 139 The estimated log odds ratio is log(2.04)=.7129 Under H0, the pooled sample proportion and the s.e. ( |H0) are (31+17)/(140+139)=.172 s.e. ( |H0 )= ((1/140+1/139)/(.172*(1-.172)))^(1/2)=.3173 Thus Z=(.7129-0)/.3173=2.247 >> 1.645, Reject H0: =0 in favor H1: >0 . The 95% CI under H0 for is .7129+/- 1.96*.3173=[.091, 1.335] Therefore, H0 is rejected. That is, the effect of Vitamin C is significant. 11/29/2018 SA3202, Lecture 7

Summary For the test of equality of the proportions “ H0:p1=p2 “ means “H0: Independence between two groups” we can based on the following tests: 1. Use the sample proportion difference to test H0: p1-p2=0 2. Use the sample odds ratio to test H0: =1 3. Use the sample log odds-ratio to test H0: =0 However, it can be showed that Test 2 is less powerful in the sense that it can not detect the difference between p1 and p2 while the other two can. 11/29/2018 SA3202, Lecture 7