Unit 13 Regression Analysis
Unit 13 Regression Analysis
Unit 13 Regression Analysis
REGRESSION ANALYSIS
Introduction
Y^ = a + bx
Where
b = is the slope of the line, or the average change in y’ for each change of
n ( ∑ XY )−(∑ X )(∑ Y )
Slope of the Regression Line: b =
N ( ∑ X 2 ) −( ∑ X ¿¿¿ 2 )
∑Y ∑X
Y-Axis Intercept a= -b
n n
Where:
Solution:
Step 1. Construct the table below to show the values of ∑X, ∑Y, ∑X 2, ∑XY
∑Y ∑ X 44 16
a= -b = -1.71( ) = 8.8 – 5.472
n n 5 5
a = 3.328
Y’ = a + bx Y’ = 3.328 + 1.71x
Solution:
Secretary X Y XY X2
A 0 12 0 0
B 2 13 26 4
C 3 14 42 9
D 6 16 96 36
E 5 15 75 25
F 3 14 42 9
G 4 13 52 16
H 1 12 12 1
I 1 15 15 1
J 2 15 30 4
Total ∑x =27 ∑Y=139 ∑XY = 390 ∑X2 = 105
139 27
a= – 0.46( ) = 13.9 – 1.242 = 12.66
10 10
Y’ = 12.66 + 0.46x
Step 6. Determine the wage of the secretary who has been with the
company for 5 years.
Y’ = 14.96 (the predicted wage of the secretary who has been with
the company for 5 years)
Example 3. The City Mall of the province sells fashion apparel for men and women plus a
broad range of home products. It services its customers by Mail. Listed below are the net
sales for the City Mall from 2000 through 2005. Draw a line chart depicting the net sales over
the time period and write a brief report.
x Y XY X2
1 506.8 506.8 1
2 522.2 2
3 574.6 9
4 580.7 16
5 568.5 25
6 581.9 36
Total
nΣxy−( Σx)(Σy)
b=
nΣ x 2−¿ ¿
a= Σy
n
– b ( Σxn ); y’ = a + bx
Determine the sales in 2008?
Example 4. The following table shows the population, in thousands, of the Province for 10
year.
Year Population (Thousands) Year Population
(Thousands)
2000 152.3 2006 227.7
2001 165.4 2007 238.5
2002 180.7 2008 249.9
2003 194.3 2009 263.0
2004 205.1 2010 282.5
2005 218.0
∑Y ∑X n ∑ XY −∑ X ∑Y
a= -b ; b=
n n n ( ∑ X 2 ) −¿ ¿
Y’ = a + bx
Activity 13
Regression Analysis
X Y
0 0
6 3
2 2
4 3
4 4
1 1
1 0
2 3
5 3
5 2
4 3
0 1
2 3
6 4
a. Draw a scatter plot of the data
b. Calculate the regression slope and y-intercept
c. Draw the regression line on the scatter plot
d. Predict the number of schoolmates attacked by a child who watches
television 3 hours daily
2. An educational researcher was interested in the effect of academic
performance in high school on academic performance in college. She
consulted the school records of 12 college graduates, all of whom had
attended the same high school, to determine their high school
cumulative grade average (X) and their cumulative grade average in
college (Y). The following results were obtained: