Specification error occurs when a statistical model is incorrectly defined, leading to biased and inconsistent estimates. This can arise from omitting relevant variables, including irrelevant variables, or mis-specifying the functional form of the model.