Chi-squared test

Fill in the four main values (A1, A2, B1, B2):

ABSUM
1
2
SUM
Chi-square value (X):
Significance test:

Thanks to Javascript Planet for the code (modified slightly by me to make it more psychologist-friendly).