Skew Normal¶
Convolution and Integration¶
The skew-normal profile is the standard skew-normal distribution (Azzalini 1985)
expressed in the unite erf parametrisation. Unlike the skew-Voigt, the
convolution with a Gaussian LSF is exact: the convolved profile is again a
skew-normal with a rescaled shape parameter, requiring no numerical correction.
The pixel integral follows analytically from Owen’s T function.
This document derives both results and connects them
to integrate_skewNormal().
Definition¶
The intrinsic skew-normal profile centred at \(\mu\) with Gaussian width \(\sigma\) and shape parameter \(\alpha\) is
where \(G_\sigma(x) = ({\sigma\sqrt{2\pi}})^{-1}\exp[-(x-\mu)^2/(2\sigma^2)]\) is the Gaussian envelope. The equivalence to the standard form \(f = 2G_\sigma \Phi(\alpha(x-\mu)/\sigma)\) follows immediately from \(\Phi(u) = \tfrac{1}{2}[1+\text{erf}(u/\sqrt{2})]\).
Normalisation. Since \(G_\sigma\) is even and \(\text{erf}(\alpha(x-\mu)/w_0)\) is odd about \(\mu\), their product integrates to zero and \(\int f = \int G_\sigma = 1\) for any \(\alpha\).
The shape parameter \(\alpha > 0\) shifts flux toward the red; \(\alpha < 0\) toward the blue. At \(\alpha = 0\) the profile reduces to a pure Gaussian.
Exact Convolution with a Gaussian LSF¶
Let \(G_\text{lsf}(x) = \mathcal{N}(0, \sigma_\text{lsf}^2)\). Convolving \(f\) with the LSF (working with \(\mu = 0\) for clarity) splits into two terms:
where \(\sigma_\text{tot} = \sqrt{\sigma^2 + \sigma_\text{lsf}^2}\). The first term is the standard Gaussian convolution. The second term — the skew correction \(I(x)\) — can be evaluated exactly using the Gaussian erf identity.
Gaussian erf identity¶
For \(W \sim \mathcal{N}(\mu_W, \tilde\sigma^2)\):
Proof. Writing \(\text{erf}(w/c) = (2/\sqrt\pi)\int_0^{w/c} e^{-u^2}\,du\) and exchanging integrals, the inner integral over \(w\) at fixed \(u\) is the probability \(P(W > cu)\) of a Gaussian, which evaluates to \(\text{erfc}(\cdot)\). Completing the square in the resulting integral over \(u\) and converting back to erf gives the stated result.
Applying the identity to \(I(x)\)¶
Use the Gaussian product identity to write the integrand as the product of \(G_{\sigma_\text{tot}}(x)\) and a conditional Gaussian:
Integrating over \(t\) amounts to taking the expectation of \(\text{erf}(\alpha t / w_0) = \text{erf}(t/c)\) with \(c = w_0/\alpha = \sigma\sqrt{2}/\alpha\) under this conditional Gaussian \(\mathcal{N}(\mu_{t|x}, \tilde\sigma^2)\) with \(\mu_{t|x} = \sigma^2 x/\sigma_\text{tot}^2\). Applying the identity:
Factoring \(2\sigma^2/\alpha^2\) from the square root in the denominator and simplifying:
where \(w_0' = \sigma_\text{tot}\sqrt{2}\) and
Result¶
The convolved profile is exactly a skew-normal with the same functional form, wider width \(\sigma_\text{tot}\), and reduced shape parameter \(|\alpha_\text{eff}| < |\alpha|\). No numerical correction is needed.
Properties:
\(\alpha_\text{eff} \to \alpha\) as \(\sigma_\text{lsf} \to 0\) (no LSF)
\(\alpha_\text{eff} \to 0\) as \(\sigma_\text{lsf} \to \infty\) (LSF washes out skew)
\(|\alpha_\text{eff}| < |\alpha|\) for all \(\sigma_\text{lsf} > 0\)
CDF and Pixel Integration¶
The CDF of the skew-normal (Azzalini 1985) involves Owen’s T function \(T(h, a) = (2\pi)^{-1}\int_0^a (1+t^2)^{-1} e^{-h^2(1+t^2)/2}\,dt\):
where \(\Phi(z) = \tfrac{1}{2}[1 + \text{erf}(z/\sqrt{2})]\) is the standard normal CDF. The pixel integral over \([\lambda_l, \lambda_h]\) centred at \(c\) is then
The Gaussian term reduces to the standard erf difference; the skew correction requires evaluating Owen’s T at the two bin edges.
Connection to the Code¶
In integrate_skewNormal(), the halfvar coordinate
\(t = z/\sqrt{2}\) is used throughout so that erf can be called directly.
With \(\sigma_\text{tot} = \sqrt{\sigma_g^2 + \sigma_\text{lsf}^2}\) and
the pixel integral over \([l, h]\) relative to center \(c\) is
where \(t = (x - c)/(\sigma_\text{tot}\sqrt{2})\) and \(z = t\sqrt{2}\).
Owen’s T is called directly from jax.scipy.special.owens_t.