- https://doi.org/10.20982/tqmp.20.2.p186
From Scratch: A Didactic Example of Multivariate Regression in Python
- Jul 1, 2024
- The Quantitative Methods for Psychology
- Godwin S Ashiabi
Abstract
Although Python has the statsmodels library that can be used to perform different statistical analyses, including multiple regression, it has not yet implemented multivariate regression (MVR) as one of its methods. An investigator interested in conducting a multivariate regression is thus limited to running a series of univariate regression models, which do not take into account the collinearity among variables in the models. Thus, the purpose of this tutorial is to demonstrate how to perform multivariate regression in Python using custom user-defined classes, and linear hypothesis testing using statsmodels.