Curvilinear Regression – Problems & Solutions

 

 Curvilinear Regression – Problems & Solutions

Curvilinear regression is used when the relationship between variables is not linear (not a straight line).

Common forms:

  1. Quadratic (Parabolic):

Y=a+bX+cX2Y = a + bX + cX^2
  1. Exponential:

Y=abXY = a b^X
  1. Power function:

Y=aXbY = aX^b

🔵 Problem 1: Quadratic (Parabolic) Regression

🔹 Given Data

X-2-1012
Y72127

Fit equation:

Y=a+bX+cX2Y = a + bX + cX^2

✅ Step 1: Normal Equations

For quadratic regression:

Y=na+bX+cX2\sum Y = na + b\sum X + c\sum X^2 XY=aX+bX2+cX3\sum XY = a\sum X + b\sum X^2 + c\sum X^3 X2Y=aX2+bX3+cX4\sum X^2Y = a\sum X^2 + b\sum X^3 + c\sum X^4

✅ Step 2: Compute Required Sums

Prepare table:

XYX⁴XYX²Y
-274-816-1428
-121-11-22
0100000
1211122
2748161428

Now totals:

X=0\sum X = 0 X2=10\sum X^2 = 10 X3=0\sum X^3 = 0 X4=34\sum X^4 = 34 Y=19\sum Y = 19 XY=0\sum XY = 0 X2Y=60\sum X^2Y = 60 n=5n = 5

✅ Step 3: Substitute into Normal Equations

19=5a+0+10c19 = 5a + 0 + 10c 19=5a+10c19 = 5a + 10c
0=0+10b+00 = 0 + 10b + 0 10b=010b = 0 b=0b = 0
60=10a+0+34c60 = 10a + 0 + 34c

✅ Step 4: Solve Remaining Equations

From (1):

5a+10c=195a + 10c = 19

From (3):

10a+34c=6010a + 34c = 60

Multiply (1) by 2:

10a+20c=3810a + 20c = 38

Subtract from (3):

(10a+34c)(10a+20c)(10a + 34c) - (10a + 20c) 14c=2214c = 22 c=1.571c = 1.571

Substitute into (1):

5a+10(1.571)=195a + 10(1.571) = 19 5a+15.71=195a + 15.71 = 19 5a=3.295a = 3.29 a=0.658a = 0.658

✅ Final Equation

Y=0.658+1.571X2Y = 0.658 + 1.571X^2

(Since b=0b = 0)


🔵 Problem 2: Exponential Regression

🔹 Given

X1234
Y24816

Fit:

Y=abXY = ab^X

✅ Step 1: Take Logarithm

logY=loga+Xlogb\log Y = \log a + X\log b

Let:

Y=logYY' = \log Y

Now we fit a straight line:

Y=A+BXY' = A + BX

Compute log values

XYlog Y
120.301
240.602
380.903
4161.204

We can see:

Slope B0.301B ≈ 0.301

Intercept A0A ≈ 0

So:

logb=0.301\log b = 0.301 b=2b = 2 a=1a = 1

✅ Final Equation

Y=2XY = 2^X

🔑 Key Points for Exams

  • Quadratic regression requires 3 normal equations

  • If data is symmetric around zero → b=0b = 0

  • Exponential & power models are converted into linear form using logarithm

  • Used when scatter diagram shows curve pattern

Comments

Post a Comment

Popular posts from this blog

Central Bank of India Recruitment 2026 – 275 Specialist Officer (SO) Posts

Reserve Bank of India RBI Assistant Recruitment 2026 - Apply Online for 650 Posts

what is Machine Learning