Back to JS main page

BY:Patrick Meirmans...Homepage
DATE:1997-10-22


COMMENTS:This script puts a chi-square statistical test on the page.

Chi-square test

This is a so-called chi-square contingency test, it can calculate wether two samples are equal or not. An example is the study whether or not alcohol consumption was a determining factor in relapsing when people wanted to quit smoking (Schiffman, 1982, Journal of counseling and clinical psychology):

Alcohol
consumption
smoked did not
smoke
Yes2013
No4896

When you fill in these data in the form below (only cells AI, AII, BI and BII), and click calculate, the computer will calculate the chi-square value for you. Normally, you have to check with a table whether the given value represents a difference or not, but here this is automatically done (actually, I looked in the table, and put the value in the program).


First you have to choose a confidence interval:

Now fill in the numbers:

ABSUM
I
II
SUM
Chi-square value (X):
Difference?


If you want this script just choose "Save Frame As..." (in Netscape) when you have the focus on the frame.

URL: http://www.oocities.org/SiliconValley/7116/jv_chi.html