Skip to content
Snippets Groups Projects
Commit 330c0a3a authored by Mirko Birbaumer's avatar Mirko Birbaumer
Browse files

renamed notebooks

parent a258a869
No related branches found
No related tags found
No related merge requests found
Pipeline #647997 passed
File moved
This diff is collapsed.
%% Cell type:code id:9b27cc58-6e9d-4e3a-9c5b-a9d1f2080022 tags:
``` python
from scipy.stats import uniform
n = 1000
x = uniform.rvs(size=1000, loc=0, scale=1)
```
%% Cell type:code id:98bb71fa-bc54-4e6b-a6c5-5639ffc3b16d tags:
``` python
import numpy as np
from scipy.stats import uniform
n = 1000
x = uniform.rvs(size=1000, loc=0, scale=1)
integrand = np.exp(-np.square(x)/2)
```
%% Cell type:code id:e9d73b09-de8f-472b-b448-c20b35462143 tags:
``` python
from math import pi
import numpy as np
from scipy.stats import uniform
n = 1000
x = uniform.rvs(size=1000, loc=0, scale=1)
integrand = np.exp(-np.square(x)/2)
integral = 1/(np.sqrt(2*pi))*np.sum(integrand)/n
print(integral)
```
%% Output
0.34320423614573237
%% Cell type:code id:7eee71cd-16c8-484e-8171-ee506ae2b254 tags:
``` python
from scipy.stats import norm
integral = norm.cdf(1)-norm.cdf(0)
print(integral)
```
%% Output
0.3413447460685429
%% Cell type:code id:d7083f3a-e905-417a-9afb-7ac22debd3a1 tags:
``` python
```
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment