Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std / sqrt(len) #43

Open
jingweiz opened this issue Jun 24, 2021 · 2 comments
Open

std / sqrt(len) #43

jingweiz opened this issue Jun 24, 2021 · 2 comments

Comments

@jingweiz
Copy link

Hi,
maybe I'm missing something obvious here, but could you inform me as why the std is divided again by sqrt(len) as this should already be taken care of in the std calculation?

print("Average cost: {} +- {}".format(np.mean(costs), 2 * np.std(costs) / np.sqrt(len(costs))))

Thanks!

@wouterkool
Copy link
Owner

wouterkool commented Jun 24, 2021 via email

@jingweiz
Copy link
Author

Oh thanks for the quick reply!
I understand that e.g. when integrating the plots of multiple runs the standard error should be calculated and plotted, however is there a particular reason here to give the se instead of the std of the sample? Thanks in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants