The Danish Mask Study presents the interesting probability problem: the odds of getting 5 infections for a group of 2470, vs 0 for one of 2398. It warrants its own test statistic which allows us to look at all conditional probabilities. Given that we are dealing with tail probabilities, normal approximations are totally out of order. Further we have no idea from the outset on whether the sample size is sufficient to draw conclusions from such a discrepancy (it is).
There appears to be no exact distribution in the literatrue for when both and are binomially distributed with different probabilities. Let’s derive it.
Let , , both independent.
We have the constrained probability mass for the joint :
,
with .
For each “state” in the lattice, we need to sum up he ways we can get a given total times the probability, which depends on the number of partitions. For instance:
Condition for :
,
so
.
Condition for :
,
alora
(unless I got mixed up with the symbols).
The characteristic function:
Allora, the expectation:
The variance:
The kurtosis: