<html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/9.3.0/math.js"></script>
<body>
<h2>JavaScript Machine Learning</h2>
<p>Calculate the Variance.</p>
<div id="demo"></div>
<script>
const values = [7,8,8,9,9,9,10,11,14,14,15];
let variance = math.variance(values, "uncorrected");
document.getElementById("demo").innerHTML = variance;
</script>
</body>
</html>