Skip to content

Instantly share code, notes, and snippets.

@ShuaiGuo16
Created January 13, 2021 11:41
Show Gist options
  • Save ShuaiGuo16/f224a70960a4dd59bac70db0b87ad607 to your computer and use it in GitHub Desktop.
Save ShuaiGuo16/f224a70960a4dd59bac70db0b87ad607 to your computer and use it in GitHub Desktop.
Turn uniform to standard normal
# Transforming to standard normal distribution
std_norm_samples = np.zeros_like(uni_samples)
for i in range(2):
std_norm_samples[:,i] = norm(loc=0, scale=1).ppf(uni_samples[:,i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment