I would like to perform a $\chi^2$ hypotheses test for association based on a $2 \times 2$ contingency table. However, my contingency table
$\begin{tabular}{|c|c|} a & b \\ c & d \end{tabular}$
does not contain integer count data but probabilities
$\begin{tabular}{|c|c|} 1 - f(a) & 1 - g(a) \\ f(a) & g(a) \end{tabular}$
$f,g$ are Bernoulli distributions over event $a.$ How can I calculate the test statistic in this case?