Regression Solution
Regression Solution
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
SIMPLE REGRESSION
REGRESSION LINE
y = a + bx
b = nΣxy – ΣxΣy
nΣx2 – (Σx) 2
a = mean of y – b (mean of x)
Page 1 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Example 1
Following table based on the sales(thousands) and advertising expenses of company for last six
years
Years Advertising expanse Sales(thousands)
(millions) y
x
2015 5 2
2016 6 3
2017 8 4
2018 10 7
2019 12 8
2020 16 10
Required:
(i) Regression line for estimating sales volume
(ii) Estimate sales volume for the year 2021 if advertising expense would be 20 millions
(iii) Describe the relationship.
Solution:
x y xy x2 ŷ (y- ŷ) (y- ŷ) 2 (X-Meanx) (X-Meanx) 2
5 2 10 25 -1.5+0.75(5)= 2-2.25 = 0.0625 -4.5 20.25
2.25 -0.25
6 3 18 36 -1.5+0.75(6)= 0 0 -3.5 12.25
3.0
8 4 32 64 -1.5+0.75(8)= -0.5 0.25 -1.5 2.25
4.5
10 7 70 100 -1.5+0.75(10)= 1 1 0.5 0.25
6.0
12 8 96 144 -1.5+0.75(12= 0.5 0.25 2.5 6.25
7.5
16 10 160 256 -1.5+0.75(16)= -0.5 0.25 6.5 42.25
10.5
57 34 386 625 1.8125 83.5
y=a+bx
b= nΣxy – ΣxΣy
nΣx2 – (Σx) 2
b= 6(386) – 57(34)
6(625) – (57) 2
b= 2316– 1938
3750 – 3249
Page 2 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
b= 378
501
x=20
Question # 1
X 2.80 2.10 3.75 2.80 2.55 3.00 2.50 2.20 2.90 3.80 2.70 3.45
Y 3.94 2.63 3.20 3.57 2.25 2.80 3.40 2.00 3.70 3.97 3.20 3.90
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Page 3 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Ans:, y=0.75X+.05
Y= 1.059+0.748X
Question # 2
X 3 7 5 4 3 3 9 6
Y 8 3 2 2 3 4 3 7
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Y= 5.029 – 0.206X
Y= 5.029 – 0.206(4.5)
Y= 4.102
Question # 3
Calculate the equation of the least squares regression line of y on x from the following
data.
X 1 3 3 4 5 5
Y 5 3 2 2 0 1
Coefficientsa
Page 4 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Question # 4
An organization has collected the following data showing relationship between price charged and
quantities sold:
Price 5 6 7 8 9 10 12 13
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Y=653.266 – 14.302X
If X=18
Y= 395.83
Page 5 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Question # 5
The manager of an educational computer facility would like to develop a model to predict the
number of services calls per annum for interactive terminals based upon the age of the terminal.
sample of 10 terminals was selected. The data follows:
Terminal 1 2 3 4 5 6 7 8 9 10
No.of service calls 3 4 3 5 5 7 8 10 10 12
Age(years) 1 1 2 2 3 3 4 4 5 5
Ans: Y= 0.092+0.434X
Question # 6
Compute the regression line for estimating weight (cm.) of six adults.
Question # 7
A personnel officer is studying performances of job applicants on two tests given when the
applicant contacts the firm. The first test measures mental ability; the second measure potential
for success in the job. The test-score results of a sample of eleven applicants are shown below:
Applicants A B C D E F G H I J K
Mental 37 40 36 49 36 40 39 47 32 65 27
ability
Potential 63 42 41 39 38 49 25 29 15 52 25
Question # 8
The following data were obtained in a study of the relationship between the weight and chest
size of infants at birth:
Page 6 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Weight(kg) 3.71 2.31 4.30 3.21 4.32 2.75 5.52 2.15 4.41
Chest size 28.7 28.3 30.3 27.2 27.7 29.5 36.5 26.3 32.2
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Y= 21.696 + 2.186X
Question # 13
A firm trains employees to use a statistical software package. A random sample of trainees
turned in the following performance:
Traine
Hours of Training (x) Number of errors (y)
e
A 1 6
B 4 3
C 6 2
D 8 1
E 2 5
F 3 4
G 1 7
Page 7 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Y=6.825 – 0.791X
If X=5
Y= 2.87
Question # 14
Page 8 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Ans: 0.5476
Question # 15
Calculate the co-efficient of correlation for the following data:
Annual percentage Annual percentage
increase in advertising increase in sale revenue
expenditure
Page 9 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
(X) (Y)
1 1
3 2
4 4
6 4
8 5
9 7
11 8
14 9
ii) What is the purpose of finding the correlation co-efficient and what dose its value
indicate in respect of the above data on advertising expenditure and sales revenue?
Ans: r = 0.9770
Question # 16
Calculate the co-efficient of correlation for the following data:
ii) What is the purpose of finding the correlation co-efficient and what dose its value
indicates in respect of the above data on advertising expenditure and sales revenue?
Ans: r = 0.9770
Page 10 of 11
CHEPTER # 5
SIMPLE REGRESSION AND CORRELATION
EXERCISE # 5
BY SHAHID MEHMOOD [email protected]
Question # 17
An analyst is studying the relationship between shopping center traffic and a department
Store’s daily sales. The analyst develops an index to measure the daily volume of traffic
Entering the shopping center and an index of daily sales. The following table shows the
Index value for 9 randomly selected days.
Forecast sale index for a traffic index of 132 by the method of least square.
Ans: 198.29
Coefficientsa
Standardized
Unstandardized Coefficients Coefficients
a. Dependent Variable: y
Y=60.494 + 1.146X
If X=132
Y= 211.766
*****************************************
Page 11 of 11