An R Introduction to Statistics

Simple Linear Regression

fractal-07h A simple linear regression model that describes the relationship between two variables x and y can be expressed by the following equation. The numbers α and β are called parameters, and ϵ is the error term.

y = α + βx+ ϵ

For example, in the data set faithful, it contains sample data of two random variables named waiting and eruptions. The waiting variable denotes the waiting time until the next eruptions, and eruptions denotes the duration. Its linear regression model can be expressed as:

Eruptions = α +β *W aiting + ϵ