Statnote 16: fitting a regression line to data

Research output: Contribution to specialist publicationArticle

View graph of relations Save citation


Research units


Fitting a linear regression to data provides much more information about the relationship between two variables than a simple correlation test. A goodness of fit test of the line should always be carried out. Hence, ‘r squared’ estimates the strength of the relationship between Y and X, ANOVA whether a statistically significant line is present, and the ‘t’ test whether the slope of the line is significantly different from zero. In addition, it is important to check whether the data fit the assumptions for regression analysis and, if not, whether a transformation of the Y and/or X variables is necessary.

Request a copy

Request a copy


Original languageEnglish
Number of pages3
Publication statusPublished - Mar 2009


  • linear regression, data, correlation test

Employable Graduates; Exploitable Research

Copy the text from this field...