You can write a formula involving the population of voters.

where the subscript "A" indicates those who voted for Candidate A.

Different populations of men and women give different results..

For instance, if there were 100 men and 100 women

then

but

If we change the number of men, the probability will change.

If we change the number of women, the probability will change.