>>14425779On the assumption that the variables are independent, you would observe 10% of the 500 that are armed to also be high on drugs, in the same fashion those 50 would also be 5% of the 1000 that are high on drug that are also armed.
>>144258307.5% for 2 successes of 100 trials with p=0,005, yes
That's not what is being asked here tho.
[[0.08340284 0.01417848]
[0.01417848 0.04378649]] is the covariance matrix of a 100 sample observation expressed as a binary Yes/No that conforms to the problem (same population shares, but 2% of the samples have both variables set to 1)