![]() |
|
#11
|
|||
|
Thread would be funnier if instead of three bags she had three holes.
I can't be here all the time to tell you how to post. | ||
|
|
|||
|
#12
|
|||
|
Those bags remind me of large loose squirrel testicles.
I would take the one of the left. | ||
|
|
|||
|
#13
|
|||
|
kill tunare and open all the bags
__________________
![]() | ||
|
|
|||
|
#14
|
|||
|
this was cool in the 70s when anyone still knew who the fuck monty hall was
| ||
|
|
|||
|
#18
|
|||
|
I wrote a program after reading a lot of mathematicians were only convinced after seeing computer simulations. In 9000 trials, switching makes you win ~6000 (2/3), not switching only ~3000 (1/3)
Code:
#include <stdio.h>
#include <stdlib.h>
#define MONTY_TRIALS 9000
bool monty_hall_problem(bool switch_doors)
{
bool doors[3] = { false, false, false };
doors[rand()%3] = true;
unsigned int choice = rand() % 3;
return (switch_doors) ? !doors[choice] : doors[choice];
}
int main(int argc, char* argv[])
{
int switch_wins = 0, no_switch_wins = 0;
for (int i = 0; i < MONTY_TRIALS; ++i)
{
if (monty_hall_problem(true)) ++switch_wins;
if (monty_hall_problem(false)) ++no_switch_wins;
}
printf("Switch: %d\tNo Switch: %d", switch_wins, no_switch_wins);
return 0;
}
| ||
|
|
|||
|
#19
|
|||
|
I forgot to seed rand there but then I did and the same shit happens anyway DUh
| ||
|
|
|||
|
#20
|
|||
|
Monty Hall question.
Variable change. Always take the switch. You get an additional 17% equity. | ||
|
|
|||
![]() |
|
|