Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Numeric stability is probably not all that important when you're guessing.


tech / sci.math / daily puzzle: where's the the first ace?

SubjectAuthor
* daily puzzle: where's the the first ace?RichD
+- Re: daily puzzle: where's the the first ace?Serg io
+* Re: daily puzzle: where's the the first ace?Barry Schwarz
|+* Re: daily puzzle: where's the the first ace?James Waldby
||`* Re: daily puzzle: where's the the first ace?James Waldby
|| +* Re: daily puzzle: where's the the first ace?Serg io
|| |`* Re: daily puzzle: where's the the first ace?James Waldby
|| | `- Re: daily puzzle: where's the the first ace?Serg io
|| `- Re: daily puzzle: where's the the first ace?Mike Terry
|`- Re: daily puzzle: where's the the first ace?RichD
+* Re: daily puzzle: where's the the first ace?bwr fml
|`* Re: daily puzzle: where's the the first ace?RichD
| `* Re: daily puzzle: where's the the first ace?bwr fml
|  `* Re: daily puzzle: where's the the first ace?Mike Terry
|   `* Re: daily puzzle: where's the the first ace?Leon Aigret
|    `- Re: daily puzzle: where's the the first ace?Mike Terry
+* Re: daily puzzle: where's the the first ace?FromTheRafters
|`* Re: daily puzzle: where's the the first ace?FromTheRafters
| `- Re: daily puzzle: where's the the first ace?FromTheRafters
+- ?Animn Elo
`- Re: daily puzzle: where's the the first ace?Richard Tobin

1
daily puzzle: where's the the first ace?

<d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73402&group=sci.math#73402

  copy link   Newsgroups: sci.math
X-Received: by 2002:ac8:66d8:: with SMTP id m24mr14480278qtp.39.1630192705187;
Sat, 28 Aug 2021 16:18:25 -0700 (PDT)
X-Received: by 2002:a25:a522:: with SMTP id h31mr14808756ybi.355.1630192704995;
Sat, 28 Aug 2021 16:18:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Sat, 28 Aug 2021 16:18:24 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=205.154.192.197; posting-account=x2WXVAkAAACheXC-5ndnEdz_vL9CA75q
NNTP-Posting-Host: 205.154.192.197
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Subject: daily puzzle: where's the the first ace?
From: r_delane...@yahoo.com (RichD)
Injection-Date: Sat, 28 Aug 2021 23:18:25 +0000
Content-Type: text/plain; charset="UTF-8"
 by: RichD - Sat, 28 Aug 2021 23:18 UTC

Shuffle a standard deck of cards. Deal from the top,
one card at a time, until the first ace appears. How
many cards must turn, on average, before that ace?
(if an ace is the top card, the count is zero)

An exact solution is desired, not an approximation to
the nearest integer.

Computers disallowed -

--
Rich

Re: daily puzzle: where's the the first ace?

<sgel0l$pom$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73423&group=sci.math#73423

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!jq9Zon5wYWPEc6MdU7JpBw.user.46.165.242.75.POSTED!not-for-mail
From: inva...@invalid.com (Serg io)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sat, 28 Aug 2021 19:39:47 -0500
Organization: Aioe.org NNTP Server
Message-ID: <sgel0l$pom$1@gioia.aioe.org>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="26390"; posting-host="jq9Zon5wYWPEc6MdU7JpBw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Serg io - Sun, 29 Aug 2021 00:39 UTC

On 8/28/2021 6:18 PM, RichD wrote:
> Shuffle a standard deck of cards. Deal from the top,
> one card at a time, until the first ace appears. How
> many cards must turn, on average, before that ace?
> (if an ace is the top card, the count is zero)
>
> An exact solution is desired, not an approximation to
> the nearest integer.
>
> Computers disallowed -
>
> --
> Rich
>

52 cards, 4 aces

first card is 4/52, second is 4/51, third is 4/50

so it should be 4*Sum(1/52+1/51+1/51...) = 1/2

or roughly(skipping the summation, assumeing all are .02)

(1/2)/4 = k*.02 or

k* (2/100) = 1/8

or k = 100/2*(1/8) =100/16

or 6.25 cards

Re: daily puzzle: where's the the first ace?

<htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73434&group=sci.math#73434

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: schwa...@delq.com (Barry Schwarz)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sat, 28 Aug 2021 18:17:47 -0700
Organization: A noiseless patient Spider
Lines: 63
Message-ID: <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: reader02.eternal-september.org; posting-host="aa64bd36a2b6210504644645a69f339e";
logging-data="27302"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/rhlj2MnZN53seVB9ZdL0ExjCKuPvK9Xo="
Cancel-Lock: sha1:h0oxiJggEzB5maqriIrUztIiOpI=
X-Newsreader: Forte Agent 4.2/32.1118
 by: Barry Schwarz - Sun, 29 Aug 2021 01:17 UTC

On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
<r_delaney2001@yahoo.com> wrote:

>Shuffle a standard deck of cards. Deal from the top,
>one card at a time, until the first ace appears. How
>many cards must turn, on average, before that ace?
>(if an ace is the top card, the count is zero)
>
>An exact solution is desired, not an approximation to
>the nearest integer.
>
>Computers disallowed -

I assume no jokers in the deck.

The probability of an ace on the first card is 4/52 = ~.077

The probability of drawing the first ace on the second deal is
(48/52)*(4/51) = ~.072
The probability of drawing an ace on either the first or second deal
is the sum or ~.149

The probability of drawing the first ace on the third deal is
(48/52)*(47/51)*(4/50) = ~.068
The probability of drawing an ace on any of the first three deals is
the sum or ~.217

For any deal, the last term in the above product is always
4/m where m is 52 - deal# + 1
Similarly, the other terms in the product always evaluate to
48Cn / 52Cn where n is deal# - 1
and xCy is the standard combinatorial expression for choosing y items
from x possibilities ignoring order.

Continuing on produces the following table (best viewed monospaced)

deal prob of first ace cumulative probability
1 0.076923077 0.076923077
2 0.07239819 0.149321267
3 0.068054299 0.217375566
4 0.063887709 0.281263275
5 0.059894727 0.341158002
6 0.056071659 0.397229661
7 0.052414812 0.449644473
8 0.048920491 0.498564964
9 0.045585003 0.544149968
10 0.042404654 0.586554622
11 0.03937575 0.625930372
12 0.036494598 0.66242497

So the average number of deals before finding an ace is 7 and the ace
will, on average, turn up on the eighth.

This appears analogous to the well known puzzle: "On average, how many
people need to be in a room before two share a birthday (ignoring
year)?" 23 seems as intuitively absurdly low as 8 does for your
puzzle.

--
Remove del for email

Re: daily puzzle: where's the the first ace?

<55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73435&group=sci.math#73435

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:620a:a8f:: with SMTP id v15mr16572777qkg.329.1630200253071;
Sat, 28 Aug 2021 18:24:13 -0700 (PDT)
X-Received: by 2002:a25:a522:: with SMTP id h31mr15322055ybi.355.1630200252740;
Sat, 28 Aug 2021 18:24:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Sat, 28 Aug 2021 18:24:12 -0700 (PDT)
In-Reply-To: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.193.192.189; posting-account=BdmvHgoAAAAzPtFvjaCPrHRk2Jgo8ZXl
NNTP-Posting-Host: 71.193.192.189
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>
Subject: Re: daily puzzle: where's the the first ace?
From: qbwrf...@gmail.com (bwr fml)
Injection-Date: Sun, 29 Aug 2021 01:24:13 +0000
Content-Type: text/plain; charset="UTF-8"
 by: bwr fml - Sun, 29 Aug 2021 01:24 UTC

On Saturday, August 28, 2021 at 4:18:31 PM UTC-7, RichD wrote:
> How many cards must turn, on average, before that ace?
> (if an ace is the top card, the count is zero)

If the deck is 1,1,1,1 then the average is 0/5
If the deck is 1,1,1,1,2,2,2,2 then the average is 4/5
If the deck is 1,1,1,1,2,2,2,2,3,3,3,3 then the average is 8/5
If the deck is 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 then the average is 12/5
and I am then guessing that the ordering persists and thus
If the deck is 1,1,1,1,2,2,2,2....12,12,12,12,13,13,13,13 then the average is 48/5=9.6

Re: daily puzzle: where's the the first ace?

<sgeolm$2b0$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73436&group=sci.math#73436

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: erra...@nomail.afraid.org (FromTheRafters)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sat, 28 Aug 2021 21:42:03 -0400
Organization: Peripheral Visions
Lines: 12
Message-ID: <sgeolm$2b0$1@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Reply-To: erratic.howard@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 29 Aug 2021 01:42:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="aa7fc6b1b79fc5bffe4ffa5f579797be";
logging-data="2400"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GoGtom35hDQnYH2tg4y8M698nyPl17ZE="
Cancel-Lock: sha1:XD1nPEVbYJ4GkfjG0vlfg70YUYM=
X-Newsreader: MesNews/1.08.06.00-gb
X-ICQ: 1701145376
 by: FromTheRafters - Sun, 29 Aug 2021 01:42 UTC

RichD formulated on Saturday :
> Shuffle a standard deck of cards. Deal from the top,
> one card at a time, until the first ace appears. How
> many cards must turn, on average, before that ace?
> (if an ace is the top card, the count is zero)
>
> An exact solution is desired, not an approximation to
> the nearest integer.
>
> Computers disallowed -

Six and a half.

Re: daily puzzle: where's the the first ace?

<sgh2lk$9cb$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73573&group=sci.math#73573

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: j-wal...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sun, 29 Aug 2021 22:45:08 -0000 (UTC)
Organization: self
Lines: 73
Message-ID: <sgh2lk$9cb$1@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com>
Injection-Date: Sun, 29 Aug 2021 22:45:08 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="fdc6af424aedbe656afbbf3580584af0";
logging-data="9611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+pmK08gt9dkVbKLc0gNSmY"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-81-generic (x86_64))
Cancel-Lock: sha1:ZTxH9soJxHB19mzBXxhj4HhAEew=
 by: James Waldby - Sun, 29 Aug 2021 22:45 UTC

Barry Schwarz <schwarzb@delq.com> wrote:
> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
> <r_delaney2001@yahoo.com> wrote:
>
>>Shuffle a standard deck of cards. Deal from the top,
>>one card at a time, until the first ace appears. How
>>many cards must turn, on average, before that ace?
>>(if an ace is the top card, the count is zero)

About 9.599823, if we overlook the next two requirements and if I
correctly subtracted 1. (Ie, this answer is not exact; used a
computer to sum up the total; and might be off by 1.)

>>An exact solution is desired, not an approximation to
>>the nearest integer.

>>Computers disallowed -

<snip Barry's assumptions & first two examples>
> The probability of drawing the first ace on the third deal is
> (48/52)*(47/51)*(4/50) = ~.068
> The probability of drawing an ace on any of the first three deals is
> the sum or ~.217

I agree with the probabilities you show, and the remark about sum of
probabilities, but of course a further calculation is needed to get
the expected value (the average). In general, an expected value is
the sum (over all cases) of the value of a case times its probability.

In other words, if we call the first and second values in row i of
your table d_i and p_i, and let E(52) = E(deal number for first ace
given 4 aces among 52 cards), then E(52) = sum{i=1 to 52}( d_i*p_i).

The answer to the question is E(52)-1.

Generally, if there are g good cards (aces) and c cards total, we
can write E(c) = g/c + (1-g/c)*(1+E(c-1)), a recursive equation that
can be solved analytically.
> For any deal, the last term in the above product is always
> 4/m where m is 52 - deal# + 1
> Similarly, the other terms in the product always evaluate to
> 48Cn / 52Cn where n is deal# - 1
> and xCy is the standard combinatorial expression for choosing y items
> from x possibilities ignoring order.
>
> Continuing on produces the following table (best viewed monospaced)
>
> deal prob of first ace cumulative probability
> 1 0.076923077 0.076923077
> 2 0.07239819 0.149321267
> 3 0.068054299 0.217375566
> 4 0.063887709 0.281263275
> 5 0.059894727 0.341158002
> 6 0.056071659 0.397229661
> 7 0.052414812 0.449644473
> 8 0.048920491 0.498564964
> 9 0.045585003 0.544149968
> 10 0.042404654 0.586554622
> 11 0.03937575 0.625930372
> 12 0.036494598 0.66242497
>
> So the average number of deals before finding an ace is 7 and the ace
> will, on average, turn up on the eighth.
>
> This appears analogous to the well known puzzle: "On average, how many
> people need to be in a room before two share a birthday (ignoring
> year)?" 23 seems as intuitively absurdly low as 8 does for your
> puzzle.
>
>
>
>

Re: daily puzzle: where's the the first ace?

<sgh35q$9cb$2@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73574&group=sci.math#73574

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: j-wal...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sun, 29 Aug 2021 22:53:46 -0000 (UTC)
Organization: self
Lines: 21
Message-ID: <sgh35q$9cb$2@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com> <sgh2lk$9cb$1@dont-email.me>
Injection-Date: Sun, 29 Aug 2021 22:53:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="fdc6af424aedbe656afbbf3580584af0";
logging-data="9611"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mnr8IyFrHJ5NOYihOsDXe"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-81-generic (x86_64))
Cancel-Lock: sha1:3y4Fw4qR2GajcQkV/j6qfYL5VMY=
 by: James Waldby - Sun, 29 Aug 2021 22:53 UTC

James Waldby <j-waldby@no.no> wrote:
> Barry Schwarz <schwarzb@delq.com> wrote:
>> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
>> <r_delaney2001@yahoo.com> wrote:
>>
>>>Shuffle a standard deck of cards. Deal from the top,
>>>one card at a time, until the first ace appears. How
>>>many cards must turn, on average, before that ace?
>>>(if an ace is the top card, the count is zero)
>
> About 9.599823, if we overlook the next two requirements and if I
> correctly subtracted 1. (Ie, this answer is not exact; used a
> computer to sum up the total; and might be off by 1.)

In my program I ran the summation only to 48 instead of 52, thus was
one short step away from a probably exact answer, 9.6

>>>An exact solution is desired, not an approximation to
>>>the nearest integer.
>
>>>Computers disallowed -

Re: daily puzzle: where's the the first ace?

<sghak8$1r3l$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73582&group=sci.math#73582

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!jq9Zon5wYWPEc6MdU7JpBw.user.46.165.242.75.POSTED!not-for-mail
From: inva...@invalid.com (Serg io)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Sun, 29 Aug 2021 20:00:56 -0500
Organization: Aioe.org NNTP Server
Message-ID: <sghak8$1r3l$1@gioia.aioe.org>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com> <sgh2lk$9cb$1@dont-email.me>
<sgh35q$9cb$2@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="60533"; posting-host="jq9Zon5wYWPEc6MdU7JpBw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
Content-Language: en-US
X-Notice: Filtered by postfilter v. 0.9.2
 by: Serg io - Mon, 30 Aug 2021 01:00 UTC

On 8/29/2021 5:53 PM, James Waldby wrote:
> James Waldby <j-waldby@no.no> wrote:
>> Barry Schwarz <schwarzb@delq.com> wrote:
>>> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
>>> <r_delaney2001@yahoo.com> wrote:
>>>
>>>> Shuffle a standard deck of cards. Deal from the top,
>>>> one card at a time, until the first ace appears. How
>>>> many cards must turn, on average, before that ace?
>>>> (if an ace is the top card, the count is zero)
>>
>> About 9.599823, if we overlook the next two requirements and if I
>> correctly subtracted 1. (Ie, this answer is not exact; used a
>> computer to sum up the total; and might be off by 1.)
>
> In my program I ran the summation only to 48 instead of 52, thus was
> one short step away from a probably exact answer, 9.6
>
>>>> An exact solution is desired, not an approximation to
>>>> the nearest integer.
>>
>>>> Computers disallowed -

but that is not an exact answer....
it has a variance

you can calculate the mean to great precision, but if the variance is large, using the mean is error.

take daily temperatures, from 60 to 81 in one day, 24 hours say you took reading every min, and averaged them and got 70.9565217391304, and the Standard
Deviation is is 8.52524732176335

If you used 70.9565217391304, that temperature only happened twice per day, the rest of the time it is wrong.

here it is per hour

60
60
60
61
62
65
68
70
72
75
78
80
80
83
85
85
80
76
70
68
67
64
63

Column 1
Mean 70.9565217391304
Standard Error 1.77763694998913
Mode 60
Median 70
First Quartile 63.5
Third Quartile 79
Variance 72.6798418972332
Standard Deviation 8.52524732176335
Kurtosis -1.31090489291319
Skewness 0.259643417326634
Range 25
Minimum 60
Maximum 85
Sum 1632
Count 23

Same with your case of aces and card deck.

One always calculates the mean AND the Standard Deviation (or variance).

Re: daily puzzle: where's the the first ace?

<sghsse$514$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73621&group=sci.math#73621

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: j-wal...@no.no (James Waldby)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Mon, 30 Aug 2021 06:12:31 -0000 (UTC)
Organization: self
Lines: 51
Message-ID: <sghsse$514$1@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com> <sgh2lk$9cb$1@dont-email.me> <sgh35q$9cb$2@dont-email.me> <sghak8$1r3l$1@gioia.aioe.org>
Injection-Date: Mon, 30 Aug 2021 06:12:31 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="fdc6af424aedbe656afbbf3580584af0";
logging-data="5156"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SQN2ynNjt8cezoGXyxCjo"
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-81-generic (x86_64))
Cancel-Lock: sha1:DTBNG7WAh7V58wpE/v52Q2t64og=
 by: James Waldby - Mon, 30 Aug 2021 06:12 UTC

Serg io <invalid@invalid.com> wrote:
> On 8/29/2021 5:53 PM, James Waldby wrote:
>> James Waldby <j-waldby@no.no> wrote:
>>> Barry Schwarz <schwarzb@delq.com> wrote:
>>>> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
>>>> <r_delaney2001@yahoo.com> wrote:
>>>>
>>>>> Shuffle a standard deck of cards. Deal from the top,
>>>>> one card at a time, until the first ace appears. How
>>>>> many cards must turn, on average, before that ace?
>>>>> (if an ace is the top card, the count is zero)
>>>...
>> ... probably exact answer, 9.6
....
> but that is not an exact answer....
> it has a variance

The question asks for the mean of a certain distribution, which in
this case is a specific fixed number. The mean of this distribution
does not change -- it's a fixed number.

If you take random samples from this distribution, yes, sample values
will vary in accord with the variance of the distribution. If you
take j sets of k samples each and compute averages m_j for each j,
yes, those m_j will vary, in accord with the variance-of-the-mean of
the distribution. Random-sample averages are sample statistics, and
sample statistics will vary randomly depending on the random nature of
the distribution. But the mean and variance of the distribution
itself do not vary.

In this case, the mean of the distribution is 9.6, and the standard
deviation of the distribution is ~ 8.22.
> you can calculate the mean to great precision, but if the variance is large, using the mean is error.

"Using the mean" is not an error, it's what the question asks for.

>
[snip not-relevant example of computing temperature sample statistics]

>
> Same with your case of aces and card deck.
>
> One always calculates the mean AND the Standard Deviation (or variance).

That is demonstrably false. Demonstration: This `daily puzzle`
doesn't ask for standard deviation or variance, so they don't need to
be calculated.

(As it happens, the standard deviation of this distribution is about
8.22, and its mean is 9.6.)

?

<97bb5d4b-579c-425e-b8e4-93978ea6012dn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73627&group=sci.math#73627

  copy link   Newsgroups: sci.math
X-Received: by 2002:a05:6214:592:: with SMTP id bx18mr21433438qvb.26.1630309176659; Mon, 30 Aug 2021 00:39:36 -0700 (PDT)
X-Received: by 2002:a25:a527:: with SMTP id h36mr22509776ybi.326.1630309176472; Mon, 30 Aug 2021 00:39:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 30 Aug 2021 00:39:36 -0700 (PDT)
In-Reply-To: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=85.253.192.92; posting-account=wXTMUQoAAADJv6bh2a9IGlcpEEjr1O4x
NNTP-Posting-Host: 85.253.192.92
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <97bb5d4b-579c-425e-b8e4-93978ea6012dn@googlegroups.com>
Subject: ?
From: rob99999...@yahoo.com (Animn Elo)
Injection-Date: Mon, 30 Aug 2021 07:39:36 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 0
 by: Animn Elo - Mon, 30 Aug 2021 07:39 UTC

daily puzzle: where's the first ace? ??????????????????????????????

Re: daily puzzle: where's the the first ace?

<sgilvm$r6$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73685&group=sci.math#73685

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: erra...@nomail.afraid.org (FromTheRafters)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Mon, 30 Aug 2021 09:20:30 -0400
Organization: Peripheral Visions
Lines: 14
Message-ID: <sgilvm$r6$1@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <sgeolm$2b0$1@dont-email.me>
Reply-To: erratic.howard@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Aug 2021 13:20:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="785be1eae8acea6b3ef3f834fa8a3fa9";
logging-data="870"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18QB1SY9HwjZOMhFsFm1RlZzm7ejpjH/tI="
Cancel-Lock: sha1:DM5bdoejdIqrk/yg1h1zRkk3MJQ=
X-Newsreader: MesNews/1.08.06.00-gb
X-ICQ: 1701145376
 by: FromTheRafters - Mon, 30 Aug 2021 13:20 UTC

FromTheRafters wrote :
> RichD formulated on Saturday :
>> Shuffle a standard deck of cards. Deal from the top, one card at a time,
>> until the first ace appears. How many cards must turn, on average, before
>> that ace? (if an ace is the top card, the count is zero)
>>
>> An exact solution is desired, not an approximation to the nearest integer.
>>
>> Computers disallowed -
>
> Six and a half.

I'll change that to five and a half since you want to call the first
card dealt number zero.

Re: daily puzzle: where's the the first ace?

<i92dnRmn8fBSd7H8nZ2dnUU78WvNnZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73697&group=sci.math#73697

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 30 Aug 2021 09:27:27 -0500
Subject: Re: daily puzzle: where's the the first ace?
Newsgroups: sci.math
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com> <sgh2lk$9cb$1@dont-email.me>
<sgh35q$9cb$2@dont-email.me>
From: news.dea...@darjeeling.plus.com (Mike Terry)
Date: Mon, 30 Aug 2021 15:27:25 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.7.1
MIME-Version: 1.0
In-Reply-To: <sgh35q$9cb$2@dont-email.me>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <i92dnRmn8fBSd7H8nZ2dnUU78WvNnZ2d@brightview.co.uk>
Lines: 44
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-X2Frqdd06FKK0WbCIF+kJ6feov/hUmb0LoNExezIQtTlUbWbrTqlTddTb6xaOjyFNb4J/jANw68+rP6!T5+d8k/bpDQz3CLRDK8t36QEkPltkyUAdCmuP17fmODmi+QQUAKfWy13WdCkTadjI5QLPsvMcK9u!3K5EJjaCILc0J22zRhkU70G12g==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 3005
 by: Mike Terry - Mon, 30 Aug 2021 14:27 UTC

On 29/08/2021 23:53, James Waldby wrote:
> James Waldby <j-waldby@no.no> wrote:
>> Barry Schwarz <schwarzb@delq.com> wrote:
>>> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
>>> <r_delaney2001@yahoo.com> wrote:
>>>
>>>> Shuffle a standard deck of cards. Deal from the top,
>>>> one card at a time, until the first ace appears. How
>>>> many cards must turn, on average, before that ace?
>>>> (if an ace is the top card, the count is zero)
>>
>> About 9.599823, if we overlook the next two requirements and if I
>> correctly subtracted 1. (Ie, this answer is not exact; used a
>> computer to sum up the total; and might be off by 1.)
>
> In my program I ran the summation only to 48 instead of 52, thus was
> one short step away from a probably exact answer, 9.6
>

OK, and I get the same by cheating with a computer program.

So this is the same as bwr's prediction, and bwr's hypothesis that with
4 "success" cards (the aces) and 4n "fail" cards (all the others) the
expectation is 4n/5 seems to be correct!

But if I write the calculation for the answer as a formula (a sum of the
contributions for each "first ace" position) I don't see how that
simplifies to 4n/5.

And more than that - for such a simple answer, there's got to be some
simple way of viewing the problem that makes the answer obvious!
(Surely...)

Well, I suppose 4n is the number of fail cards, and 5 is, um, one more
than the number of success cards, but why divide fail cards by one more
than the number of success cards? (I'm still thinking about that...)

Regards,
Mike.

>>>> An exact solution is desired, not an approximation to
>>>> the nearest integer.
>>
>>>> Computers disallowed -

Re: daily puzzle: where's the the first ace?

<sgirk7$67v$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73700&group=sci.math#73700

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!jq9Zon5wYWPEc6MdU7JpBw.user.46.165.242.75.POSTED!not-for-mail
From: inva...@invalid.com (Serg io)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Mon, 30 Aug 2021 09:57:10 -0500
Organization: Aioe.org NNTP Server
Message-ID: <sgirk7$67v$1@gioia.aioe.org>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com> <sgh2lk$9cb$1@dont-email.me>
<sgh35q$9cb$2@dont-email.me> <sghak8$1r3l$1@gioia.aioe.org>
<sghsse$514$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="6399"; posting-host="jq9Zon5wYWPEc6MdU7JpBw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101
Thunderbird/78.13.0
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-US
 by: Serg io - Mon, 30 Aug 2021 14:57 UTC

On 8/30/2021 1:12 AM, James Waldby wrote:
> Serg io <invalid@invalid.com> wrote:
>> On 8/29/2021 5:53 PM, James Waldby wrote:
>>> James Waldby <j-waldby@no.no> wrote:
>>>> Barry Schwarz <schwarzb@delq.com> wrote:
>>>>> On Sat, 28 Aug 2021 16:18:24 -0700 (PDT), RichD
>>>>> <r_delaney2001@yahoo.com> wrote:
>>>>>
>>>>>> Shuffle a standard deck of cards. Deal from the top,
>>>>>> one card at a time, until the first ace appears. How
>>>>>> many cards must turn, on average, before that ace?
>>>>>> (if an ace is the top card, the count is zero)
>>>> ...
>>> ... probably exact answer, 9.6
> ...
>> but that is not an exact answer....
>> it has a variance
>
> The question asks for the mean of a certain distribution, which in
> this case is a specific fixed number. The mean of this distribution
> does not change -- it's a fixed number.

which is my point, you can calculate the mean to great precision, which does not apply in real life.

what does 9.6 cards mean ? you snip a card? 40% off the last one ?

How many trials do you go through to establish it is 9.6 cards? 1000 ? Confidence intervals of 95% ?

> But the mean and variance of the distribution
> itself do not vary.
>
> In this case, the mean of the distribution is 9.6, and the standard
> deviation of the distribution is ~ 8.22.
>
>> you can calculate the mean to great precision, but if the variance is large, using the mean is error.
>
> "Using the mean" is not an error, it's what the question asks for.

9.6 is meaningless. who has 0.6 of a card ?

So you prefer to not understand the entire problem ? Just answer the mail ?

that is a disservice and irresponsible in many cases.

>

>> Same with your case of aces and card deck.
>>
>> One always calculates the mean AND the Standard Deviation (or variance).
>
> That is demonstrably false. Demonstration: This `daily puzzle`
> doesn't ask for standard deviation or variance, so they don't need to
> be calculated.

so you like the race to the bottom...
I like to expand the problems

>
> (As it happens, the standard deviation of this distribution is about
> 8.22, and its mean is 9.6.)

which means.... only 67% of the time the # of cards dealt to hit an ace, is within 6 to 12 ...?

you hang too much weight on the mean.

Re: daily puzzle: where's the the first ace?

<sgjluh$t3p$1@dont-email.me>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73766&group=sci.math#73766

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: erra...@nomail.afraid.org (FromTheRafters)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Mon, 30 Aug 2021 18:25:56 -0400
Organization: Peripheral Visions
Lines: 20
Message-ID: <sgjluh$t3p$1@dont-email.me>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <sgeolm$2b0$1@dont-email.me> <sgilvm$r6$1@dont-email.me>
Reply-To: erratic.howard@gmail.com
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-15"; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Aug 2021 22:26:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5f34418e2a8484558ed5340f57ac3769";
logging-data="29817"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19C3tPJoKxeow7AhHUmfC7meAQVG63Lc8c="
Cancel-Lock: sha1:4KODakfPTIsgtlhGxxmRI5JMae8=
X-Newsreader: MesNews/1.08.06.00-gb
X-ICQ: 1701145376
 by: FromTheRafters - Mon, 30 Aug 2021 22:25 UTC

FromTheRafters used his keyboard to write :
> FromTheRafters wrote :
>> RichD formulated on Saturday :
>>> Shuffle a standard deck of cards. Deal from the top, one card at a time,
>>> until the first ace appears. How many cards must turn, on average, before
>>> that ace? (if an ace is the top card, the count is zero)
>>>
>>> An exact solution is desired, not an approximation to the nearest integer.
>>>
>>> Computers disallowed -
>>
>> Six and a half.
>
> I'll change that to five and a half since you want to call the first card
> dealt number zero.

Special today, limited time offer, one half off - so now it is five
even.

Five, going once, going twice...

Re: daily puzzle: where's the the first ace?

<27eb4382-37ad-4ef5-962b-8545b7fad764n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73769&group=sci.math#73769

  copy link   Newsgroups: sci.math
X-Received: by 2002:ac8:570e:: with SMTP id 14mr197022qtw.302.1630367750576;
Mon, 30 Aug 2021 16:55:50 -0700 (PDT)
X-Received: by 2002:a5b:142:: with SMTP id c2mr25219469ybp.425.1630367750395;
Mon, 30 Aug 2021 16:55:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!usenet.pasdenom.info!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 30 Aug 2021 16:55:50 -0700 (PDT)
In-Reply-To: <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=205.154.192.197; posting-account=x2WXVAkAAACheXC-5ndnEdz_vL9CA75q
NNTP-Posting-Host: 205.154.192.197
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <htjlig9hd3pddbao3u3q3vrmg4l3lh2crn@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <27eb4382-37ad-4ef5-962b-8545b7fad764n@googlegroups.com>
Subject: Re: daily puzzle: where's the the first ace?
From: r_delane...@yahoo.com (RichD)
Injection-Date: Mon, 30 Aug 2021 23:55:50 +0000
Content-Type: text/plain; charset="UTF-8"
 by: RichD - Mon, 30 Aug 2021 23:55 UTC

On August 28, Barry Schwarz wrote:
>> Shuffle a standard deck of cards. Deal from the top,
>> one card at a time, until the first ace appears. How
>> many cards must turn, on average, before that ace?
>> (if an ace is the top card, the count is zero)
>
> The probability of an ace on the first card is 4/52 = ~.077
> The probability of drawing the first ace on the second deal is
> (48/52)*(4/51) = ~.072
> The probability of drawing an ace on either the first or second deal
> is the sum or ~.149
> Continuing on produces the following table

[snip mind numbing combinatorial gymnastics]

oh jeez -
Look, any puzzle worth its salt is the "aha!" type. If it requires hard labor,
it won't get posted!

There is an elegant, non-obvious solution to this problem.
Obviously non-obvious, since nobody recognized it. Though admittedly,
somebody solved it -

"It is unworthy of good men to spend time like slaves in the labor of calculation."

--
Rich

Re: daily puzzle: where's the the first ace?

<5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73770&group=sci.math#73770

  copy link   Newsgroups: sci.math
X-Received: by 2002:ad4:5aee:: with SMTP id c14mr24404673qvh.19.1630367923181;
Mon, 30 Aug 2021 16:58:43 -0700 (PDT)
X-Received: by 2002:a25:31c5:: with SMTP id x188mr26905844ybx.185.1630367923031;
Mon, 30 Aug 2021 16:58:43 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 30 Aug 2021 16:58:42 -0700 (PDT)
In-Reply-To: <55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=205.154.192.197; posting-account=x2WXVAkAAACheXC-5ndnEdz_vL9CA75q
NNTP-Posting-Host: 205.154.192.197
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>
Subject: Re: daily puzzle: where's the the first ace?
From: r_delane...@yahoo.com (RichD)
Injection-Date: Mon, 30 Aug 2021 23:58:43 +0000
Content-Type: text/plain; charset="UTF-8"
 by: RichD - Mon, 30 Aug 2021 23:58 UTC

On August 28, 2021, bwr fml wrote:
>> How many cards must turn, on average, before that ace?
>> (if an ace is the top card, the count is zero)
>
> If the deck is 1,1,1,1 then the average is 0/5
> If the deck is 1,1,1,1,2,2,2,2 then the average is 4/5
> If the deck is 1,1,1,1,2,2,2,2,3,3,3,3 then the average is 8/5
> If the deck is 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 then the average is 12/5
> and I am then guessing that the ordering persists and thus
> If the deck is 1,1,1,1,2,2,2,2....12,12,12,12,13,13,13,13 then the average is 48/5=9.6

I have no idea what you're talking about.
But by some infernal miracle, you got the right answer.
I might ask you to explain it plain English, but you'd probly respond
"Dude, I provided the proof!"
So I won't bother -

--
Rich

Re: daily puzzle: where's the the first ace?

<ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73778&group=sci.math#73778

  copy link   Newsgroups: sci.math
X-Received: by 2002:a37:688f:: with SMTP id d137mr641477qkc.3.1630374842524;
Mon, 30 Aug 2021 18:54:02 -0700 (PDT)
X-Received: by 2002:a25:a527:: with SMTP id h36mr28355908ybi.326.1630374842034;
Mon, 30 Aug 2021 18:54:02 -0700 (PDT)
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.math
Date: Mon, 30 Aug 2021 18:54:01 -0700 (PDT)
In-Reply-To: <5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=71.193.192.189; posting-account=BdmvHgoAAAAzPtFvjaCPrHRk2Jgo8ZXl
NNTP-Posting-Host: 71.193.192.189
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com> <5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com>
Subject: Re: daily puzzle: where's the the first ace?
From: qbwrf...@gmail.com (bwr fml)
Injection-Date: Tue, 31 Aug 2021 01:54:02 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 76
 by: bwr fml - Tue, 31 Aug 2021 01:54 UTC

On Monday, August 30, 2021 at 4:58:48 PM UTC-7, RichD wrote:
> On August 28, 2021, bwr fml wrote:
> >> How many cards must turn, on average, before that ace?
> >> (if an ace is the top card, the count is zero)
> >
> > If the deck is 1,1,1,1 then the average is 0/5
> > If the deck is 1,1,1,1,2,2,2,2 then the average is 4/5
> > If the deck is 1,1,1,1,2,2,2,2,3,3,3,3 then the average is 8/5
> > If the deck is 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 then the average is 12/5
> > and I am then guessing that the ordering persists and thus
> > If the deck is 1,1,1,1,2,2,2,2....12,12,12,12,13,13,13,13 then the average is 48/5=9.6
> I have no idea what you're talking about.
> But by some infernal miracle, you got the right answer.
> I might ask you to explain it plain English, but you'd probly respond
> "Dude, I provided the proof!"
> So I won't bother -

I'll try to politely try to explain a little about this in sort-of plain English.
I would never be rude enough to claim that what I posted was a proof.
I intentionally didn't post all the details because I don't want to spoil the puzzle for anyone else.

I read the first two responses and they didn't seem headed towards the kind of result I would immediately accept.
So I thought "I need to see an invariant in this, an invariant has to be hiding inside this somewhere."
To do that I need to start with a base case and I need to draw myself a series of diagrams.
The 1,1,1,1 case is too simple and might just be a distraction, but the average for that has to be zero, check that later.

So I started working on the diagram for the 1,1,1,1,2,2,2,2 case.
Because we don't care about the order of the 1's or the order of the 2's this will be much smaller than 8 factorial, very good.
We also might not care about the tail of the sequence, just the head might be enough and that will become essential.
Combinatorics, or just a bit of thinking and a couple of divisions says there are only 70 distinct permutations, even with the tails.
That is within reach of drawing a diagram, even better without the tails.
And I counted all the multiplicities and path lengths in that diagram and I got 4/5.

Then I started thinking about the diagram for the 1,1,1,1,2,2,2,2,3,3,3,3 case.
Even without the ordering that is 34650 cases, too many for any diagram.
We only care about is it a 1 or is it not a 1, but be careful with permutations when you start thinking that.
Ignoring the tails brings that down to a far more reasonable number, just count how many different tails there are.
I needed to find that invariant. That means I needed to find the right way to diagram this.
After a few dead ends and tossing out the previous diagram and starting over a couple of times...
I thought I found the structure for the diagram that showed an invariant.
When I totaled up all the levels I got 8/5 and thought that must mean I'd made a mistake, it didn't feel right.
But I checked it twice and still got the same number, so I will hope that is right until proven wrong.

The 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 case would be out of the question, even ignoring the repetitions,
if you didn't already have a diagram to fit it into.
There are just more layers and lots more tails and more opportunities to make little mistakes.
But the diagram forces the path. And the path fits the invariant. And I got 12/5.

This method is more than just a brute force counting argument.
But I suppose that would work too, just perhaps not giving you anything more than a single number each time.

I STILL was not certain this was right. I did not expect the invariant to scale linearly. But it did match the 1.1.1.1 case.
There is no way I could, even with the diagram and the invariant, scale this up to 5,5,5,5.
I gambled and posted it, with the cautions that I was still just guessing this was correct, like others I suppose.

But the structure of the diagram, that represents the invariant, those diagrams hint this will not change with n.

And it looks like someone did Monte Carlo and agreed with my conjecture for 13.13.13.13.

I've been mumbling about the post which said he couldn't simplify his sum of products down to 4n/5.
I've tried that a couple of different ways and am still not happy with that yet, but it may work out.
It has to work. I just have to find some way to translate the diagrams into the sum of products.

So, what I've just written is NOT a proof.
A proof would require that I show how the diagram is constructed and how the structure is invariant.
I didn't want to spoil this for anyone else. Why ruin fun for anyone else?
But I think there are enough hints in this that if you have the right background that you might duplicate this.

I hope this was polite. I hope this might be just enough of a hint, and not too much of a hint.

Does any of this help at all?

Slightly different subject: average versus average and variance.
It is a puzzle. It is a challenge. It is nothing more than an exercise for fun.
It is perhaps meant to get you to try to find any way to correctly solve a problem at the edge of your ability.
Those are the best kind.
It is meant to be a diversion from the usual posts made here, I'll not say a word more about that to avoid attracting unwanted attention.

Re: daily puzzle: where's the the first ace?

<6dqdnfqDSf6a3LP8nZ2dnUU78c3NnZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=73857&group=sci.math#73857

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!feeder1.feed.usenet.farm!feed.usenet.farm!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!buffer1.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Tue, 31 Aug 2021 09:47:35 -0500
From: news.dea...@darjeeling.plus.com (Mike Terry)
Subject: Re: daily puzzle: where's the the first ace?
Newsgroups: sci.math
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>
<5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>
<ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com>
X-Mozilla-News-Host: news://news.plus.net
Date: Tue, 31 Aug 2021 15:47:34 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.7.1
MIME-Version: 1.0
In-Reply-To: <ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <6dqdnfqDSf6a3LP8nZ2dnUU78c3NnZ2d@brightview.co.uk>
Lines: 106
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-n1t+WrMNPS8EVFLXjSgmQZ7Olipk65b25GzxGyUaYnwS/GNcfW4DMOTEoBgxJ0OpVcl+2ViUwrjNckn!06bGbVz/M7G6FZUbIGiuVw3bS8E74WmQ6RbKU7A5xxR4VSH0jN4hhlTE7Ntt2cfAqLFwrVRK5ozh!VSiXINe0SFjp6CpFoClDkakmdg==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 8126
 by: Mike Terry - Tue, 31 Aug 2021 14:47 UTC

On 31/08/2021 02:54, bwr fml wrote:
> On Monday, August 30, 2021 at 4:58:48 PM UTC-7, RichD wrote:
>> On August 28, 2021, bwr fml wrote:
>>>> How many cards must turn, on average, before that ace?
>>>> (if an ace is the top card, the count is zero)
>>>
>>> If the deck is 1,1,1,1 then the average is 0/5
>>> If the deck is 1,1,1,1,2,2,2,2 then the average is 4/5
>>> If the deck is 1,1,1,1,2,2,2,2,3,3,3,3 then the average is 8/5
>>> If the deck is 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 then the average is 12/5
>>> and I am then guessing that the ordering persists and thus
>>> If the deck is 1,1,1,1,2,2,2,2....12,12,12,12,13,13,13,13 then the average is 48/5=9.6
>> I have no idea what you're talking about.
>> But by some infernal miracle, you got the right answer.
>> I might ask you to explain it plain English, but you'd probly respond
>> "Dude, I provided the proof!"
>> So I won't bother -
>
> I'll try to politely try to explain a little about this in sort-of plain English.
> I would never be rude enough to claim that what I posted was a proof.
> I intentionally didn't post all the details because I don't want to spoil the puzzle for anyone else.
>
> I read the first two responses and they didn't seem headed towards the kind of result I would immediately accept.
> So I thought "I need to see an invariant in this, an invariant has to be hiding inside this somewhere."
> To do that I need to start with a base case and I need to draw myself a series of diagrams.
> The 1,1,1,1 case is too simple and might just be a distraction, but the average for that has to be zero, check that later.
>
> So I started working on the diagram for the 1,1,1,1,2,2,2,2 case.
> Because we don't care about the order of the 1's or the order of the 2's this will be much smaller than 8 factorial, very good.
> We also might not care about the tail of the sequence, just the head might be enough and that will become essential.
> Combinatorics, or just a bit of thinking and a couple of divisions says there are only 70 distinct permutations, even with the tails.
> That is within reach of drawing a diagram, even better without the tails.
> And I counted all the multiplicities and path lengths in that diagram and I got 4/5.
>
> Then I started thinking about the diagram for the 1,1,1,1,2,2,2,2,3,3,3,3 case.
> Even without the ordering that is 34650 cases, too many for any diagram.
> We only care about is it a 1 or is it not a 1, but be careful with permutations when you start thinking that.
> Ignoring the tails brings that down to a far more reasonable number, just count how many different tails there are.
> I needed to find that invariant. That means I needed to find the right way to diagram this.
> After a few dead ends and tossing out the previous diagram and starting over a couple of times...
> I thought I found the structure for the diagram that showed an invariant.
> When I totaled up all the levels I got 8/5 and thought that must mean I'd made a mistake, it didn't feel right.
> But I checked it twice and still got the same number, so I will hope that is right until proven wrong.
>
> The 1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4 case would be out of the question, even ignoring the repetitions,
> if you didn't already have a diagram to fit it into.
> There are just more layers and lots more tails and more opportunities to make little mistakes.
> But the diagram forces the path. And the path fits the invariant. And I got 12/5.
>
> This method is more than just a brute force counting argument.
> But I suppose that would work too, just perhaps not giving you anything more than a single number each time.
>
> I STILL was not certain this was right. I did not expect the invariant to scale linearly. But it did match the 1.1.1.1 case.
> There is no way I could, even with the diagram and the invariant, scale this up to 5,5,5,5.
> I gambled and posted it, with the cautions that I was still just guessing this was correct, like others I suppose.
>
> But the structure of the diagram, that represents the invariant, those diagrams hint this will not change with n.
>
> And it looks like someone did Monte Carlo and agreed with my conjecture for 13.13.13.13.

The people getting the answer 48/5 for 13.13.13.13 just evaluated the
answer on a computer, so it's an exact answer, not a Monte Carlo. It's
easy enough to write down an expression for the correct answer to the
problem, but turning that expression into 48/5 by actually evaluating
the sum itself is going to be hugely error prone, and besides, time
consuming in a not at all interesting way. (This sounds like the
calculations you did with your diagrams guiding you, but I'm not sure...)

Someone else actually posted the expression to compute I think, but the
point is that the expression is obvious enough, but not what RichD hoped
for - he intended solvers to find a simplified way of looking at the
problem which would lead to a simple (and obvious) answer.

Anyway, I just wrote a program with a couple of loops to calculate the
sum, nothing clever, and not the intention behind the problem. But
still, it can be very useful to spot a pattern in the answers [I think
that's what your "invariant" means] because that pattern might lead us
to look for a particular simplification for the problem that is likely
to lead to the sort of pattern we see.

>
> I've been mumbling about the post which said he couldn't simplify his sum of products down to 4n/5.
> I've tried that a couple of different ways and am still not happy with that yet, but it may work out.

That was me - I'm quite sure there is a way to simplify the sum of
products into 4n/5, but I still can't see the right route. 40 years ago
I was pretty good at those sorts of algebraic manipulations, but to say
I'm a bit rusty these days would be a total understatement! :)

I would still like to see how to do the algebraic manipulations to get
the answer, even though I've now seen what RichD intended. Knowing the
right answer was likely to be 4n/5 did indeed send me in the right
direction, but I didn't see the final solution until RichD posted in
another thread ["dropping points on a line"] giving a HUGE hint for the
bit I was missing.

I posted what I guess is RichD's intended solution on that thread, so if
you still want to work on the problem, DON'T READ MY POST ON THAT THREAD
- there's no spoiler space or anything. If it had been posted to
rec.puzzles I would automatically have thought to add spoiler space out
of habit, but being on sci.math that didn't occur to me I'm afraid. (Too
late now...)

Mike.

Re: daily puzzle: where's the the first ace?

<31j1jgtbfqi6rdu39jv7b9jkgngjf275al@4ax.com>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=74115&group=sci.math#74115

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: aig...@address.invalid (Leon Aigret)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Thu, 02 Sep 2021 15:28:46 +0200
Lines: 27
Message-ID: <31j1jgtbfqi6rdu39jv7b9jkgngjf275al@4ax.com>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com> <55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com> <5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com> <ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com> <6dqdnfqDSf6a3LP8nZ2dnUU78c3NnZ2d@brightview.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 6sJkthqGOoU+6rvCegPwNQile7FKkf53WhuOGA0B6aopF9eYEH
Cancel-Lock: sha1:rIM3mEv+VMWYar8ZyatxLaPCTC8=
X-Newsreader: Forte Free Agent 3.3/32.846
 by: Leon Aigret - Thu, 2 Sep 2021 13:28 UTC

On Tue, 31 Aug 2021 15:47:34 +0100, Mike Terry
<news.dead.person.stones@darjeeling.plus.com> wrote, among other
things:

>I'm quite sure there is a way to simplify the sum of
>products into 4n/5, but I still can't see the right route.
>
>I would still like to see how to do the algebraic manipulations to get
>the answer, even though I've now seen what RichD intended.

For a non-cleverjust-plodding-along solution one might start by noting
that the specific identities of the aces and non-aces are irrelevant
for the problem, so one might as well assume that both the aces and
the non-aces are indistinguishable.

Then, writing the binomial coefficients p!/(q!(p-q)! as C(p,q), for a
deck of n cards including a aces, there are C(n,a) different
configurations and the answeris

1/C(n,a) * Sum(j = 0 .. n-a; j * C(n-j-1,a-1)) =

1/C(n,a) * Sum(k = 1 .. n-a; [Sum(j = k .. n-a; C(n-j-1,a-1)]).

Using the hockey-stick_identity twice results in (see
https://en.wikipedia.org/wiki/Hockey-stick_identity)

1/C(n,a) * Sum(k = 1 .. n-a; C(n-k,a)) = C(n,a+1)/C(n.a)= (n-a)/(a+1)

Re: daily puzzle: where's the the first ace?

<Mp-dnQFaW_eie638nZ2dnUU78cXNnZ2d@brightview.co.uk>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=74120&group=sci.math#74120

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!border2.nntp.ams1.giganews.com!nntp.giganews.com!buffer2.nntp.ams1.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Thu, 02 Sep 2021 09:57:03 -0500
Subject: Re: daily puzzle: where's the the first ace?
Newsgroups: sci.math
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
<55a2a768-7759-42f5-9ff8-1a078e08a2c8n@googlegroups.com>
<5227ee49-48b0-49a2-9e47-97a096fe0c76n@googlegroups.com>
<ea577b13-8267-4055-aaa7-ff41fea1122dn@googlegroups.com>
<6dqdnfqDSf6a3LP8nZ2dnUU78c3NnZ2d@brightview.co.uk>
<31j1jgtbfqi6rdu39jv7b9jkgngjf275al@4ax.com>
From: news.dea...@darjeeling.plus.com (Mike Terry)
Date: Thu, 2 Sep 2021 15:57:03 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:60.0) Gecko/20100101
Firefox/60.0 SeaMonkey/2.53.7.1
MIME-Version: 1.0
In-Reply-To: <31j1jgtbfqi6rdu39jv7b9jkgngjf275al@4ax.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Message-ID: <Mp-dnQFaW_eie638nZ2dnUU78cXNnZ2d@brightview.co.uk>
Lines: 37
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-iNjdKEGNPGSugOfXF2wBHcAIPyCFlwJliKJT5D7io3p6yerR4RgW3cFbgiIPHu1K+vJpjTDMmDIChCo!3funBW4C5kubPzQij9I+jNOqEE4UOiFUNhhqyGO/FRLkZlBcNa9VHVXO2ZQHiD4wMZBX1mOZcYh3!9DAP+wq+a0GrbQ2SGquaxVcOug==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 2950
 by: Mike Terry - Thu, 2 Sep 2021 14:57 UTC

On 02/09/2021 14:28, Leon Aigret wrote:
> On Tue, 31 Aug 2021 15:47:34 +0100, Mike Terry
> <news.dead.person.stones@darjeeling.plus.com> wrote, among other
> things:
>
>> I'm quite sure there is a way to simplify the sum of
>> products into 4n/5, but I still can't see the right route.
>>
>> I would still like to see how to do the algebraic manipulations to get
>> the answer, even though I've now seen what RichD intended.
>
> For a non-cleverjust-plodding-along solution one might start by noting
> that the specific identities of the aces and non-aces are irrelevant
> for the problem, so one might as well assume that both the aces and
> the non-aces are indistinguishable.
>
> Then, writing the binomial coefficients p!/(q!(p-q)! as C(p,q), for a
> deck of n cards including a aces, there are C(n,a) different
> configurations and the answeris
>
> 1/C(n,a) * Sum(j = 0 .. n-a; j * C(n-j-1,a-1)) =
>
> 1/C(n,a) * Sum(k = 1 .. n-a; [Sum(j = k .. n-a; C(n-j-1,a-1)]).
>
> Using the hockey-stick_identity twice results in (see
> https://en.wikipedia.org/wiki/Hockey-stick_identity)
>
> 1/C(n,a) * Sum(k = 1 .. n-a; C(n-k,a)) = C(n,a+1)/C(n.a)= (n-a)/(a+1)
>

Thanks for that. It was the Hockey-stick identity I was unaware of (or
had forgotten), and couldn't recreate from scratch. (It's obvious
enough when looking at Pascal's triangle, and I could see the
combinatorial expressions in my formula but it didn't click.)

Mike.

Re: daily puzzle: where's the the first ace?

<shom6a$1vm1$1@macpro.inf.ed.ac.uk>

  copy mid

https://www.novabbs.com/tech/article-flat.php?id=75944&group=sci.math#75944

  copy link   Newsgroups: sci.math
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!newsfeed.xs3.de!callisto.xs3.de!nntp-feed.chiark.greenend.org.uk!ewrotcd!usenet.inf.ed.ac.uk!.POSTED!not-for-mail
From: rich...@cogsci.ed.ac.uk (Richard Tobin)
Newsgroups: sci.math
Subject: Re: daily puzzle: where's the the first ace?
Date: Mon, 13 Sep 2021 23:17:30 +0000 (UTC)
Organization: Language Technology Group, University of Edinburgh
Lines: 25
Message-ID: <shom6a$1vm1$1@macpro.inf.ed.ac.uk>
References: <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>
NNTP-Posting-Host: macaroni.inf.ed.ac.uk
X-Trace: macpro.inf.ed.ac.uk 1631575050 65217 129.215.197.42 (13 Sep 2021 23:17:30 GMT)
X-Complaints-To: usenet@macpro.inf.ed.ac.uk
NNTP-Posting-Date: Mon, 13 Sep 2021 23:17:30 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: richard@cogsci.ed.ac.uk (Richard Tobin)
 by: Richard Tobin - Mon, 13 Sep 2021 23:17 UTC

In article <d66b1c5d-3cd8-460f-bf6d-430fe8118ed1n@googlegroups.com>,
RichD <r_delaney2001@yahoo.com> wrote:
>Shuffle a standard deck of cards. Deal from the top,
>one card at a time, until the first ace appears. How
>many cards must turn, on average, before that ace?
>(if an ace is the top card, the count is zero)
>
>An exact solution is desired, not an approximation to
>the nearest integer.
>
>Computers disallowed -

The four aces partition the remaining 48 cards into 5 partitions.
So the average partition length is 9.6.

But it's not immediately obvious (to me) that the average length of
the *first* partition is same as the overall average partition length.

Instead put the 48 other cards in a circle, and randomly insert the
four aces and a "start of deck" marker. Now it's clear that the
partition from the start of deck to the first ace has average length
9.6.

-- Richard

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor