2011年5月21日 星期六

Probability and Lottery (Page 2)

第 60 期 22 May 2011 Final Result: 15 17 22 36 45 47 + 35
Original Method:
1st round pick:
1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 34 35 37 38 39 40 41 43 44 45 46 47 48 49 (44 球)
2nd round pick:
1 2 4 5 6 7 8 9 10 11 12 13 14 16 18 20 21 23 24 25 26 27 32 34 35 37 38 39 40 41 43 44 45 46 47 48 49  (37 球)
3rd round pick:
1 2 4 5 6 7 8 9 10 11 12 13 14 16 18 20 21 23 25 27 32 34 35 37 38 40 41 44 45 46 47 49
(32 球)
4th round pick: (recent2)
1 2 4 5 6 7 8 9 10 11 12 13 14 18 20 21 23 27 32 34 35 37 38 40 41 44 46 47 49 (29 球) (Match 1.5)


Method 2:

Reverse-order-random (reverse-order not work)。
1st round pick:
1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 34 35 37 38 39 40 41 43 44 45 46 47 48 49 (44 球)
2nd round  (reverse-order-random) pick:
1 2 4 5 6 7 9 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 30 31 32 34 35 37 38 39 40 43 44 45 46 47 48 49 (40 球)
3rd round pick:
1 2 4 5 6 7 9 11 12 13 14 15 16 18 19 20 21 22 23 25 27 30 31 32 34 35 37 38 40 44 45 46 47 49 (34 球)
4th round pick: (recent2)
1 2 4 5 6 7 9 11 12 13 14 15 18 19 20 21 22 23 27 30 31 32 34 35 37 38 40 44 46 47 49
(31 球)  (Match 3.5)



Method 3 ( round 1 reverse + n2 remove + recent2):
Step 1 pick:
2 6 8 10 11 12 13 14 15 16 17 23 24 25 27 28 37 38 39 41 43 44 46 48  (24 球)
Step 2 pick:
2 6 8 10 11 12 13 14 15 16 23 25 27 37 38 41 44 46 (18 球)
Step 3 pick:
2 6 8 10 11 12 13 14 15 23 27 37 38 41 44 46 (16 球) (Match 1)

Choice 2 sequence:

2 4 6 8 9 10 11 12 13 14 15 23 27 34 37 38 41 44 46 (19 球) (Match 1)


Exclude Balls (Method 2+Method 3):  3 16 17 24 25 26 28 29 33 36 39 42 43 45 48 (15 球)

開始能刪的球不多。所以這期開始會把 database 內的 row 由 209 開始變成 215 開始  及由 1265 變成 1271,若不只會越來越多球剩下,這就沒意思了。

 結果如下:

第 60 期 22 May 2011
Original Method:
1st round pick:
2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 31 32 34 37 38 39 40 41 42 43 44 46 48 49 (38 球)
2nd round pick:
2 5 6 7 10 11 12 13 15 16 17 21 22 23 24 25 26 27 28 31 32 34 37 38 39 41 42 43 44 46  49
 (31 球)
3rd round pick:
2 5 6 7 10 11 12 13 15 16 21 22 23 25 27 31 32 34 37 38 41 44 46  49 (24 球)
4th round pick: (recent2)
2 5 6 7 10 11 12 13 15 21 22 23 27 31 32 34 37 38 41 44 46 49 (22 球) (Match 2)

Method 2:

Reverse-order-random (reverse-order not work)。
1st round pick:
2 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28 31 32 34 37 38 39 40 41 42 43 44 46 48 49 (38 球)
2nd round  (reverse-order-random) pick:
2 5 6 7 9 10 11 12 13 15 16 17 18 19 21 22 23 25 26 27 28 31 32 34 38 39 40 41 42 43 44 46 48 49  (34 球)
3rd round pick:
2 5 6 7 9 10 11 12 13 15 16 18 19 21 22 23 25 27 31 32 34 38 40 41 44 46 49 (27 球)
4th round pick: (recent2)
2 5 6 7 9 10 11 12 13 15 18 19 21 22 23 27 31 32 34 38 40 41 44 46 49 (25 球) (Match 2)

Method 3 ( round 1 reverse + n2 remove + recent2):
Step 1 pick:
2 6 8 10 11 12 13 14 15 16 17 23 24 25 27 28 37 38 39 41 43 44 46 48(24 球)
Step 2 pick:
2 6 8 10 11 12 13 14 15 16 23 25 27 37 38 41 43 44 46 (19 球)
Step 3 pick:
2 6 8 10 11 12 13 14 15 23 27 37 38 41 43 44 46  (17 球) (Match 1)

若更改新的 row 沒大問題,就改成這樣好了。

今期發生什麼事,開獎號碼好騎呢,結果亦沒有人中頭二獎。我的記錄也寫下最差的一頁。


 第 61 期 24 May 2011 Final Result:  11 20 31 33 39 48 + 4

Method 1 & 2 因不能刪多球,決定唔用。只保留 Method 3。
Step 1:
1 2 3 4 5 7 9 10 11 13 14 16 20 21 23 29 30 31 34 36 37 40 42 43 46 47 48 (27球)
Step 2:
1 2 3 4 5 7 9 10 11 13 14 16 23 29 31 34 36 37 40 42 47 48 (22球)
Step 3:
1 2 3 4 5 7 9 10 11 13 14 16 23 29 31 34 36 37 42 47 48 (21球) (Match 3.5)

Exclude Balls: 6 8 12 15 17 18 29 20 21 22 24 25 26 27 28 30 32 33 35 38 39 40 41 43 44 45 46 49 (28 球)


今期開始目標選剩 10 球以內,所以試試新方法。

Step 1 pick (Chance 1):
1 2 3 5 6 7 9 10 11 13 14 15 16 18 20 21 22 24 25 26 27 30 31 34 35 36 38 41 42 44 45 46 48 49 (34 球)
Step 2 pick (highest score balls within chance 1 group):
1 2 3 5 11 13 15 22 24 25 27 30 31 35 36 41 42 44 45 46 48 49 (22 球) (Match 3)

Exclude balls: 4 6 7 8 9 10 12 14 16 17 18 19 20 21 23 26 28 29 32 33 34 37 38 39 40 43 47 (27 球)

到這裡先得看看效果,可繼續選下去的但若這兩步都錯,就沒意思了。


第 62 期 26 May 2011 Final Result: 5 6 22 37 44 48 + 23


Step 1 (tight condition): (prob. 0.02)
1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 44 45 46 47 48 (43球)
Step1 (loose condition):(prob. 0.02)
1 4 6 7 10 11 15 16 17 22 23 24 28 29 30 32 34 35 36 37 43 44 45 47  (24球)

Step2 (tight condition): (prob. 0.5)
1 2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 23 24 28 29 30 31 32 33 34 35 36 37 38 40 41 42 43 47 (37球)
Step2 (loose condition): (prob. 0.5)
4 6 7 10 11 15 17 23 24 28 29 30 32 34 35 36 37 43 47 (19球)

Step3 (tight condition):(prob. 0.5)
1 2 5 6 7 8 9 10 11 12 13 14 15 17 18 19 21 23 24 28 29 30 31 32 33 34 36 38 40 41 42 43 47  (33球)
Step3 (loose condition): (prob. 0.5)
6 7 10 11 15 17 23 24 28 29 30 32 34 36 43 47 (16 球) (Match 1.5)

Exclude Balls (vs loose): 1 2 3 4 5 8 9 12 13 14 16 18 19 20 21 22 25 26 27 31 33 35 37 38 39 40 41 42 44 45 46 48 49 (33球)

0.5 probability 的情況似乎開始不行。看來要 keep住  0.02那種


第 63 期 28 May 2011 Final Result: 7 13 34 38 43 44 + 10
今期沒有做預測,現後補。

Step1 (tight condition): (prob. 0.02)
1 2 3 4 6 7 9 10 11 12 13 14 15 16 17 18 20 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 (43球)
Step1 (loose condition):(prob. 0.02)

1 4 6 7 9 10 12 13 15 17 18 20 23 25 26 27 28 31 35 36 40 41 42 43 44 45 47 (27球)

Step2 (tight condition): (prob. 0.5)

