Conditional Probability with Python — Compucademy

In this post we are going to explore conditional probability with Python. Here’s a fun and potentially tricksome question about probabilities:

In a family with two children, what is the probability that, if at least one of the children is a girl, both children are girls?

First of all let’s state a couple of assumptions which are not realistic in the…