arviz-devs / preliz

Exploring and eliciting probability distributions
https://preliz.readthedocs.io
Apache License 2.0
90 stars 9 forks source link

Create AsymmetricLaplace distribution page #449

Closed aleicazatti closed 4 months ago

aleicazatti commented 5 months ago

Description:

Create an individual page for the AsymmetricLaplace distribution. This page should include:

Images and visuals:

Related distributions:

Simplification and accessibility:

Reference:

aloctavodia commented 5 months ago

For the image, we can use the same parameters used in the docstring.

For the text, we could reword/adap this text from Wikipedia

Story

The asymmetric Laplace distribution (ALD) is a generalization of the Laplace distribution. Just as the Laplace distribution consists of two exponential distributions of equal scale back-to-back about x = m, the asymmetric Laplace consists of two exponential distributions of unequal scale back to back about x = m, adjusted to assure continuity and normalization.

The difference of two variates exponentially distributed with different means and rate parameters will be distributed according to the ALD. When the two rate parameters are equal, the difference will be distributed according to the Laplace distribution.

Common use in Bayesian statistics

The Asymmetric Laplace distribution is commonly used with an alternative parameterization for performing quantile regression in a Bayesian inference context. Under this approach, the $\kappa$ parameter describing asymmetry is replaced with a $q$ parameter indicating the quantile desired. Using this parameterization, the likelihood of the Asymmetric Laplace Distribution is equivalent to the loss function employed in quantile regression.

Maybe also the text in this section??? not sure https://en.wikipedia.org/wiki/Asymmetric_Laplace_distribution#Applications

We should also add a link to Wikipedia (we should do this for every distribution, as the Wikipedia pages are usually very complete)