I feel like the fact that I can choose how many times to play might throw things? If I were more likely to stop after non-arousing image than after an arousing one, what will that do statistically?
public class test {
public static void main( String[] args ) throws Exception {
int boys = 0, girls = 0;
for (int i = 0; i < 1000000; i++) {
boolean isBoy = (Math.random() >= 0.5);
while (! isBoy) {
girls++;
isBoy = (Math.random() >= 0.5);
}
boys++;
}
System.out.println( "Boys: " + boys + "\nGirls: " + girls );
}
} $ java test
Boys: 1000000
Girls: 996931
$ java test
Boys: 1000000
Girls: 1001605
$ java test
Boys: 1000000
Girls: 1001656
$ java test
Boys: 1000000
Girls: 999473
$ java test
Boys: 1000000
Girls: 1000645
Looks pretty even to me.Besides, if you compute the girls/boy ratio mathematically, you get
0/2 + 1/4 + 2/8 + 3/16 + 4/32 + 5/64 + ...
which does converge to 1.This MathOverflow page [1] is a good (opinionated) summary. The best answer's author believes that with finitely many families the ratio actually doesn't work out evenly, but does converge to 50/50 with infinitely many families.
[1] http://mathoverflow.net/questions/17960/google-question-in-a...
Expectation of a ratio != ratio of expectations.