-
Notifications
You must be signed in to change notification settings - Fork 0
variance
Subhajit Sahu edited this page Aug 9, 2022
·
2 revisions
Find the mean of squared deviation of numbers from its mean.
function variance(...xs)
// xs: a list of numbers
const xnumber = require('extra-number');
xnumber.variance(1, 2);
// → 0.25
xnumber.variance(1, 2, 3);
// → 0.6666666666666666
xnumber.variance(1, 2, 3, 4);
// → 1.25