# Chi Squared test calculator in JavaScript

Submitted by David Wees on Thu, 04/29/2010 - 22:53

Today a 9th grade student asked me if there was something he could do to tell if two categorical variables had a relationship or not. The Χ^{2} test would be perfect, except that most of my 9th grade students don't yet have the mathematical acumen to do the calculation themselves.

So I created a very simple calculator in JavaScript for the Χ^{2} test. It is located here: http://davidwees.com/javascript/chisquaredtest/.

Note that this calculator doesn't check that the original data is fit to be included, and definitely does not yet include the Yates correction for continuity.

**Subcribe** to my blog

## Popular content

- Gradient jQuery plugin (38,557)
- Using Red 5 Flash media server with Drupal (14,276)
- Interactive Venn diagrams using JavaScript (13,469)
- Modulo Arithmetic (12,063)
- Javascript Algebra solver (11,705)
- Chinese Remainder Theorem (8,205)
- Javascript Puzzle Creator (7,834)
- Creating Equations in Movable Type (7,289)
- Using Flex to Create an Algebra Puzzle (7,125)
- Flash Compass (7,069)

- 1 of 13
- ››