Last active
August 6, 2017 19:46
-
-
Save joelouismarino/254146c17ee8678ad33492c0e9fcb88e to your computer and use it in GitHub Desktop.
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 numpy as np | |
n_samples = 500 | |
mean_1 = 15 | |
std_dev_1 = 5 | |
mean_2 = -20 | |
std_dev_2 = 3 | |
X = np.concatenate([np.random.normal(mean_1, std_dev_1, n_samples / 2), | |
np.random.normal(mean_2, std_dev_2, n_samples / 2)], axis=0) | |
Z = (X - np.mean(X)) / np.std(X) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment