Skewed Conditional Slices: Conditional Expectation as Centroid, Not Peak
Given $X=x_0$, the conditional expectation $\mathbb{E}(Y\mid X=x_0)=\int_{-\infty}^{\infty} y\,f_{\sssig Y\mid X}(y\mid x_0)\,dy$ is the center of gravity (horizontal balance point) of the renormalized conditional slice $f_{\sssig Y\mid X}(\,\cdot\mid x_0)$, not the projection of its highest peak (conditional mode). When a unimodal conditional slice is skewed rather than symmetric around its peak, the mode and the conditional expectation need not coincide.
To see the distinction directly on a unimodal surface, let $X\sim\mathcal{N}(0,\sigma_1^{2})$ and let $Y\mid(X=x)$ follow a right-skewed shifted gamma distribution of shape $\alpha=2$ and scale $\theta(x)=\theta_0+\gamma\ln\bigl(1+e^{1.4x}\bigr)$ ($\theta_0>0$, $\gamma\geqslant 0$), positioned so that the slice peak lies on the straight line $y_{\sssig\mathrm{mode}}(x)=\beta x$. Thus $f_{\sssig Y\mid X}(y\mid x)=0$ for $y<\beta x-\theta(x)$, whereas for $y\geqslant\beta x-\theta(x)$ the conditional pdf is
\[f_{\sssig Y\mid X}(y\mid x)=\frac{y-\beta x+\theta(x)}{\theta(x)^{2}}\exp\!\left(-\frac{y-\beta x+\theta(x)}{\theta(x)}\right)\]Since a $\mathrm{Gamma}(2,\theta)$ variable has mode $\theta$, mean $2\theta$, and variance $2\theta^{2}$, shifting its origin to $\beta x-\theta(x)$ places the slice peak and the direct regression function on two distinct curves:
At every vertical slice $X=x_0$, the heavy upper tail pulls the center of gravity $\mathbb{E}(Y\mid X=x_0)$ by $+\theta(x_0)$ to the right of the peak, where the slice height equals $(2/e^{2})/(1/e)=2/e\fallingdotseq 0.7358$ ($73.58\%$) of the peak height.
Parameters and two key experiments below:
- Peak vs. centroid on a single slice: Select Peak vs. centroid in the
Focusbar (or click Parallel shift (γ = 0)) to compare the hollow teal marker at the true slice peak $y_{\sssig\mathrm{mode}}(x_0)=\beta x_0$ against the filled crimson fulcrum at the center of gravity $\mathbb{E}(Y\mid X=x_0)=\beta x_0+\theta(x_0)$ on the right-tail flank. - Straight peak ridge with a curved regression function: Click Straight peak, curved E(Y | X = x) ($\beta=0, \gamma=0.38$). Every vertical slice attains its peak along the straight line $y=0$, yet as $\theta(x)$ stretches the right tail for larger $x$, the regression curve $\mathbb{E}(Y\mid X=x)=\theta(x)$ bends upward across the base plane.
3D joint pdf, side-wall marginals, and slice
Drag or use arrow keys to rotate. Side walls display marginal pdfs; the base plane (z = 0) displays the regression curves.
Equal-density contours and regression
Click or drag on the plane to move the active slice. The filled dot marks the conditional mean on the slice.
Slice renormalization vs. marginal pdf
Raw slice fXY (ochre), normalized conditional pdf (crimson), and fixed marginal pdf (dashed violet) on a shared scale.