Skip to content

Multivariate Regression

Most of the statistically analyzed data does not necessarily have one response variable and one explanatory variable. In most cases, the number of variables can vary depending on the study. Generally one dependent variable depends on multiple factors. For example, the rent of a house depends on many factors like the neighborhood it is in, size of it, no.of rooms, attached facilities, distance of nearest station from it, distance of nearest shopping area from it, etc. How do we deal with such scenarios?

To measure the relationships between these multidimensional variables, multivariate regression is used. Multivariate regression, also known as multiple regression, is a statistical technique used to analyze the relationship between a dependent variable and multiple independent variables. It is a fundamental tool in statistics and data analysis, often used in fields such as economics, social sciences, and natural sciences to understand how several factors collectively influence an outcome. It extends the concept of simple linear regression, where you have one dependent variable and one independent variable, to situations where there are multiple independent variables that may collectively influence the dependent variable. Once the multivariate regression is applied to the dataset, this method is then used to predict the behaviour of the response variable based on its corresponding predictor variables.

A scehmatic representation of multiple regression is shown in the following figure. The residence price (dependent variable) is predicted by the floorsArea and floors (independent variables).

Multiple regression: a schematic representation

Key Components

The fundamental building blocks of multivariate regression are the:

  • Dependent Variable ()

    The variable to be predicted or explained. It is the outcome or response variable of interest.

  • Independent Variables ()

    These are the predictor variables or features that you believe have an influence on the dependent variable. You can have multiple independent variables, and they can be categorical or continuous.

  • Regression Equation

    The basic idea behind multivariate regression is to model the dependent variable as a linear combination of the independent variables. The equation for multivariate regression typically takes the following form:

    where represents the dependent variable, are the independent variables, is the intercept (the expected value of when all independent variables are zero), are the coefficients that represent the change in associated with a one-unit change in each respective independent variable while holding all other variables constant and is the error term, which accounts for unexplained variability in the dependent variable. Based on the nature of the data and the underlying connection between the variables, when the relationship appears linear, curvilinear or follows an exponential pattern, linear regression, polynomial or exponential regression are possible model types that can be used (see more details in Section Fitting a Model).

How it is performed

The goal in the multivariate regression is to estimate the values of the coefficients that best fit the data and provides meaningful insights into the relationship being studied. The most common method for estimating these coefficients is the method of ordinary least squares (OLS), which minimizes the sum of the squared differences between the observed and predicted values of the dependent variable.

Model Assessment

Once the model is validated and interpreted, it can be used to predict the dependent variable's values for new or unseen data by providing values for the independent variables. Upon estimating the coefficients, the assessment of the model's goodness of fit and statistical significance is needed. Key tools for this include:

  • R-squared (R2): A measure of how well the model explains the variance in the dependent variable.
  • p-values: These indicate whether each independent variable is statistically significant in explaining the dependent variable. Lower p-values suggest greater significance.
  • coefficients : provide insights into how each independent variable contributes to changes in the dependent variable. A positive coefficient indicates a positive relationship, while a negative coefficient indicates a negative relationship.

Assumptions

Multivariate regression is a parametric approach. Parametric means it makes assumptions about data for the purpose of analysis. Due to its parametric side, regression is restrictive in nature. It fails to deliver good results with data sets which doesn't fulfill its assumptions. Therefore, for a successful regression analysis, it's essential to validate these assumptions. Violations of assumptions of linear regression can lead to biased or inefficient estimates, and it is important to assess and address these violations for accurate and reliable regression results.

The basic assumptions of the multi-regression include:

  • Linearity: The relationship between the dependent and independent variables is linear.
  • Independence: The observations are independent of each other.
  • Homoscedasticity: The variance of the errors is constant across all levels of the independent variables.
  • Normality of Residuals: The errors follow a normal distribution.
  • No multicollinearity: The independent variables are not highly correlated with each other.
  • No endogeneity: There is no relationship between the errors and the independent variables.

CosMO is capable to validate all the assumptions providing the corresponding messages to the user.