# Errors-in-variables models

34,200pages on
this wiki

In statistics, errors-in-variables models or measurement errors models are regression models that account for measurement errors in the independent variables. In contrast, standard regression models assume that those regressors have been measured exactly, or observed without error; as such, those models account only for errors in the dependent variables, or responses.

In the case when some regressors have been measured with errors, estimation based on the standard assumption leads to inconsistent estimates, meaning that the parameter estimates do not tend to the true values even in very large samples. For simple linear regression the effect is an underestimate of the coefficient, known as the attenuation bias. In non-linear models the direction of the bias is likely to be more complicated.[1]

## Motivational example Edit

Consider a simple linear regression model of the form

$y_t = \alpha + \beta x_t^* + \varepsilon_t\,, \quad t=1,\ldots,T,$

where x* denotes the true but unobserved value of the regressor. Instead we observe this value with an error:

$x_t = x^*_t + \eta_t\,,$

where the measurement error ηt is assumed to be independent from the true value x*t.

If the yt′s are simply regressed on the xt′s (see simple linear regression), then the estimator for the slope coefficient is

$\hat\beta = \frac{\tfrac{1}{T}\sum_{t=1}^T(x_t-\bar{x})(y_t-\bar{y})} {\tfrac{1}{T}\sum_{t=1}^T(x_t-\bar{x})^2}\,,$

which converges as the sample size T increases without bound:

$\hat\beta\ \xrightarrow{p}\ \frac{\operatorname{Cov}[\,x_t,y_t\,]}{\operatorname{Var}[\,x_t\,]} = \frac{\beta \sigma^2_{x^*}} {\sigma_{x^*}^2 + \sigma_\eta^2} = \frac{\beta} {1 + \sigma_\eta^2/\sigma_{x^*}^2}\,.$

Variances are non-negative, so that in the limit the estimate is smaller in magnitude than the true value of β, an effect which statisticians call attenuation or regression dilution.[2] Thus the "naїve" least squares estimator is inconsistent in this setting. However, the estimator is a consistent estimator of the parameter required for a best linear predictor of y given x: in some applications this may be what is required, rather than an estimate of the "true" regression coefficient, although that would assume that the variance of the errors in observing x* remains fixed. This follows directly from the result quoted immediately above, and the fact that the regression coefficient relating the yt′s to the actually observed xt′s, in a simple linear regression, is given by

$\beta_x = \frac{\operatorname{Cov}[\,x_t,y_t\,]}{\operatorname{Var}[\,x_t\,]} .$

It is this coefficient, rather than β, that would be required for constructing a predictor of y based on an observed x which is subject to noise.

