X-Normal Distribution

The X-Normal Distribution, often referred to as the Johnson’s SU distribution or simply the SU distribution, is a continuous probability distribution used extensively within the field of statistics and more specifically in the analysis of financial data and algorithmic trading. This distribution belongs to the family of Johnson distributions, which were introduced by Norman L. Johnson in 1949. These distributions are particularly useful for modeling data that does not conform to the normal distribution (Gaussian distribution), especially skewed and heavy-tailed data sets, which are common in financial returns.

Mathematical Formulation

The Johnson SU family transforms a standard normal variable Z. The shape parameters are \gamma and \delta. The location is \xi and the scale is \lambda.

Y=\xi+\lambda\sinh\left(\frac{Z-\gamma}{\delta}\right),\qquad Z\sim\mathcal N(0,1),\quad\delta>0,\ \lambda>0

Probability Density Function (PDF)

The density follows from the derivative of the inverse transformation. The standard normal density is \phi.

z=\frac{y-\xi}{\lambda},\qquad f_Y(y)=\frac{\delta}{\lambda\sqrt{1+z^2}}\,\phi\bigl(\gamma+\delta\operatorname{arsinh}(z)\bigr)

Cumulative Distribution Function (CDF)

Since the transformation is increasing, evaluate the standard normal CDF \Phi at the inverse transform of y.

F_Y(y)=\Phi\bigl(\gamma+\delta\operatorname{arsinh}(z)\bigr)

Mean and variance

The mean and variance follow from the exponential moments of a normal variable.

a=-\gamma/\delta,\qquad w=e^{1/\delta^2},\qquad \mathbf E[Y]=\xi+\lambda\sqrt w\,\sinh(a)
\operatorname{Var}(Y)=\frac{\lambda^2}{2}(w-1)\bigl[w\cosh(2a)+1\bigr]
Johnson SU distribution StockSharp JS-Charts

Change the shape and scale to explore the density and cumulative probability. The transformed score uses an independent standard normal input.

Loading calculator…

Applications in Algorithmic Trading

The field of algorithmic trading involves the use of complex algorithms and mathematical models to make trading decisions. The X-Normal Distribution is particularly useful in this context for several reasons:

Modeling Financial Returns

Financial returns often exhibit skewness and heavy tails—characteristics that are not well modeled by the normal distribution. The flexibility of the X-Normal Distribution in accommodating these features makes it a valuable tool for financial engineers and quants.

Risk Management

Proper risk management requires accurate modeling of asset returns to understand the likelihood of extreme losses. The X-Normal Distribution’s ability to model heavy tails makes it suitable for Value-at-Risk (VaR) and Conditional Value-at-Risk (CVaR) calculations, which are critical in risk management contexts.

Option Pricing

Option pricing models often assume normally distributed returns; however, real market data usually exhibits skewness and kurtosis. By using the X-Normal Distribution to model the underlying asset’s return distribution, traders can achieve more accurate option prices and hedging strategies.

Portfolio Optimization

In portfolio optimization, the assumption of normality can lead to suboptimal asset allocations. The X-Normal Distribution allows for more accurate modeling of the return distributions, leading to improved portfolio construction and performance.

Implementation in R and Python

R Implementation

# Install the `sn` package
install.packages("sn")

library(sn)

# Fit X-Normal (Johnson's SU) distribution to data
data <- rnorm(100) # Example data
fit <- selm(y ~ 1, data.frame(y=data), family="SN")

# Parameters
params <- coef(fit)
[gamma](../g/gamma.html) <- params[1]
[delta](../d/delta.html) <- params[2]
xi <- params[3]
[lambda](../l/lambda.html) <- params[4]

Python Implementation

[import](../i/import.html) numpy as np
[import](../i/import.html) scipy.stats as stats
from scipy.optimize [import](../i/import.html) minimize

# Define the PDF of the X-Normal Distribution
def x_normal_pdf(y, [gamma](../g/gamma.html), [delta](../d/delta.html), xi, lambda_):
    sinh_part = np.sinh((y - xi) / [delta](../d/delta.html))
    z = (np.arcsinh(sinh_part) - [gamma](../g/gamma.html)) / lambda_
    pdf = ([delta](../d/delta.html) / np.sqrt(2 * np.pi)) * (np.exp(-0.5 * z**2) / np.sqrt(1 + sinh_part**2))
    [return](../r/return.html) pdf

# Sample data
data = np.random.randn(100)

# Log-likelihood function
def log_likelihood(params):
    [gamma](../g/gamma.html), [delta](../d/delta.html), xi, lambda_ = params
    pdf_vals = x_normal_pdf(data, [gamma](../g/gamma.html), [delta](../d/delta.html), xi, lambda_)
    [return](../r/return.html) -np.sum(np.log(pdf_vals))

# Initial parameter guesses
initial_params = [0, 1, 0, 1]

# Fit the model
result = minimize(log_likelihood, initial_params, method='Nelder-Mead')

fit_params = result.x
[gamma](../g/gamma.html), [delta](../d/delta.html), xi, lambda_ = fit_params

Companies Utilizing X-Normal Distribution

Several companies and financial institutions employ advanced statistical methods like the X-Normal Distribution for modeling market behavior, risk management, and algorithmic trading. Notable examples include:

Conclusion

The X-Normal Distribution, or Johnson’s SU distribution, is a powerful tool for modeling non-normal financial data. Its flexibility in capturing skewness and heavy tails makes it particularly suitable for various applications in algorithmic trading, risk management, option pricing, and portfolio optimization. Its usage in modern financial analysis highlights the importance of selecting appropriate probability distributions to account for real-world data behaviors in order to make more informed and effective financial decisions.