Sunday, May 10, 2015

Visualizing statistical distributions with javascript

For the past few years, I've been developing and using a library I created that allows me to easily generate visualizations of statistical distributions for teaching. One can specify a distribution along with a parametrization, and the library sees it and generates a table containing all the distributions, which gives links to interactive plots that allow anyone to see how changing the parameters affects the distribution. In addition, clicking on the plot allows finding areas under the distribution. Users can switch between PDF and CDF views. I've now opened the code on github.

You can also link directly to a visualization using URL parameters. For instance:,150&rangesLo=50,3&rangesHi=150,45&starts=100,15

See the live demo and the github repository for more details.

Example screenshots:


  1. This is really great! (Nu constructive feedback, just wanted to say that :)

  2. This is indeed great! BTW, I'm sure you are aware of this, but Wolfram's Mathematica (using Manipulate and their vast library of distribution functions) also offers this functionality, with the option of 3D plots as well.

  3. Hi, loved your post!
    Do you know anything about microsoft dynamics ax partner, that I could purchase the software from? I know about Anegis Consulting but I'm searching for alternatives.

  4. Hi, loved your post! Do you know that it is one of the best outsourcing companies in Ukraine.


  5. اعالى الخليج تقدم افضل خدمات نقل العفش الدولى المتميزه باسعار متميزة ومنها :

    شركة شحن عفش من الرياض الى دبي
    نقل عفش من الرياض الى الاردن شحن عفش من الرياض الى الاردن

  6. We are auto fraud lawyers that sue car dealerships for bad car sale practices. Speak to our auto lawyers immediately if this happened to you:

  7. This template is perfect for people who wish to display images as their portfolio - .

  8. TASKMO is a tech driven on-demand staffing platform that connects companies with pre-screened deployable temporary workers, part time workers, manpower , promoters.

    Best Outsourcing Companies In India