In regression analysis, model specification is the process of developing a regression model. This process consists of selecting an appropriate functional form for the model and choosing which variables to include. For instance, one may specify the functional relationship [math]\displaystyle{ y = f(s,x) }[/math] between personal income [math]\displaystyle{ y }[/math] and human capital, with the latter proxied by schooling [math]\displaystyle{ s }[/math] and on-the-job experience [math]\displaystyle{ x, }[/math] as[1]
where [math]\displaystyle{ \varepsilon }[/math] is the unexplained error term that is supposed to be independent and identically distributed. If assumptions of the regression model are correct, the least squares estimates of the parameters [math]\displaystyle{ \rho }[/math] and [math]\displaystyle{ \beta }[/math] will be efficient and unbiased. Hence specification diagnostics usually involve testing the first to fourth moment of the residuals.[2]
Specification error occurs when the functional form or the choice of independent variables does not coincide with that of the true underlying process. In particular, bias (the expected value of the difference of an estimated parameter and the true underlying value) occurs if an independent variable is correlated with the errors inherent in the underlying process. There are several different causes of specification error:
The Ramsey RESET test can help test for specification error.
Building a model involves finding a set of relationships that coincide with the underlying process that is generating the data. This requires avoiding all the sources of misspecification mentioned above. It is best to start with a model in general form that relies on a theoretical understanding of the underlying process; then the model can be fit to the data and checked for the various sources of misspecification, in the process called regression validation. Theoretical understanding can then guide the modification of the model in such a way as to retain theoretical validity while removing the sources of misspecification. But if it proves impossible to find a theoretically acceptable specification that fits the data, the theoretical model may have to be rejected and replaced with another one.