Talk:Algorithms for calculating variance: Difference between revisions

Content deleted Content added
Line 501:
If anyone else would confirm that I am right, I'll remove the alternative comment in the article. [[User:Anishpatel0|Anishpatel0]] ([[User talk:Anishpatel0|talk]]) 13:14, 29 April 2014 (UTC)
 
 
Ok, boss. Here's your math. Really wonder what they teach you folks these days...
 
What we have
 
temp = weight + sumweight
delta = x - mean
R = delta * weight / temp
mean = mean + R
 
What we want to show
 
sumweight * delta * R = weight * delta * (x−mean)
sumweight * delta * R = weight * delta * (x−(x-delta+R))
sumweight * delta * delta * weight / temp = weight * delta * (x−(x-delta+R))
sumweight * delta * delta * weight / temp = weight * delta * (x−x+delta-R))
delta * weight * sumweight * delta / temp = weight * delta * (delta-delta * weight / temp)
weight * delta * sumweight * delta / temp = weight * delta * (delta-delta * weight / temp)
weight * delta * sumweight * delta / temp = weight * delta * delta * (1 - weight / temp)
weight * delta * delta * sumweight / temp = weight * delta * delta * (1 - weight / temp)
weight * delta * delta * sumweight / temp = weight * delta * delta * (1 - weight / temp)
weight * delta * delta * sumweight / temp = weight * delta * delta * (temp - weight) / temp
weight * delta * delta * sumweight / temp = weight * delta * delta * sumweight / temp
 
--[[Special:Contributions/204.120.71.252|204.120.71.252]] ([[User talk:204.120.71.252|talk]]) 06:05, 16 July 2014 (UTC)
 
==What language are the algorithms in?==