60229實況剪輯 請問機率 - 爐石戰記
By Rebecca
at 2019-05-20T19:46
at 2019-05-20T19:46
Table of Contents
※ 引述《ss8901234 (絕命六龜葡萄)》之銘言:
: https://clips.twitch.tv/StormyTentativePlumberGrammarKing
: 燙台聊天室到現在還在算
: 還是沒什麼頭緒
: 有人知道會發生這樣的機率是幾分之一嗎
用不盡相異物排列來解
生物分別是4 1 2 2血
臉當做9血(最多被打到9下)
所以都沒打到臉的機率是
[9!/(4!*1!*2!*2!)]/[18!/(9!*4!*1!*2!*2!)]
大約是 2e-5
*更正
分母的地方計算應該是錯的
要把打頭的次數分開考慮
例如:
9下全打頭的組合數=9!/9!=1
8下打頭的組合數=(9!/8!1! + 9!/8!1! + 9!/8!1! + 9!/8!1!) (有四隻怪)
...依此類推
實在是太麻煩了,只好交給其他勇者了
**再更正
原本的應該是對的= =?
寫了個程式驗證(python3)
from random import sample
target = [1, 1, 1, 1, 2, 3, 3, 4, 4] + [0]*9 #血量,臉算9滴
sample_num = 10000000 #要進行幾次模擬
count = 0
for _ in range(sample_num):
if 0 not in sample(target, 9):
count += 1
print(count/sample_num)
算了幾次應該是沒問題,就是十萬分之二左右= =
--
: https://clips.twitch.tv/StormyTentativePlumberGrammarKing
: 燙台聊天室到現在還在算
: 還是沒什麼頭緒
: 有人知道會發生這樣的機率是幾分之一嗎
用不盡相異物排列來解
生物分別是4 1 2 2血
臉當做9血(最多被打到9下)
所以都沒打到臉的機率是
[9!/(4!*1!*2!*2!)]/[18!/(9!*4!*1!*2!*2!)]
大約是 2e-5
*更正
分母的地方計算應該是錯的
要把打頭的次數分開考慮
例如:
9下全打頭的組合數=9!/9!=1
8下打頭的組合數=(9!/8!1! + 9!/8!1! + 9!/8!1! + 9!/8!1!) (有四隻怪)
...依此類推
實在是太麻煩了,只好交給其他勇者了
**再更正
原本的應該是對的= =?
寫了個程式驗證(python3)
from random import sample
target = [1, 1, 1, 1, 2, 3, 3, 4, 4] + [0]*9 #血量,臉算9滴
sample_num = 10000000 #要進行幾次模擬
count = 0
for _ in range(sample_num):
if 0 not in sample(target, 9):
count += 1
print(count/sample_num)
算了幾次應該是沒問題,就是十萬分之二左右= =
--
Tags:
爐石
All Comments
By Kyle
at 2019-05-21T00:09
at 2019-05-21T00:09
By Ethan
at 2019-05-23T23:48
at 2019-05-23T23:48
By Gary
at 2019-05-28T20:50
at 2019-05-28T20:50
By Aaliyah
at 2019-05-30T03:22
at 2019-05-30T03:22
By Ida
at 2019-06-01T08:35
at 2019-06-01T08:35
By Adele
at 2019-06-01T20:23
at 2019-06-01T20:23
By Rachel
at 2019-06-03T22:37
at 2019-06-03T22:37
By Una
at 2019-06-04T00:25
at 2019-06-04T00:25
By Jake
at 2019-06-05T05:15
at 2019-06-05T05:15
By Zenobia
at 2019-06-08T21:53
at 2019-06-08T21:53
By Carolina Franco
at 2019-06-13T00:49
at 2019-06-13T00:49
By Olga
at 2019-06-15T20:28
at 2019-06-15T20:28
By Vanessa
at 2019-06-19T10:26
at 2019-06-19T10:26
By Jack
at 2019-06-19T13:42
at 2019-06-19T13:42
By Linda
at 2019-06-22T17:54
at 2019-06-22T17:54
By Regina
at 2019-06-23T05:06
at 2019-06-23T05:06
By Steve
at 2019-06-27T05:33
at 2019-06-27T05:33
By Hedwig
at 2019-06-30T10:17
at 2019-06-30T10:17
By Madame
at 2019-07-02T18:36
at 2019-07-02T18:36
By Delia
at 2019-07-04T19:56
at 2019-07-04T19:56
By John
at 2019-07-06T12:50
at 2019-07-06T12:50
By Mason
at 2019-07-10T09:43
at 2019-07-10T09:43
By Zanna
at 2019-07-12T04:52
at 2019-07-12T04:52
By Steve
at 2019-07-16T22:50
at 2019-07-16T22:50
By Lydia
at 2019-07-21T12:23
at 2019-07-21T12:23
By Donna
at 2019-07-25T20:48
at 2019-07-25T20:48
By Liam
at 2019-07-26T15:25
at 2019-07-26T15:25
By Hazel
at 2019-07-28T13:44
at 2019-07-28T13:44
By Elvira
at 2019-07-31T04:28
at 2019-07-31T04:28
By Delia
at 2019-08-02T12:01
at 2019-08-02T12:01
By Candice
at 2019-08-04T09:30
at 2019-08-04T09:30
By Xanthe
at 2019-08-08T01:04
at 2019-08-08T01:04
Related Posts
一拳聖簡易心得
By Barb Cronin
at 2019-05-20T19:07
at 2019-05-20T19:07
blackpen 副本全職業通關之路
By William
at 2019-05-20T14:14
at 2019-05-20T14:14
新賽制是不是沒救了 ResidentSleeper
By Barb Cronin
at 2019-05-20T13:00
at 2019-05-20T13:00
Apxvoid 奇蹟法攻略
By Hedy
at 2019-05-20T13:00
at 2019-05-20T13:00
大師資格賽正式開跑(又有台灣玩家晉級
By Faithe
at 2019-05-20T08:34
at 2019-05-20T08:34