Y喷和∑哪个好点

2024-12-22 17:37:17
推荐回答(1个)
回答1:

∑(x+y)确实等于∑x + ∑y
这道题你是不是疑惑∑xy - (1/n)*∑x*∑y为何等于∑(x - x‘)*(y - y') (抱歉打不出均值的那个横杠,用'代替横杠了)
因为x' = (1/n)*∑x,同理y' = (1/n)*∑y
因此∑xy - (1/n)*∑x*∑y = ∑xy - (1/n)*∑x*∑y - (1/n)*∑x*∑y + (1/n)*∑x*∑y
= ∑xy - (x' * ∑y) - (y' * ∑x) + (x' * y' * n)
= ∑xy - (x' * ∑y) - (y' * ∑x) + (x' * y' * ∑1)
= ∑(xy - x'*y - x*y' + x'*y')
= ∑(x - x‘)*(y - y')