I'm studying Machine Learning, was curious to learn more about Gaussian distribution...
Results are here.
The code is all in one file, and I tried to document it. Please do not hesitate to ask any questions if something isn't documented well enough.
If you'd like to build a histogram from arbitrary image, I have a website for you: https://anvaka.github.io/pixchart/