First some properties about the Sum of squared residuals and the linear regression function are restated. In particular three properties that an ideal fitted regression line must fulfill are discussed. Then, the R squared is defined using the measures of the Sum of squared residuals, the total sum of squares and the sum of explained squares.