Ratio distribution explained

A ratio distribution (also known as a quotient distribution) is a probability distribution constructed as the distribution of the ratio of random variables having two other known distributions.Given two (usually independent) random variables X and Y, the distribution of the random variable Z that is formed as the ratio Z = X/Y is a ratio distribution.

An example is the Cauchy distribution (also called the normal ratio distribution), which comes about as the ratio of two normally distributed variables with zero mean.Two other distributions often used in test-statistics are also ratio distributions: the t-distribution arises from a Gaussian random variable divided by an independent chi-distributed random variable, while the F-distribution originates from the ratio of two independent chi-squared distributed random variables.More general ratio distributions have been considered in the literature.[1] [2] [3] [4] [5] [6] [7] [8] [9]

Often the ratio distributions are heavy-tailed, and it may be difficult to work with such distributions and develop an associated statistical test.A method based on the median has been suggested as a "work-around".[10]

Algebra of random variables

See main article: Algebra of random variables. The ratio is one type of algebra for random variables:Related to the ratio distribution are the product distribution, sum distribution and difference distribution. More generally, one may talk of combinations of sums, differences, products and ratios.Many of these distributions are described in Melvin D. Springer's book from 1979 The Algebra of Random Variables.

The algebraic rules known with ordinary numbers do not apply for the algebra of random variables.For example, if a product is C = AB and a ratio is D=C/A it does not necessarily mean that the distributions of D and B are the same. Indeed, a peculiar effect is seen for the Cauchy distribution: The product and the ratio of two independent Cauchy distributions (with the same scale parameter and the location parameter set to zero) will give the same distribution.This becomes evident when regarding the Cauchy distribution as itself a ratio distribution of two Gaussian distributions of zero means: Consider two Cauchy random variables,

C1

and

C2

each constructed from two Gaussian distributions

C1=G1/G2

and

C2=G3/G4

then
C1
C2

=

{G1
/{G

2}}{{G3}/{G4}}=

G1G4
G2G3

=

G1
G2

x

G4
G3

=C1 x C3,

where

C3=G4/G3

. The first term is the ratio of two Cauchy distributions while the last term is the product of two such distributions.

Derivation

A way of deriving the ratio distribution of

Z=X/Y

from the joint distribution of the two other random variables X, Y, with joint pdf

pX,Y(x,y)

, is by integration of the following form

pZ(z)=

+infty
\int
-infty

|y|pX,Y(zy,y)dy.

If the two variables are independent then

pXY(x,y)=pX(x)pY(y)

and this becomes

pZ(z)=

+infty
\int
-infty

|y|pX(zy)pY(y)dy.

This may not be straightforward. By way of example take the classical problem of the ratio of two standard Gaussian samples. The joint pdf is

pX,Y(x,y)=

1\exp\left(-
2\pi
x2
2

\right)\exp\left(-

y2
2

\right)

Defining

Z=X/Y

we have

\begin{align} pZ(z)&=

1
2\pi
infty
\int
-infty

|y|\exp\left(-

\left(zy\right)2
2

\right)\exp\left(-

y2
2

\right)dy\\ &=

1
2\pi
infty
\int
-infty

|y|\exp\left(-

y2\left(z2+1\right)
2

\right)dy \end{align}

Using the known definite integral \int_0^ \, x \, \exp\left(-cx^2 \right) \, dx = \frac we get

pZ(z)=

1
\pi(z2+1)

which is the Cauchy distribution, or Student's t distribution with n = 1

The Mellin transform has also been suggested for derivation of ratio distributions.

In the case of positive independent variables, proceed as follows. The diagram shows a separable bivariate distribution

fx,y(x,y)=fx(x)fy(y)

which has support in the positive quadrant

x,y>0

and we wish to find the pdf of the ratio

R=X/Y

. The hatched volume above the line

y=x/R

represents the cumulative distribution of the function

fx,y(x,y)

multiplied with the logical function

X/Y\leR

. The density is first integrated in horizontal strips; the horizontal strip at height y extends from x = 0 to x = Ry and has incremental probability f_y(y)dy \int_0^ f_x(x) \,dx .
Secondly, integrating the horizontal strips upward over all y yields the volume of probability above the line

FR(R)=

infty
\int
0

fy(y)

Ry
\left(\int
0

fx(x)dx\right)dy

Finally, differentiate

FR(R)

with respect to

R

to get the pdf

fR(R)

.

fR(R)=

d
dR

\left[

infty
\int
0

fy(y)

Ry
\left(\int
0

fx(x)dx\right)dy\right]

Move the differentiation inside the integral:

fR(R)=

infty
\int
0

fy(y)\left(

d
dR
Ry
\int
0

fx(x)dx\right)dy

and since
d
dR
Ry
\int
0

fx(x)dx=yfx(Ry)

then

fR(R)=

infty
\int
0

fy(y)fx(Ry)ydy

As an example, find the pdf of the ratio R when

fx(x)=\alphae-\alpha,    fy(y)=\betae-\beta,   x,y\ge0

We have
Ry
\int
0

fx(x)dx=-e-\alpha

Ry
\vert
0

=1-e-\alpha

thus

\begin{align}FR(R)&=

infty
\int
0

fy(y)\left(1-e-\alpha\right)dy

infty
=\int
0

\betae-\beta\left(1-e-\alpha\right)dy\\ &=1-

\alphaR
\beta+\alphaR

\\ &=

R
\tfrac{\beta

{\alpha}+R}\end{align}

