Skip to content

Instantly share code, notes, and snippets.

@notbanker
Created July 6, 2019 19:34
Show Gist options
  • Save notbanker/2c439f0af9d1e252664bb726d965f86a to your computer and use it in GitHub Desktop.
Save notbanker/2c439f0af9d1e252664bb726d965f86a to your computer and use it in GitHub Desktop.
Turning exponentially distributed data into normally distributed data
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