Working–Hotelling procedure
# Working–Hotelling procedure

In statistics, particularly regression analysis, the Working–Hotelling procedure, named after Holbrook Working and Harold Hotelling, is a method of simultaneous estimation in linear regression models. One of the first developments in simultaneous inference, it was devised by Working and Hotelling for the simple linear regression model in 1929. It provides a confidence region for multiple mean responses, that is, it gives the upper and lower bounds of more than one value of a dependent variable at several levels of the independent variables at a certain confidence level. The resulting confidence bands are known as the Working–Hotelling–Scheffé confidence bands.

Like the closely related Scheffé's method in the analysis of variance, which considers all possible contrasts, the Working–Hotelling procedure considers all possible values of the independent variables; that is, in a particular regression model, the probability that all the Working–Hotelling confidence intervals cover the true value of the mean response is the confidence coefficient. As such, when only a small subset of the possible values of the independent variable is considered, it is more conservative and yields wider intervals than competitors like the Bonferroni correction at the same level of confidence. It outperforms the Bonferroni correction as more values are considered.

## Statement

### Simple linear regression

Consider a simple linear regression model $Y=\beta _{0}+\beta _{1}X+\varepsilon$, where $Y$ is the response variable and $X$ the explanatory variable, and let $b_{0}$ and $b_{1}$ be the least-squares estimates of $\beta _{0}$ and $\beta _{1}$ respectively. Then the least-squares estimate of the mean response $E(Y_{i})$ at the level $X=x_{i}$ is ${\hat {Y_{i}}}=b_{0}+b_{1}x_{i}$. It can then be shown, assuming that the errors independently and identically follow the normal distribution, that an $1-\alpha$ confidence interval of the mean response at a certain level of $X$ is as follows:

    ${\hat {y}}_{i}\in \left[b_{0}+b_{1}x_{i}\pm t_{\alpha /2,{\text{df}}=n-2}{\sqrt {\left({\frac {1}{n-2}}\sum _{j=1}^{n}e_{j}^{\,2}\right)\cdot \left({\frac {1}{n}}+{\frac {(x_{i}-{\bar {x}})^{2}}{\sum _{j=1}^{n}(x_{j}-{\bar {x}})^{2}}}\right)}}\right],$

where $\left({\frac {1}{n-2}}\sum _{j=1}^{n}e_{j}^{\,2}\right)$ is the mean squared error and $t_{\alpha /2,{\text{df}}=n-2}$ denotes the upper ${\frac {\alpha }{2}}^{\text{th}}$ percentile of Student's t-distribution with $n-2$ degrees of freedom.

However, as multiple mean responses are estimated, the confidence level declines rapidly. To fix the confidence coefficient at $1-\alpha$, the Working–Hotelling approach employs an F-statistic:

    ${\hat {y}}_{i}\in \left[b_{0}+b_{1}x_{i}\pm W{\sqrt {\left({\frac {1}{n-2}}\sum _{j=1}^{n}e_{j}^{\,2}\right)\cdot \left({\frac {1}{n}}+{\frac {(x_{i}-{\bar {x}})^{2}}{\sum _{j=1}^{n}(x_{j}-{\bar {x}})^{2}}}\right)}}\right],$

where $W^{2}=2F_{\alpha ,{\text{df}}=(2,n-2)}$ and $F$ denotes the upper $\alpha ^{\text{th}}$ percentile of the F-distribution with $(2,n-2)$ degrees of freedom. The confidence level of is $1-\alpha$ over all values of $X$, i.e. $x_{i}\in \mathbb {R}$.

### Multiple linear regression

The Working–Hotelling confidence bands can be easily generalised to multiple linear regression. Consider a general linear model as defined in the linear regressions article, that is,

    $\mathbf {Y} =\mathbf {X} {\boldsymbol {\beta }}+{\boldsymbol {\varepsilon }},\,$

where

    $\mathbf {Y} ={\begin{pmatrix}Y_{1}\\Y_{2}\\\vdots \\Y_{n}\end{pmatrix}},\quad \mathbf {X} ={\begin{pmatrix}\mathbf {x} _{1}^{\rm {T}}\\\mathbf {x} _{2}^{\rm {T}}\\\vdots \\\mathbf {x} _{n}^{\rm {T}}\end{pmatrix}}={\begin{pmatrix}x_{11}&\cdots &x_{1p}\\x_{21}&\cdots &x_{2p}\\\vdots &\ddots &\vdots \\x_{n1}&\cdots &x_{np}\end{pmatrix}},{\boldsymbol {\beta }}={\begin{pmatrix}\beta _{1}\\\beta _{2}\\\vdots \\\beta _{p}\end{pmatrix}},\quad {\boldsymbol {\varepsilon }}={\begin{pmatrix}\varepsilon _{1}\\\varepsilon _{2}\\\vdots \\\varepsilon _{n}\end{pmatrix}}.$

