Skip to content
Worked Examples · Example 2
Q.

For the following data, obtain both lines of regression, and hence estimate yy when x=7x=7 and estimate xx when y=10y=10.

xx246810
yy579811
Maharashtra MsbshseTextbookSubjectiveImportance★★★★★
19% · 6/31 Questions
✓ Free question

Here n=5n=5. First the means:

xˉ=2+4+6+8+105=305=6,yˉ=5+7+9+8+115=405=8.\bar x=\frac{2+4+6+8+10}{5}=\frac{30}{5}=6,\qquad \bar y=\frac{5+7+9+8+11}{5}=\frac{40}{5}=8.

Take dx=x−6d_x=x-6 and dy=y−8d_y=y-8:

xxyydxd_xdyd_ydxdyd_xd_ydx2d_x^2dy2d_y^2
25−4-4−3-312169
47−2-2−1-1241
6901001
8820040
10114312169
Total00264020

(The checks ∑dx=0, ∑dy=0\sum d_x=0,\ \sum d_y=0 confirm the means.) The regression coefficients are

byx=∑dxdy∑dx2=2640=0.65,bxy=∑dxdy∑dy2=2620=1.3.b_{yx}=\frac{\sum d_xd_y}{\sum d_x^2}=\frac{26}{40}=0.65,\qquad b_{xy}=\frac{\sum d_xd_y}{\sum d_y^2}=\frac{26}{20}=1.3.

Both are positive (consistent) and their product 0.65×1.3=0.845≤10.65\times1.3=0.845\le1 (valid).

Line of YY on XX: y−yˉ=byx(x−xˉ)y-\bar y=b_{yx}(x-\bar x)

y−8=0.65(x−6) ⇒ y=0.65x−3.9+8 ⇒ y=0.65x+4.1.y-8=0.65(x-6)\ \Rightarrow\ y=0.65x-3.9+8\ \Rightarrow\ y=0.65x+4.1.

Line of XX on YY: x−xˉ=bxy(y−yˉ)x-\bar x=b_{xy}(y-\bar y)

x−6=1.3(y−8) ⇒ x=1.3y−10.4+6 ⇒ x=1.3y−4.4.x-6=1.3(y-8)\ \Rightarrow\ x=1.3y-10.4+6\ \Rightarrow\ x=1.3y-4.4.

Estimates. To estimate yy use YY on XX: at x=7x=7, y=0.65(7)+4.1=4.55+4.1=8.65y=0.65(7)+4.1=4.55+4.1=8.65. To estimate xx use XX on YY: at y=10y=10, x=1.3(10)−4.4=13−4.4=8.6x=1.3(10)-4.4=13-4.4=8.6.

Independent check (raw totals). ∑x=30, ∑y=40, ∑xy=10+28+54+64+110=266, ∑x2=220, ∑y2=340.\sum x=30,\ \sum y=40,\ \sum xy=10+28+54+64+110=266,\ \sum x^2=220,\ \sum y^2=340.

byx=n∑xy−∑x∑yn∑x2−(∑x)2=5(266)−30(40)5(220)−900=1330−12001100−900=130200=0.65,b_{yx}=\frac{n\sum xy-\sum x\sum y}{n\sum x^2-(\sum x)^2}=\frac{5(266)-30(40)}{5(220)-900}=\frac{1330-1200}{1100-900}=\frac{130}{200}=0.65,

bxy=n∑xy−∑x∑yn∑y2−(∑y)2=1305(340)−1600=1301700−1600=130100=1.3.b_{xy}=\frac{n\sum xy-\sum x\sum y}{n\sum y^2-(\sum y)^2}=\frac{130}{5(340)-1600}=\frac{130}{1700-1600}=\frac{130}{100}=1.3.

Both methods agree.

✓Final answer

Line of YY on XX: y=0.65x+4.1y=0.65x+4.1; line of XX on YY: x=1.3y−4.4x=1.3y-4.4. Estimated y=8.65y=8.65 when x=7x=7, and estimated x=8.6x=8.6 when y=10y=10.

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.