-
-
Save rationalism/b8925017700605b339b8f8439283d670 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
def simulate_model_runs(): | |
rng = np.random.RandomState(42) | |
for i in range(0, 300): | |
j = i / 100 | |
scalabilities = rng.normal(loc=1.0, scale=j, size=60) | |
a = rng.normal(size=60) | |
b = rng.normal(size=60) + scalabilities | |
c = rng.normal(size=60) + scalabilities * 2 | |
slope, intercept, r_value, p_value, std_err = scipy.stats.linregress(b - a, c - b) | |
print('{},{}'.format(j, r_value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment