Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: May 18, 2024, 10:59 am

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Probability question: names in hats
#41
RE: Probability question: names in hats
(March 14, 2016 at 8:29 am)robvalue Wrote: That's the sort of thing I started out with. But it doesn't take into account how the probability changes, as I mentioned above.

The first one should be 8/9, because he can't take his own name. He only actually has 9 possible picks, player 2, ..., player 10. And player 10 is excluded because that would fail the problem. So it's 8 out of 9.

The second one could be 8/9 again if player 1 took player 2's name, [1, 3, 4, ... , 10]
or 7/8 if he didn't, as his own name then gets excluded.

And so on... the probabilities are all over the place. The tree diagram is horrid. I started it, but... no! There must be a better way.

No that's wrong. I'll explain. I did give the first answer instinctively FYI, and it was on the right track...

These are the rules:

(March 14, 2016 at 5:45 am)robvalue Wrote: Each of the ten people, in turn, select a name from the hat using the following rule: (the order of the people is not important)

1) They select a piece of paper at random from those remaining in the hat.
2) If the name is not their own name, they keep the piece of paper.
3) If the name is their own name, they pick again randomly, and then return their name to the hat.

First I'll consider how you got to 8/9 for pick 1.

It's a bit counter-intuitive so I'll try to explain: You added probabilities together. However step three reduces the probability of success from step 2 it doesn't improve it. In step 2 you have a 9/10 chance of not picking 10. So the probability is 9/10. But if you're holding onto number 1 you then need to reselect from the remaining 9 numbers, and this time your probability of success is 8/9, and the probability of selecting 10 is 1/9.

So, to recap: Person 1: 9/10 - 1/10 * 1/9  = 8/9.

So now we know how to correctly get to this number, we can work out Person 2's probability. Probability is 8/9 - 1/9 * 1/8 if their number is available or 8/9 if their number is unavailable (i.e. if it was picked by person 1). The probability that their number was picked is 1 in 9 since there are only 9 numbers that person 1 could have picked and kept.

So the probability of success of person 2 is: 8/9 * (8/9 - 1/9 * 1/8) + 1/9 * 8/9.

This formula will continue though to person 8 - person 9 cannot have two guesses otherwise they'll remove number 10, therefore their number cannot be selectable. The increasingly complicated part is the probability that the previous people picked your number. For person 3 there are two people who could have picked it, but only one of them could have done so. So probability that they did is (1/9 + 1/8)/2 (about 12%), and probability that they didn't is (8/9 + 7/8)/2, which of course can also be written as 1 - (1/9 + 1/8)/2

Person 1: 9/10 - 1/10 * 1/9 = .889
Person 2: 8/9 * (8/9 - 1/9 * 1/8) + 1/9 * 8/9 = .877
Person 3: (8/9 + 7/8)/2 * (7/8 - 1/8 * 1/7) + (1/9 + 1/8)/2 * 7/8 = .859
Person 4: (8/9 + 7/8 + 6/7)/3 * (6/7 - 1/7 * 1/6) + (1/9 + 1/8 + 1/7)/3 * 6/7 = .836
Person 5: (8/9 + 7/8 + 6/7 + 5/6)/4 * (5/6 - 1/6 * 1/5) + (1/9 + 1/8 + 1/7 + 1/6)/4 * 5/6 = .805
Person 6: (8/9 + 7/8 + 6/7 + 5/6 + 4/5)/5 * (4/5 - 1/5 * 1/4) + (1/9 + 1/8 + 1/7 + 1/6 + 1/5)/5 * 4/5 = .757
Person 7: (8/9 + 7/8 + 6/7 + 5/6 + 4/5 + 3/4)/6 * (3/4 - 1/4 * 1/3) + (1/9 + 1/8 + 1/7 + 1/6 + 1/5 + 1/4)/6 * 3/4 = .680
Person 8: (8/9 + 7/8 + 6/7 + 5/6 + 4/5 + 3/4 + 2/3)/7 * (2/3 - 1/3 * 1/2) + (1/9 + 1/8 + 1/7 + 1/6 + 1/5 + 1/4 + 1/3)/7 * 2/3 = .532
Person 9: (1/9 + 1/8 + 1/7 + 1/6 + 1/5 + 1/4 + 1/3 + 1/2)/8 * 1/2 = .114

.889 * .877 *.859 * .836 * .805 * .757 * .680 * .532 * .114 = 0.014


So the probability that person 10 gets their number at the end is 1.4%, which is only 0.4% off my original guess - actually only 0.3% off the 8/10*7/8*...*1/2 result.

And just in case this is difficult to follow, here it is colour-coded:


Example:
Person 6: (8/9 + 7/8 + 6/7 + 5/6 + 4/5)/5 * (4/5 - 1/5 * 1/4) + (1/9 + 1/8 + 1/7 + 1/6 + 1/5)/5 * 4/5 = .757

