Suppose we flip $n$ coins (each flip is independent, but not necessarily identically distributed). Under what conditions will the probability that we flip an even number of heads be exactly $1/2$?
I know that when all the coins are fair, then the probability is half (see e.g. this thread). But I'm not sure how to handle the case if the coins aren't fair.