In [6]:
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
In [ ]:
#Exercicio 2
In [ ]:
#Exercicio 3
In [ ]:
#Exercicio 4
In [54]:
#Exercicio 5
N = int(1e5)
y1 = np.random.rand(N)
y2 = np.random.rand(N)
z = - np.log(y1)
x1 = np.sqrt( -2 * np.log(y1)) * np.cos(2 * np.pi * y2)
x2 = np.sqrt( -2 * np.log(y2)) * np.cos(2 * np.pi * y1)
plt.hist2d(x1, x2, bins=100)
plt.colorbar()
plt.show()
In [ ]:
#Exercicio 6
In [ ]:
#Exercicio 7
In [ ]:
#Exercicio 8