Qurak

What are the chances: at least once, expected count, the tail

工作流程 共 5 個步驟,在同一個工作階段中依序執行。每一步都在引擎上實際執行過,下方的輸出就是它產生的結果。

步驟 1
atLeastOnce[p_, n_] := 1 - (1 - p)^n

沒有輸出——這個步驟是在為下一步做準備。

步驟 2
N[atLeastOnce[1/100, 50]]
輸出
0.3949939328624633
步驟 3
expectedHits = 50 (1/100)
輸出
1/2
步驟 4
atLeastTwice = N[1 - (1 - 1/100)^50 - 50 (1/100) (1 - 1/100)^49]
輸出
0.08943531309603069
步驟 5
Plot[atLeastOnce[1/100, n], {n, 0, 300}]
輸出
-Graphics-

使用到的函式

相關的操作範例

所有操作範例 · 函式參考 · 從 MCP 用戶端使用這個