Community &family medicine

Slides:



Advertisements
Similar presentations
What is Chi-Square? Used to examine differences in the distributions of nominal data A mathematical comparison between expected frequencies and observed.
Advertisements

Chapter 18: The Chi-Square Statistic
CHI-SQUARE(X2) DISTRIBUTION
Lecture (11,12) Parameter Estimation of PDF and Fitting a Distribution Function.
COURSE: JUST 3900 INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE Instructor: Dr. John J. Kerbs, Associate Professor Joint Ph.D. in Social Work and Sociology.
Hypothesis Testing IV Chi Square.
Statistical Inference for Frequency Data Chapter 16.
Chapter 13: The Chi-Square Test
Chapter 11 Contingency Table Analysis. Nonparametric Systems Another method of examining the relationship between independent (X) and dependant (Y) variables.
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 12 Chicago School of Professional Psychology.
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
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.
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.
Chapter 11(1e), Ch. 10 (2/3e) Hypothesis Testing Using the Chi Square ( χ 2 ) Distribution.
Hypothesis Testing IV (Chi Square)
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
Statistics for the Behavioral Sciences (5 th ed.) Gravetter & Wallnau Chapter 17 The Chi-Square Statistic: Tests for Goodness of Fit and Independence University.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
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.
Chi-Square as a Statistical Test Chi-square test: an inferential statistics technique designed to test for significant relationships between two variables.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Copyright © 2012 by Nelson Education Limited. Chapter 10 Hypothesis Testing IV: Chi Square 10-1.
Chi-Square. All the tests we’ve learned so far assume that our data is normally distributed z-test t-test We test hypotheses about parameters of these.
Chapter 16 The Chi-Square Statistic
Analysis of Qualitative Data Dr Azmi Mohd Tamil Dept of Community Health Universiti Kebangsaan Malaysia FK6163.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.
CHI SQUARE TESTS.
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.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
July, 2000Guang Jin Statistics in Applied Science and Technology Chapter 12. The Chi-Square Test.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
Statistics 300: Elementary Statistics Section 11-3.
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.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chi Square Test Dr. Asif Rehman.
Chi-square test.
Test of independence: Contingency Table
Chapter 9: Non-parametric Tests
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Chapter Fifteen McGraw-Hill/Irwin
Hypothesis Testing Review
Qualitative data – tests of association
Hypothesis Testing Using the Chi Square (χ2) Distribution
Data Analysis for Two-Way Tables
Chapter 11 Goodness-of-Fit and Contingency Tables
Different Scales, Different Measures of Association
Reasoning in Psychology Using Statistics
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chi – square Dr. Anshul Singh Thapa.
Analyzing the Association Between Categorical Variables
Assistant prof. Dr. Mayasah A. Sadiq FICMS-FM
Parametric versus Nonparametric (Chi-square)
Copyright © Cengage Learning. All rights reserved.
Inference for Two Way Tables
UNIT V CHISQUARE DISTRIBUTION
S.M.JOSHI COLLEGE, HADAPSAR
Chapter 18: The Chi-Square Statistic
Hypothesis Testing - Chi Square
Analysis of two-way tables
Presentation transcript:

Community &family medicine Dr. Mayasah A. Sadiq FICM-FM

DATA QUALITATIVE QUANTITATIVE CHI SQUARE TEST T-TEST

Dr. Mayasah A. Sadiq FICMS-FM The Chi-Square test Dr. Mayasah A. Sadiq FICMS-FM 2

Parametric and Nonparametric Tests Introduce two non-parametric hypothesis tests using the chi-square statistic: the chi-square test for goodness of fit and the chi-square test for independence.

Parametric and Nonparametric Tests (cont.) The term "non-parametric" refers to the fact that the chi‑square tests do not require assumptions about population parameters nor do they test hypotheses about population parameters.

Previous example of hypothesis test, such as the T test is a parametric test and includes assumptions about parameters and hypotheses about parameters.

Parametric and Nonparametric Tests (cont.) The most obvious difference between the chi‑square tests and the other hypothesis tests we have considered (T test) is the nature of the data. For chi‑square, the data are frequencies rather than numerical scores.

For testing significance of patterns in qualitative data. Chi-squared Tests 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 Test statistics measures the agreement between actual counts(observed) and expected counts assuming the null hypothesis

Chi square distribution

Applications of Chi-square test: Goodness-of-fit The 2 x 2 chi-square test (contingency table, four fold table) The a x b chi-square test (r x c chi-square test)

The Chi-Square Test for Goodness-of-Fit The chi-square test for goodness-of-fit uses frequency data from a sample to test hypotheses about the shape or proportions of a population. The data, called observed frequencies, simply count how many individuals from the sample are in each category.

