[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference rusure::math

Title:Mathematics at DEC
Moderator:RUSURE::EDP
Created:Mon Feb 03 1986
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2083
Total number of notes:14613

304.0. "Hat-Check Girl" by TURTLE::GILBERT () Wed Jun 12 1985 17:30

J.Munzer tells the tale of a hat-check girl at a popular local bistro.
When rushed at closing time, she cavalierly returns hats at random.

After a busy Saturday night, he wondered whether *anybody* would get the
right hat back.  Offhandedly, would you say the probably that *somebody*
will have his hat returned is small (less than 1/2) or large (1/2 or more)?
Quickly, now, and no paper (yet)!
T.RTitleUserPersonal
Name
DateLines
304.1ALIEN::POSTPISCHILWed Jun 12 1985 18:2211
Assuming each person, and only those persons, who checked a hat receive a hat
when leaving, the probability that no person receives a correct hat and the
probability that exactly one person receives a correct hat both approach
1/e, or about .368, as the number of people increases.

Sorry, I have no proof available.  Years ago, I figured out the function
which gives the probability of n correct matches with m choices, but I no
longer have it.  Anybody want to give it a shot?


				-- edp
304.2ALIEN::POSTPISCHILThu Jun 13 1985 09:557
Maybe I should have answered the question.  If the probability that nobody
receives a correct hat is 1/e, the probability that somebody receives a
correct hat is 1-1/e, or about .632.  Also, the mean number of hats correctly
returned is exactly 1, regardless of the number of hats.


				-- edp
304.3AURORA::HALLYBFri Jun 14 1985 16:489
A similar problem involves turning over cards from two decks simultaneously,
wondering if you would ever turn over the same card (rank and suit).

Back in college I made a bet against Rand Malmin, a strong Southern Baptist
non-drinking, non-gambling gentleman, who thought he would teach me the evils
of gambling.  He was surprised when the tens of hearts coincided, then angry
when I told him how favorable my odds were...

  John "a gentleman never bets on a sure thing" H.
304.4TURTLE::GILBERTFri Jun 14 1985 19:495
But if you look at the problem a certain way, it would be surprising to
discover that NONE matched: "There are really quite a few people here --
certainly SOMEBODY must be lucky enough to get his own hat".

Somebody invariably picks the lottery number, right?
304.5SPHINX::PATTERSONMon Jun 17 1985 11:5412
If there are n people, (and therefore n hats involved), then
(1-1/n) is the probability that a given gentleman does not get his
own hat back.

Since, before anyone actually takes *some* hat, this is true of each
gentleman, the probability of all hats being returned incorrectly is
(1-1/n)^n.

for 'large' n this is e^-1, so the probability of at least one hat
being returned to its rightful owner is 1-e^-1 as stated earlier.

carl
304.6ADVAX::J_ROTHTue Jun 18 1985 20:3718
The choices are not independant, so the function (1-1/n)^n doesn't precisely
hold, tho its asymptotically a good approx.

I believe the number of permutations which will have no matches is given
by

	     N!   N!   N!           N!
	N! - -- + -- - -- + ... +/- --
	     1!   2!   3!           N!

the series breaking off after N+1 terms.

So, for successive values of N, the probability of hitting a permutation
with no matches is given by including successively more terms in the
taylor series for e^-1, as can be checked by enumerating a few cases
for small N.

- Jim
304.7TOOLS::STANTue Jun 18 1985 23:002
I agree with Jim Roth.  This number is known in the literature as !N,
N subfactorial.  It is the number of derangements on N items.
304.8SPHINX::PATTERSONWed Jun 19 1985 09:3510
re .5
   .6

After I posted my 'proof', JMunzer pointed out that in the case n=2
(1-1/n)^n gave incorrect probabilities.  That was because I had assumed
independence, in *large* n cases that is of no consequence - for reasons
in .6 - but the *small* case is incorrect, (one can't after all have
1 mismatch).

carl