A Gaussian mixture, drawn as a DAG

Measure the heights of everyone in a room full of children and their parents, and the histogram has two bumps. No single bell curve fits that. A mixture does: it says each point comes from one of two groups, each group is a bell curve of its own, and a weight says how many points each group contributes. Five numbers describe the whole thing: a centre μ and a spread σ for each group, and the weight w of the first.

Below, those numbers and the three densities they make sit on a <t-sketch> board, with the arrows of how they depend on each other drawn in by hand. Drag the numbers; pan and zoom the board.

The workbench: the same board in edit mode. Move the cards, draw, then press Export in the palette and paste the result over the board below.

Group 1 is centred at μ₁ = 0, with a spread of σ₁ = 1.

Group 2 is centred at μ₂ = 3, with a spread of σ₂ = 0.7.

Group 1 alone: N(μ₁, σ₁)
Group 2 alone: N(μ₂, σ₂)

A share w = 40 of the points comes from group 1, and the rest from group 2.

The mixture: w · N₁ + (1 − w) · N₂

As published: view mode. The numbers and charts work, the ink stays put.

Group 1 is centred at μ₁ = 0, with a spread of σ₁ = 1.

Group 2 is centred at μ₂ = 3, with a spread of σ₂ = 0.7.

Group 1 alone: N(μ₁, σ₁)
Group 2 alone: N(μ₂, σ₂)

A share w = 40 of the points comes from group 1, and the rest from group 2.

The mixture: w · N₁ + (1 − w) · N₂

Things to try

How it's built