20. Multiplication Rule

Easy

Rearranging the conditional formula gives the multiplication rule:

P(AB)=P(A)P(BA)P(A \cap B) = P(A) \, P(B \mid A)

Return P(AB)P(A \cap B).

solve(4/52, 3/51)  ->  0.004524886877828055     # both cards aces

Sign in to write and run your own code.

Implement solve(...)