see https://vowi.fsinf.at/images/f/f5/TU_Wien-Econometrics_for_Business_Informatics_VU_%28Schneider%29_-_Exercise_2_2024S.pdf