# Simple linear regression

*34,199*pages on

this wiki

Assessment |
Biopsychology |
Comparative |
Cognitive |
Developmental |
Language |
Individual differences |
Personality |
Philosophy |
Social |

Methods |
Statistics |
Clinical |
Educational |
Industrial |
Professional items |
World psychology |

**Statistics:**
Scientific method ·
Research methods ·
Experimental design ·
Undergraduate statistics courses ·
Statistical tests ·
Game theory ·
Decision theory

A **simple linear regression** is a linear regression in which there is only one covariate (predictor variable). Simple linear regression is a form of multiple regression.

Simple linear regression is used in situations to evaluate the linear relationship between two variables. One example could be the relationship between muscle strength and lean body mass. Another way to put it is that simple linear regression is used to develop an equation by which we can predict or estimate a dependent variable given an independent variable.

The regression equation is given by

Where is the dependent variable, is the y intercept, is the gradient or slope of the line, is independent variable and is a random term.

The linear relationship between the two variables (i.e. dependent and independent) can be measured using a correlation coefficient e.g. the Pearson product moment correlation coefficient.

## Estimating the Regression Line Edit

The parameters of the linear regression line, , can be estimated using the method of Ordinary Least Squares. This method finds the line that minimizes the sum of the squares of the regression residuals, . The residual is the difference between the observed value and the predicted value:

The minimization problem can be solved using calculus, producing the following formulas for the estimates of the regression parameters:

Ordinary Least Squares produces the following features:

- The line goes through the point
- The sum of the residuals is equal to zero
- The estimates are unbiased

## Alternative formulas for the slope coefficient Edit

There are alternative (and simpler) formulas for calculating :

Here, r is the correlation coefficient of X and Y, s_{x} is the sample standard deviation of X and s_{y} is the sample standard deviation of Y.

## Inference Edit

Under the assumption that the error term is normally distributed, the estimate of the slope coefficient has a normal distribution with mean equal to **b** and standard error given by:

.

A confidence interval for *b* can be created using a t-distribution with N-2 degrees of freedom:

## Numerical Example Edit

Suppose we have the sample of points {(1,-1),(2,4),(6,3)}. The mean of X is 3 and the mean of Y is 2. The slope coefficient estimate is given by:

The standard error of the coefficient is 0.866. A 95% confidence interval is given by:

[0.5 - 0.866 x 12.7062, 0.5 + 0.866 x 12.7062] = [-10.504, 11.504].

This page uses Creative Commons Licensed content from Wikipedia (view authors). |