Problems? Is your data what you think it is? | |
PerlMonks |
standard deviation helpby vka725 (Initiate) |
on Jul 07, 2015 at 19:49 UTC ( [id://1133609]=perlquestion: print w/replies, xml ) | Need Help?? |
vka725 has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone!
I'm currently working on writing a little script to be able to calculate the average energy and the standard deviation of that energy of these molecular simulations I ran. There's about 600 snapshots for each molecule and I have to find the average and standard deviation in the energy of the snap shots for each molecule. I am not only a super Perl newb, i'm new to coding as well. My PI helped me out for the first part (using it to find averages) and it worked. The second part was adding to it to be able to calculate the standard deviation. So I was able to obtain some kind of standard deviation for 3 snapshots but they did not match the standard deviation i used in excel (i used STDEV.P since we have the entire population, N, not N-1). I can't seem to get it right and I want to see if anyone can help me out here before I go and ask my PI. I want to understand the logic behind this as well, rather than have him just type something out for me. Thank you!
Back to
Seekers of Perl Wisdom
|
|