Economic foundations

An economist compares a model's predictions with observed data. What is the main purpose of this comparison?