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
TRUE | FALSE | Marginal total | |
POSITIVE | a | b | a + b |
NEGATIVE | c | d | c + d |
Marginal total | a + c | b + d | N |