Find the sample variance of an array.
An array.
Optional
The iteratee invoked on each element.
Returns the variance.
0.1.0
variance([1, 2, 3])// => 1const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]variance(objects, ({ n }) => n)// => 6.66666667 Copy
variance([1, 2, 3])// => 1const objects = [{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }]variance(objects, ({ n }) => n)// => 6.66666667
Find the sample variance of an array.