Joint density p(x, y)
Colour shows density, not probability per pixel. The teal strip continues beyond the finite image in y.
A narrow, tall peak can contain less probability than a broad, low one.
Colour shows density, not probability per pixel. The teal strip continues beyond the finite image in y.
| Component | Probability mass | Weighted joint peak density | SDs (x, y) |
|---|
This is the R lesson's two-component Gaussian mixture. The narrow component has mean (−1, 0), SDs (0.23, 0.3); the broad component has mean (1.3, 1) and equal adjustable SDs. Both have correlation 0.45. Their weights are (1 − w) and w and sum to one over the whole plane.
The exact marginal is p(x) = (1 − w) Normal(x | −1, 0.23) + w Normal(x | 1.3, s). The highlighted probability is the corresponding weighted difference of Normal CDFs at centre ± 0.3, integrated over all y. It does not depend on image resolution.
A density is not a probability. Numerically integrating the image uses Σi,j p(xi, yj) Δx Δy, and projecting a column uses Σj p(x, yj) Δy. The image-window mass uses midpoint quadrature with these area factors. Probability outside x ∈ [−5, 7], y ∈ [−6, 8] is retained as omitted mass, not renormalised away.
Profiling maximises p(x,y) over y; conditioning fixes y; marginalisation integrates y out. The optional orange curve is a grid profile rescaled to unit area over the displayed x window only to compare its shape. It is not a marginal probability density or a second answer for the interval probability.
The image uses a square-root colour stretch to reveal low-density structure. The table gives each weighted component's own peak density, not the height of the combined mixture. Neither peak is a probability or a credible-region boundary. The approximate mode uses the displayed grid and is not the analytic interval calculation.
The browser retains the R model and exact marginal. It uses a 180 × 180 cell-centred image instead of R's 250 × 250 endpoint grid, omits density contours, and adds a labelled diagnostic profile and finite-window integral. The seed has no effect on this deterministic model.