# Q-Gaussian distribution

Parameters Probability density function $q < 3$ shape (real) $\beta > 0$ (real) $x \in (-\infty; +\infty)\!$ for $1\le q < 3$ $x \in \left[\pm {1 \over \sqrt{\beta(1-q)}}\right]$ for $q < 1$ ${\sqrt{\beta} \over C_q} e_q^{-\beta x^2}$ $0\text{ for }q<2$, otherwise undefined $0$ $0$ ${ 1 \over {\beta (5-3q)}} \text{ for } q < {5 \over 3}$ $\infty \text{ for } {5 \over 3} \le q < 2$ $\text{Undefined for }2 \le q <3$ $0 \text{ for } q < {3 \over 2}$ $6{q-1 \over 7-5q} \text{ for } q < {7 \over 5}$

In q-analog theory, the q-Gaussian is a probability distribution arising from the maximization of the Tsallis entropy under appropriate constraints. It is one example of a Tsallis distribution. The q-Gaussian is a generalization of the Gaussian in the same way that Tsallis entropy is a generalization of standard Boltzmann–Gibbs entropy or Shannon entropy.1 The normal distribution is recovered as $q\rightarrow 1$.

The q-Gaussian has been applied to problems in the fields of statistical mechanics, geology, anatomy, astronomy, economics, finance, and machine learning. The distribution is often favored for its heavy tails in comparison to the Gaussian for $1 < q < 3$. There is generalized q-analog of the classical central limit theorem2 in which the independence constraint for the i.i.d. variables is relaxed to an extent defined by the q parameter, with independence being recovered as q → 1. In analogy to the classical central limit theorem, an average of such random variables with fixed mean and variance tend towards the q-Gaussian distribution.

In the heavy tail regions, the distribution is equivalent to the Student's t-distribution with a direct mapping between q and the degrees of freedom. A practitioner using one of these distributions can therefore parameterize the same distribution in two different ways. The choice of the q-Gaussian form may arise if the system is non-extensive, or if there is lack of a connection to small samples sizes.

## Characterization

### Probability density function

The q-Gaussian has the probability density function 2

$f(x) = {\sqrt{\beta} \over C_q} e_q(-\beta x^2)$

where

$e_q(x) = [1+(1-q)x]^{1 \over 1-q}$

is the q-exponential and the normalization factor $C_q$ is given by

$C_q = {{2 \sqrt{\pi} \Gamma\left({1 \over 1-q}\right)} \over {(3-q) \sqrt{1-q} \Gamma\left({3-q \over 2(1-q)}\right)}} \text{ for } -\infty < q < 1$
$C_q = \sqrt{\pi} \text{ for } q = 1 \,$
$C_q = { {\sqrt{\pi} \Gamma\left({3-q \over 2(q-1)}\right)} \over {\sqrt{q-1} \Gamma\left({1 \over q-1}\right)}} \text{ for }1 < q < 3 .$

## Entropy

Just as the normal distribution is the maximum information entropy distribution for fixed values of the first moment $\operatorname{E}(X)$ and second moment $\operatorname{E}(X^2)$ (with the fixed zeroth moment $\operatorname{E}(X^0)=1$ corresponding to the normalization condition), the q-Gaussian distribution is the maximum Tsallis entropy distribution for fixed values of these three moments.

## Related distributions

### Student's t-distribution

While it can be justified by an interesting alternative form of entropy, statistically it is a scaled reparametrization of the Student's t-distribution introduced by W. Gosset in 1908 to describe small-sample statistics. In Gosset's original presentation the degrees of freedom parameter $\nu$ was constrained to be a positive integer related to the sample size, but it is readily observed that Gosset's density function is valid for all real values of $\nu$.citation needed The scaled reparametrization introduces the alternative parameters $q \text{ and } \beta$ which are related to $\nu$.

Given a Student's t distribution with $\nu$ degrees of freedom, the equivalent q-Gaussian has

$q = \frac{\nu+3}{\nu+1}\text{ with }\beta = \frac{1}{3-q}$

with inverse

$\nu = \frac{3-q}{q-1},\text{ but only if }\beta = \frac{1}{3-q}.$

Whenever $\beta \ne {1 \over {3-q}}$, the function is simply a scaled version of Student's t distribution.

It is sometimes argued that the distribution is a generalization of Student's t distribution to negative and or non-integer degrees of freedom. However, the theory of Student's t distribution extends trivially to all real degrees of freedom, where the support of the distribution is now compact rather than infinite in the case of $\nu<0$.citation needed

### Three-parameter version

As with many distributions centered around zero, the q-gaussian can be trivially extended to include a location parameter $\mu$. The density then becomes defined by

${\sqrt{\beta} \over C_q} e_q^{-\beta (x-\mu)^2} .$

## Generating random deviates

The Box–Muller transform has been generalized to allow random sampling from q-gaussians.3 The standard Box–Muller technique generates pairs of independent normally distributed variables from equations of the following form.

$Z_1 = \sqrt{-2 \ln(U_1)} \cos(2 \pi U_2)$
$Z_2 = \sqrt{-2 \ln(U_1)} \sin(2 \pi U_2)$

The generalized Box–Muller technique can generates pairs of q-gaussian deviates that are not independent. In practice, only a single deviate will be generated from a pair of uniformly distributed variables. The following formula will generate deviates from a q-Gaussian with specified parameter q and $\beta = {1 \over {3-q}}$

$Z = \sqrt{-2 \text{ ln}_{q'}(U_1)} \text{ cos}(2 \pi U_2)$

Where $\text{ ln}_q$ is the q-logarithm and $q' = { {1+q} \over {3-q}}$

These deviates can be transformed to generate deviates from an arbitrary q-Gaussian by

$Z' = \mu + {Z \over \sqrt{\beta (3-q)}}$

## Applications

### Physics

It has been shown that the momentum distribution of cold atoms in dissipative optical lattices is a q-Gaussian4

### Finance

Financial return distributions in the New York Stock Exchange, NASDAQ and elsewhere are often interpreted as q-Gaussians.56