Professional Documents
Culture Documents
Theorem:
Consider the data points {(𝑥 , 𝑦 )} for the distinct {𝑥 } . The data points
are approximated by the least-squares power curve 𝑦 = 𝑓(𝑥) = 𝐴𝑥 , where M
is constant. Then, A can be obtained as:
𝐴= 𝑥 𝑦 𝑥
/
1
𝐸 (𝑓) = |𝑓(𝑥 ) − 𝑦 | ,
𝑁
it is sufficient to minimize
𝐸( )
= 2(𝐴𝑥 − 𝑦 )𝑥 =2 (𝐴𝑥 −𝑦 𝑥 )=0
i.e.
𝐴 𝑥 = 𝑥 𝑦
or
(∑ 𝑥 𝑦 )
𝐴=
(∑ 𝑥 )
Exercises:
Q1. Find the least-squares line 𝑦 = 𝑓(𝑥) = 𝐴𝑥 + 𝐵 for the data given in the
following table. Calculate 𝐸 (𝑓) as well.
𝑥 𝑦 𝑓(𝑥 )
-6 -5.3 -6.00
-2 -3.5 -2.84
0 -1.7 -1.26
2 0.2 0.32
6 4.0 3.48
Putting
𝑥 , 𝑓(𝑥 ) = (−6, −6) and 𝑥 , 𝑓(𝑥 ) = (−2, −2.84)
in the least-squares line 𝑦 = 𝑓(𝑥) = 𝐴𝑥 + 𝐵, it can be written as:
−6 = −6𝐴 + 𝐵
−2.84 = −2𝐴 + 𝐵
Sum=1.404
Thus, 𝐸 (𝑓) ≈ 0.5299.
Q2. Find the Power Fit 𝑦 = 𝑓(𝑥) = 𝐴𝑥, where 𝑀 = 1, which is a line passing
through the origin, for the data given in the following table. Calculate 𝐸 (𝑓) as
well.
𝑥 𝑦 𝑓(𝑥 )
3 1.6 1.722
4 2.4 2.296
5 2.9 2.870
6 3.4 3.444
8 4.6 4.592
Putting
𝑥 , 𝑓(𝑥 ) = (3,1.722)
in the Power Fit 𝑦 = 𝑓(𝑥) = 𝐴𝑥, it can be written as:
1.722 = 𝐴3
𝐴 = 0.574
To determine
/
1
𝐸 (𝑓) = {|𝑓(𝑥 ) − 𝑦 | }
5
Sum=0.0286