Qurak

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

Workflow 5 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

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

No output - this step sets something up for the next one.

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

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client