Regression Analysis
Regression Analysis
1
Objectives of regression analysis
2
Outlines
3
Regression with Examples
Regression analysis: It is concerned with the study of forming a mathematical equation of the
dependence of one variable (the dependent variable) on one or more other variables (the
independent variables).
Examples:
• The marketing director of a company may want to know how the demand for the company’s
product is related, to say advertising expenditure.
• Suppose the sales manager of a company say X, wants to determine how the number of credit
cards sell is related to the number of call.
4
Dependent and Independent variables with Example
Dependent variable: The dependent variable is the variable being predicted or estimated. It is
denoted by y.
Independent variable: The Independent Variable provides the basis for estimation. It is the
predictor variable. It is denoted by x. It is also called as Explanatory variable.
Example:
• If we want to know the expected weekly production of a company then
production will be the dependent variable and the predictor/independent
variables could be the capital, number of labours engaged, supply of raw
materials etc.
5
Types of Regression Model
6
Simple Linear Regression Model with Example
Suppose here,
X= Income and
Y= Expenditure
7
Multiple Linear Regression Model with Example
8
Estimate Simple linear regression Model
Slope
Intercept
9
Example of Estimation of regression coefficients with interpretation
Problem: Suppose a company’s owner wants to forecast sales on the basis of advertising expenses. The owner
would like to review the relationship between sales and the amount spent on advertising. Below is the
information on sales and advertising expense for the last four months:
𝑛
∑ ( 𝑥𝑖 − 𝑥 ) 2
July 2 7 𝑖 =1
August 1 3
September 3 8
October 4 10 𝑎= 𝑦 −𝑏 𝑥
10
Example of Estimation of regression coefficients with interpretation
Solution:
a) If we plot the data and draw scatter plot we get as below plot
Sales Revenue(Y)
12
10 10
8 8
Sales Revenue(Y)
Series1; 7
6 Sales Revenue(Y)
4
3
2
0
0.5 1 1.5 2 2.5 3 3.5 4 4.5
Advertising Expense(X)
11
Example of Estimation of regression coefficients with interpretation
Solution:
b) Let, Estimated Simple linear regression Model,
we know that,
4
x i
10
x i 1
2.5 and
n 4
4
y i
28
y i 1
7
n 4
∑ ( 𝑥𝑖−
𝑎= 𝑦 −𝑏 𝑥
𝑥) ( 𝑦𝑖 − 𝑦 )
𝑖 =1
𝑏= 𝑛
∑ ( 𝑥𝑖 − 𝑥 ) 2
𝑖 =1
12
Example of Estimation of regression coefficients with interpretation
x x y y
i i =
bˆ1 i 1 n
x x
2
i
i 1
ˆa0 y ˆ1 x
=7-2.2*2.5 =1.5
Now if we put the values the Estimated Simple linear regression Model,
,
13
Example of Estimation of regression coefficients with interpretation
c) Interpretation:
Sales Revenue(Y)
12
a=2.2 means that an increase of $1million in
advertising cost, the sales revenue will increase $2.2 10 f(x) = 2.2 x + 1.5
R² = 0.930769230769231
million.
8
Sales Revenue(Y)
Sales Revenue(Y)
6
Linear (Sales Revenue(Y))
0
0.5 1 1.5 2 2.5 3 3.5 4 4.5
Advertising Expense(X)
14
Prediction of Dependent variable in terms of independent variable and calculation of error
d) Now if x= 9, then
15
Coefficient of Determination()
16
17 ©Maksuda Akter Rubi