Find the lines of regression from the following data:
x
y
2
6
4
5
6
4
8
3
10
2
Open in App
Solution
x
y
xy
x2
y2
2
6
12
4
36
4
5
20
16
25
6
4
24
36
16
8
3
24
64
9
10
2
20
100
4
∑x=30
∑y=20
∑xy=100
∑x2=220
∑y2=90
¯x=305=6,¯y=205=4 ¯x=6,¯y=4 bxy=n∑xy−∑x∑yn∑x2−(∑x)2=5(100)−30×205(220)−900 byx=500−6001100−900=−100200=−12 Regression line y on x y−¯y=byx(x−¯x) (y−4)=−12(x−6) 2y−8=−x+6 x+2y=14 bxy=n∑xy−∑x∑yn∑y2−(∑y)2=5(100)−(30)(20)5(90)−(400) bxy=500−600450−400 bxy=−10050 =−2 Regression line x on y (x−¯x)=bxy(y−¯y) (x−6)=−2(y−4) x−6=−2y+8 x+2y=14 x=−2y+14.