Differentiation wrt. R yields the pdf of R

fR(R)=

d
dR

\left(

R
\tfrac{\beta

{\alpha}+R}\right)=

\tfrac{\beta
\alpha
}

Moments of random ratios

From Mellin transform theory, for distributions existing only on the positive half-line

x\ge0

, we have the product identity

\operatorname{E}[(UV)p]=\operatorname{E}[Up]  \operatorname{E}[Vp]

provided

U,V

are independent. For the case of a ratio of samples like

\operatorname{E}[(X/Y)p]

, in order to make use of this identity it is necessary to use moments of the inverse distribution. Set

1/Y=Z

such that

\operatorname{E}[(XZ)p]=\operatorname{E}[Xp]\operatorname{E}[Y-p]

.Thus, if the moments of

Xp

and

Y-p

can be determined separately, then the moments of

X/Y

can be found. The moments of

Y-p

are determined from the inverse pdf of

Y

, often a tractable exercise. At simplest, \operatorname[Y^{-p} ] =\int_0^\infty y^ f_y(y)\,dy .

To illustrate, let

X

be sampled from a standard Gamma distribution

x\alphae-x/\Gamma(\alpha)

whose

p

-th moment is

\Gamma(\alpha+p)/\Gamma(\alpha)

.

Z=Y-1

is sampled from an inverse Gamma distribution with parameter

\beta

and has pdf

\Gamma-1(\beta)z1+\betae-1/z

. The moments of this pdf are

\operatorname{E}[Zp]=\operatorname{E}[Y-p]=

\Gamma(\beta-p)
\Gamma(\beta)

,p<\beta.

Multiplying the corresponding moments gives

\operatorname{E}[(X/Y)p]=\operatorname{E}[Xp]\operatorname{E}[Y-p]=

\Gamma(\alpha+p)
\Gamma(\alpha)
\Gamma(\beta-p)
\Gamma(\beta)

,p<\beta.

Independently, it is known that the ratio of the two Gamma samples

R=X/Y

follows the Beta Prime distribution:

f\beta'(r,\alpha,\beta)=B(\alpha,\beta)-1r\alpha-1(1+r)-(\alpha

whose moments are

\operatorname{E}[Rp]=

\Beta(\alpha+p,\beta-p)
\Beta(\alpha,\beta)

Substituting

\Beta(\alpha,\beta)=

\Gamma(\alpha)\Gamma(\beta)
\Gamma(\alpha+\beta)

we have

\operatorname{E}[Rp]=

\Gamma(\alpha+p)\Gamma(\beta-p)
\Gamma(\alpha+\beta)

/

\Gamma(\alpha)\Gamma(\beta)=
\Gamma(\alpha+\beta)
\Gamma(\alpha+p)\Gamma(\beta-p)
\Gamma(\alpha)\Gamma(\beta)

which is consistent with the product of moments above.

Means and variances of random ratios

In the Product distribution section, and derived from Mellin transform theory (see section above), it is found that the mean of a product of independent variables is equal to the product of their means. In the case of ratios, we have

\operatorname{E}(X/Y)=\operatorname{E}(X)\operatorname{E}(1/Y)

which, in terms of probability distributions, is equivalent to

\operatorname{E}(X/Y)=

infty
\int
-infty

xfx(x)dx x

infty
\int
-infty

y-1fy(y)dy

Note that

\operatorname{E}(1/Y)

1
\operatorname{E

(Y)}

i.e.,
infty
\int
-infty

y-1fy(y)dy\ne

1
infty
\intyfy(y)dy
-infty

The variance of a ratio of independent variables is

\begin{align}\operatorname{Var}(X/Y)&=\operatorname{E}([X/Y]2)-\operatorname{E2}(X/Y) \&=\operatorname{E}(X2)\operatorname{E}(1/Y2)-\operatorname{E}2(X)\operatorname{E}2(1/Y) \end{align}

Normal ratio distributions

Uncorrelated central normal ratio

When X and Y are independent and have a Gaussian distribution with zero mean, the form of their ratio distribution is a Cauchy distribution.This can be derived by setting

Z=X/Y=\tan\theta

then showing that

\theta

has circular symmetry. For a bivariate uncorrelated Gaussian distribution we have

\begin{align}p(x,y)&=\tfrac{1}{\sqrt{2\pi}}

-1x2
2
e

x \tfrac{1}{\sqrt{2\pi}}

-1y2
2
e

\&=\tfrac{1}{2\pi}

-1(x2+y2)
2
e

\&=\tfrac{1}{2\pi}

-1r2
2
e

withr2=x2+y2\end{align}

If

p(x,y)

is a function only of r then

\theta

is uniformly distributed on

[0,2\pi]

with density

1/2\pi

so the problem reduces to finding the probability distribution of Z under the mapping

Z=X/Y=\tan\theta

We have, by conservation of probability

pz(z)|dz|=p\theta(\theta)|d\theta|

and since

dz/d\theta=1/\cos2\theta

pz(z)=

p\theta(\theta)
|dz/d\theta|

=\tfrac{1}{2\pi}{\cos2\theta}

and setting \cos^2 \theta = \frac= \frac we get

pz(z)=

1/2\pi
1+z2

There is a spurious factor of 2 here. Actually, two values of

\theta

spaced by

\pi

map onto the same value of z, the density is doubled, and the final result is

pz(z)=

1/\pi
1+z2

,  -infty<z<infty