Formula: (Probability their number is selectable * Probability 10 isn't selected) + (Probability their number isn't selectable * Probability 10 isn't selected)
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
Reply



Messages In This Thread
Probability question: names in hats - by robvalue - March 14, 2016 at 5:45 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 6:06 am
RE: Probability question: names in hats - by Mr.wizard - March 14, 2016 at 6:58 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 7:03 am
RE: Probability question: names in hats - by Mr.wizard - March 14, 2016 at 7:08 am
RE: Probability question: names in hats - by ignoramus - March 14, 2016 at 7:03 am
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:18 am
RE: Probability question: names in hats - by ignoramus - March 14, 2016 at 7:19 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 7:47 am
RE: Probability question: names in hats - by Aractus - March 14, 2016 at 8:13 am
RE: Probability question: names in hats - by Aractus - March 15, 2016 at 12:26 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 8:29 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 11:02 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 11:12 am
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:59 pm
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:13 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 11:17 am
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:22 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 11:25 am
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:42 am
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 1:50 pm
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 11:45 am
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 12:40 pm
RE: Probability question: names in hats - by brewer - March 14, 2016 at 1:05 pm
RE: Probability question: names in hats - by Chas - March 14, 2016 at 1:54 pm
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 2:00 pm
RE: Probability question: names in hats - by Chas - March 14, 2016 at 3:04 pm
RE: Probability question: names in hats - by Chas - March 14, 2016 at 11:17 pm
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 2:05 pm
RE: Probability question: names in hats - by robvalue - March 14, 2016 at 2:09 pm
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 9:24 pm
RE: Probability question: names in hats - by Chas - March 14, 2016 at 11:48 pm
RE: Probability question: names in hats - by ignoramus - March 14, 2016 at 11:31 pm
RE: Probability question: names in hats - by Chas - March 14, 2016 at 11:47 pm
RE: Probability question: names in hats - by Whateverist - March 14, 2016 at 11:51 pm
RE: Probability question: names in hats - by Foxaèr - March 15, 2016 at 12:02 am
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 3:06 am
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 11:23 am
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 11:35 am
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 11:55 am
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 12:00 pm
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 1:10 pm
RE: Probability question: names in hats - by Aractus - March 15, 2016 at 12:52 pm
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 1:23 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 12:56 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 1:19 pm
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 1:31 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 1:26 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 1:35 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 1:38 pm
RE: Probability question: names in hats - by robvalue - March 15, 2016 at 1:52 pm
RE: Probability question: names in hats - by Whateverist - March 15, 2016 at 5:34 pm
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 2:44 am
RE: Probability question: names in hats - by Whateverist - March 16, 2016 at 3:06 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 3:21 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 4:21 am
RE: Probability question: names in hats - by ignoramus - March 16, 2016 at 4:52 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 5:03 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 5:54 am
RE: Probability question: names in hats - by Cyberman - March 16, 2016 at 7:50 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 8:13 am
RE: Probability question: names in hats - by Whateverist - March 16, 2016 at 8:16 am
RE: Probability question: names in hats - by robvalue - March 16, 2016 at 8:19 am
RE: Probability question: names in hats - by emjay - March 17, 2016 at 10:38 am
RE: Probability question: names in hats - by Aractus - March 18, 2016 at 12:30 am
RE: Probability question: names in hats - by Whateverist - March 18, 2016 at 1:34 am
RE: Probability question: names in hats - by Aractus - March 18, 2016 at 1:44 am
RE: Probability question: names in hats - by robvalue - March 18, 2016 at 7:50 am
RE: Probability question: names in hats - by Whateverist - March 18, 2016 at 7:59 am
RE: Probability question: names in hats - by robvalue - March 18, 2016 at 8:22 am
RE: Probability question: names in hats - by robvalue - March 19, 2016 at 12:58 pm
RE: Probability question: names in hats - by robvalue - March 19, 2016 at 2:25 pm
RE: Probability question: names in hats - by emjay - March 19, 2016 at 6:39 pm

Possibly Related Threads...
Thread Author Replies Views Last Post
  What's the probability that 3 out of 23 people will share the same birthday? FlatAssembler 28 3421 February 16, 2022 at 12:15 am
Last Post: Paleophyte
  Frog probability Aractus 17 3810 April 22, 2016 at 9:16 pm
Last Post: Aractus
  The role of probability in solving the Monty Hall problem Excited Penguin 209 14534 March 15, 2016 at 4:30 am
Last Post: robvalue
  The probability of the accuracy of probability itself? Etc. Edwardo Piet 15 6398 February 9, 2009 at 1:54 pm
Last Post: chatpilot
  Evidence and probability go hand in hand? Edwardo Piet 13 5577 November 7, 2008 at 9:46 am
Last Post: Darwinian
  Probability and Evidence. Edwardo Piet 9 5665 October 15, 2008 at 2:15 pm
Last Post: josef rosenkranz



Users browsing this thread: 1 Guest(s)