We’ll now consider 2x2 contingency tables, a table which has only 2 rows and 2 columns along with a special way to analyze it called Fisher’s Exact Test.

Slides:



Advertisements
Similar presentations
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Advertisements

Contingency Tables Chapters Seven, Sixteen, and Eighteen Chapter Seven –Definition of Contingency Tables –Basic Statistics –SPSS program (Crosstabulation)
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Basic Statistics The Chi Square Test of Independence.
Hypothesis Testing IV Chi Square.
Ch. 28 Chi-square test Used when the data are frequencies (counts) or proportions for 2 or more groups. Example 1.
Chapter 14 Conducting & Reading Research Baumgartner et al Chapter 14 Inferential Data Analysis.
The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.
The Chi-square Statistic. Goodness of fit 0 This test is used to decide whether there is any difference between the observed (experimental) value and.
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chapter 16 – Categorical Data Analysis Math 22 Introductory Statistics.
Multinomial Experiments Goodness of Fit Tests We have just seen an example of comparing two proportions. For that analysis, we used the normal distribution.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
HYPOTHESIS TESTING BETWEEN TWO OR MORE CATEGORICAL VARIABLES The Chi-Square Distribution and Test for Independence.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Statistics 300: Elementary Statistics Section 11-3.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Chapter 4 Selected Nonparemetric Techniques: PARAMETRIC VS. NONPARAMETRIC.
Basic Statistics The Chi Square Test of Independence.
Inference concerning two population variances
Test of independence: Contingency Table
March 28 Analyses of binary outcomes 2 x 2 tables
Chi-Square hypothesis testing
Chapter 9: Non-parametric Tests
Lecture8 Test forcomparison of proportion
CHAPTER 11 Inference for Distributions of Categorical Data
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Lecture Slides Elementary Statistics Twelfth Edition
Association between two categorical variables
Testing a Claim About a Mean:  Not Known
Hypothesis testing. Chi-square test
John Loucks St. Edward’s University . SLIDES . BY.
Qualitative data – tests of association
Hypothesis Tests for a Population Mean,
Data Analysis for Two-Way Tables
Assume as previously that we have k samples on as many treatments
Chapter 9 Hypothesis Testing.
Elementary Statistics
The Chi-Square Distribution and Test for Independence
Lecture Slides Elementary Statistics Tenth Edition
Testing for Independence
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Are you planning on doing a project in Math 124
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chi Square (2) Dr. Richard Jackson
Overview and Chi-Square
Inference on Categorical Data
Contingency tables and goodness of fit
Lecture 41 Section 14.1 – 14.3 Wed, Nov 14, 2007
Analyzing the Association Between Categorical Variables
Chi2 (A.K.A X2).
Hypothesis Tests for a Standard Deviation
Exact Test Fisher’s Statistics
Section 11-1 Review and Preview
Inference for Two Way Tables
Applied Statistics Using SPSS
Applied Statistics Using SPSS
Inference for Two-way Tables
Chapter 14.1 Goodness of Fit Test.
Chi-Square Test A fundamental problem in Science is determining whether the experiment data fits the results expected. How can you tell if an observed.
Analysis of two-way tables
Chi Square Test of Homogeneity
Wilcoxon Rank-Sum Test
Lecture 46 Section 14.5 Wed, Apr 13, 2005
MATH 2311 Section 8.6.
Presentation transcript:

We’ll now consider 2x2 contingency tables, a table which has only 2 rows and 2 columns along with a special way to analyze it called Fisher’s Exact Test. See Table 5.5.1 on page 173: X = the number of observations in row 1, column 1 out of n=10. Since there are 7 obs. in row 1, and 3 in row 2, under the null hypothesis of no association between the row and column variables, all 10choose7 possibilities of arrangements of 7 in row 1 and 3 in row 2 are equally likely. Thus we may compute the null distribution of X as shown on p.173-174. For an upper-tailed test, we compute the probability of being >= the value we found in our table and this becomes the p-value for Fisher’s exact test. Go over Example 5.5.1 on p.174 – do with SAS also – note this is a lower-tailed test so we compute the probability that X <= 3 to get the p-value. In SAS, if the table is 2x2, then Fisher’s exact test is automatically computed: data table5_5_2; input drug $ pe $ count @@; datalines; 1 1 3 1 2 8 2 1 4 2 2 4 proc freq; tables drug*pe; exact chisq; weight count; run; quit; In R, Fisher’s exact test is computed with: fisher.test

If you have paired data with dichotomous responses, then McNemar’s test is appropriate. The example given in Table 5.8.1 is a good one: to assess whether a debate changes a voter’s mind, we find out who a voter favors before and after the debate (paired). Table 5.8.1 shows the results... The hypothesis being tested is that the probability of switching from A to B is the same as the probability of switching from B to A. Let XAB = the number of switches from A to B and XBA = the number of switches from B to A. Under the null hypothesis of equal chance of switching from A to B as B to A, XAB is just like the sign test statistic with a B(n, .5) distribution. Standardize it and use Z or square the standardized statistic and use chi-square with 1 degree of freedom – this implementation is typically called McNemar’s test. Apply this to the data in Table 5.8.1 – SAS implements McNemar’s test in PROC FREQ. R has mcnemar.test HW: Read sections 5.5 (Fisher’s Exact Test) and 5.8 (McNemar’s Test). Do #7-9,12 and 13 at the end of Ch. 5. Begin reading in Chapter 8, Bootstrap Methods...