When either of the two Normal distributions is non-central then the result for the distribution of the ratio is much more complicated and is given below in the succinct form presented by David Hinkley. The trigonometric method for a ratio does however extend to radial distributions like bivariate normals or a bivariate Student t in which the density depends only on radius r = \sqrt. It does not extend to the ratio of two independent Student t distributions which give the Cauchy ratio shown in a section below for one degree of freedom.

Uncorrelated noncentral normal ratio

In the absence of correlation

(\operatorname{cor}(X,Y)=0)

, the probability density function of the two normal variables X = N(μX, σX2) and Y = N(μY, σY2) ratio Z = X/Y is given exactly by the following expression, derived in several sources:

pZ(z)=

b(z)d(z)
a3(z)
1
\sqrt{2\pi

\sigmax\sigmay}\left[\Phi\left(

b(z)
a(z)

\right)-\Phi\left(-

b(z)
a(z)

\right)\right]+

1
a2(z)\pi\sigmax\sigmay
-
c
2
e

where

a(z)=\sqrt{

1
2
\sigma
x

z2+

1
2
\sigma
y
}

b(z)=

\mux
2
\sigma
x

z+

\muy
2
\sigma
y

c=

2
\mu
x
2
\sigma
x

+

2
\mu
y
2
\sigma
y

d(z)=

b2(z)-ca2(z)
2a2(z)
e

and

\Phi

is the normal cumulative distribution function:

\Phi(t)=

t
\int
-infty

1
\sqrt{2\pi
} e^\ du \, .
p=\mux
\sqrt{2

\sigmax}

,
q=\muy
\sqrt{2

\sigmay}

and
r=\mux
\muy

. Then so called solid approximation
\dagger(z)
p
Z
to the uncorrelated noncentral normal ratio PDF is expressed by equation [11]
\dagger(z)=1
\sqrt{\pi
p
Z
} \frac \frac \frac e^
2=
2
\mu
x
2
\mu
y
\sigma\left(
z
2
\sigma
x
2
\mu
x

+

2
\sigma
y
2
\mu
y

\right)

Correlated central normal ratio

The above expression becomes more complicated when the variables X and Y are correlated. If

\mux=\muy=0

but

\sigmaX\sigmaY

and

\rho0

the more general Cauchy distribution is obtained

pZ(z)=

1
\pi
\beta
(z-\alpha)2+\beta2

,

where ρ is the correlation coefficient between X and Y and

\alpha=\rho

\sigmax
\sigmay

,

\beta=

\sigmax
\sigmay

\sqrt{1-\rho2}.

The complex distribution has also been expressed with Kummer's confluent hypergeometric function or the Hermite function.

Correlated noncentral normal ratio

This was shown in Springer 1979 problem 4.28.

A transformation to the log domain was suggested by Katz(1978) (see binomial section below). Let the ratio be

T\sim

\mu+N(0,
2
\sigma
x
)
x
\mu+N(0,
2
\sigma
y
)
y

=

\mux+X
\muy+Y

=

\mux
\muy
1+
X
\mux
1+
Y
\muy

.

Take logs to get

loge(T)=loge\left(

\mux
\muy

\right) +loge\left(1+

X
\mux

\right) -loge\left(1+

Y
\muy

\right).

Since

loge(1+\delta)=\delta-

\delta2
2

+

\delta3
3

+

then asymptotically

loge(T)loge\left(

\mux
\muy

\right)+

X
\mux

-

Y
\muy

\simloge\left(

\mux
\muy

\right)+N\left(0,

2
\sigma
x
2
\mu
x

+

2
\sigma
y
2
\mu
y

\right).

Alternatively, Geary (1930) suggested that

t

\muyT-\mux
2
\sqrt{\sigmaT2-2\rho\sigmax\sigmayT+
2
\sigma
x
y
}has approximately a standard Gaussian distribution:This transformation has been called the Geary–Hinkley transformation; the approximation is good if Y is unlikely to assume negative values, basically

\muy>3\sigmay

.

Exact correlated noncentral normal ratio

This is developed by Dale (Springer 1979 problem 4.28) and Hinkley 1969. Geary showed how the correlated ratio

z

could be transformed into a near-Gaussian form and developed an approximation for

t

dependent on the probability of negative denominator values

x+\mux<0

being vanishingly small. Fieller's later correlated ratio analysis is exact but care is needed when combining modern math packages with verbal conditions in the older literature. Pham-Ghia has exhaustively discussed these methods. Hinkley's correlated results are exact but it is shown below that the correlated ratio condition can also be transformed into an uncorrelated one so only the simplified Hinkley equations above are required, not the full correlated ratio version.

Let the ratio be:

z=x+\mux
y+\muy
in which

x,y

are zero-mean correlated normal variables with variances
2,
\sigma
x
2
\sigma
y
and

X,Y

have means

\mux,\muy.

Write

x'=x-\rhoy\sigmax/\sigmay

such that

x',y

become uncorrelated and

x'

has standard deviation

\sigmax'=\sigmax\sqrt{1-\rho2}.

The ratio:
z=x'+\rhoy\sigmax/\sigmay+\mux
y+\muy
is invariant under this transformation and retains the same pdf.The

y

term in the numerator appears to be made separable by expanding:

{x'+\rhoy\sigmax/\sigmay+\mux}=x'+\mux-\rho\muy

\sigmax
\sigmay

+\rho

(y+\mu
y)\sigmax
\sigmay
to get
z=x'+\mux'
y+\muy

+\rho

\sigmax
\sigmay
in which \mu'_x=\mu_x - \rho \mu_y \frac and z has now become a ratio of uncorrelated non-central normal samples with an invariant z-offset (this is not formally proven, though appears to have been used by Geary),

Finally, to be explicit, the pdf of the ratio

z

for correlated variables is found by inputting the modified parameters

\sigmax',\mux',\sigmay,\muy

and

\rho'=0

into the Hinkley equation above which returns the pdf for the correlated ratio with a constant offset

-\rho

\sigmax
\sigmay

on

z

.

The figures above show an example of a positively correlated ratio with

\sigmax=\sigmay=1,\mux=0,\muy=0.5,\rho=0.975

in which the shaded wedges represent the increment of area selected by given ratio

x/y\in[r,r+\delta]

which accumulates probability where they overlap the distribution. The theoretical distribution, derived from the equations under discussion combined with Hinkley's equations, is highly consistent with a simulation result using 5,000 samples. In the top figure it is clear that for a ratio

z=x/y1

the wedge has almost bypassed the main distribution mass altogether and this explains the local minimum in the theoretical pdf

pZ(x/y)

. Conversely as

x/y

moves either toward or away from one the wedge spans more of the central mass, accumulating a higher probability.

Complex normal ratio

The ratio of correlated zero-mean circularly symmetric complex normal distributed variables was determined by Baxley et al.[13] and has since been extended to the nonzero-mean and nonsymmetric case.[14] In the correlated zero-mean case, the joint distribution of x, y is

fx,y(x,y)=

1
\pi2|\Sigma|

\exp\left(-\begin{bmatrix}x\y\end{bmatrix}H\Sigma-1\begin{bmatrix}x\y\end{bmatrix}\right)

where

\Sigma=\begin{bmatrix}

2
\sigma
x

&\rho\sigmax\sigmay\\ \rho*\sigmax\sigmay&

2
\sigma
y

\end{bmatrix},  x=xr+ixi,  y=yr+iyi

()H

is an Hermitian transpose and

\rho=\rhor+i\rhoi=\operatorname{E}(

xy*
\sigmax\sigmay

)  \in\left|C\right|\le1

The PDF of

Z=X/Y

is found to be

\begin{align}fz(zr,zi)&=

1-|\rho|2
\pi
2
\sigma
x
2
\sigma
y

r(

|z|2
2
\sigma
x

+

1-2
2
\sigma
y
\rhorzr-\rhoizi
\sigmax\sigmay

r)-2\\ &=

1-|\rho|2
\pi
2
\sigma
x
2
\sigma
y

r(  r|

z
\sigmax

-

\rho*
\sigmay

r|2+

1-|\rho|2
2
\sigma
y

r)-2\end{align}

In the usual event that

\sigmax=\sigmay

we get

fz(zr,zi)=

1-|\rho|2
\pi\left(  |z-\rho*|2+1-|\rho|2\right)2

Further closed-form results for the CDF are also given.

The graph shows the pdf of the ratio of two complex normal variables with a correlation coefficient of

\rho=0.7\exp(i\pi/4)

. The pdf peak occurs at roughly the complex conjugate of a scaled down

\rho

.

Ratio of log-normal

The ratio of independent or correlated log-normals is log-normal. This follows, because if

X1

and

X2

are log-normally distributed, then

ln(X1)

and

ln(X2)

are normally distributed. If they are independent or their logarithms follow a bivarate normal distribution, then the logarithm of their ratio is the difference of independent or correlated normally distributed random variables, which is normally distributed.[15]

This is important for many applications requiring the ratio of random variables that must be positive, where joint distribution of

X1

and

X2

is adequately approximated by a log-normal. This is a common result of the multiplicative central limit theorem, also known as Gibrat's law, when

Xi

is the result of an accumulation of many small percentage changes and must be positive and approximately log-normally distributed.[16]

Uniform ratio distribution

With two independent random variables following a uniform distribution, e.g.,

pX(x)=\begin{cases} 1&0<x<1\\ 0&otherwise \end{cases}

the ratio distribution becomes

pZ(z)=\begin{cases} 1/2    &0<z<1\

1
2z2

   &z\geq1\\ 0    &otherwise \end{cases}

Cauchy ratio distribution

If two independent random variables, X and Y each follow a Cauchy distribution with median equal to zero and shape factor

a

pX(x|a)=

a
\pi(a2+x2)
then the ratio distribution for the random variable

Z=X/Y

is[17]

pZ(z|a)=

1
\pi2(z2-1)

ln(z2).

This distribution does not depend on

a

and the result stated by Springer (p158 Question 4.6) is not correct.The ratio distribution is similar to but not the same as the product distribution of the random variable

W=XY

:

pW(w|a)=

a2
\pi2(w2-a4)

ln\left(

w2
a4

\right).

[8] More generally, if two independent random variables X and Y each follow a Cauchy distribution with median equal to zero and shape factor

a

and

b

respectively, then:
  1. The ratio distribution for the random variable

Z=X/Y

is p_Z(z|a,b) = \frac \ln \left(\frac\right).
  1. The product distribution for the random variable

W=XY

is p_W(w|a,b) = \frac \ln \left(\frac\right).The result for the ratio distribution can be obtained from the product distribution by replacing

b

with
1
b

.

Ratio of standard normal to standard uniform

See main article: Slash distribution. If X has a standard normal distribution and Y has a standard uniform distribution, then Z = X / Y has a distribution known as the slash distribution, with probability density function

pZ(z)=\begin{cases} \left[\varphi(0)-\varphi(z)\right]/z2&z\ne0\\ \varphi(0)/2&z=0,\\ \end{cases}

where φ(z) is the probability density function of the standard normal distribution.[18]

Chi-squared, Gamma, Beta distributions

Let G be a normal(0,1) distribution, Y and Z be chi-squared distributions with m and n degrees of freedom respectively, all independent, with

f\chi(x,k) =

k-1
2
xe-x/2
2k/2\Gamma(k/2)
. Then
G
\sqrt{Y/m

}\simtm

the Student's t distribution
Y/m
Z/n

=F

i.e. Fisher's F-test distribution
Y
Y+Z

\sim\beta(\tfrac{m}{2},\tfrac{n}{2})

the beta distribution
  Y
Z

\sim\beta'(\tfrac{m}{2},\tfrac{n}{2})

the standard beta prime distribution

If

V1\sim

2(λ)
{\chi'}
k1
, a noncentral chi-squared distribution, and

V2\sim

2(0)
{\chi'}
k2
and

V1

is independent of

V2

then
V1/k1
V2/k2

\sim

F'
k1,k2

(λ)

, a noncentral F-distribution.
m
n

F'm,n=\beta'(\tfrac{m}{2},\tfrac{n}{2})orF'm,n=\beta'(\tfrac{m}{2},\tfrac{n}{2},1,\tfrac{n}{m})

defines

F'm,n

, Fisher's F density distribution, the PDF of the ratio of two Chi-squares with m, n degrees of freedom.

The CDF of the Fisher density, found in F-tables is defined in the beta prime distribution article. If we enter an F-test table with m = 3, n = 4 and 5% probability in the right tail, the critical value is found to be 6.59. This coincides with the integral

F3,4(6.59)=

infty
\int
6.59

\beta'(x;\tfrac{m}{2},\tfrac{n}{2},1,\tfrac{n}{m})dx=0.05

For gamma distributions U and V with arbitrary shape parameters α1 and α2 and their scale parameters both set to unity, that is,

U\sim\Gamma(\alpha1,1),V\sim\Gamma(\alpha2,1)

, where

\Gamma(x;\alpha,1)=

x\alpha-1e-x
\Gamma(\alpha)

, then
U
U+V

\sim\beta(\alpha1,\alpha2),    expectation=

\alpha1
\alpha1+\alpha2
U
V

\sim\beta'(\alpha1,\alpha2),       expectation=

\alpha1
\alpha2-1

,\alpha2>1

V
U

\sim\beta'(\alpha2,\alpha1),       expectation=

\alpha2
\alpha1-1

,\alpha1>1

If

U\sim\Gamma(x;\alpha,1)

, then

\thetaU\sim\Gamma(x;\alpha,\theta)=

x\alpha-1
-
x
\theta
e
\thetak\Gamma(\alpha)

. Note that here θ is a scale parameter, rather than a rate parameter.

If

U\sim\Gamma(\alpha1,\theta1),V\sim\Gamma(\alpha2,\theta2)

, then by rescaling the

\theta

parameter to unity we have
U
\theta1
U
\theta1
+
V
\theta2

=

\theta2U
\theta2U+\theta1V

\sim\beta(\alpha1,\alpha2)

U
\theta1
V
\theta2

=

\theta2
\theta1
U
V

\sim\beta'(\alpha1,\alpha2)

Thus
U
V

\sim\beta'(\alpha1,\alpha2,1,

\theta1
\theta2

)and\operatorname{E}\left[

U
V

\right]=

\theta1
\theta2
\alpha1
\alpha2-1
in which

\beta'(\alpha,\beta,p,q)

represents the generalised beta prime distribution.

In the foregoing it is apparent that if

X\sim\beta'(\alpha1,\alpha2,1,1)\equiv\beta'(\alpha1,\alpha2)

then

\thetaX\sim\beta'(\alpha1,\alpha2,1,\theta)

. More explicitly, since

\beta'(x;\alpha1,\alpha2,1,R)=

1
R

\beta'(

x
R

;\alpha1,\alpha2)

if

U\sim\Gamma(\alpha1,\theta1),V\sim\Gamma(\alpha2,\theta2)

then
U
V

\sim

1
R

\beta'(

x
R

;\alpha1,\alpha2)=

