wu :: forums (http://www.ocf.berkeley.edu/~wwu/cgi-bin/yabb/YaBB.cgi)
riddles >> medium >> Black Jack
(Message started by: ThudanBlunder on Jun 5th, 2007, 5:35pm)

Title: Black Jack
Post by ThudanBlunder on Jun 5th, 2007, 5:35pm
A well-shuffled pack of 52 playing cards is placed face-down on a table. Then one-by-one the cards are turned over. If you had to choose the position of the first black Jack to be revealed, what position would you pick and why?

Title: Re: Black Jack
Post by ima1trkpny on Jun 5th, 2007, 5:41pm
[hide]The top (within the top 10 cards) because assuming you cut the deck around the middle region the initial pattern was black suit-red suit-black suit-red suit so when you cut and shuffle the deck you mix the two black suits in the bottom half of the deck and then when you cut and shuffle again they come out in the top and remain there[/hide]?

Title: Re: Black Jack
Post by ThudanBlunder on Jun 5th, 2007, 6:09pm

on 06/05/07 at 17:41:45, ima1trkpny wrote:
...because assuming you cut the deck around the middle region the initial pattern was black suit-red suit-black suit-red suit...

No, the deck is randomly cut, randomly shuffled, etc, etc. So the initial arrangement is irrelevant.

Title: Re: Black Jack
Post by Grimbal on Jun 6th, 2007, 2:14am
Intuitively, I would say the first black jack would appear around 1/3 of the pack.  But that is if you average the position.
But the most likely single position for the first black jack is [hide]the first card[/hide].

Title: Re: Black Jack
Post by towr on Jun 6th, 2007, 3:27am
The probability of the Kth card out of N being the first black Jack seems to be [hide](N-K)/[N*(N-1)]
So the least K, i.e. 1, is always the most probable [/hide]

Title: Re: Black Jack
Post by Miles on Jun 6th, 2007, 7:20am

on 06/06/07 at 03:27:53, towr wrote:
The probability of the Kth card out of N being the first black Jack seems to be [hide](N-K)/[N*(N-1)]
So the least K, i.e. 1, is always the most probable [/hide]


You need to double your formula, but obviously that does not change the conclusion.

If our success is measured by how small the difference is between the position we predicted and the actual position, what position would you choose to minimise the expected difference?

Title: Re: Black Jack
Post by towr on Jun 6th, 2007, 9:16am

on 06/06/07 at 07:20:54, Miles wrote:
You need to double your formula, but obviously that does not change the conclusion.
Ah yes, two interchangable black Jacks; I concentrated on one specific one being first..


Quote:
If our success is measured by how small the difference is between the position we predicted and the actual position, what position would you choose to minimise the expected difference?
I suppose the easiest way is to try all 52 cases

At the moment no simpler expression comes to mind minargk http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sum.gifNi=1 P(i) |k-i|

Title: Re: Black Jack
Post by rmsgrey on Jun 6th, 2007, 9:45am

on 06/06/07 at 02:14:49, Grimbal wrote:
Intuitively, I would say the first black jack would appear around 1/3 of the pack.  But that is if you average the position.
But the most likely single position for the first black jack is [hide]the first card[/hide].

Intuitively, I'd say each card has the same probability of being a black jack, so it's the probability of having an earlier black jack that controls it - and that's obviously minimised when there are no previous cards...

Title: Re: Black Jack
Post by ThudanBlunder on Jun 6th, 2007, 10:05am

on 06/06/07 at 09:16:44, towr wrote:
At the moment no simpler expression comes to mind minargk http://www.ocf.berkeley.edu/~wwu/YaBBImages/symbols/sum.gifNi=1 P(i) |k-i|

Speaking of moments, I would say it is analogous to the continuous case of balancing a beam whose weight varies uniformly from 1 to 51 per unit length, although it is not obvious that this gives the minimum.


Title: Re: Black Jack
Post by Grimbal on Jun 6th, 2007, 3:50pm
If you'd like to minimize the square of the difference, it is easy, it would be the mean value, which is at 1/3 of the pack, at 51/3 = 17 (zero-based).

To minimize |i-j|, you need the median, which is around 51*(1-1/sqrt(2)) = 14.94.  The best guess is card 15 (zero-based).

Title: Re: Black Jack
Post by towr on Jun 7th, 2007, 1:13am

on 06/06/07 at 15:50:15, Grimbal wrote:
To minimize |i-j|, you need the median, which is around 51*(1-1/sqrt(2)) = 14.94.  The best guess is card 15 (zero-based).
16 is slightly better.

Title: Re: Black Jack
Post by ThudanBlunder on Jun 7th, 2007, 1:15am
What is the most probable position for the 2nd black Jack?

Title: Re: Black Jack
Post by Grimbal on Jun 7th, 2007, 1:51am

on 06/07/07 at 01:13:43, towr wrote:
16 is slightly better.

zero-based?

Title: Re: Black Jack
Post by towr on Jun 7th, 2007, 3:46am

on 06/07/07 at 01:51:55, Grimbal wrote:
zero-based?
hmm, I missed that. If that means you count the first card as zeroth, then I concur..

Title: Re: Black Jack
Post by towr on Jun 7th, 2007, 3:48am

on 06/07/07 at 01:15:35, ThudanBlunder wrote:
What is the most probable position for the 2nd black Jack?
Well, the second black jack from the front, is the first from the back. So I would say the last position.

Title: Re: Black Jack
Post by Grimbal on Jun 7th, 2007, 4:25am

on 06/07/07 at 03:46:56, towr wrote:
hmm, I missed that. If that means you count the first card as zeroth, then I concur..

It was a bit silly to give a zero-based result.  Except to give away the fact that I did a simulation in C first.

Title: Re: Black Jack
Post by SWF on Jun 7th, 2007, 10:23pm
My first thought was the most likely position is the 2nd card, but upon re-reading the question I see it says "black Jack" and not "blackjack".

Title: Re: Black Jack
Post by tiber13 on Jun 8th, 2007, 9:13am

on 06/07/07 at 01:15:35, ThudanBlunder wrote:
What is the most probable position for the 2nd black Jack?


20?

Title: Re: Black Jack
Post by ThudanBlunder on Jun 8th, 2007, 9:20am

on 06/08/07 at 09:13:01, tiber13 wrote:
20?

No, if 1 is the most probable position for the first black Jack, then by symmetry 52 is the most probable position for the second black Jack (as towr claimed).


on 06/07/07 at 03:48:51, towr wrote:
Well, the second black jack from the front, is the first from the back. So I would say the last position.



Title: Re: Black Jack
Post by Grimbal on Jun 9th, 2007, 8:18am
If the most probable position for the 1st BJ is the first card and the most probable position for the 2nd BJ is the last card, certainly the most probably position for the pair is the first and last card.

Or isn't it?

PS:  ;)

Title: Re: Black Jack
Post by rmsgrey on Jun 9th, 2007, 8:59am

on 06/09/07 at 08:18:43, Grimbal wrote:
If the most probable position for the 1st BJ is the first card and the most probable position for the 2nd BJ is the last card, certainly the most probably position for the pair is the first and last card.

Or isn't it?

Of course it isn't - all positions for the pair are equally probable, it's just that the second card, say, is first black jack for some of them, and last for some - it's only the first card which is only ever the first black jack, and similarly for the last...



Powered by YaBB 1 Gold - SP 1.4!
Forum software copyright © 2000-2004 Yet another Bulletin Board