Great library with said distribution (probability density function) method https://www.npmjs.com/package/gaussian