Академический Документы
Профессиональный Документы
Культура Документы
Find the least squares regression line for the data on incom
and food expenditures of seven households given in the Ta
Use income as independent variable and food expenditure
dependent variable.
Income Food Expenditure
(Hundreds of Dollars) (Hundreds of Dollars)
35 9
49 15
21 7
39 11
15 5
28 8
25 9
Error S
Sx 2 7222
2150 13568 7
2150 1938.2857142857
Ssxy 211.7142857143
7222 212 7
7222 44944 7
7222 6420.5714285714
801.4285714286
1.1414 + 0.2642x
Using the estimated regression model, we can find the predicted value of y for any specific value of x. The
predicted value of food expenditure for this household is
ŷ = 1.1414 + (0.2642)(35)
1.1422459893 0.264171 35
9.245989
10.38824 dollars
The difference between the actual and predicted values gives the error of prediction for this household.
E= y – ŷ 9 10.38824 -1.3882352941
-138.8235294118 DOLLARS
Therefore, the error prediction is - $138.84. The negative error indicates that the predicted
value of y is greater than the value of y. Thus, if we use the regression model, this
household’s food expenditure is overestimated by $138.84.
data on incomes
iven in the Table.
d expenditure as
F o o d E x p e n d itu r e ( H u n d r e d o f D o lla r s )
Create a scatter diagram
Plot of Food Expenditure versus Income
16
12
4
10 20 30 40
Income (Hundred of Dollars)
n= no of paired observations
SSxy = xy – {(x)(y)}/n SSxx = x2 – (
And “SS” stands for “sum of squares”
n= no of paired observations
Income
16
14
12
sus Income
10
8
Incom
6
0
10 15 20 25 30 35 40 45 50 55
40 50
ollars)
n
= a + bx
xx = x2 – (x)2/n
es”
xx = x2 – (x)2/n
es”
Income
50 55