wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
CHAPTER 6.1.2 • 2D + 3DPublished Interactive Labs~30 min study

Joint Bivariate Distributions, Marginalization & Covariance

Integrate 3D joint density surface f(x,y) along x or y to project marginal distributions onto coordinate walls and slice conditional densities.

Engineering & Physical Application Context

Kalman filter covariance prediction ellipsoids, radar (range, azimuth) correlated measurement fusion, and Gaussian Mixture anomaly detection.

Governing Mathematical Formulation
fX(x)=∫−∞∞fX,Y(x,y) dy,fY∣X(y∣x)=fX,Y(x,y)fX(x)f_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x,y)\,dy, \qquad f_{Y|X}(y|x) = \frac{f_{X,Y}(x,y)}{f_X(x)}
Volume VI • Module 6.11 Interactive Lab(s)

The Question You Should Ask

How do two noisy variables co-vary in 3D space—and what happens to our uncertainty in YY once we observe a specific slice X=x0X = x_0?

In Simple Words & Math

A joint probability density fX,Y(x,y)f_{X,Y}(x,y) spreads unit total volume across the (x,y)(x,y) plane; integrating out yy projects the marginal curve fX(x)f_X(x) perpendicularly onto the coordinate wall, just like shadow mass in double integration.

Freezing X=x0X = x_0 slices the 3D density bell vertically: correlation ρ≠0\rho \neq 0 tilts the conditional mean toward ρ(σy/σx)x0\rho(\sigma_y/\sigma_x)x_0 while shrinking conditional variance cleanly to σy2(1−ρ2)\sigma_y^2(1 - \rho^2).

4-Step Pedagogical Chapter Rhythm • Geometric Intuition First
Ch. 6.1.2
STEP 1 • GEOMETRIC QUESTION

How does correlation ρ tilt a 3D joint probability bell—and why does observing X = x₀ both shift E[Y | x₀] and shrink remaining uncertainty σ_y²(1 − ρ²)?

STEP 2 • INTERACTIVE LAB EXPLORATION

Adjust correlation ρ ∈ (−0.92, 0.92) and spreads σ_x, σ_y while clicking slice x₀ to compare the 3D bell, back-wall marginals f_X/f_Y, 1σ/2σ ellipses, and conditional slice f_{Y|X}(y | x₀).

STEP 3 • SYMBOLIC FORMALIZATION
fX(x)=∫−∞∞fX,Y(x,y) dy,fY∣X(y∣x0)=fX,Y(x0,y)fX(x0)f_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x,y)\,dy, \qquad f_{Y|X}(y\mid x_0) = \frac{f_{X,Y}(x_0,y)}{f_X(x_0)}
STEP 4 • EDGE CASES & NEXT BRIDGE

Notice that rotating ρ tilts the conditional mean E[Y | x₀] = ρ(σ_y/σ_x)x₀ without altering either marginal bell f_X or f_Y! Next, Module 6.2 computes linear systems, roots, interpolants, integrals, and ODE flows numerically.

Interactive Laboratories in Chapter 6.1.2
Initializing Interactive Laboratory
LOADING MODULE

Preparing interactive canvas & numerical solver…

wanna math drafting viewport

Joint Densities & Covariance • Ch. 6.1.2

Marginal Projections, Conditional Variance Shrinkage, Uncorrelated Traps & Ellipses

Open Joint & Covariance Formulas →
1. SHADOW MARGINALIZATION VS. SLICING
fX(x)=∫−∞∞fX,Y(x,y) dyf_X(x) = \int_{-\infty}^{\infty} f_{X,Y}(x,y)\,dy
fY∣X(y∣x0)=fX,Y(x0,y)fX(x0)f_{Y|X}(y \mid x_0) = \frac{f_{X,Y}(x_0,y)}{f_X(x_0)}

Marginalizing crushes all 3D density volume perpendicularly onto one coordinate wall, whereas conditioning at X=x0X = x_0 (fX(x0)>0f_X(x_0) > 0) slices vertically and renormalizes that 1D cross-section to area 11.

2. GAUSSIAN SLICE & UNCORRELATED TRAP
Y∣(X=x0)∼N ⁣(ρσyσxx0,  σy2(1−ρ2))Y \mid (X=x_0) \sim \mathcal{N}\!\left(\rho\frac{\sigma_y}{\sigma_x}x_0,\; \sigma_y^2(1-\rho^2)\right)

Observing correlated X=x0X=x_0 tilts the regression mean while shrinking spread cleanly by 1−ρ2\sqrt{1-\rho^2}. Trap: Cov⁡=0\operatorname{Cov}=0 proves independence only for jointly Gaussian pairs—e.g. Y=X2Y=X^2 around symmetric X∼N(0,1)X\sim\mathcal{N}(0,1) has ρ=0\rho=0 yet total dependence!

3. MAHALANOBIS CONFIDENCE ELLIPSES
xTΣ−1x=k2(k=1,2)\mathbf{x}^T \Sigma^{-1} \mathbf{x} = k^2 \quad (k = 1, 2)

Level contours of a bivariate Gaussian align along the orthogonal eigenvectors of covariance matrix Σ\Sigma with radii set by λi\sqrt{\lambda_i}, remaining strictly positive-definite while ∣ρ∣<1|\rho| < 1.

Chapter 6.1.2 Laboratory Specifications

1 Interactive Lab(s)
LAB 6.1.2.1Component: BivariateGaussianLab

3D Bivariate Gaussian Bell, Marginal Wall & Covariance Ellipse Lab

Scrub correlation coefficient ρ ∈ (-1, 1) and slice conditional cross-sections.

Σ=[σx2ρσxσyρσxσyσy2]\Sigma = \begin{bmatrix} \sigma_x^2 & \rho\sigma_x\sigma_y \\ \rho\sigma_x\sigma_y & \sigma_y^2 \end{bmatrix}