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.

Slides:



Advertisements
Similar presentations
Copyright ©2005 Brooks/Cole, a division of Thomson Learning, Inc. Statistical Significance for 2 x 2 Tables Chapter 13.
Advertisements

Chapter 13: Inference for Distributions of Categorical Data
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Categorical Variables Chapter 15.
CHAPTER 11 Inference for Distributions of Categorical Data
Hypothesis Testing Steps of a Statistical Significance Test. 1. Assumptions Type of data, form of population, method of sampling, sample size.
12.The Chi-square Test and the Analysis of the Contingency Tables 12.1Contingency Table 12.2A Words of Caution about Chi-Square Test.
Statistics 303 Chapter 9 Two-Way Tables. Relationships Between Two Categorical Variables Relationships between two categorical variables –Depending on.
Stat 512 – Lecture 13 Chi-Square Analysis (Ch. 8).
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
Copyright ©2005 Brooks/Cole, a division of Thomson Learning, Inc. Rejecting Chance – Testing Hypotheses in Research Chapter 22.
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
Presentation 12 Chi-Square test.
Statistical Inference Dr. Mona Hassan Ahmed Prof. of Biostatistics HIPH, Alexandria University.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Chapter 10 Analyzing the Association Between Categorical Variables
How Can We Test whether Categorical Variables are Independent?
Chapter 8 Introduction to Hypothesis Testing
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Goodness-of-Fit Tests and Categorical Data Analysis
A random sample of 300 doctoral degree
Analysis of two-way tables - Formulas and models for two-way tables - Goodness of fit IPS chapters 9.3 and 9.4 © 2006 W.H. Freeman and Company.
1 Desipramine is an antidepressant affecting the brain chemicals that may become unbalanced and cause depression. It was tested for recovery from cocaine.
©2011 Brooks/Cole, Cengage Learning Elementary Statistics: Looking at the Big Picture 1 Lecture 33: Chapter 12, Section 2 Two Categorical Variables More.
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chi-square test or c2 test
Two Way Tables and the Chi-Square Test ● Here we study relationships between two categorical variables. – The data can be displayed in a two way table.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Relationships Between Categorical Variables Chapter 6.
Chapter 26 Chi-Square Testing
Chapter 11: Inference for Distributions of Categorical Data Section 11.1 Chi-Square Goodness-of-Fit Tests.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Chapter 8 Introduction to Hypothesis Testing ©. Chapter 8 - Chapter Outcomes After studying the material in this chapter, you should be able to: 4 Formulate.
S-012 Testing statistical hypotheses The CI approach The NHST approach.
Chapter 11 The Chi-Square Test of Association/Independence Target Goal: I can perform a chi-square test for association/independence to determine whether.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
+ Chi Square Test Homogeneity or Independence( Association)
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
Essential Statistics Chapter 161 Review Part III_A_Chi Z-procedure Vs t-procedure.
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Unit 8 Section 8-3 – Day : P-Value Method for Hypothesis Testing  Instead of giving an α value, some statistical situations might alternatively.
1 Chapter 11: Analyzing the Association Between Categorical Variables Section 11.1: What is Independence and What is Association?
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
AP STATISTICS LESSON (DAY 1) INFERENCE FOR TWO – WAY TABLES.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 10 Comparing Two Groups Section 10.1 Categorical Response: Comparing Two Proportions.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Inference for Tables Catapult Discovery Question: –How does a cat land (feet, side, nose/face)? –Write your predictions in percent. Collect data for.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
Hypothesis Testing Steps for the Rejection Region Method State H 1 and State H 0 State the Test Statistic and its sampling distribution (normal or t) Determine.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Textbook Section * We already know how to compare two proportions for two populations/groups. * What if we want to compare the distributions of.
11/12 9. Inference for Two-Way Tables. Cocaine addiction Cocaine produces short-term feelings of physical and mental well being. To maintain the effect,
Ex St 801 Statistical Methods Part 2 Inference about a Single Population Mean (HYP)
Copyright ©2005 Brooks/Cole, a division of Thomson Learning, Inc. Statistical Significance for 2 x 2 Tables Chapter 13.
CHAPTER 11 Inference for Distributions of Categorical Data
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Analyzing the Association Between Categorical Variables
Inference for Two Way Tables
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:

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 variables are related to each other. Look for an association between the row and column variables. Is the association in the sample evidence of an association between these variables in the entire population? Or could the sample association easily arise just from the error in random sampling?