\left(x
R
\alpha1-1
\right)
\left(1+x
\alpha1+\alpha2
\right)
R

1
RB(\alpha1,\alpha2)

,  x\ge0

where

R=

\theta1
\theta2

,   B(\alpha1,\alpha2)=

\Gamma(\alpha1)\Gamma(\alpha2)
\Gamma(\alpha1+\alpha2)

Rayleigh Distributions

fr(r)=(r/\sigma2)

-r2/2\sigma2
e

,  r\ge0

, the ratio Z = X/Y follows the distribution[19]

fz(z)=

2z
(1+z2)2

,  z\ge0

and has cdf

Fz(z)=1-

1
1+z2

=

z2
1+z2

,   z\ge0

The Rayleigh distribution has scaling as its only parameter. The distribution of

Z=\alphaX/Y

follows

fz(z,\alpha)=

2\alphaz
(\alpha+z2)2

,  z>0

and has cdf

Fz(z,\alpha)=

z2
\alpha+z2

,   z\ge0

Fractional gamma distributions (including chi, chi-squared, exponential, Rayleigh and Weibull)

The generalized gamma distribution is

f(x;a,d,r)=r
\Gamma(d/r)ad

xd-1

-(x/a)r
e

x\ge0;  a,d,r>0

which includes the regular gamma, chi, chi-squared, exponential, Rayleigh, Nakagami and Weibull distributions involving fractional powers. Note that here a is a scale parameter, rather than a rate parameter; d is a shape parameter.

