Assumptions of Linear Regression
Linear regression relies on several fundamental assumptions that ensure the validity and effectiveness of the models. When these assumptions are violated, the model’s results can be misleading or inaccurate. Figure 6.1 presents the 5 assumptions.
6.1 Linearity
The first assumption of linear regression is that there is a linear relationship between the independent variables and the dependent variable. This means that changes in the dependent variable are proportional to changes in the independent variables. Graphically, this translates into a straight line when we plot the dependent variable against an independent variable.
The linear regression model seeks to find the best straight line that fits the data. If the true relationship is not linear, the model may fail to adequately capture the pattern in the data.
We can check this assumption using scatter plots between each independent variable and the dependent variable. If the relationship is linear, we will observe an approximately linear pattern in these plots.
If the true relationship is nonlinear (for example, quadratic or exponential), a linear model will not be able to adequately capture that relationship. This can lead to inaccurate predictions and erroneous interpretations of the model’s coefficients.
If the relationship is not linear, we can consider variable transformations (such as logarithm or square root) or use more flexible models, such as polynomial regression or other nonlinear models.

Figure 6.1. Assumptions of linear regression
Checking Linearity
Scatter plots can be used to visually verify linearity. A linear relationship is observed when the data follow a straight pattern without curvature.
Impact of Violation
If the relationship is not linear, the regression model may underestimate or overestimate the predicted values. Data transformation techniques or the use of nonlinear models can serve as alternatives when linearity is not satisfied.
Example
Imagine that we are modeling house prices (dependent variable) based on house size in square meters (independent variable). The linearity assumption suggests that each additional square meter increases the house price by a constant amount, which is not always true in the real world. In many real-world situations, relationships are rarely perfectly linear. What we look for is a reasonable approximation of linearity that is useful for our modeling purposes.
6.2 Independence
The independence assumption requires that observations be independent of one another. In other words, the error associated with one observation must not influence the error of another observation.
In statistical terms, this means that the errors (residuals) for different observations must be uncorrelated with each other.
This assumption is fundamental because many of the statistical procedures used in linear regression (such as significance tests and confidence intervals) depend on the independence of observations to be valid.
There are contexts in which independence is common, for example, in simple random sampling from a population, or in controlled experiments where experimental units are randomly assigned to treatments.
There are also contexts in which independence can be violated, for example, in time-series data (where observations close in time may be related); in spatial data (where observations geographically close to one another may be related); in repeated measures on the same individual; and in grouped or hierarchical data (such as students within schools).
When the independence assumption is violated, the standard errors of the coefficients may be underestimated, confidence intervals may be too narrow, and hypothesis tests may suffer from inflated Type I error rates (that is, rejecting the null hypothesis when it is true more frequently than the significance level suggests).
To detect violations, we can use a plot of residuals versus the order of observations (for temporal data); we can also use statistical tests such as the Durbin-Watson test (for autocorrelation in time series), as well as autocorrelation and partial autocorrelation analysis.
To address violations, we can, for example, use time-series models such as ARIMA for time-series data; if the data are spatial, we can use spatial regression models; and for repeated measures or grouped data, we can use mixed or hierarchical models.
Understanding the independence assumption is important not only for analysis, but also for study design. It can influence how we collect data and structure our analyses.
The independence assumption is often one of the most challenging to satisfy completely in real-world situations. Nevertheless, understanding its implications and knowing how to handle violations are essential for conducting robust and reliable statistical analyses.
Checking Independence
Independence can be assessed through the Durbin-Watson test, which checks for the presence of autocorrelation in the model’s residuals.
Impact of Violation
Violating independence, especially in time-series data, can lead to misleading inferences. Specific models, such as Autoregressive (AR) Linear Regression, can be used to handle autocorrelation.
Example
Imagine that we are analyzing student performance on a test. If we collect data from multiple students across different schools, we might violate the independence assumption, since students from the same school are likely to perform more similarly to one another than to students from other schools.
6.3 Homoscedasticity
Homoscedasticity assumes that the variance of the errors is constant across all values of the independent variables. In an ideal linear regression model, the residuals should exhibit constant variance across all levels of the predictor variables.
Checking Homoscedasticity
Plots of residuals versus fitted values are used to check homoscedasticity. Constant variance is evidenced by a uniform spread of residuals around the horizontal axis.
Impact of Violation
Heteroscedasticity, or non-constant variance, can affect the reliability of statistical inferences and the accuracy of confidence intervals. Methods such as data transformation or weighted regression can correct this violation.
6.4 Normality
The normality assumption refers to the normal distribution of the errors. For inferences based on the regression model to be valid, the residuals should follow a normal distribution.
Checking Normality
Histograms and normal probability plots (Q-Q plots) are frequently used to evaluate the normality of residuals.
Impact of Violation
A lack of normality can affect the accuracy of hypothesis tests and confidence intervals. Data transformations, such as logarithms or square roots, can be used to normalize the residuals.
6.5 Multicollinearity
Multicollinearity occurs when two or more independent variables are highly correlated with each other, which can make it difficult to determine the isolated effect of each variable on the dependent variable.
6.5.1 Checking Multicollinearity
The Variance Inflation Factor (VIF) is a common measure used to detect multicollinearity. VIF values above 10 indicate significant multicollinearity problems.
6.5.2 Impact of Violation
Multicollinearity can make regression coefficients unstable and difficult to interpret. Removing correlated variables or applying regularization techniques, such as Lasso or Ridge, can help mitigate this issue.