Skip to main content
100%

Normal Distributions

✓ Published0🌍 Public
EEfratVil
Last edited Nov 30, 2016
Created on Nov 30, 2016

This example visualizes two normal distributions as filled, semi-transparent density curves overlaid on the same axes. It shows how the spread and peak of the distributions differ based on their standard deviations. The code uses D3 v4 with SVG rendering, and computes the probability densities using the `jStat` library’s `normal.pdf` function. Random data is generated by the custom `Random_normal_Dist` function, which samples quantiles from a mean and standard deviation. The `d3.line` generator draws the curves, and the horizontal axis is scaled with `d3.scaleLinear`.

AI-generated description

Compering 2 normal distributions.

Similar vizzes