It can be argued that almost all existing data sets contain errors of different nature and magnitude, so that attenuation bias is extremely frequent (although in multivariate regression the direction of bias is ambiguous.[3] Jerry Hausman sees this as an iron law of econometrics: "The magnitude of the estimate is usually smaller than expected."[4]

## Specification Edit

Usually measurement error models are described using the latent variables approach. If y is the response variable and x are observed values of the regressors, then we assume there exist some latent variables y* and x* which follow the model's "true" functional relationship g, and such that the observed quantities are their noisy observations:

$\begin{cases} x = x^* + \eta, \\ y = y^* + \varepsilon, \\ y^* = g(x^*\!,w\,|\,\theta), \end{cases}$

where θ is the model's parameter and w are those regressors which are assumed to be error-free (for example when linear regression contains an intercept, the regressor which corresponds to the constant certainly has no "measurement errors"). Depending on the specification these error-free regressors may or may not be treated separately; in the latter case it is simply assumed that corresponding entries in the variance matrix of η's are zero.

The variables y, x, w are all observed, meaning that the statistician possesses a data set of n statistical units {yi, xi, wi}i = 1, ..., n which follow the data generating process described above; the latent variables x*, y*, ε, and η are not observed however.

This specification does not encompass all the existing EiV models. For example in some of them function g may be non-parametric or semi-parametric. Other approaches model the relationship between y* and x* as distributional instead of functional, that is they assume that y* conditionally on x* follows a certain (usually parametric) distribution.

### Terminology and assumptions Edit

• The observed variable x may be called the manifest, indicator, or proxy variable.
• The unobserved variable x* may be called the latent or true variable. It may be regarded either as an unknown constant (in which case the model is called a functional model), or as a random variable (correspondingly a structural model).[5]
• The relationship between the measurement error η and the latent variable x* can be modeled in different ways:
• Classical errors: $\scriptstyle\eta\,\perp\,x^*,$ the errors are independent from the latent variable. This is the most common assumption, it implies that the errors are introduced by the measuring device and their magnitude does not depend on the value being measured.
• Mean-independence: $\scriptstyle\operatorname{E}[\eta|x^*]\,=\,0,$ the errors are mean-zero for every value of the latent regressor. This is a less restrictive assumption than the classical one, as it allows for the presence of heteroscedasticity or other effects in the measurement errors.
• Berkson's errors: $\scriptstyle\eta\,\perp\,x,$ the errors are independent from the observed regressor x. This assumption has very limited applicability. One example is round-off errors: for example if a person's age* is a continuous random variable, whereas the observed age is truncated to the next smallest integer, then the truncation error is approximately independent from the observed age. Another possibility is with the fixed design experiment: for example if a scientist decides to make a measurement at a certain predetermined moment of time x, say at x = 10 s, then the real measurement may occur at some other value of x* (for example due to her finite reaction time) and such measurement error will be generally independent from the "observed" value of the regressor.
• Misclassification errors: special case used for the dummy regressors. If x* is an indicator of a certain event or condition (such as person is male/female, some medical treatment given/not, etc.), then the measurement error in such regressor will correspond to the incorrect classification similar to type I and type II errors in statistical testing. In this case the error η may take only 3 possible values, and its distribution conditional on x* is modeled with two parameters: α = Pr[η=−1 | x*=1], and β = Pr[η=1 | x*=0]. The necessary condition for identification is that α+β<1, that is misclassification should not happen "too often". (This idea can be generalized to discrete variables with more than two possible values.)

## Linear model Edit

Linear errors-in-variables models were studied first, probably because linear models were so widely used and they are easier than non-linear ones. Unlike standard least squares regression (OLS), extending errors in variables regression (EiV) from the simple to the multivariate case is not straightforward.

### Simple linear modelEdit

The simple linear errors-in-variables model was already presented in the "motivation" section:

$\begin{cases} y_t = \alpha + \beta x_t^* + \varepsilon_t, \\ x_t = x_t^* + \eta_t, \end{cases}$

where all variables are scalar. Here α and β are the parameters of interest, whereas σε and ση — standard deviations of the error terms — are the nuisance parameters. The "true" regressor x* is treated as a random variable (structural model), independent from the measurement error η (classic assumption).

This model is identifiable in two cases: (1) either the latent regressor x* is not normally distributed, (2) or x* has normal distribution, but neither εt nor ηt are divisible by a normal distribution.[6] That is, the parameters α, β can be consistently estimated from the data set $\scriptstyle(x_t,\,y_t)_{t=1}^T$ without any additional information, provided the latent regressor is not Gaussian.

Before this identifiability result was established, statisticians attempted to apply the maximum likelihood technique by assuming that all variables are normal, and then concluded that the model is not identified. The suggested remedy was to assume that some of the parameters of the model are known or can be estimated from the outside source. Such estimation methods include:[7]

• Deming regression — assumes that the ratio δ = σ²ε/σ²η is known. This could be appropriate for example when errors in y and x are both caused by measurements, and the accuracy of measuring devices or procedures are known. The case when δ = 1 is also known as the orthogonal regression.
• Regression with known reliability ratio λ = σ²/ ( σ²η + σ²), where σ² is the variance of the latent regressor. Such approach may be applicable for example when repeating measurements of the same unit are available, or when the reliability ratio has been known from the independent study. In this case the consistent estimate of slope is equal to the least-squares estimate divided by λ.
• Regression with known σ²η may occur when the source of the errors in x's is known and their variance can be calculated. This could include rounding errors, or errors introduced by the measuring device. When σ²η is known we can compute the reliability ratio as λ = ( σ²xσ²η) / σ²x and reduce the problem to the previous case.

Newer estimation methods that do not assume knowledge of some of the parameters of the model, include:

• Method of moments — the GMM estimator based on the third- (or higher-) order joint cumulants of observable variables. The slope coefficient can be estimated from [8]
$\hat\beta = \frac{\hat{K}(n_1,n_2+1)}{\hat{K}(n_1+1,n_2)}, \quad n_1,n_2>0,$
where (n1,n2) are such that K(n1+1,n2) — the joint cumulant of (x,y) — is not zero. In the case when the third central moment of the latent regressor x* is non-zero, the formula reduces to
$\hat\beta = \frac{\tfrac{1}{T}\sum_{t=1}^T (x_t-\bar x)(y_t-\bar y)^2} {\tfrac{1}{T}\sum_{t=1}^T (x_t-\bar x)^2(y_t-\bar y)}\ .$
• Instrumental variables — a regression which requires that certain additional data variables z, called instruments, were available. These variables should be uncorrelated with the errors in the equation for the dependent variable, and they should also be correlated (relevant) with the true regressors x*. If such variables can be found then the estimator takes form
$\hat\beta = \frac{\tfrac{1}{T}\sum_{t=1}^T (z_t-\bar z)(y_t-\bar y)} {\tfrac{1}{T}\sum_{t=1}^T (z_t-\bar z)(x_t-\bar x)}\ .$

### Multivariate linear modelEdit

Multivariate model looks exactly like the linear model, only this time β, ηt, xt and x*t are 1 vectors.

$\begin{cases} y_t = \alpha + \beta'x_t^* + \varepsilon_t, \\ x_t = x_t^* + \eta_t. \end{cases}$

The general identifiability condition for this model remains an open question. It is known however that in the case when (ε,η) are independent and jointly normal, the parameter β is identified if and only if it is impossible to find a non-singular k×k block matrix [a A] (where a is a 1 vector) such that a′x* is distributed normally and independently from A′x*.[9]

Some of the estimation methods for multivariate linear models are:

• Total least squares is an extension of Deming regression to the multivariate setting. When all the k+1 components of the vector (ε,η) have equal variances and are independent, this is equivalent to running the orthogonal regression of y on the vector x — that is, the regression which minimizes the sum of squared distances between points (yt,xt) and the k-dimensional hyperplane of "best fit".
• The method of moments estimator [10] can be constructed based on the moment conditions E[zt·(ytαβ'xt)] = 0, where the (5k+3)-dimensional vector of instruments zt is defined as
\begin{align} & z_t = \left( 1\ z_{t1}'\ z_{t2}'\ z_{t3}'\ z_{t4}'\ z_{t5}'\ z_{t6}'\ z_{t7}' \right)', \quad \text{where} \\ & z_{t1} = x_t \ast x_t \\ & z_{t2} = x_t y_t \\ & z_{t3} = y_t^2 \\ & z_{t4} = x_t \ast x_t \ast x_t - 3\big(\operatorname{E}[x_tx_t']\ast I_k\big)x_t \\ & z_{t5} = x_t \ast x_t y_t - 2\big(\operatorname{E}[y_tx_t']\ast I_k\big)x_t - y_t\big(\operatorname{E}[x_tx_t']\ast I_k\big)\iota_k \\ & z_{t6} = x_t y_t^2 - \operatorname{E}[y_t^2]x_t - 2y_t\operatorname{E}[x_ty_t] \\ & z_{t7} = y_t^3 - 3y_t\operatorname{E}[y_t^2] \end{align}
where * designates the Hadamard product of matrices, and variables xt, yt have been preliminarily de-meaned. The authors of the method suggest to use Fuller's modified IV estimator.[11]
This method can be extended to use moments higher than the third order, if necessary, and to accommodate variables measured without error.[12]
• The instrumental variables approach requires to find additional data variables zt which would serve as instruments for the mismeasured regressors xt. This method is the simplest from the implementation point of view, however its disadvantage is that it requires to collect additional data, which may be costly or even impossible. When the instruments can be found, the estimator takes standard form
$\hat\beta = \big(X'Z(Z'Z)^{-1}Z'X\big)^{-1}X'Z(Z'Z)^{-1}Z'y.$

## Non-linear models Edit

A generic non-linear measurement error model takes form

$\begin{cases} y_t = g(x^*_t) + \varepsilon_t, \\ x_t = x^*_t + \eta_t. \end{cases}$

Here function g can be either parametric or non-parametric. When function g is parametric it will be written as g(x*, β).

For a general vector-valued regressor x* the conditions for model identifiability are not known. However in the case of scalar x* the model is identified unless the function g is of the "log-exponential" form [13]

$g(x^*) = a + b \ln\big(e^{cx^*} + d\big)$

and the latent regressor x* has density

$f_{x^*}(x) = \begin{cases} A e^{-Be^{Cx}+CDx}(e^{Cx}+E)^{-F}, & \text{if}\ d>0 \\ A e^{-Bx^2 + Cx} & \text{if}\ d=0 \end{cases}$

where constants A,B,C,D,E,F may depend on a,b,c,d.

Despite this optimistic result, as of now no methods exist for estimating non-linear errors-in-variables models without any extraneous information. However there are several techniques which make use of some additional data: either the instrumental variables, or repeated observations.

### Instrumental variables methodsEdit

• Newey's simulated moments method [14] for parametric models — requires that there is an additional set of observed predictor variabels zt, such that the true regressor can be expressed as
$x^*_t = \pi_0'z_t + \sigma_0 \zeta_t,$
where π0 and σ0 are (unknown) constant matrices, and ζtzt. The coefficient π0 can be estimated using standard least squares regression of x on z. The distribution of ζt is unknown, however we can model it as belonging to a flexible parametric family — the Edgeworth series:
$f_\zeta(v;\,\gamma) = \phi(v)\,\textstyle\sum_{j=1}^J \!\gamma_j v^j$
where ϕ is the standard normal distribution. Simulated moments can be computed using the importance sampling algorithm: first we generate several random variables {vts ~ ϕ, s = 1,…,S, t = 1,…,T} from the standard normal distribution, then we compute the moments at t-th observation as
$m_t(\theta) = A(z_t) \frac{1}{S}\sum_{s=1}^S H(x_t,y_t,z_t,v_{ts};\theta) \sum_{j=1}^J\!\gamma_j v_{ts}^j,$
where θ = (β, σ, γ), A is just some function of the instrumental variables z, and H is a two-component vector of moments
\begin{align} & H_1(x_t,y_t,z_t,v_{ts};\theta) = y_t - g(\hat\pi'z_t + \sigma v_{ts}, \beta), \\ & H_2(x_t,y_t,z_t,v_{ts};\theta) = z_t y_t - (\hat\pi'z_t + \sigma v_{ts}) g(\hat\pi'z_t + \sigma v_{ts}, \beta) \end{align}
With moment functions mt one can apply standard GMM technique to estimate the unknown parameter θ.

### Repeated observationsEdit

In this approach two (or maybe more) repeated observations of the regressor x* are available. Both observations contain their own measurement errors, however those errors are required to be independent:

$\begin{cases} x_{1t} = x^*_t + \eta_{1t}, \\ x_{2t} = x^*_t + \eta_{2t}, \end{cases}$

where x*η1η2. Variables η1, η2 need not be identically distributed (although if they are efficiency of the estimator can be slightly improved). With only these two observations it is possible to consistently estimate the density function of x* using Kotlarski's deconvolution technique.[15]

• Li's conditional density method[16] for parametric models. The regression equation can be written in terms of the observable variables as
$\operatorname{E}[\,y_t|x_t\,] = \int g(x^*_t,\beta) f_{x^*|x}(x^*_t|x_t)dx^*_t ,$
where it would be possible to compute the integral if we knew the conditional density function ƒx*|x. If this function could be known or estimated, then the problem turns into standard non-linear regression, which can be estimated for example using the NLLS method.
Assuming for simplicity that η1, η2 are identically distributed, this conditional density can be computed as
$\hat f_{x^*|x}(x^*|x) = \frac{\hat f_{x^*}(x^*)}{\hat f_{x}(x)} \prod_{j=1}^k \hat f_{\eta_{j}}\big( x_{j} - x^*_{j} \big),$
where with slight abuse of notation xj denotes the j-th component of a vector.
All densities in this formula can be estimated using inversion of the empirical characteristic functions. In particular,
\begin{align} & \hat \varphi_{\eta_j}(v) = \frac{\hat\varphi_{x_j}(v,0)}{\hat\varphi_{x^*_j}(v)}, \quad \text{where } \hat\varphi_{x_j}(v_1,v_2) = \frac{1}{T}\sum_{t=1}^T e^{iv_1x_{1tj}+iv_2x_{2tj}}, \ \ \hat\varphi_{x^*_j}(v) = \exp \int_0^v \frac{\partial\hat\varphi_{x_j}(0,v_2)/\partial v_1}{\hat\varphi_{x_j}(0,v_2)}dv_2, \\ & \hat \varphi_x(u) = \frac{1}{2T}\sum_{t=1}^T \Big( e^{iu'x_{1t}} + e^{iu'x_{2t}} \Big), \quad \hat \varphi_{x^*}(u) = \frac{\hat\varphi_x(u)}{\prod_{j=1}^k \hat\varphi_{\eta_j}(u_j)}. \end{align}
In order to invert these characteristic function one has to apply the inverse Fourier transform, with a trimming parameter C needed to ensure the numerical stability. For example:
$\hat f_x(x) = \frac{1}{(2\pi)^k} \int_{-C}^{C}\cdots\int_{-C}^C e^{-iu'x} \hat\varphi_x(u) du.$
• Schennach's estimator[17] for a parametric linear-in-parameters nonlinear-in-variables model. This is a model of the form
$\begin{cases} y_t = \textstyle \sum_{j=1}^k \beta_j g_j(x^*_t) + \sum_{j=1}^\ell \beta_{k+j}w_{jt} + \varepsilon_t, \\ x_{1t} = x^*_t + \eta_{1t}, \\ x_{2t} = x^*_t + \eta_{2t}, \end{cases}$
where wt represents variables measured without errors. The regressor x* here is scalar (the method can be extended to the case of vector x* as well).
If not for the measurement errors, this would have been a standard linear model with the estimator
$\hat{\beta} = \big(\hat{\operatorname{E}}[\,\xi_t\xi_t'\,]\big)^{-1} \hat{\operatorname{E}}[\,\xi_t y_t\,],$
where
$\xi_t'= (g_1(x^*_t), \cdots ,g_k(x^*_t), w_{1,t}, \cdots , w_{l,t}).$
It turns out that all the expected values in this formula are estimable using the same deconvolution trick. In particular, for a generic observable wt (which could be 1, w1t, …, wℓ  t, or yt) and some function h (which could represent any gj or gigj) we have
$\operatorname{E}[\,w_th(x^*_t)\,] = \frac{1}{2\pi} \int_{-\infty}^\infty \varphi_h(-u)\psi_w(u)du,$
where φh is the Fourier transform of h(x*), but using the same convention as for the characteristic functions,
$\varphi_h(u)=\int e^{iux}h(x)dx$,
and
$\psi_w(u) = \operatorname{E}[\,w_te^{iux^*}\,] = \frac{\operatorname{E}[w_te^{iux_{1t}}]}{\operatorname{E}[e^{iux_{1t}}]} \exp \int_0^u i\frac{\operatorname{E}[x_{2t}e^{ivx_{1t}}]}{\operatorname{E}[e^{ivx_{1t}}]}dv$
The resulting estimator $\scriptstyle\hat\beta$ is consistent and asymptotically normal.
• Schennach's estimator [18] for a nonparametric model. The standard Nadaraya–Watson estimator for a nonparametric model takes form
$\hat{g}(x) = \frac{\hat{\operatorname{E}}[\,y_tK_h(x^*_t - x)\,]}{\hat{\operatorname{E}}[\,K_h(x^*_t - x)\,]},$
for a suitable choice of the kernel K and the bandwidth h. Both expectations here can be estimated using the same technique as in the previous method.

## Notes Edit

1. Greene 2003, Chapter 5.6.1
2. Wansbeek and Meijer 2000
3. Hausman 2001, p. 58
4. Fuller 1987, p. 2
5. Reiersøl 1950, p. 383. A somewhat more restrictive result was established earlier by R. C. Geary in "Inherent relations between random variables", Proceedings of Royal Irish Academy, vol.47 (1950). He showed that under the additional assumption that (ε, η) are jointly normal, the model is not identified if and only if x*s are normal.
6. Fuller 1987, ch. 1
7. Pal 1980, §6
8. Bekker 1986. An earlier proof by Y. Willassen in "Extension of some results by Reiersøl to multivariate models", Scand. J. Statistics, 6(2) (1979) contained errors.
9. Dagenais & Dagenais 1997. In the earlier paper (Pal 1980) considered a simpler case when all components in vector (ε, η) are independent and symmetrically distributed.
10. Fuller 1987
11. Erickson & Whited 2002
12. Schennach, Hu & Lewbel 2007
13. Newey 2001
14. Li & Vuong 1998
15. Li 2002
16. Schennach 2004a
17. Schennach 2004b

## References Edit

• Bekker, Paul A. (1986), "Comment on identification in the linear errors in variables model", Econometrica 54 (1): 215–217, doi:10.2307/1914166
• Chesher, Andrew (1991), "The effect of measurement error", Biometrika 78 (3): 451–462, doi:10.1093/biomet/78.3.451
• Dagenais, Marcel G.; Dagenais, Denyse L. (1997), "Higher moment estimators for linear regression models with errors in the variables", Journal of Econometrics 76: 193–221, doi:10.1016/0304-4076(95)01789-5
• Erickson, Timothy; Whited, Toni M. (2002), "Two-step GMM estimation of the errors-in-variables model using high-order moments", Econometric Theory 18 (3): 776–799
• Fuller, Wayne A. (1987), Measurement error models, John Wiley & Sons, Inc, ISBN 0-471-86187-1
• Greene, William H. (2003), Econometric analysis (5th ed.), New Jersey: Prentice Hall, ISBN 0-13-066189-9
• Griliches, Zvi; Ringstad, Vidar (1970), "Errors-in-the-variables bias in nonlinear contexts", Econometrica 38 (2): 368–370, doi:10.2307/1913020
• Hausman, Jerry A. (2001), "Mismeasured variables in econometric analysis: problems from the right and problems from the left", The Journal of Economic Perspectives 15 (4): 57–67, doi:10.1257/jep.15.4.57
• Jung, Kang-Mo (2007) "Least Trimmed Squares Estimator in the Errors-in-Variables Model", Journal of Applied Statistics, 34 (3), 331–338.
1. REDIRECT Template:Doi