1 2 3 4 7 9 10 11 12 13 14 15 16 17 18 20 22 23 24 25 26 28 29 31 33 35 36 38 39 40 41 43 44 45 46 47 49 (37球)
Step2 (loose condition): (prob. 0.5)
1 4 7 9 10 12 13 15 17 18 20 23 25 26 28 31 35 36 40 41 43 44 45 47 (24球) 

Step3 (tight condition):(prob. 0.5)

1 2 3 7 9 10 11 12 13 14 15 17 18 20 22 23 24 25 28 29 31 33 35 36 38 39 40 41 43 44 45 46 49
(33球)
Step3 (loose condition): (prob. 0.5)
1 7 9 10 12 13 15 17 18 20 23 25 26 28 31 35 36 40 41 43 44 45 (22 球)
(Match 4.5球)
Exclude Balls (vs loose): 2 3 4 5 6 8 11 14 16 19 21 22 24 27 29 30 32 33 34 37 38 39 42 46 47 48 49 (27球)



===============================================

第 64 期 31 May 2011 Final Result: 1 4 10 24 30 39 + 8


Step1 (tight condition): (prob. 0.02)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 30 33 34 35 36 37 40 41 42 43 44 45 48 49 (40球)

Step1 (loose condition):(prob. 0.02)
4 5 6 8 9 10 11 14 16 18 19 25 33 34 35 37 40 41 44 45 48  (21球)

Step2 (tight condition): (prob. 0.5)
1 2 3 4 6 9 10 11 12 13 14 15 16 17 18 19 20 21 22 25 26 27 30 34 35 36 37 40 41 42 43 45 48 49 
(34球)
Step2 (loose condition): (prob. 0.5)
4 6 9 10 11 14 16 18 19 25 34 35 37 40 41 45 48 (17球) 

Step3 (tight condition):(prob. 0.5)
1 2 3 4 6 9 10 11 13 14 15 16 17 18 20 21 22 25 27 30 34 35 36 37 40 41 42 45 48 49 (30球)

Step3 (loose condition): (prob. 0.5)
4 6 9 10 11 14 16 18 25 34 35 37 40 41 45 (15 球) (Match 2)
(Match 球)
Exclude Balls (vs loose): 1 2 3 5 7 8 12 13 15 17 19 20 21 22 23 24 26 27 28 29 30 31 32 33 36 38 39 42 43 44 46 47 48 49  (34球)

===============================================

第 65 期 2 June 2011 Final Result: 2 7 18 23 39 47 + 17


Step1 (tight condition): (prob. 0.02)
1 2 3 4 6 7 9 10 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 42 43 44 45 46 47 48 (43球)

Step1 (loose condition):(prob. 0.02)
7 9 15 16 19 20 21 25 26 27 28 29 30 31 33 34 36 37 38 39 40 43 44 45 46 47 (26球)

Step2 (tight condition): (prob. 0.5)
2 3 4 7 9 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 31 32 34 35 36 37 38 39 40 42 44 45 46 47 48 (36球)
Step2 (loose condition): (prob. 0.5)
7 9 15 16 19 20 21 25 26 27 28 29 31 34 36 37 38 39 40 44 45 46 47 (23球) 

Step3 (tight condition):(prob. 0.5)
2 3 4 7 9 14 15 16 19 20 21 22 23 25 26 27 28 29 31 32 35 36 37 38 39  40 42  45 46 47 48  (31球)

Step3 (loose condition): (prob. 0.5)
7 9 15 16 19 20 21 25 26 27 28 29 31 36 37 38 39 40 45 46 47 (21 球)
(Match 3 球)
Exclude Balls (vs loose): 1 2 3 4 5 6 8 10 11 12 13 14 17 18  22 23 24 28 30 32 33  34 35 41 42 43 44  48 49  (28球)

===============================================

第 66 期 4 June 2011 Final Result: 7 8 33 36 46 49 + 18


Step1 (tight condition): (prob. 0.02)
1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 21 22 23 25 26 27 28 29 30 31 32 33 34 36 37 38 40 42 43 44 45 46 47 48 (43球)

