# 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,467)
- Using Red 5 Flash media server with Drupal (13,504)
- Interactive Venn diagrams using JavaScript (13,356)
- Modulo Arithmetic (11,996)
- Javascript Algebra solver (11,562)
- Chinese Remainder Theorem (8,046)
- Javascript Puzzle Creator (7,763)
- Creating Equations in Movable Type (7,221)
- Using Flex to Create an Algebra Puzzle (7,035)
- Flash Compass (7,028)

- 1 of 13
- ››