[Paper Review] Computing the Kullback-Leibler Divergence between two Weibull Distributions
This paper derives a closed-form analytical solution for the Kullback-Leibler (KL) divergence between two Weibull distributions, leveraging change-of-variables substitution and properties of the gamma and digamma functions. The key contribution is an explicit formula in terms of shape and scale parameters, enabling efficient computation in statistical inference and machine learning applications.
We derive a closed form solution for the Kullback-Leibler divergence between two Weibull distributions. These notes are meant as reference material and intended to provide a guided tour towards a result that is often mentioned but seldom made explicit in the literature.
Motivation & Objective
- To provide a rigorous, explicit closed-form expression for the KL divergence between two Weibull distributions, a quantity frequently cited but rarely derived in full.
- To address the lack of accessible analytical solutions in the literature, particularly for non-identical shape and scale parameters.
- To support practical applications in model selection, statistical inference, and kernel methods by enabling efficient computation of distributional dissimilarity.
- To validate the derived formula in the special case of exponential distributions (k=1), confirming consistency with known results.
Proposed method
- Derives the KL divergence by expanding the logarithmic ratio of two Weibull densities into separable terms involving constants and functions of x.
- Applies a change of variables y = (x/l₁)^k₁ to transform the integral into a gamma function form, enabling analytical evaluation.
- Evaluates each resulting integral using known properties: the normalization of the density (integral = 1), the expectation of log x via the gamma function and Euler-Mascheroni constant γ.
- Uses the gamma function Γ(z) to evaluate moments involving x^k₂ and x^k₁, particularly for the term (x/l₂)^k₂.
- Combines all components into a unified closed-form expression involving log terms, γ, and Γ functions.
- Validates the result by reducing it to the known KL divergence between two exponential distributions when k₁ = k₂ = 1.
Experimental results
Research questions
- RQ1What is the exact analytical form of the KL divergence between two general Weibull distributions with different shape and scale parameters?
- RQ2How can the KL divergence be computed efficiently without numerical integration, especially in high-dimensional or iterative inference tasks?
- RQ3Does the derived formula reduce correctly to the known KL divergence between exponential distributions when k₁ = k₂ = 1?
- RQ4Can the derived expression be used to construct symmetric divergence measures or kernel functions for machine learning?
Key findings
- The KL divergence between two Weibull distributions with parameters (k₁, l₁) and (k₂, l₂) is given by a closed-form expression involving log terms, the Euler-Mascheroni constant γ, and the gamma function.
- The formula simplifies correctly to log(l₂/l₁) + (l₁/l₂) - 1 when k₁ = k₂ = 1, matching the known KL divergence between two exponential distributions.
- The expectation of log x under a Weibull distribution is derived as log l₁ - γ/k₁, which is a key component in the final expression.
- The term involving (x/l₂)^k₂ integrates to (l₁/l₂)^k₂ × Γ(k₂/k₁ + 1), which is analytically tractable via the gamma function.
- The final expression is asymmetric and non-negative, consistent with the properties of KL divergence, and can be used to compare model fits or define similarity measures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.