Formulas, Statistical Tables and R Commands: VVA Formula sheet
VVA Formula sheet VI (Regression)
Simple Linear Regression Equation
Performing a simple linear regression analysis results in a regression equation of the form:
To calculate the slope coefficient of the regression line, use of the following formula:
Once the slope is known, it is possible to calculate the intercept coefficient with the following formula:
Residuals
The residual of the observation is calculated as follows:
where is the observed value and the predicted value for observation .
Regression Sum of Squares
The total sum of squares, denoted , represents all the variation in that could possibly be explained by the regression model.
The model sum of squares, denoted , represents the amount of variation in the outcome variable that can be explained by the regression model.
The residual sum of squares, denoted , represents the amount of variation in the outcome variable that cannot be explained by the regression model.
Coefficient of Determination
The coefficient of determination, denoted , is the proportion of the total variation in the outcome variable that can be explained by the regression model.
Standard Error of the Estimate
The standard deviation of the errors is called the standard error of the estimate and is calculated as follows:
Standard Error of the Slope
The standard error of the slope is a measure of the amount of error we can reasonably expect when using sample data to estimate the slope of a linear regression model and is calculated with the following formula:
where is the standard error of the estimate.
Confidence Interval for the Slope of a Linear Model
The general formula for computing a for the slope is:
Where is the critical value of the distribution such that .
Hypothesis Test for the Slope of a Linear Model
The hypotheses of a two-sided test for the slope of a linear model are:
The relevant test statistic for the null hypothesis is:
Under the null hypothesis of the test, follows a -distribution with degrees of freedom: