# Behrens–Fisher distribution

In statistics, the Behrens–Fisher distribution, named after Ronald Fisher and Walter Behrens, is a parameterized family of probability distributions arising from the solution of the Behrens–Fisher problem proposed first by Behrens and several years later by Fisher. The Behrens–Fisher problem is that of statistical inference concerning the difference between the means of two normally distributed populations when the ratio of their variances is not known (and in particular, it is not known that their variances are equal).

## Definition

The Behrens–Fisher distribution is the distribution of a random variable of the form
    $T_{2}\cos \theta -T_{1}\sin \theta \,$
where T$_1$ and T$_2$ are independent random variables each with a Student's t-distribution, with respective degrees of freedom ν$_1$ = n$_1$ − 1 and ν$_2$ = n$_2$ − 1, and θ is a constant. Thus the family of Behrens–Fisher distributions is parametrized by ν$_1$, ν$_2$, and θ.

## Derivation

Suppose it were known that the two population variances are equal, and samples of sizes n$_1$ and n$_2$ are taken from the two populations:
    ${\begin{aligned}X_{1,1},\ldots ,X_{1,n_{1}}&\sim \operatorname {i.i.d.} N(\mu _{1},\sigma ^{2}),\\[6pt]X_{2,1},\ldots ,X_{2,n_{2}}&\sim \operatorname {i.i.d.} N(\mu _{2},\sigma ^{2}).\end{aligned}}$
where "i.i.d" are independent and identically distributed random variables and N denotes the normal distribution. The two sample means are
    ${\begin{aligned}{\bar {X}}_{1}&=(X_{1,1}+\cdots +X_{1,n_{1}})/n_{1}\\[6pt]{\bar {X}}_{2}&=(X_{2,1}+\cdots +X_{2,n_{2}})/n_{2}\end{aligned}}$
The usual "pooled" unbiased estimate of the common variance σ$^2$ is then
    $S_{\mathrm {pooled} }^{2}={\frac {\sum _{k=1}^{n_{1}}(X_{1,k}-{\bar {X}}_{1})^{2}+\sum _{k=1}^{n_{2}}(X_{2,k}-{\bar {X}}_{2})^{2}}{n_{1}+n_{2}-2}}={\frac {(n_{1}-1)S_{1}^{2}+(n_{2}-1)S_{2}^{2}}{n_{1}+n_{2}-2}}$
where S$_1$$^2$ and S$_2$$^2$ are the usual unbiased (Bessel-corrected) estimates of the two population variances.
Under these assumptions, the pivotal quantity
    ${\frac {(\mu _{2}-\mu _{1})-({\bar {X}}_{2}-{\bar {X}}_{1})}{\displaystyle {\sqrt {{\frac {S_{\mathrm {pooled} }^{2}}{n_{1}}}+{\frac {S_{\mathrm {pooled} }^{2}}{n_{2}}}}}}}$
has a t-distribution with n$_1$ + n$_2$ − 2 degrees of freedom. Accordingly, one can find a confidence interval for μ$_2$ − μ$_1$ whose endpoints are
    ${\bar {X}}_{2}-{\bar {X_{1}}}\pm A\cdot S_{\mathrm {pooled} }{\sqrt {{\frac {1}{n_{1}}}+{\frac {1}{n_{2}}}}},$
where A is an appropriate quantile of the t-distribution.
However, in the Behrens–Fisher problem, the two population variances are not known to be equal, nor is their ratio known. Fisher considered the pivotal quantity
    ${\frac {(\mu _{2}-\mu _{1})-({\bar {X}}_{2}-{\bar {X}}_{1})}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}.$
This can be written as
    $T_{2}\cos \theta -T_{1}\sin \theta ,\,$
where
    $T_{i}={\frac {\mu _{i}-{\bar {X}}_{i}}{S_{i}/{\sqrt {n_{i}}}}}{\text{ for }}i=1,2\,$
are the usual one-sample t-statistics and
    $\tan \theta ={\frac {S_{1}/{\sqrt {n_{1}}}}{S_{2}/{\sqrt {n_{2}}}}}$
and one takes θ to be in the first quadrant. The algebraic details are as follows:
    ${\begin{aligned}{\frac {(\mu _{2}-\mu _{1})-({\bar {X}}_{2}-{\bar {X}}_{1})}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}&={\frac {\mu _{2}-{\bar {X}}_{2}}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}-{\frac {\mu _{1}-{\bar {X}}_{1}}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}\\[10pt]&=\underbrace {\frac {\mu _{2}-{\bar {X}}_{2}}{S_{2}/{\sqrt {n_{2}}}}} _{{\text{This is }}T_{2}}\cdot \underbrace {\left({\frac {S_{2}/{\sqrt {n_{2}}}}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}\right)} _{{\text{This is }}\cos \theta }-\underbrace {\frac {\mu _{1}-{\bar {X}}_{1}}{S_{1}/{\sqrt {n_{1}}}}} _{{\text{This is }}T_{1}}\cdot \underbrace {\left({\frac {S_{1}/{\sqrt {n_{1}}}}{\displaystyle {\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}}}\right)} _{{\text{This is }}\sin \theta }.\qquad \qquad \qquad (1)\end{aligned}}$
The fact that the sum of the squares of the expressions in parentheses above is 1 implies that they are the squared cosine and squared sine of some angle.
The Behren–Fisher distribution is actually the conditional distribution of the quantity (1) above, given the values of the quantities labeled cos θ and sin θ. In effect, Fisher conditions on ancillary information.
Fisher then found the "fiducial interval" whose endpoints are
    ${\bar {X}}_{2}-{\bar {X}}_{1}\pm A{\sqrt {{\frac {S_{1}^{2}}{n_{1}}}+{\frac {S_{2}^{2}}{n_{2}}}}}$
where A is the appropriate percentage point of the Behrens–Fisher distribution. Fisher claimed that the probability that μ$_2$ − μ$_1$ is in this interval, given the data (ultimately the Xs) is the probability that a Behrens–Fisher-distributed random variable is between −A and A.

### Fiducial intervals versus confidence intervals

Bartlett showed that this "fiducial interval" is not a confidence interval because it does not have a constant coverage rate. Fisher did not consider that a cogent objection to the use of the fiducial interval.