Again, it can be shown that the least-squares estimate of the mean response $E(Y_{i})=\mathbf {x} _{i}^{\rm {T}}{\boldsymbol {\beta }}$ is ${\hat {Y}}_{i}=\mathbf {x} _{i}^{\rm {T}}\mathbf {b}$, where $\mathbf {b}$ consists of least-square estimates of the entries in ${\boldsymbol {\beta }}$, i.e. $\mathbf {b} =(\mathbf {X} ^{\rm {T}}\mathbf {X} )^{-1}\mathbf {X} ^{\rm {T}}\mathbf {Y}$. Likewise, it can be shown that a $1-\alpha$ confidence interval for a single mean response estimate is as follows:

    ${\hat {y}}_{i}\in \left[\mathbf {x} _{i}^{\rm {T}}\mathbf {b} \pm t_{\alpha /2,{\text{df}}=n-p}{\sqrt {\operatorname {MSE} (\mathbf {x} _{i}^{\rm {T}}(\mathbf {X} ^{\rm {T}}\mathbf {X} )^{-1}\mathbf {x} _{i}}})\right],$

where $\operatorname {MSE}$ is the observed value of the mean squared error $(Y^{\rm {T}}Y-\mathbf {b} ^{\rm {T}}X^{\rm {T}}Y)$.

The Working–Hotelling approach to multiple estimations is similar to that of simple linear regression, with only a change in the degrees of freedom:

    ${\hat {y}}_{i}\in \left[\mathbf {x} _{i}^{\rm {T}}\mathbf {b} \pm W{\sqrt {\operatorname {MSE} (\mathbf {x} _{i}^{\rm {T}}(\mathbf {X} ^{\rm {T}}\mathbf {X} )^{-1}\mathbf {x} _{i}}})\right],$

where $W^{2}=2F_{\alpha ,{\text{df}}=(p,n-p)}$.

## Graphical representation

In the simple linear regression case, Working–Hotelling–Scheffé confidence bands, drawn by connecting the upper and lower limits of the mean response at every level, take the shape of hyperbolas. In drawing, they are sometimes approximated by the Graybill–Bowden confidence bands, which are linear and hence easier to graph:

    $\beta _{0}+\beta _{1}(x_{i}-{\bar {x}})\in \left[b_{0}+b_{1}(x_{i}-{\bar {x}})\pm m_{\alpha ,2,{\text{df}}=n-2}\cdot \left({\frac {1}{\sqrt {n}}}+{\frac {|x_{i}-{\bar {x}}|}{\sqrt {\sum _{j=1}^{n}(x_{j}-{\bar {x}})}}}\right)\right]$

where $m_{\alpha ,2,{\text{df}}=n-2}$denotes the upper $\alpha ^{\text{th}}$ percentile of the Studentized maximum modulus distribution with two means and $n-2$ degrees of freedom.

## Numerical example

The same data in ordinary least squares are utilised in this example:

    Height (m) 1.471.501.521.551.571.601.631.651.681.701.731.751.781.801.83 Weight (kg) 52.2153.1254.4855.8457.2058.5759.9361.2963.1164.4766.2868.1069.9272.1974.46

A simple linear regression model is fit to this data. The values of $b_{0}$ and $b_{1}$ have been found to be −39.06 and 61.27 respectively. The goal is to estimate the mean mass of women given their heights at the 95% confidence level. The value of $W^{2}$ was found to be $F_{0.95,{\text{df}}=(2,15-2)}=2.758828$. It was also found that ${\bar {x}}=1.651$, $\sum _{j=1}^{n}e_{j}^{\,2}=7.490558$, $\operatorname {MSE} =0.5761968$ and $\sum _{j=1}^{n}(x_{j}-{\bar {x}})^{2}=693.3726$. Then, to predict the mean mass of all women of a particular height, the following Working–Hotelling–Scheffé band has been derived:

    ${\hat {y}}_{i}\in \left[-39.06+61.27x_{i}\pm {\sqrt {2.758828\cdot 0.5761968\cdot \left({\frac {1}{15}}+{\frac {(x_{i}-1.651)^{2}}{693.3726}}\right)}}\right],$

which results in the graph on the left.

## Comparison with other methods

The Working–Hotelling approach may give tighter or looser confidence limits compared to the Bonferroni correction. In general, for small families of statements, the Bonferroni bounds may be tighter, but when the number of estimated values increases, the Working–Hotelling procedure will yield narrower limits. This is because the confidence level of Working–Hotelling–Scheffé bounds is exactly $1-\alpha$ when all values of the independent variables, i.e. $x_{i}\in \mathbb {R}$, are considered. Alternatively, from an algebraic perspective, the critical value $\pm {\sqrt {W}}$ remains constant as the number estimates of increases, whereas the corresponding values in Bonferonni estimates, $\pm t_{1-\alpha /g,{\text{df}}=n-p}$, will be increasingly divergent as the number $g$ of estimates increases. Therefore, the Working–Hotelling method is more suited for large-scale comparisons, whereas Bonferroni is preferred if only a few mean responses are to be estimated. In practice, both methods are usually used first and the narrower interval chosen.

Another alternative to the Working–Hotelling–Scheffé band is the Gavarian band, which is used when a confidence band is needed that maintains equal widths at all levels.

The Working–Hotelling procedure is based on the same principles as Scheffé's method, which gives family confidence intervals for all possible contrasts. Their proofs are almost identical. This is because both methods estimate linear combinations of mean response at all factor levels. However, the Working–Hotelling procedure does not deal with contrasts but with different levels of the independent variable, so there is no requirement that the coefficients of the parameters sum up to zero. Therefore, it has one more degree of freedom.

