You can execute test with cross tabulation by such formula as below. In each cells, subtract expected value (E) from observed value (O), square the subtraction, divide the squared by expected value and add them all.
df: degree of freedom
statistics follows distribution. When degree of freedom is 1, statistics is 3.841 if probability is smaller than 0.05 in one sided test, is 6.635 if p < 0.01, [latex]\chi^2[/latex] is 10.828 if p < 0.001, respectively. In two-tailed test, [latex]\chi^2[/latex] is 5.024 if p < 0.05, [latex]\chi^2[/latex] is 7.879 if p < 0.01, respectively.
|POSITIVE||a||b||a + b|
|NEGATIVE||c||d||c + d|
|Marginal total||a + c||b + d||N|