Normal Inverse Gaussian Distribution
The Normal Inverse Gaussian (NIG) distribution is a continuous probability distribution that has been widely utilized in the field of financial modeling and algorithmic trading. This distribution belongs to the subclass of the generalized hyperbolic distributions and is particularly noteworthy for its ability to capture skewness and kurtosis in data, which are vital characteristics in financial time series.
Mathematical Definition
Let \gamma=\sqrt{\alpha^2-\beta^2} and d(x)=\sqrt{\delta^2+(x-\mu)^2}, with \alpha>|\beta| and \delta>0. In the probability density, K_1 is the modified Bessel function of the second kind. The density plot also reports the mean, variance, skewness and excess kurtosis.
f(x)=\frac{\alpha\delta K_1(\alpha d(x))}{\pi d(x)}\exp[\delta\gamma+\beta(x-\mu)]Choose a shape larger than the absolute asymmetry and a positive scale.
Loading calculator…
Moments
\mathbb E[X]=\mu+\frac{\delta\beta}{\gamma},\qquad \operatorname{Var}(X)=\frac{\delta\alpha^2}{\gamma^3},\qquad \operatorname{Skew}(X)=\frac{3\beta}{\alpha\sqrt{\delta\gamma}},\qquad \operatorname{Kurt}_{\mathrm{excess}}(X)=\frac{3(1+4\beta^2/\alpha^2)}{\delta\gamma}Characteristic function
\varphi_X(u)=\exp\big[i\mu u+\delta(\gamma-\sqrt{\alpha^2-(\beta+iu)^2})\big]Choose a shape larger than the absolute asymmetry and a positive scale.
Loading calculator…
The complex square root uses its principal branch. A symmetric NIG law has \beta=0; it is still a normal variance mixture with an inverse Gaussian mixing variable. NIST integral representation of K_1
Applications in Finance
The ability of the NIG distribution to model fat tails and skewness makes it particularly useful in financial applications. Some key uses include:
Asset Pricing
The NIG distribution can provide a better fit for the returns of financial assets compared to the normal distribution. This improved fit helps in creating more accurate pricing models.
Risk Management
Since financial returns often exhibit heavy tails and skewness, using the NIG distribution allows for more accurate quantification of Value at Risk (VaR) and Conditional Value at Risk (CVaR).
Option Pricing
The NIG-based models help in deriving closed-form solutions for European option pricing, facilitating more accurate pricing and hedging of options.
Algorithmic Trading
Algorithmic trading strategies often require sophisticated models to predict short-term price movements. The NIG distribution is employed to model the underlying asset prices more accurately, offering a competitive edge in high-frequency trading.
Parameter Estimation
Parameter estimation for NIG distribution can be performed using various methods:
Maximum Likelihood Estimation (MLE)
MLE is a commonly used method for estimating the parameters of the NIG distribution. Given a set of observed data points x_1, x_2,..., x_n, the log-likelihood function is maximized to find the parameter estimates.
Method of Moments
In this approach, the sample moments (mean, variance, skewness, kurtosis) are equated to the theoretical moments of the NIG distribution, and the resulting system of equations is solved to estimate the parameters.
Bayesian Inference
Bayesian methods involve specifying prior distributions for the parameters and using observed data to update these priors, resulting in posterior distributions that reflect both prior beliefs and observed data.
Software and Implementation
Several software packages and libraries facilitate the implementation of the NIG distribution in financial models:
- R: The GeneralizedHyperbolic package for R includes functionalities for NIG distribution.
- Python: Packages like
scipyandstatsmodelscan be extended to include NIG distribution using custom implementation. - MATLAB: MATLAB’s Statistics and Machine Learning Toolbox contains functions to work with the Generalized Hyperbolic Distribution, including NIG.
Example Code (Python)
[import](../i/import.html) numpy as np
from scipy.stats [import](../i/import.html) norm, invgauss
from scipy.special [import](../i/import.html) kv
def nig_pdf(x, [alpha](../a/alpha.html), [beta](../b/beta.html), [delta](../d/delta.html), mu):
[gamma](../g/gamma.html) = np.sqrt([alpha](../a/alpha.html)**2 - [beta](../b/beta.html)**2)
psi = np.sqrt([delta](../d/delta.html)**2 + (x - mu)**2)
[return](../r/return.html) ([alpha](../a/alpha.html) / np.pi) * np.exp([delta](../d/delta.html) * [gamma](../g/gamma.html) + [beta](../b/beta.html) * (x - mu)) * kv(1, [alpha](../a/alpha.html) * psi) / psi
# Example parameters
[alpha](../a/alpha.html) = 1.2
[beta](../b/beta.html) = 0.7
[delta](../d/delta.html) = 0.5
mu = 0
# Generate data
x = np.linspace(-10, 10, 100)
pdf_values = nig_pdf(x, [alpha](../a/alpha.html), [beta](../b/beta.html), [delta](../d/delta.html), mu)
# Plot the PDF
[import](../i/import.html) matplotlib.pyplot as plt
plt.plot(x, pdf_values)
plt.title("NIG [Distribution](../d/distribution.html)")
plt.xlabel("x")
plt.ylabel("Density")
plt.show()
Real-World Examples
Investment Banks
Investment banks, such as Goldman Sachs and Morgan Stanley, often utilize sophisticated statistical models incorporating NIG distributions to better manage risk and trade derivatives.
Hedge Funds
Hedge funds leverage NIG models for portfolio optimization and risk management to enhance returns while minimizing risk.
Academic Research
Numerous academic papers and research articles have been published that utilize the NIG distribution for modeling financial time series and other economic phenomena.
References
- Barndorff-Nielsen, O. E. (1995). “Normal Inverse Gaussian Distributions and Stochastic Volatility Modelling.” Scandinavian Journal of statistics, 22(1), 1-13.
- Prause, K. (1999). “The generalized hyperbolic model: Estimation, financial derivatives, and risk measures,” PhD Thesis, University of Freiburg.
- Rydberg, T. H. (1999). “Generalized Hyperbolic Diffusion Processes with Applications in Finance,” Mathematical Finance, 9(2), 183-201.
- McNeil, A. J., Frey, R., & Embrechts, P. (2005). “Quantitative Risk Management: Concepts, Techniques, and Tools.” Princeton University Press.
For more information, you may visit the following companies’ websites:
- Goldman Sachs
- Morgan Stanley