attention-learn-to-route icon indicating copy to clipboard operation
attention-learn-to-route copied to clipboard

std / sqrt(len)

Open jingweiz opened this issue 4 years ago • 2 comments

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? https://github.com/wouterkool/attention-learn-to-route/blob/6dbad47a415a87b5048df8802a74081a193fe240/eval.py#L77 Thanks!

jingweiz avatar Jun 24 '21 08:06 jingweiz

Hi!

This is to compute the std of the mean, see https://math.stackexchange.com/questions/504288/what-situation-calls-for-dividing-the-standard-deviation-by-sqrt-n.

Op 24 jun. 2021 om 09:14 heeft Jingwei Zhang @.***> het volgende geschreven:

 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? https://github.com/wouterkool/attention-learn-to-route/blob/6dbad47a415a87b5048df8802a74081a193fe240/eval.py#L77 Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

wouterkool avatar Jun 24 '21 08:06 wouterkool

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!

jingweiz avatar Jun 24 '21 10:06 jingweiz