Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: Aiuka Narankaev - Fall 2021 MAT1630
Views: 28Image: ubuntu2004
Kernel: Python 3 (system-wide)
Suppose you flip 10 fair coins in a row. Estimate the probability that at least 5 of the coins will come up heads.
Assume 0 as tails and 1 as heads.
In [1]:
In [130]:
In [131]:
Out[131]:
1
Then we will need to find the average of those tosses to determine the probability of getting at least 5 heads. We will use our function 100,000 times to find the probability.
In [141]:
Out[141]:
62.307
In [0]: