# 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,316)
- Using Red 5 Flash media server with Drupal (13,242)
- Interactive Venn diagrams using JavaScript (13,112)
- Modulo Arithmetic (11,846)
- Javascript Algebra solver (11,242)
- Chinese Remainder Theorem (7,650)
- Javascript Puzzle Creator (7,624)
- Flash Compass (6,896)
- Creating Equations in Movable Type (6,872)
- Using Flex to Create an Algebra Puzzle (6,855)

- 1 of 13
- ››