Step1 (loose condition):(prob. 0.02)
3 4 6 7 8 10 13 14 19 21 22 25 29 31 33 34 36 37 38 42 43 45 46 47 48 (25球)

Step2 (tight condition): (prob. 0.5)
1 2 3 4 6 7 9 10 12 13 14 15 16 17 18 21 25 26 27 28 29 30 31 32 33 34 36 37 38 40 42 43 44 45 46 48 (36球)
Step2 (loose condition): (prob. 0.5)
3 4 6 7 10 13 14 21 25 29 31 33 34 36 37 38 42 43 45 46 48 (21球) 

Step3 (tight condition):(prob. 0.5)
1 2 4 6 7  9 10 12 13 14 15 16 17 18 21 26 27 29 30 31 32 33 34 36 38 40 42 43 44 45 46 48 (32球)

Step3 (loose condition): (prob. 0.5)
4 6 7 10 13 14 21 29 31 33 34 36 38 42 43 45 46 48 (18 球)
(Match 4 球)
Exclude Balls (vs loose): 1 2 3 5 8 9 10 11 12 15 16 17 18 19 20 22 23 24 25 26 27 28 30 32 35 37 39 40 41 44 47 49  (31球)

後補 (用第 68期的方法,失敗機會由 0.02-0.1):
2 3 5 6 8 10 13 15 16 17 18 22 23 24 29 30 31 33 34 36 38 39 40 41 43 47 48 49 (28 球) (Match 4.5)


===============================================


第 67 期 7 June 2011 Final Result: 22 24 33 36 42 49 + 38

Step1 (tight condition): (prob. 0.02)
1 2 3 5 7 8 9 10 11 12 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 37 38 39 40 42 43 44 45 46 47  (41球)

Step1 (loose condition):(prob. 0.02)
1 2 8 9 11 14 15 18 19 20 22 24 25 26 27 31 33 34 38 39 43 44 46 (23球)

Step2 (tight condition): (prob. 0.5)
1 2 3 7 8 9 10 11 12 14 15 16 17 19 20 21 22 23 24 25 27 28 30 31 32 34 37 38 39 40 43 44 46 47(34球)
Step2 (loose condition): (prob. 0.5)
1 2 8 9 11 14 15 19 20 22 24 25 27 31 34 38 39 43 44 46 (20球) 

Step3 (tight condition):(prob. 0.5)
1 3 7 8 11 12 14 16 17 19 20 21 22 23 24 25 27 28 30 31 32 34 37 38 39 40 43 44 46 (29球)


Step3 (loose condition): (prob. 0.5)
1 8 11 14 19 20 22 24 25 27 31 34 38 39 43 44 46 (17 球)
(Match  2.5 球)
Exclude Balls (vs loose):2 3 4 5 6 7 9 10 11 12 13 15 16 17 18 21 23 26 28 29 30 32 33 35 36 37 40 41 42 45 47 48 49  (32球)

呢排 d 50/50 條件經常錯,下期開始全部唔用。下期試試 keep 住第一 round 再加額外的 0.02條件,睇睇能否保持經常 20 球 當中包最少 4 個中獎號碼。只要這步可行再加埋優化版聰明組合,都大致上差不多了。

後補 (用第 68期的方法,失敗機會由 0.02-0.08):
1 2 3 4 7 10 11 12 13 14 15 18 19 23 24 25 27 29 32 34 35 36 41 42 44 45 46 47 49 (29 球) (Match 4)


 ===========================================
第 68 期 9 June 2011 Final Result: 3 5 6 15 39 42 + 35
試了好耐,什麼捉版路,分組等等感覺麻麻。還是依賴機率好d。


1 2 3 5 6 8 9  12 14 15 16 17 19 20 24 25 27 29 32 34 35 38 39 40 41 42 43 44 46 47 49
(31 球) (Match 6.5)
Complement:
4 7 10 11 13 18 21 22 23 26 28 30 31 33 36 37 45 48 (18 球)



這次開始以選剩 20-25 當中包到 5-6個球為目標。上面是失敗機會介乎 0.02-0.08的最後 31個號碼。以往那些 50/50 條件全部不用。