Statistical Significance for a two-way table Aspirin Group:Percentage who had heart attacks = 0.94% Placebo Group:Percentage who had heart attacks = 1.71% Difference: only 1.71% – 0.94% = 0.77% Are we convinced by the data that there is a real relationship in the population between taking aspirin and risk of heart attack? Need to assess if the relationship is statistically significant. Experiment included over 22,000 men, so small difference could be statistically significant Example : Aspirin and Heart Attacks

Statistical Significance for a two-way table Example : Ease of Pregnancy for Smokers and Nonsmokers Difference: 41% – 29% = 12% Larger difference, but only based on 586 subjects. Convincing?

Statistical Significance for a two-way table Step 1: Stating The Hypotheses Example 1: Aspirin and Heart Attacks Null Hypothesis: There is no relationship between taking aspirin and risk of heart attack in the population. Alternative Hypothesis: There is a relationship between taking aspirin and risk of heart attack in the population. Example 2: Ease of Pregnancy and Smoking Null Hypothesis: Smokers and nonsmokers are equally likely to get pregnant in 1 st cycle in population of women trying to get pregnant. Alternative Hypothesis: Smokers and nonsmokers are not equally likely to get pregnant in 1 st cycle in population of women trying to get pregnant.

Statistical Significance for a two-way table The chi-square test To see if the data give evidence against the null hypothesis of "no relationship," compare the counts in the two way table with the counts we would expect if there really were no relationship. If the observed counts are far from the expected counts, that's the evidence we were seeking. The test uses a statistic that measures how far apart the observed and expected counts are. The chi-square statistic is a sum of terms, one for each cell in the table. Because chi-square measures how far the observed counts are from what would be expected if null hypothesis were true, large values are evidence against null hypothesis. This sampling distribution is not a Normal distribution. It is a right-skewed distribution that allows only nonnegative values because chi-square can never be negative. Expected count= (row total)(column total) (table total)

Statistical Significance for a two-way table Step 2: Collect data and summarize with a ‘test statistic’. Chi-square statistic: compares data in sample to what would be expected if no relationship between variables in the population. Step 3: Determine how unlikely test statistic would be if the null hypothesis were true. p-value: probability of observing a test statistic as extreme as the one observed or more so, if the null hypothesis is really true. (For chi-square: more extreme = larger value of chi-square statistic.) Step 4: Make a decision. If chi-square statistic is at least 3.84, the p-value is 0.05 or less, so conclude relationship in population is real. That is, we reject the null hypothesis and conclude the relationship is statistically significant. The chi-square test

Statistical Significance for a two-way table Ease of Pregnancy and Smoking 1.Compute the expected numbers. Expected number of smokers pregnant after 1 st cycle: (100)(227)/586 = Can find the remaining expected numbers by subtraction.

Statistical Significance for a two-way table Example 3: Ease of Pregnancy and Smoking 2.Compare Observed and Expected counts. (observed count – expected count) 2 /(expected count) First cell: (29 – 38.74) 2 /(38.74) = 2.45 Remaining cells shown in table below. 3.Compute the chi-squared statistic. chi-square statistic = = 4.82 What is your conclusion?

Statistical Significance for a two-way table Minitab Results for Example : Ease of Pregnancy and Smoking P-Value = 0.028

Statistical Significance for a two-way table Example : Aspirin and Heart Attacks Chi-squared statistic = highly statistically significant with with p-value <