David Tan's answer to Nana's Malaysia question.

done {{ upvoteCount }} Upvotes
clear {{ downvoteCount * -1 }} Downvotes
David Tan
David Tan's answer
24 answers (Tutor Details)
1st
Qn 2 working.
For new standard deviation, use formula from this link called Welford's method.

https://math.stackexchange.com/questions/775391/can-i-calculate-the-new-standard-deviation-when-adding-a-value-without-knowing-t

https://jonisalonen.com/2013/deriving-welfords-method-for-computing-variance/