50/50 果然出事,如果用 50/50, 39,35 會被刪。機率再一次成功。再睇多一期點刪剩 20-25 個字

====================================================



第 69期 12 June 2011 Final Result: 1 4 13 17 35 44 + 22
3 4 5 7 8 9 10 13 17 21 22 23  24 26 27 28 29 31 32 33 34 36 37 39 40 42 43 47 48 49 (30 球)
(Match 3.5)

 50/50 條件:
再刪 3 , 8


===============================================
第 70期 14 June 2011 Final Result: 12 13 19 22 39 48 + 46
3 4 5 8 10 11 13 14 16 17 18 20 21 23 24 25 26 27 28 29 30 31 33 35 36 37 38 39 41 44 46 48 49 (33 球) (Match 3.5)

 




2011年5月16日 星期一

上帝存不存在 - 歌德爾的證明

Gödel's ontological proof - Existence of GOD

 剛見到霍金的訪問說沒有上帝的參與,萬物也能得到存在的解釋。令我想起歌德爾那個上帝存在的證明。好厲害,只靠 logic就能證明。上帝存不存在跟霍金的觀點沒大矛盾。霍金只是說沒上帝的參與也能解釋萬物的構成。





 

舊聞 - University lottery syndicate wins £5m jackpot after devising formula

University lottery syndicate wins £5m jackpot after devising formula

By PAUL SIMS
Last updated at 23:18 24 October 2006


The winning syndicate from Bradford University and College in West Yorkshire
As previous winners will no doubt testify the key to winning the lottery is, by its very nature, purely down to luck of the draw.
But a syndicate of university professors and tutors relied less on chance to conquer mathematical probability to scoop the jackpot.
Using two boxes, 49 pieces of paper and a bunch of clever mathematicians they won £5.3 million on Saturday night after matching all six numbers.
Having failed to win for the first eight years they decided it was time for a change and devised a plan to beat the odds.
Instead of each member randomly choosing numbers or relying on birthdays and significant dates as they had done this time they came up with an unbeatable formulae.
All 49 numbers were written on pieces of paper and placed in one box. Each syndicate member in turn then picked out six numbers, until eight lines were filled, using 48 of the 49 numbers.
The remaining number was then used to start a new line by the next syndicate member, who picked from a second box where the pieces of paper already drawn had been placed.
As a result each number appeared at least twice in the syndicate's 17 lines, with four numbers appearing three times.
The syndicate, from Bradford University and College in West Yorkshire, then set up a computer programme to check the numbers each and every Saturday night.
It would check their numbers against the winning line in a bid to find a match. But, like all methods, it has taken some time to perfect.
In fact, it took four years - but after matching the winning numbers 15, 18, 23, 31, 37, 49 and the bonus ball 38 they finally hit the jackpot and won £5,299,849.
They have since worked out that it will net them £311,755.82p each.
Syndicate leader Barry Waterhouse, 41, who works at the design and printing section of the university, said they had been playing the lottery ever since it began in 1994 with each member picking their own line.
"But we just weren't winning with the numbers being picked that way, so we thought of a different method which would mean all 49 numbers would be used," said Mr Waterhouse.
"We just thought that if all the numbers are in use we must have a good chance of winning and it has proved so, though you never really think it will happen to you.
"We just had to stick with the numbers and we knew we would win eventually."
Fellow syndicate member, David Firth, 63, said: "We have won tenners and the odd £70 in the past, but now this is the big one."
Mr Firth, who now plans to retire from his job as a printer, said he learnt of the win by text from a fellow syndicate member on Saturday evening.
"He had inputted all 17 lines into a computer programme and so all he had to do was type in the winning six numbers, plus bonus ball, to see if we'd won," he added.
"We're so pleased we decided to rehash the way we drew the numbers and were confident that it would get us a win."
Youngest syndicate winner Ben Watson, a 30-year-old graphic designer, intends to spend his winnings on a season ticket for Bradford City.
A fourth syndicate member was named as Jackie Nichol, 59, who was due to retire from the printing offices at the university to set up a business selling soap.
The other university employees who won a share of the jackpot have opted for anonymity.
A spokesperson for Bradford University and College said: "We are delighted for all our lucky winners. They work hard and deserve this success.
"Let's hope lightning strikes twice and some of the other college syndicates scoop another jackpot."
A spokeswoman for Camelot said they were aware of the system employed by the university syndicate.
She said: "We are not overly concerned by it as everybody has a method of trying to win. However, we would say that being in a syndicate does increase your chance of a win as one in four jackpots goes to a syndicate."

