In a stochastic model, the notion of the usual exogeneity, sequential exogeneity, strong/strict exogeneity can be defined. Exogeneity is articulated in such a way that a variable or variables is exogenous for parameter. Even if a variable is exogenous for parameter, it might be endogenous for parameter. When the explanatory variables are not stochastic, then they are strong exogenous for all the parameters. If the independent variable is correlated with the error term in a regression model then the estimate of the regression coefficient in an ordinary least squares regression is biased; however if the correlation is not contemporaneous, then the coefficient estimate may still be consistent. There are many methods of correcting the bias, including instrumental variableregression and Heckman selection correction.
Static models
The following are some common sources of endogeneity.
Omitted variable
In this case, the endogeneity comes from an uncontrolled confounding variable, a variable that is correlated with both the independent variable in the model and with the error term. Assume that the "true" model to be estimated is but is omitted from the regression model. Then the model that is actually estimated is where . If the correlation of and is not 0 and separately affects , then is correlated with the error term. Here, is not exogenous for and, since, given, the distribution of depends not only on and, but also on and.
Suppose that a perfect measure of an independent variable is impossible. That is, instead of observing, what is actually observed is where is the measurement error or "noise". In this case, a model given by can be written in terms of observables and error terms as Since both and depend on, they are correlated, so the OLS estimation of will be biased downward. Measurement error in the dependent variable,, does not cause endogeneity, though it does increase the variance of the error term.
Simultaneity
Suppose that two variables are codetermined, with each affecting the other according to the following "structural" equations: Estimating either equation by itself results in endogeneity. In the case of the first structural equation,. Solving for while assuming that results in Assuming that and are uncorrelated with, Therefore, attempts at estimating either structural equation will be hampered by endogeneity.
Dynamic models
The endogeneity problem is particularly relevant in the context of time series analysis of causal processes. It is common for some factors within a causal system to be dependent for their value in period t on the values of other factors in the causal system in period t − 1. Suppose that the level of pest infestation is independent of all other factors within a given period, but is influenced by the level of rainfall and fertilizer in the preceding period. In this instance it would be correct to say that infestation is exogenous within the period, but endogenous over time. Let the model be y = f + u. If the variable x is sequential exogenous for parameter, and y does not cause x in the Granger sense, then the variable x is strongly/strictly exogenous for the parameter.
Simultaneity
Generally speaking, simultaneity occurs in the dynamic model just like in the example of static simultaneity above.