Skip to content

Instantly share code, notes, and snippets.

@galenseilis
Last active October 16, 2022 07:40
Show Gist options
  • Select an option

  • Save galenseilis/d720a517178b215e92c667bcdd7bd978 to your computer and use it in GitHub Desktop.

Select an option

Save galenseilis/d720a517178b215e92c667bcdd7bd978 to your computer and use it in GitHub Desktop.
import numpy as np
n = 10
m = 50
s = 100
y = np.mean(np.random.normal(m, s, n * 10**4).reshape(10**4, n), axis=1)
print(np.std(y, ddof=1), s / np.sqrt(n))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment