stat-func.js
function variance(values) {
	let avg = mean(values);
	return mean(values.map((e) => Math.pow(e - avg, 2)));
}
function variance(values) {
	let avg = mean(values);
	return mean(values.map((e) => Math.pow(e - avg, 2)));
}
function variance ( values ) { let avg = mean ( values ) ; return mean ( values . map ( ( e ) => Math . pow ( e - avg , 2 ) ) ) ; }
Variance = average squared deviation from mean
Variance = average squared deviation from mean