Skip to content

variance

Subhajit Sahu edited this page Feb 2, 2021 · 15 revisions

Get the mean of squared deviation of numbers from its mean. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: mean, median, modes, variance, range.


math.variance(n);
// n: a list of numbers
const math = require("extra-math");

math.variance(1, 2);
// 0.25

math.variance(1, 2, 3);
// 0.6666666666666666

math.variance(1, 2, 3, 4);
// 1.25


References

Clone this wiki locally