The Chi-Square Test for Goodness-of-Fit (cont.) The null hypothesis specifies the proportion of the population that should be in each category. The proportions from the null hypothesis are used to compute expected frequencies that describe how the sample would appear if it were in perfect agreement with the null hypothesis.

Figure 18.1 Distribution of eye colors for a sample of n = 40 individuals. The same frequency distribution is shown as a bar graph, as a table, and with the frequencies written in a series of boxes.

An Example Biased Coin? Observed Expected Frequency Frequency H 40 50 T 60 50 sum 100 100

Degree of freedom for goodness of fit K-1(k=no.of groups ) 2-1=1 From the table for α 0.5= 3.841 Calc.Χ>tabulated There is signif. Differ. In proportion. There is association.

The Chi-Square Test for Independence The second chi-square test, the chi-square test for independence, can be used and interpreted in two different ways: 1. Testing hypotheses about the relationship between two variables in a population, or(2×2) 2. Testing hypotheses about differences between proportions for two or more populations.(a×b)

The Chi-Square Test for Independence (cont.) The data, called observed frequencies, simply show how many individuals from the sample are in each cell of the matrix. The null hypothesis for this test states that there is no relationship between the two variables; that is, the two variables are independent.

The Chi-Square Test for Independence (cont.) Both chi-square tests use the same statistic. The calculation of the chi-square statistic requires two steps: 1. The null hypothesis is used to construct an idealized sample distribution of expected frequencies that describes how the sample would look if the data were in perfect agreement with the null hypothesis.

The Chi-Square Test for Independence (cont.) For the goodness of fit test, the expected frequency for each category is obtained by expected frequency = fe = pn (p is the proportion from the null hypothesis and n is the size of the sample) For the test for independence, the expected frequency for each cell in the matrix is obtained by (row total)(column total) expected frequency = fe = ───────────────── n

Figure 18.4 For Example 18.1, the critical region begins at a chi-square value of 7.81.

The Chi-Square Test for Independence (cont.) 2. A chi-square statistic is computed to measure the amount of discrepancy between the ideal sample (expected frequencies from H0) and the actual sample data (the observed frequencies = fo). A large discrepancy results in a large value for chi-square and indicates that the data do not fit the null hypothesis and the hypothesis should be rejected.

The Chi-Square Test for Independence (cont.) The calculation of chi-square is the same for all chi-square tests:

Chi Square FORMULA:

2nd application

Result not deaf. deaf total Operator A 100 900 1000 B 60 440 500 total 160 1340 1500

Operator Result A B deaf not deaf. total 100 900 1000 60 440 500 160 1340 1500 Total number of items=1500 Total number of defective items=160

 

Operator Result A B def not def. total 100 900 1000 60 440 500 160 1340 1500 Expected deaf from Operator A = 1000 * 160/1500 = 106.7 (expected not deaf=1000-106.7=893.3) Expected deaf from Operator B = 500 * 160/1500 = 53.3

Result Operator A B def not def. total 100 900 1000 60 440 500 160 1340 1500 Operator Expected A B def not def. total 106.7 893.3 53.3 446.7

r x c contingency tables SA A NO D SD Gr 1 12 18 4 8 12 Gr2 48 22 10 8 10 Gr3 10 4 12 10 12

 

Degree of freedom The d.f depends on subgroup and sample size. ( k-1 ) , or (r-1 ) (c-1)

degrees of freedom = (R –1)(C – 1) R = number of rows C = number of columns

For testing significance of patterns in qualitative data. Chi-squared Test summary 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 Test statistics measures the agreement between actual counts(observed) and expected counts assuming the null hypothesis

Chi-Square (χ2) Any number squared is a positive number Therefore, area under the curve starts at 0 and goes to infinity To be statistically significant, needs to be in the upper 5% (α = .05) Compares observed frequency to what we expected 9/14/2010

2 Test of Independence Solution H0: No Relationship Ha: Relationship  = .05 df = (2 - 1)(2 - 1) = 1 Critical Value(s): Test Statistic: Decision: Conclusion:  = .05 47

If your calculated chi-square value is greater than the critical value calculated, you“reject the null hypothesis.” If your chi-square value is less than the critical value, you“fail to reject” the null hypothesis

Yates Correction When we apply 2x2 chi-square test and one of the expected cells was <5 or when we apply axb chi-square test and one of the expected cells was <2, or when the grand total is <40 we have to apply Yates' correction formula;

YATES = ∑ -------------------------------------

When 2x2 chi-square test have a zero cell (one of the four cells is zero) we can not apply chi-square test because we have what is called a complete dependence criteria. But for axb chi-square test and one of the cells is zero when can not apply the test unless we do proper categorization to get rid of the zero cell.