Read more: http://www.dailymail.co.uk/news/article-412386/University-lottery-syndicate-wins-5m-jackpot-devising-formula.html#ixzz1MVqGfP97


佢地個方法十分單簡, 頭8注用了48個number, 第9注用餘下的一個號碼+49個中的任何5個, 第10至16(共7注)用了餘下的44個號碼中的42個, 剩下的2個號碼+任何4個就是最後的一注.


買灑49個號碼原來好簡單, 用9注攪掂....
教授頭個9注就係咁買法嫁啦, 至於人人買都有獨中頭獎既機會, 咁就要靠你自己調亂一下d號碼啦!
聰明一:買哂49個號碼
沒有買的號碼開出,不會再發生。
每個人買既號碼都唔同既, 每個人有獨中頭獎機會, 唔會比人地分薄, 咁就要靠你自己調亂一下d號碼啦!

(((教授個17注$85聰明組合http://www.dailymail.co.uk/pages/live/articles/news/news.html?in_article_id=412386&in_page_id=1770

教授們連續買了四年才中
 

2011年5月13日 星期五

iPhone Apps 被 reject



 一心想把八字緣繼續發展成有緣人,點知這次被 reject 了。或許因為收費的 apps, Apple 公司要確保質素吧。另一原因或者他以為排八字的 program 是拿別人的 (正如下面的回覆 ...content aggregators, or a collection of links...)所以 reject.  雖然整個程式是 100% 自行開發的,但這也難證明。所以繼續再來變成 standalone 版 再加入同年月日生人的 database。這樣應該可以了。


Hello KAM SHING NG,
Thank you for submitting 有緣人 to the App Store.
We've completed the review of your app, but cannot post this version to the App Store because it did not comply with the App Store Review Guidelines, as detailed below:
  • 12.3: Apps that are simply web clippings, content aggregators, or a collection of links, may be rejected
To reply to this message or to get more information, visit the Resolution Center in iTunes Connect. Do not reply directly to this email.
Regards,
App Review

2011年5月10日 星期二

彩票的學術研究

彩票也不一定要搞到古靈精怪如生肖、坐向、占星等等。這裡有兩份學術研究報告關於彩票選號相關的文獻。用的方法不外乎機率及統計。

概率和統計方法在彩票選號中的應用

An analysis of lottery master guide

個人認為 彩票如果是剛開始沒多久就是最適合用近期的機率猜下一期,這是最有效的。如已經長期開了也沒有轉機器球等等的,難猜得多。這是基於大數定律,當遊戲越玩得耐,結果就趨向平均(這就是平常我們說隨機的原因。所以應該修正為 遊戲玩得越久,機率就是平均的也是沒法猜的),亦即是說每球也有機會中,咁就真是隨機了,無得估。但新的機器、球等的因素被改動,機率就變成偏向某方,這才有可能猜中。香港六合彩正正就是好的時機用機率猜,因換了新機沒多久。這說明結果定有偏重某些號碼的。例如最近連續 4 期出現 30 (49,50,51,52-2011期)。但當越久,30 的機會又會少了 (大數定律)。

49個號碼 任選 6 個,共有

49C6 = 13,983,816 可能的組合

任何一個號碼在 6 次開獎中出現 4 次的機率,就等於

6C4 x 49 x ( 48C5)^4 x (48C6)^2 / (49C6)^6

分子 49 代表出現 4 次的這號碼有 49種可能。在 4 次當中, 另外  5 個號碼必須從其他 48 個號碼裡面選,所以分子當中有個 ( 48C5)^4。而在這個號碼沒有出現的 2 次開獎當中,6個號碼都要從其他 48 個號碼裡面選 (如此才能確定這個號碼沒有出現,否則它未必只出現 4 次,有可能變成 5 次或 6 次)。