戒賭美沙酮
7月29日 星期三 晴 去了特記超市,1萬1千4百步。 不想賭得太多,有時看別人賭,也可以止一下咳。我比較喜歡看Degen Dalt的片,他應該是真的賭,不像某些Youtuber,明顯是擺拍。 不過13連勝也真是好誇張。我自己印像中最多是 11連勝 。(還要是賭注好細的時候發生) 但機率其實並不是像他的標題的小(0.0.00148%)。 定義 P(m, n) 為在n局中有最少一次m連勝的機率。方便起見,假設贏的機率是50%。原來都幾難計,於是又問Gemini,將問題簡化成一半機會贏的賽局: what is recursive formula the probability to get m consecutive heads in n coin flips? To find the probability of getting (m) consecutive heads in (n) coin flips, the easiest approach is to calculate the number of sequences that do not contain (m) consecutive heads, and then subtract that from the total possible outcomes. The Recursive Formula Let (F(n, m)) be the number of flip sequences of length (n) that contain no streak of (m) consecutive heads. The recurrence relation is defined as: Base Cases To run this recurrence, you need the following initial conditions based on the length of (n): For (n < m): (F(n, m) = 2^n) (A streak of length (m) is impossible, so all sequences are valid). For (n = m): (F(m, m) = 2^m - 1) (E...