Created
July 6, 2019 19:34
-
-
Save notbanker/2c439f0af9d1e252664bb726d965f86a to your computer and use it in GitHub Desktop.
Turning exponentially distributed data into normally distributed data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
x = np.random.exponential(size=5000) | |
y = [ pow(x_,0.2654) for x_ in x] | |
plt.hist(y,bins=51) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment