2022 Incremental_Mean_(Optional)

0:00  0:02And here is my answer.

0:02  0:06There are a number of ways to do this, but a simple one is to take the old mean,

0:06  0:09multiply it by the number of observations, which gets us the sum,

0:09  0:13add to it the new value, which gets us the new sum,

0:13  0:15and then divide it by the new number of observations,

0:15  0:18which is just one more than the old one.
HelpingHandLN edited English subtitles for 2022 Incremental_Mean_(Optional)  
Udacity Robot edited English subtitles for 2022 Incremental_Mean_(Optional)  
Amara Bot added a translation 