Re: A card game probability
- From: matt271829-news@xxxxxxxxxxx
- Date: 28 Jan 2007 11:53:38 -0800
On Jan 28, 1:16 pm, David Bernier <david...@xxxxxxxxxxxx> wrote:
Faton Berisha wrote:
On Jan 28, 12:30 am, matt271829-n...@xxxxxxxxxxx wrote:
[...]
Right, I figured out how you get the value of the expression to be
12/13 for n = 1. I didn't realise that you were assuming binom{n-1}i =
0 when i > n-1. I just looked at it and thought "that must be wrong".
I also assume sum_{i=a}^b=0 and prod_{i=a}^b=1 for a>b.
There are several other things I don't understand in your reply, but
rather than labouring over those, let's cut to the chase and look at
your final result, which I quote below:
[...]
I agree with the first result (n = 1). For n = 2 I calculate the
probability as the sum of the following cases:
First card = 1 (prob 4/52); second card = anything (prob 1)
First card = 2 (prob 4/52); second card = 2 (prob 3/51)
First card not 1 or 2 (prob 44/52); second card = 2 (prob 4/51)
Total probability = 4/52*1 + 4/52*3/51 + 44/52*4/51 = 98/663 =
0.14781...
And for n = 3, using an analogous method, I get a probability of
3533/16575 = 0.21315...
These are rather different from your results.
If you take into the consideratio the remark above,
you should get those results;
after all, as I mentioned, I got them by a computer.
However, as I had also mantioned,
the formula does'n behave properly for values of n near 52,
and I found out this is not due to roundoff error.
So it needs a modification for such values,
and this is the one that i propose:
Denote by c(n) a "correction" function
c(n) := 1+floor((n-14)/13),
for floor(x) being the greatest integer not greater than x.
Then, the probability bar p_n = Pr(bar A_n | bar A_1 ... bar A_n)
is approximated by the following formula
bar p_n = sum_{i=0}^4 binom{n-1-c(n)} i
times prod_{j=0}^{i-1}(4 - j)/(48 - j)
times prod_{j=0}^{n-i-2-c(n)} (44-j-c(n)+c(j))/(48-i-j-c(n)
+c(j))
times (52-n+i-3)/(52-n+1).
Now, for the probability of getting at least one match
in n trial
p_n = 1 - prod_{i=1}^n bar p_i
the following table of results is obtained
( 0.0769, 0.1493, 0.2160, 0.2773, 0.3337, 0.3856,
0.4333, 0.4772, 0.5176, 0.5548, 0.5890, 0.6204,
0.6494, 0.6837, 0.7151, 0.7437, 0.7697, 0.7929,
0.8136, 0.8321, 0.8486, 0.8633, 0.8764, 0.8881,
0.8986, 0.9081, 0.9204, 0.9311, 0.9404, 0.9485,
0.9555, 0.9615, 0.9666, 0.9709, 0.9745, 0.9776,
0.9802, 0.9825, 0.9844, 0.9870, 0.9892, 0.9909,
0.9924, 0.9936, 0.9946, 0.9954, 0.9960, 0.9965,
0.9968, 0.9971, 0.9972, 0.9972 )
The results don't quite agree with the ones obtained by Davidpseudo-random trials will lower the pseudo-uncertainty
in his experiment using a computer simulation.
I guess, on of our two approximations is less approximate :)I've been thinking about stopping the simulation. Further
only very slowly (days of tests...) .
A recent line of output:
9000 million tests; approx. prob. is: 0.9837662454
[ of 1 or more matches ].
I knocked up a program to calculate the exact probabilities. For the
probability of at least one match I get, to 15 d.p.,
0.983767272532802, which agrees well with your simulation. For exactly
n matches, 0 <= n <= 52, I get:
n Probability
-- --------------------
0 1.62327274671981E-02
1 6.88990814147659E-02
2 0.144163830211316
3 0.198194169738826
4 0.201324880263123
5 0.161112158067355
6 0.105762439941801
7 5.85539419064342E-02
8 2.78976372302812E-02
9 1.16147607533729E-02
10 4.27641985329927E-03
11 1.40584662582196E-03
12 4.15888904221385E-04
13 1.11431864521539E-04
14 2.7188794501591E-05
15 6.06893416876541E-06
16 1.24416056342439E-06
17 2.35038786112141E-07
18 4.10352465113231E-08
19 6.63762991035675E-09
20 9.96884492090338E-10
21 1.39271632451746E-10
22 1.81286464919229E-11
23 2.20167589128359E-12
24 2.49769378855072E-13
25 2.64945266096615E-14
26 2.63006109662499E-15
27 2.44491711899454E-16
28 2.12954478814065E-17
29 1.73865753727299E-18
30 1.33099178633322E-19
31 9.55550937343293E-21
32 6.43414774111764E-22
33 4.0634276453429E-23
34 2.40676979033807E-24
35 1.33681698110187E-25
36 6.96222635903289E-27
37 3.39943690262071E-28
38 1.55599003084919E-29
39 6.67630191678864E-31
40 2.68552451314764E-32
41 1.0129376053715E-33
42 3.58400068386689E-35
43 1.19024903330912E-36
44 3.71318575921289E-38
45 1.08898866476116E-39
46 3.0101316227832E-41
47 7.78709590682483E-43
48 1.97220205895159E-44
49 3.97808220016594E-46
50 1.35616438642021E-47
51 0
52 1.08667018142645E-50
.
- References:
- A card game probability
- From: jseppa17@xxxxxxxxx
- Re: A card game probability
- From: Faton Berisha
- Re: A card game probability
- From: matt271829-news
- Re: A card game probability
- From: Faton Berisha
- Re: A card game probability
- From: Faton Berisha
- Re: A card game probability
- From: matt271829-news
- Re: A card game probability
- From: Faton Berisha
- Re: A card game probability
- From: matt271829-news
- Re: A card game probability
- From: Faton Berisha
- Re: A card game probability
- From: David Bernier
- A card game probability
- Prev by Date: Re: Is continuum completely filled up?
- Next by Date: Re: Cantor Confusion
- Previous by thread: Re: A card game probability
- Next by thread: Re: A card game probability
- Index(es):
Relevant Pages
|