If

U\simf(x;a1,d1,r),V\simf(x;a2,d2,r)areindependent,andW=U/V

then[20] g(w) = \frac \frac, \; \; w>0

where

B(u,v)=

\Gamma(u)\Gamma(v)
\Gamma(u+v)

Modelling a mixture of different scaling factors

In the ratios above, Gamma samples, U, V may have differing sample sizes

\alpha1,\alpha2

but must be drawn from the same distribution
x\alpha-1
-
x
\theta
e
\thetak\Gamma(\alpha)

with equal scaling

\theta

.

In situations where U and V are differently scaled, a variables transformation allows the modified random ratio pdf to be determined. Let

X=

U
U+V

=

1
1+B

where

U\sim\Gamma(\alpha1,\theta),V\sim\Gamma(\alpha2,\theta),\theta

arbitrary and, from above,

X\simBeta(\alpha1,\alpha2),B=V/U\simBeta'(\alpha2,\alpha1)

.

Rescale V arbitrarily, defining

Y\sim

U
U+\varphiV

=

1
1+\varphiB

,  0\le\varphi\leinfty

We have

B=

1-X
X

and substitution into Y gives

Y=

X
\varphi+(1-\varphi)X

,dY/dX=

\varphi
(\varphi+(1-\varphi)X)2

Transforming X to Y gives

fY(Y)=

fX(X)
|dY/dX|

=

\beta(X,\alpha1,\alpha2)
\varphi/[\varphi+(1-\varphi)X]2

Noting

X=

\varphiY
1-(1-\varphi)Y

we finally have

fY(Y,\varphi)=

\varphi
[1-(1-\varphi)Y]2

\beta\left(

\varphiY
1-(1-\varphi)Y

,\alpha1,\alpha2\right),   0\leY\le1

Thus, if

U\sim\Gamma(\alpha1,\theta1)

and

V\sim\Gamma(\alpha2,\theta2)


then

Y=

U
U+V

is distributed as

fY(Y,\varphi)

with

\varphi=

\theta2
\theta1

The distribution of Y is limited here to the interval [0,1]. It can be generalized by scaling such that if

Y\simfY(Y,\varphi)

then

\ThetaY\simfY(Y,\varphi,\Theta)

where

fY(Y,\varphi,\Theta)=

\varphi/\Theta
[1-(1-\varphi)Y/\Theta]2

\beta\left(

\varphiY/\Theta
1-(1-\varphi)Y/\Theta

,\alpha1,\alpha2\right),   0\leY\le\Theta

\ThetaY

is then a sample from
\ThetaU
U+\varphiV

Reciprocals of samples from beta distributions

Though not ratio distributions of two variables, the following identities for one variable are useful:

If

X\sim\beta(\alpha,\beta)

then

x=

X
1-X

\sim\beta'(\alpha,\beta)

If

Y\sim\beta'(\alpha,\beta)

then

y=

1
Y

\sim\beta'(\beta,\alpha)

combining the latter two equations yields

If

X\sim\beta(\alpha,\beta)

then

x=

1
X

-1\sim\beta'(\beta,\alpha)

.

If

Y\sim\beta'(\alpha,\beta)

then

y=

Y
1+Y

\sim\beta(\alpha,\beta)

Corollary
1
1+Y

=

Y-1
Y-1+1

\sim\beta(\beta,\alpha)

1+Y\sim\{\beta(\beta,\alpha)\}-1

, the distribution of the reciprocals of

\beta(\beta,\alpha)

samples.If

U\sim\Gamma(\alpha,1),V\sim\Gamma(\beta,1)

then
U
V

\sim\beta'(\alpha,\beta)

and
U/V
1+U/V

=

U
V+U

\sim\beta(\alpha,\beta)

Further results can be found in the Inverse distribution article.

X,Y

are independent exponential random variables with mean μ, then X − Y is a double exponential random variable with mean 0 and scale μ.

Binomial distribution

This result was derived by Katz et al.[21]

Suppose

X\simBinomial(n,p1)

and

Y\simBinomial(m,p2)

and

X

,

Y

are independent. Let
T=X/n
Y/m
.

Then

log(T)

is approximately normally distributed with mean

log(p1/p2)

and variance
(1/p1)-1+
n
(1/p2)-1
m
.

The binomial ratio distribution is of significance in clinical trials: if the distribution of T is known as above, the probability of a given ratio arising purely by chance can be estimated, i.e. a false positive trial. A number of papers compare the robustness of different approximations for the binomial ratio.

Poisson and truncated Poisson distributions

In the ratio of Poisson variables R = X/Y there is a problem that Y is zero with finite probability so R is undefined. To counter this, consider the truncated, or censored, ratio R' = X/Y where zero sample of Y are discounted. Moreover, in many medical-type surveys, there are systematic problems with the reliability of the zero samples of both X and Y and it may be good practice to ignore the zero samples anyway.

The probability of a null Poisson sample being

e

, the generic pdf of a left truncated Poisson distribution is

\tildepx(x;λ)=

1
1-e

{

eλx
x!

},   x\in1,2,3,

which sums to unity. Following Cohen,[22] for n independent trials, the multidimensional truncated pdf is

\tildep(x1,x2,...,xn;λ)=

1
(1-e)n
n{
\prod
i=1
e
xi
λ
xi!

},   xi\in1,2,3,

