MEXICO CITY--Mexico's economy contracted in the fourth quarter on lower industrial output and agricultural production, the first quarterly decline in more than three years.