Residual analysis is a statistical technique used to check the validity of a model by examining the discrepancies between observed outcomes and those predicted by the model. In the context of epidemiology, residual analysis helps to assess the goodness-of-fit of models used to study the distribution and determinants of health-related states or events.