Hi,
Can you please distinguish which formula would be computationally more effective:
- Sn = 1/n * ∑(Xi - C)² | sum "i" till "n"
or
- Sn = 1/n * ∑Xi² - C² | sum "i" till "n"
C is const.
First one has n squares and second one (n+1) squares
Thanks in advance