Module 4 Regression Models
Module 4 Regression Models
City of Olongapo
GORDON COLLEGE
Olongapo City Sports Complex, Donor St., East Tapinac, Olongapo City
www.gordoncollege.edu.ph
Quantitative Methods
Module 4: Regression Models
I. Introduction
Regression analysis is a very valuable tool for today’s manager. Regression has been used
to model such things as the relationship between level of education and income, the price of a
house and the square footage, and the sales volume for a company relative to the dollars spent
on advertising. When businesses are trying to decide which location is best for a new store or
branch office, regression models are often used. Cost estimation models are often regression
models. The applicability of regression analysis is virtually limitless.
There are generally two purposes for regression analysis. The first is to understand the
relationship between variables such as advertising expenditures and sales. The second purpose
is to predict the value of one variable based on the value of the other. Because of this, regression
is a very important forecasting technique.
In this course, we will introduce you to the following:
• Scatter Diagram
• Simple Linear Regression
• Measuring the Fit of the Regression Model
• Using Computer Software for Regression
• Assumptions of the Regression Model
• Testing the Model for Significance
A. Scatter Diagram
◼ Regression models are used to test if there is a relationship between variables (predict
sales based on payroll)
◼ There is some random error that cannot be predicted
Y = 0 + 1X +
◼ True values for the slope and intercept are not known so they are estimated using
sample data
Yˆ = b0 + b1 X
Y = Sales
X = Area payroll
◼ The line chosen in scatter diagram is the one that minimizes the errors
◼ Errors can be positive or negative so the average error could be zero even though
individual errors could be large.
◼ Least squares regression minimizes the sum of the squared errors.
◼ For the simple linear regression model, the values of the intercept and slope can
be calculated using the formulas below
Yˆ = b0 + b1 X
Coefficient of Determination
SSR SSE
r2 = = 1−
SST SST
Example: Triple A Construction
15.625
r2 = = 0.6944 About 69% of the variability in Y is explained
22.5 by the equation based on payroll (X)
Correlation Coefficient
r = 0.6944 = 0.8333
◼ Nonlinear relationship
o Errors consistently increasing and then consistently decreasing indicate that
the model is not linear
◼ Errors are assumed to have a constant variance ( 2), but we usually don’t know this
◼ It can be estimated using the mean squared error (MSE), s2
SSE
s 2 = MSE =
n− k −1
where,
n = number of observations in the sample
k = number of independent variables
◼ When the sample size is too small, you can get good values for MSE and r2 even if
there is no relationship between the variables
◼ Testing the model for significance helps determine if the values are meaningful\
◼ We do this by performing a statistical hypothesis test
◼ We start with the general linear model
Y = 0 + 1X +
◼ If 1 = 0, the null hypothesis is that there is no relationship between X and Y
◼ The alternate hypothesis is that there is a linear relationship (1 ≠ 0)
◼ If the null hypothesis can be rejected, we have proven there is a relationship
◼ We use the F statistic for this test
◼ The F statistic is based on the MSE and MSR
SSR
MSR = where,
k k = number of independent variables in the model
◼ The F statistic is
This describes an F distribution with
MSR
F= degrees of freedom for the numerator = df1 = k
MSE degrees of freedom for the denominator = df2 = n – k – 1
◼ If there is very little error, the MSE would be small and the F-statistic would be large
indicating the model is useful
◼ If the F-statistic is large, the significance level (p-value) will be low, indicating it is
unlikely this would have occurred by chance
◼ So, when the F-value is large, we can reject the null hypothesis and accept that there
is a linear relationship between X and Y and the values of the MSE and r2 are
meaningful
2. Select the level of significance (). Common values are 0.01 and 0.05
3. Calculate the value of the test statistic using the formula
MSR
F=
MSE
4. Make a decision using one of the following methods
a. Reject the null hypothesis if the test statistic is greater than the F-value from
the table. Otherwise, do not reject the null hypothesis:
b. Reject the null hypothesis if the observed significance level, or p-value, is less
than the level of significance (). Otherwise, do not reject the null
hypothesis:
Step 4: Reject the null hypothesis if the test statistic is greater than the F-
value in the table.
r2 Coefficient of Determination
Coefficient Hypothesis
◼ ANOVA shows the observed significance level (p-value) for the calculated F
value.
◼ This can be compared to the level of significance ( ) to make a decision.
◼ Because this probability is less than 0.05, we reject the null hypothesis of no
linear relationship and conclude there is a linear relationship between X and Y
Learning Tasks
A. Explore
a. Use MS Excel with the data given below to find the regression model. Take a
screenshot of the output and paste it inside the box. (10pts)
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________
B. Explain
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
__________________________________________________________________
_____________________________________________
C. Engage
Judith Thompson runs a florist shop on the Gulf Coast of Texas, specializing
in floral arrangements for weddings and other special events. She advertises
weekly in the local newspapers and is considering increasing her advertising
budget. Before doing so, she decides to evaluate the past effectiveness of these
ads. Five weeks are sampled, and the advertising dollars and sales volume for each
of these is shown in the following table.
References
1. Render, Stair, Hannah. 2012. “Quantitative Analysis for Management Global Edition
11th Edition. Retrieve from:
https://wps.pearsoned.co.uk/ema_ge_render_qam_11/202/51951/13299709.cw/-
/t/index.html
2. MooMooMath and Science (20218, March 7). How to draw line of best fit
(Scatterplot) [Video]. YouTube.
https://www.youtube.com/watch?v=l2BOZDosuIk&feature=emb_logo
3. Babbie, Earl R. The Practice of Social Research. 12th ed. Belmont, CA: Wadsworth
Cengage, 2010; Muijs, Daniel. Doing Quantitative Research in Education with SPSS.
2nd edition. London: SAGE Publications, 2010.