Chi – square Dr. Anshul Singh Thapa.

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

CHI-SQUARE(X2) DISTRIBUTION
Parametric/Nonparametric Tests. Chi-Square Test It is a technique through the use of which it is possible for all researchers to:  test the goodness.
Chi Square Example A researcher wants to determine if there is a relationship between gender and the type of training received. The gender question is.
Basic Statistics The Chi Square Test of Independence.
Hypothesis Testing IV Chi Square.
Chapter 13: The Chi-Square Test
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
CJ 526 Statistical Analysis in Criminal Justice
1 Nominal Data Greg C Elvers. 2 Parametric Statistics The inferential statistics that we have discussed, such as t and ANOVA, are parametric statistics.
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.
CJ 526 Statistical Analysis in Criminal Justice
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chapter 9: Non-parametric Tests n Parametric vs Non-parametric n Chi-Square –1 way –2 way.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Chi- square test x 2. Chi Square test Symbolized by Greek x 2 pronounced “Ki square” A Test of STATISTICAL SIGNIFICANCE for TABLE data.
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
Non-parametric tests (chi-square test) Dr. Omar Al Jadaan Assistant Professor – Computer Science & Mathematics.
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.
1 Chi-square Test Dr. T. T. Kachwala. Using the Chi-Square Test 2 The following are the two Applications: 1. Chi square as a test of Independence 2.Chi.
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.
Chi Square Test for Goodness of Fit Determining if our sample fits the way it should be.
Statistics 300: Elementary Statistics Section 11-3.
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.
Comparing Counts Chi Square Tests Independence.
Basic Statistics The Chi Square Test of Independence.
Inferential Statistics 3: The Chi Square Test
Geog4B The Chi Square Test.
CHI-SQUARE(X2) DISTRIBUTION
The Chi-square Statistic
Chapter 9: Non-parametric Tests
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 11 Chi-Square Tests.
INTRODUCTORY STATISTICS FOR CRIMINAL JUSTICE
Chapter 12 Tests with Qualitative Data
Community &family medicine
Chapter 25 Comparing Counts.
Data Analysis for Two-Way Tables
Chapter 11 Goodness-of-Fit and Contingency Tables
Chi-Square Test Dr Kishor Bhanushali.
Elementary Statistics
Analysis of count data 1.
Consider this table: The Χ2 Test of Independence
Testing for Independence
Chi Square Two-way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Econ 3790: Business and Economics Statistics
Chi Square (2) Dr. Richard Jackson
Overview and Chi-Square
STAT 312 Introduction Z-Tests and Confidence Intervals for a
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Lesson 11 - R Chapter 11 Review:
Analyzing the Association Between Categorical Variables
Chapter 26 Comparing Counts.
Copyright © Cengage Learning. All rights reserved.
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
Inference for Two Way Tables
UNIT V CHISQUARE DISTRIBUTION
Chapter 18: The Chi-Square Statistic
Chapter 26 Comparing Counts.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Presentation transcript:

Chi – square Dr. Anshul Singh Thapa

An Introduction The Chi – square is one of the simplest and most widely used non – parametric test in the statistical work. The Chi – square describes the magnitude of the discrepancy between the theory and observation. The Chi – square test was first used by Karl Pearson in the year 1990. it is defined as : Chi – square (X2) = Σ [(O – E)2 /E]. Where O refers to the observed frequencies and E refers to the expected frequencies.

Chi – square performs two types of functions: Goodness of fit: A common use is to assess whether a measured/observed set of measures follows an expected pattern. The expected frequency may be determined from prior knowledge (such as previous year’s exam results) or by calculation of an average from the given data. Measure of Independence: The chi-square test can be used in the reverse manner to goodness of fit. If the two sets of measured are compared, then we can determine whether it align or do not align.

Steps to determine Chi – square Write the observed frequency in column O. Figure the expected frequency and write them in column E. Expected Frequencies: expected frequency for chi-square can be find in three ways: When we hypothesized that all the frequencies are equal in each category. In such cases the expected frequency is calculated by dividing the of the sample by the numbers of categories. We can also determine expected frequencies on the basis of some prior knowledge. In such cases we can find frequency distribution by multiplying the sample size by each of the hypothesized proportions. Goodness of fit test

RT = The row total for the row containing the cell Measure of independence Calculate the expected frequencies. In general the expected frequency for any call can be calculated from the following equation: E = RT X CT/ N E = Expected Frequency RT = The row total for the row containing the cell CT = The column total for the column containing the cell N = The total number of observation Take the difference between observed and expected frequencies and obtain the square of these differences. i.e., obtain the values of (O – E)2 Divide the values of (O – E)2 obtain in the second step by the respective expected frequency and obtain the total Σ [(O – E)2 /E]. this gives the value of Chi – Square which can range from zero to infinity. If Chi – square is zero it means the observed and expected frequencies completely coincide. The greater the discrepancy between the observed and expected frequencies, the greater shall be the value of Chi – square

The calculated value of Chi – square is compared with the table value of Chi – square for given degree of freedom at certain level of significance. If at the stated level (generally 5% level is selected), the calculated value of Chi – square is more than the table value of Chi – square, the difference between the theory and observation is considered to be significant. If the calculated Chi – square value is less than the table value than the difference between the theory and observation is not considered as significant, i.e., it is regarded as due to fluctuation in sampling.

In an anti malaria campaign in a certain area, quinine was administered to 812 persons out of a total population of 3,248. the number of fever cases is shown below: Treatment Fever No fever Total Quinine 20 792 812 No Quinine 220 2216 2436 240 3008 3248 let us take the hypothesis that Quinine is not effective in checking malaria Applying Chi – Square: Find out Expected frequency by applying the formula = E = RT X CT/ N = 240 X 812 / 3248 = 60 Expected frequency corresponding to the first row and column is 60. therefore the table for expected frequency shall be: 60 752 812 180 2256 2436 240 3008 3248

O E (O – E)2 (O – E)2 / E Fever Quinine and No Quinine 20 60 1600 26.667 220 180 8.889 No Fever 792 752 2.128 2216 2256 0.709 Σ [(O – E)2 /E] = 38.393 Degree of freedom (v) = (r – 1) (c – 1) = (2 – 1) (2 – 1) = 1 v = 1 level of significance = 0.05 the table valve of Chi – Square = 3.84 The calculated value of Chi – Square is greater than the table value. The hypothesis is rejected. Hence Quinine is useful in checking malaria