and the log likelihood becomes

L=ln(\tildep)=-nln(1-e)-nλ+ln(λ)

n
\sum
1

xi-ln

n
\prod
1

(xi!),   xi\in1,2,3,

On differentiation we get

dL/dλ=

-n
1-e

+

1
λ
n
\sum
i=1

xi

and setting to zero gives the maximum likelihood estimate

\hatλML

\hatλML
-\hatλML
1-e

=

1
n
n
\sum
i=1

xi=\barx

Note that as

\hatλ\to0

then

\barx\to1

so the truncated maximum likelihood

λ

estimate, though correct for both truncated and untruncated distributions, gives a truncated mean

\barx

value which is highly biassed relative to the untruncated one. Nevertheless it appears that

\barx

is a sufficient statistic for

λ

since

\hatλML

depends on the data only through the sample mean

\barx=

1
n
n
\sum
i=1

xi

in the previous equation which is consistent with the methodology of the conventional Poisson distribution.

Absent any closed form solutions, the following approximate reversion for truncated

λ

is valid over the whole range

0\leλ\leinfty;1\le\barx\leinfty

.

\hatλ=\barx-e-(-0.07(\barx-1)e-0.666(\bar+\epsilon,   |\epsilon|<0.006

which compares with the non-truncated version which is simply

\hatλ=\barx

. Taking the ratio

R=\hatλX/\hatλY

is a valid operation even though

\hatλX

may use a non-truncated model while

\hatλY

has a left-truncated one.

The asymptotic large-

nλvarianceof\hatλ

(and Cramér–Rao bound) is

Var(\hatλ)\ge-\left(E\left[

\delta2L
\deltaλ2

\right]λ=\hat\right)-1

in which substituting L gives

\delta2L
\deltaλ2

=-n\left[

\barx
λ2

-

e
(1-e)2

\right]

Then substituting

\barx

from the equation above, we get Cohen's variance estimate

Var(\hatλ)\ge

\hatλ
n
(1-e-\hatλ)2
1-(\hatλ+1)e-\hatλ

The variance of the point estimate of the mean

λ

, on the basis of n trials, decreases asymptotically to zero as n increases to infinity. For small

λ

it diverges from the truncated pdf variance in Springael[23] for example, who quotes a variance of

Var(λ)=

λ/n
1-e

\left[1-

λe
1-e

\right]

for n samples in the left-truncated pdf shown at the top of this section. Cohen showed that the variance of the estimate relative to the variance of the pdf,

Var(\hatλ)/Var(λ)

, ranges from 1 for large

λ

(100% efficient) up to 2 as

λ

approaches zero (50% efficient).

These mean and variance parameter estimates, together with parallel estimates for X, can be applied to Normal or Binomial approximations for the Poisson ratio. Samples from trials may not be a good fit for the Poisson process; a further discussion of Poisson truncation is by Dietz and Bohning[24] and there is a Zero-truncated Poisson distribution Wikipedia entry.

Double Lomax distribution

This distribution is the ratio of two Laplace distributions.[25] Let X and Y be standard Laplace identically distributed random variables and let z = X / Y. Then the probability distribution of z is

f(x)=

1
2(1+|z|)2

Let the mean of the X and Y be a. Then the standard double Lomax distribution is symmetric around a.

This distribution has an infinite mean and variance.

If Z has a standard double Lomax distribution, then 1/Z also has a standard double Lomax distribution.

The standard Lomax distribution is unimodal and has heavier tails than the Laplace distribution.

For 0 < a < 1, the a-th moment exists.

E(Za)=

\Gamma(1+a)
\Gamma(1-a)

where Γ is the gamma function.

Ratio distributions in multivariate analysis

Ratio distributions also appear in multivariate analysis.[26] If the random matrices X and Y follow a Wishart distribution then the ratio of the determinants

\varphi=|X|/|Y|

is proportional to the product of independent F random variables. In the case where X and Y are from independent standardized Wishart distributions then the ratio

Λ={|X|/|X+Y|}

has a Wilks' lambda distribution.

Ratios of Quadratic Forms involving Wishart Matrices

In relation to Wishart matrix distributions if

S\simWp(\Sigma,\nu+1)

is a sample Wishart matrix and vector

V

is arbitrary, but statistically independent, corollary 3.2.9 of Muirhead states
VTSV
VT\SigmaV

\sim

2
\chi
\nu

The discrepancy of one in the sample numbers arises from estimation of the sample mean when forming the sample covariance, a consequence of Cochran's theorem. Similarly

VT\Sigma-1V
VTS-1V

\sim

2
\chi
\nu-p+1

which is Theorem 3.2.12 of Muirhead [27]

See also

External links

Notes and References

  1. The Frequency Distribution of the Quotient of Two Normal Variates . Geary . R. C. . Roy C. Geary . . 93 . 3 . 1930 . 442–446 . 10.2307/2342070 . 2342070.
  2. The Distribution of the Index in a Normal Bivariate Population . Fieller . E. C. . . 24 . 3/4 . November 1932 . 428–440 . 10.2307/2331976 . 2331976 .
  3. Curtiss . J. H. . On the Distribution of the Quotient of Two Chance Variables . . 12 . 4 . December 1941 . 409–421 . 10.1214/aoms/1177731679. 2235953. free .
  4. [George Marsaglia]
  5. Marsaglia . George . George Marsaglia . Ratios of Normal Variables and Ratios of Sums of Uniform Variables . . 60 . 309 . March 1965 . 193–204 . 10.2307/2283145 . 2283145. https://web.archive.org/web/20170923232856/http://www.dtic.mil/get-tr-doc/pdf?AD=AD0600972. dead. September 23, 2017.
  6. Hinkley . D. V. . D. V. Hinkley . On the Ratio of Two Correlated Normal Random Variables . . 56 . 3 . December 1969 . 635–639 . 10.2307/2334671 . 2334671.
  7. Hayya . Jack . Jack Hayya . Armstrong . Donald . Gressis . Nicolas . A Note on the Ratio of Two Normally Distributed Variables . . July 1975 . 21 . 11 . 1338–1341 . 10.1287/mnsc.21.11.1338. 2629897.
  8. Book: Springer , Melvin Dale . The Algebra of Random Variables . . 1979 . 0-471-01406-0 . registration .
  9. Pham-Gia . T. . Turkkan . N. . Marchand . E. . Density of the Ratio of Two Normal Random Variables and Applications . Communications in Statistics – Theory and Methods . . 35 . 9 . 2006 . 1569–1591 . 10.1080/03610920600683689 . 120891296 .
  10. Significance and statistical errors in the analysis of DNA microarray data . James P. Brody . Brian A. Williams . Barbara J. Wold --> . Stephen R. Quake . Brody . James P. . Williams . Brian A. . Wold . Barbara J. . Quake . Stephen R. . . October 2002 . 99 . 20 . 12975–12978 . 10.1073/pnas.162468199 . 12235357 . 130571. 2002PNAS...9912975B . free .
  11. Šimon . Ján . Ftorek . Branislav . Basic Statistical Properties of the Knot Efficiency . Symmetry . MDPI . 14 . 9 . 2022-09-15 . 2073-8994 . 10.3390/sym14091926 . 1926 . free .
  12. Díaz-Francés . Eloísa . Rubio . Francisco J. . On the existence of a normal approximation to the distribution of the ratio of two independent normal random variables . Statistical Papers . Springer Science and Business Media LLC . 54 . 2 . 2012-01-24 . 0932-5026 . 10.1007/s00362-012-0429-2 . 309–323. 122038290 .
  13. Book: Baxley. R T. Waldenhorst. B T. Acosta-Marum. G. 2010. 2010 IEEE Global Telecommunications Conference GLOBECOM 2010. 1–5. https://www.researchgate.net/publication/224210655. 10.1109/GLOCOM.2010.5683407. Complex Gaussian Ratio Distribution with Applications for Error Rate Calculation in Fading Channels with Imperfect CSI. 978-1-4244-5636-9. 14100052.
  14. Sourisseau . M. . Wu . H.-T. . Zhou . Z. . Asymptotic analysis of synchrosqueezing transform—toward statistical inference with nonlinear-type time-frequency analysis . Annals of Statistics . October 2022 . 50 . 5 . 2694-2712 . 10.1214/22-AOS2203 . 1904.09534 .
  15. Note, however, that

    X1

    and

    X2

    can be individually log-normally distributed without having a bivariate log-normal distribution. As of 2022-06-08 the Wikipedia article on "Copula (probability theory)" includes a density and contour plot of two Normal marginals joint with a Gumbel copula, where the joint distribution is not bivariate normal.
  16. Of course, any invocation of a central limit theorem assumes suitable, commonly met regularity conditions, e.g., finite variance.
  17. An Introduction to the Algebra of Random Variables. Kermond. John. Mathematical Association of Victoria 47th Annual Conference Proceedings – New Curriculum. New Opportunities. The Mathematical Association of Victoria. 2010. 978-1-876949-50-1. 1–16.
  18. Web site: SLAPPF. Statistical Engineering Division, National Institute of Science and Technology. 2009-07-02.
  19. Hamedani. G. G.. Oct 2013. Characterizations of Distribution of Ratio of Rayleigh Random Variables. Pakistan Journal of Statistics. 29. 4. 369–376.
  20. A note on the generalized (positive) Cauchy distribution. Raja Rao . B.. Garg. . M. L.. Canadian Mathematical Bulletin. 12. 6. 1969. 10.4153/CMB-1969-114-2 . free. 865–868.
  21. Katz D. et al.(1978) Obtaining confidence intervals for the risk ratio in cohort studies. Biometrics 34:469–474
  22. Cohen. A Clifford. June 1960. Estimating the Parameter in a Conditional Poisson Distribution. Biometrics. 60. 2. 203–211. 10.2307/2527552 . 2527552.
  23. Web site: On the sum of independent zero-truncated Poisson random variables. Springael. Johan. 2006. University of Antwerp, Faculty of Business and Economics.
  24. Dietz. Ekkehart. Bohning. Dankmar. 2000 . On Estimation of the Poisson Parameter in Zero-Modified Poisson Models. Computational Statistics & Data Analysis . 34. 4. 441–459. 10.1016/S0167-9473(99)00111-5.
  25. Bindu P and Sangita K (2015) Double Lomax distribution and its applications. Statistica LXXV (3) 331–342
  26. Brennan. L E. Reed. I S. January 1982. An Adaptive Array Signal Processing Algorithm for Communications. IEEE Transactions on Aerospace and Electronic Systems. AES-18 No 1. 124–130. 1982ITAES..18..124B. 10.1109/TAES.1982.309212 . 45721922.
  27. Book: Muirhead, Robb. Aspects of Multivariate Statistical Theory. Wiley. 1982. USA. 96; Theorem 3.2.12.