Statnote 16: fitting a regression line to data

Anthony Hilton, Richard A. Armstrong

Research output: Contribution to specialist publication or newspaperArticle


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.
Original languageEnglish
Number of pages3
Specialist publicationMicrobiologist
Publication statusPublished - Mar 2009


  • linear regression
  • data
  • correlation test


Dive into the research topics of 'Statnote 16: fitting a regression line to data'. Together they form a unique fingerprint.

Cite this