Skip to content

devsq

Sum of squared deviations from the mean.

v = devsq(number1, number2, ...)

Returns sum((x - mean(x))^2) — the total squared deviation. Used internally in variance computations; rarely needed directly except for educational or specific statistical use.

devsq(1, 2, 3, 4, 5) % 10
  • var_s — Sample variance (Excel-compatible).
  • var_p — Population variance (Excel-compatible).
  • avedev — Average of absolute deviations from the mean.