Simple Linear Regression - Notes
Simple Linear Regression
Statistics in Practice: Alliance Data Systems
Alliance Data Systems (ADS) provides transaction processing, credit services, and marketing services.
ADS uses regression analysis to build models for direct market campaigns.
Regression models predict the probability of purchase and the amount spent by consumers.
Example: A retail store chain wanted to attract new customers.
ADS analysts selected a sample, sent promotional materials, and collected transaction data.
The consumer-specific variable that contributed most to predicting the amount purchased was the total amount of credit purchases at related stores over the past 39 months.
Estimated regression equation:
= amount of purchase
= amount spent at related stores
Someone spending $10,000 over the past 39 months at related stores would spend $47.20 when responding to the direct mail promotion.
The final model included other variables such as the absence/presence of a bank credit card, estimated income, and the average amount spent per trip at a selected store.
Simple Linear Regression
Regression analysis is used to develop an equation showing how variables are related.
The variable being predicted is the dependent variable (y).
The variable used to predict the dependent variable is the independent variable (x).
Simple linear regression involves one independent variable and one dependent variable with a straight-line relationship.
Multiple regression analysis involves two or more independent variables.
Simple Linear Regression Model
Armand’s Pizza Parlors: Quarterly sales (y) are related to the size of the student population (x).
Regression model:
and are parameters of the model.
is the error term (random variable).
Error term accounts for variability in y that cannot be explained by the linear relationship between x and y.
Simple Linear Regression Equation
Regression equation:
is the y-intercept of the regression line.
is the slope.
is the mean or expected value of y for a given value of x.
The regression line can be positive, negative, or have no relationship.
Estimated Regression Equation
Sample statistics and are estimates of and .
Estimated regression equation:
is the estimated value of y for a given value of x.
Least Squares Method
The least squares method is a procedure for using sample data to find the estimated regression equation.
Minimize the sum of the squares of the deviations between observed values and estimated values.
Least squares criterion:
Slope and y-intercept for the estimated regression equation:
Alternative formula for b1:
Example: Armand’s Pizza Parlors
Estimated regression equation:
An increase in the student population of 1000 is associated with an increase of $5000 in expected sales.
Coefficient of Determination
The coefficient of determination provides a measure of the goodness of fit for the estimated regression equation.
The ith residual is the difference between the observed value and the estimated value:
Sum of squares due to error (SSE):
Total sum of squares (SST):
Sum of squares due to regression (SSR):
Relationship among SST, SSR, and SSE:
Coefficient of determination:
represents the percentage of the total sum of squares that can be explained by using the estimated regression equation.
Correlation Coefficient
The correlation coefficient measures the strength of linear association between two variables.
Values are between -1 and +1.
Sample correlation coefficient:
The sign of the sample correlation coefficient is positive if the estimated regression equation has a positive slope and negative if the estimated regression equation has a negative slope.