-
Notifications
You must be signed in to change notification settings - Fork 4
Expected Value of a Piecewise Peak
This document provides a step-by-step analytical derivation of the expectation value (mean) for a piecewise-defined Gaussian-like distribution. The distribution is defined with different quadratic exponents on either side of the apex (mode), allowing for asymmetry. We will derive expressions for both the normalization integral and the expectation value.
We consider a piecewise-defined function
where:
-
$b_0$ is a constant ensuring scale. -
$b_1$ controls the location shift. -
$b_2$ and$b_3$ are quadratic coefficients that determine the spread (variance) on the left and right sides, respectively.
Assumptions:
-
$b_2 < 0$ and$b_3 < 0$ to ensure the function decays to zero as$x \to \pm\infty$ , resembling a Gaussian distribution.
To ensure
However, we will first compute
For
Completing the Square:
Substituting back into
Change of Variable:
Let:
Updated Limits:
Expressing
Using the Error Function (
Since
Applying the limits:
For
Completing the Square:
Substituting back into
Change of Variable:
Let:
Updated Limits:
Expressing
Using the Error Function (
Since
Applying the limits:
Combining
The expectation value (mean)
Notice that
Therefore, the expectation value
This relationship allows us to compute
Compute
Differentiating
Simplifying:
Differentiating
Simplifying:
Combining the derivatives:
Therefore, the expectation value
Simplifying Further:
Factor out common terms where possible:
This expression shows that
-
Normalization Integral (
$Z$ ): Computed by splitting the integral into two regions ($x < 0$ and$x \geq 0$ ), completing the square, and expressing the result in terms of the error function ($\text{erf}$ ). -
Expectation Value (
$\mu$ ): Determined by differentiating the normalization integral$Z$ with respect to$b_1$ and normalizing by$Z$ . The final expression incorporates both$Z$ and its derivative, reflecting the influence of the distribution's parameters on the mean. -
Asymmetry Handling: The piecewise definition with different quadratic coefficients allows modeling asymmetry, which is reflected in the expectation value through the separate contributions from each side of the distribution.
Contents of the qAlgorithms wiki are licensed under CC BY-NC 4.0.