Skip to content

Instantly share code, notes, and snippets.

@prateekjoshi565
Created February 6, 2020 07:30
Show Gist options
  • Save prateekjoshi565/9ebc2d30e4d7b79c1ff296618d04a0a4 to your computer and use it in GitHub Desktop.
Save prateekjoshi565/9ebc2d30e4d7b79c1ff296618d04a0a4 to your computer and use it in GitHub Desktop.
sample_mean = []
# Bootstrap Sampling
for i in range(40):
y = random.sample(x.tolist(), 5)
avg = np.mean(y)
sample_mean.append(avg)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment