Get percentage of values within standard deviation range

Viewed 19

I am looking for a way to calculate the percentage chance of a data point falling within X standard deviations using Javascript.

Based on this article I would expect it to return ~68% for X=1, ~95% for X=2, and ~99.7% for X=3.

The whole number answers are easy to find online, but I am looking for a programatic way to calculate this number for X=2.45 for example.

Thanks in advance!

0 Answers
Related