Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
155
RE: Probability question: names in hats
March 16, 2016 at 4:21 am
(This post was last modified: March 16, 2016 at 4:25 am by robvalue.)
OK, interesting.
I have coded the problem.
I am getting the following results, over a series of 5000 games:
3 players: around 25%
4 players: around 14%
10 players: around 8%
This would tentatively place Aractus's solution as wrong, although I haven't looked through it properly yet.
The first two there line up with my calculations: 1/4 and 5/36 for 3 and 4 players respectively
Here is the code, in microsoft small basic:
Posts: 20476
Threads: 447
Joined: June 16, 2014
Reputation:
111
RE: Probability question: names in hats
March 16, 2016 at 4:52 am
I'm in the lead so far with my 1 in 20 chances. (5%)
Where's my frozen chook or a kettle or something that I won?
(Doesn't say much for you bozos considering my IQ is Sagittarius)
No God, No fear.
Know God, Know fear.
Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
155
RE: Probability question: names in hats
March 16, 2016 at 5:03 am
You win a hat with a load of bits of paper in it
I'm a bit surprised it's around 8%, I would have guessed lower I think. Of course my experiment isn't conclusive, but it was around that number for many iterations of 5000 / 10,000 games each.
Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
155
RE: Probability question: names in hats
March 16, 2016 at 5:54 am
This can be solved through brute force, in theory at least, using a tree diagram. It's just that it is going to be monstrously big.
The first choice produces 8 distinct possibilities that keep the game going, each of which affect further probabilities in different ways. Each of those will lead to 7 or 8 more possibilities, then each of those leads to 6 or 7...
I think key to solving this is to try and find a formula for each combination, to see what the overlap is between different combinations, and then find a way of counting them all into useful groups.
The guy who told me this claimed he and his mates had solved it, but I don't know if they got it right or not. They didn't tell me the answer.
Posts: 25314
Threads: 239
Joined: August 26, 2010
Reputation:
156
RE: Probability question: names in hats
March 16, 2016 at 7:50 am
Can't we just say it's a miracle and then we wouldn't have to think about it anymore?
At the age of five, Skagra decided emphatically that God did not exist. This revelation tends to make most people in the universe who have it react in one of two ways - with relief or with despair. Only Skagra responded to it by thinking, 'Wait a second. That means there's a situation vacant.'
Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
155
RE: Probability question: names in hats
March 16, 2016 at 8:13 am
That is the correct answer.
Posts: 23918
Threads: 300
Joined: June 25, 2011
Reputation:
151
RE: Probability question: names in hats
March 16, 2016 at 8:16 am
Oh do you suppose this is one of those supernatural thingies? Hmmm, I wonder if Craig has a proof of God based on it.
Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
155
RE: Probability question: names in hats
March 16, 2016 at 8:19 am
(This post was last modified: March 16, 2016 at 8:20 am by robvalue.)
Well, we don't have a full solution yet, so yeah.
That's what supernatural means, right?
It was fun doing a bit of coding. I haven't done any for a while.
Posts: 10331
Threads: 31
Joined: April 3, 2015
Reputation:
64
RE: Probability question: names in hats
March 17, 2016 at 10:38 am
I've had a couple of goes at this without much luck so far.
I'd go about it by saying that the probability should be 1 minus the sum of the probabilities of all branches where a previous player hits player 10's name. Is that correct?
As I understand it, all branches of the tree should add up to 1 but only if they are mutually exclusive... if there's no crossover between events. So the problem I'm finding is how to define the branches of a player choosing. In the simple case, player 1 has a 1/10 chance of hitting player 10's name. But I can't figure out how to phrase this additional choice he has if he hits his own name, or if it even makes any difference.
There's a 1/10 chance that he will hit his own name and a 9/10 chance that he will not. If he does not, he does not choose again, but it's implicit in that he did not that the name chosen is not his own. Conversely, if he gets to choose again it's only out of the other 9 names that are not his own, but in either case the net effect after the choice is that player 1's name stays in the pot and another name is removed. So I wonder if it even matters for this particular question - the probability of a player hitting player 10's name - about this second choice which appears to collapse down to the same thing.
So rob, how would you define the first choice... the probability of player 1 hitting player 10's name? Would you say a simple 1/10 or something like (1/10 * 1/9) + (9/10 * 1/9 or 1/10... I'm not sure what that's supposed to be given that I'm trying to add an implicit choice here that isn't really there just to make sure that the two branches do not overlap). It's very confusing but a fun puzzle
Posts: 4484
Threads: 185
Joined: October 12, 2012
Reputation:
44
RE: Probability question: names in hats
March 18, 2016 at 12:30 am
(This post was last modified: March 19, 2016 at 1:56 am by Aractus.)
Here's the probability tree for 4 people:
So for S n where n equals the probability that person n makes winning impossible for person 4, S 1 + S 2 + 2S 3 = 1. S 3 gives you both the probability of winning, and the probability that person 3 creates a loosing situation for person 4.
So:
S1 + S2 + 2S3 = 1
2S3 = 1 - S1 - S2
S3 = ½(1 - S1 - S2)
Okay, and here are the sums themselves.
S1 = ¼(1+1/3)
S2 = ¼(1/3)[3 + 3(1/3) + (1/3)½ + ½]
S3 = ¼(1/3)½[2 + 2(1/3) + (1/3)½ + ½]
Now do note that S 1 only concerns itself with 4 being picked, whereas S 2 requires that both 4 is not picked and 3 is not available to be picked next. So we could instead come up with a formula to compensates for this, we'll call it S 2b that only cares if 4 is picked. It would look like this (I'll compensate for S 3 while I'm at it):
S1 = ¼(1+1/3)
S2b = ¼(1/3)[2 + 2(1/3) + (1/3)½ + ½]
S3b = ¼(1/3)[2½ + 2(1/3)½ + (1/3)½2 + ½2 + (1/3)]
For Religion & Health see:[/b][/size] Williams & Sternthal. (2007). Spirituality, religion and health: Evidence and research directions. Med. J. Aust., 186(10), S47-S50. -LINK
The WIN/Gallup End of Year Survey 2013 found the US was perceived to be the greatest threat to world peace by a huge margin, with 24% of respondents fearful of the US followed by: 8% for Pakistan, and 6% for China. This was followed by 5% each for: Afghanistan, Iran, Israel, North Korea. -LINK
"That's disgusting. There were clean athletes out there that have had their whole careers ruined by people like Lance Armstrong who just bended thoughts to fit their circumstances. He didn't look up cheating because he wanted to stop, he wanted to justify what he was doing and to keep that continuing on." - Nicole Cooke
|