Spaces:
Running
Running
update
Browse files
probability/18_central_limit_theorem.py
CHANGED
|
@@ -81,7 +81,7 @@ def _(mo):
|
|
| 81 |
|
| 82 |
Let's explore what happens when you add random variables together. For example, what if we add 100 different uniform random variables?
|
| 83 |
|
| 84 |
-
|
| 85 |
from random import random
|
| 86 |
|
| 87 |
def add_100_uniforms():
|
|
@@ -91,7 +91,7 @@ def _(mo):
|
|
| 91 |
x_i = random()
|
| 92 |
total += x_i
|
| 93 |
return total
|
| 94 |
-
|
| 95 |
|
| 96 |
The value returned by this function will be a random variable. Click the button below to run the function and observe the resulting value of total:
|
| 97 |
"""
|
|
|
|
| 81 |
|
| 82 |
Let's explore what happens when you add random variables together. For example, what if we add 100 different uniform random variables?
|
| 83 |
|
| 84 |
+
```python
|
| 85 |
from random import random
|
| 86 |
|
| 87 |
def add_100_uniforms():
|
|
|
|
| 91 |
x_i = random()
|
| 92 |
total += x_i
|
| 93 |
return total
|
| 94 |
+
```
|
| 95 |
|
| 96 |
The value returned by this function will be a random variable. Click the button below to run the function and observe the resulting value of total:
|
| 97 |
"""
|