Term Paper: Curve Fitting Numerical Methods
Term Paper: Curve Fitting Numerical Methods
Submission To:
Dr. Aziz Ur Rehman
Table of Contents
History and Introduction of Curve Fitting Numerical Method:....................................................................2
Least square method to-be used:................................................................................................................2
Proof of y = a + bx....................................................................................................................................3
Proof of y=a+bx+c x 2...............................................................................................................................3
Proof of y=abx .........................................................................................................................................4
Proof of y=a xb.........................................................................................................................................5
Proof of y=aebx .......................................................................................................................................6
Geometrical Interpolation...........................................................................................................................6
Example 1:...................................................................................................................................................8
Question:.................................................................................................................................................8
Example 2:...................................................................................................................................................9
Question:.................................................................................................................................................9
Applications in engineering.......................................................................................................................11
Advantages of curve fitting method..........................................................................................................13
Simplicity...............................................................................................................................................13
Applicability...........................................................................................................................................13
Theoretical Under-pinning.....................................................................................................................13
Disadvantages of curve fitting method......................................................................................................13
Sensitivity to outliners...........................................................................................................................13
Test statistics might be unreliable.........................................................................................................13
Tendency to over fit data......................................................................................................................13
History and Introduction of Curve Fitting Numerical Method:
The least squares method a very popular technique that is used to compute estimations of
parameters and to fit data. It is one of the oldest techniques of modern statistics, being first
published in 1805 by the French mathematician Legendre in a now-classic memoir. But this
method is even older because it turned out that, after the publication of Legendre's memoir(a
historical account or biography written from personal knowledge) , Gauss, the famous German
mathematician, published another memoir (in 1809) in which he mentioned that he had
previously discovered this method and used it as early as 1795. A bit similar to that of the
Leibniz-Newton controversy about the invention of calculus. A somewhat bitter early dispute
followed, which, however, did not diminish the popularity of this technique. Galton used it (in
1886) in his work on the heritability of size, which laid down the foundations of CORRELATION
and REGRESSION analysis and also gave it its name. Both Pearson and Fisher, who did so much
in the early development of statistics used this technique and developed it in different contexts.
One of their famous contexts was “FACTOR ANALYSIS for Pearson and EXPERIMENTAL DESIGN
for Fisher”.
• y = a + bx
• y = a + bx + cx 2
• y = ab x
• y = a xb
• y = a e bx
Proof of y = a + bx
y = a + bx
∑y = na + b ∑x (Eq:1)
xy = ax + b x 2
Then we form a table in order to find the values such as: ∑y. The table shown below can be
made. After making the table we can input the values and solve the equations simultaneously
from a and b. Hence, later equating values of a and b in original equation to obtain the equation
of the values from the table.
Proof of y=a+bx+c x 2
∑ x 2y = a∑ x 2+ b∑ x 3 + c∑ x 4 Eq: (3)
Then we form a table in order to find the values such as: ∑y. The table shown below can be
made. After making the table we can input the values and solve the equations simultaneously
from a and b. Hence, later equating values of a, b and c in original equation to obtain the
equation of the values from the table.
Proof of y=ab x
log y = log ab x
Y = A +Bx
Y = A + Bx
∑Y = nA + B ∑x (Eq:1)
xY = Ax + B x 2
Then we form a table in order to find the values such as: ∑y. The table shown below can be
made. After making the table we can input the values and solve the equations simultaneously
from a and b. Hence, later equating values of a and b in original equation to obtain the equation
of the values from the table.
Proof of y=a x b
log y = log a x b
Y = A +bX
Y = A + bX
∑Y = nA + b ∑X (Eq:1)
XY = AX + b X 2
Proof of y=ae bx
log y = log ae bx
log y = log a + bx
Y = A +bx
Y = A + bx
∑Y = nA + b ∑x (Eq:1)
xY = AX + b x 2
Then we form a table in order to find the values such as: ∑y. The table shown below can be
made. After making the table we can input the values and solve the equations
simultaneously from a and b. Hence, later equating values of a and b in original equation to
obtain the equation of the values from the table.
Geometrical Interpolation
As it can be seen in the graph below that data of two sensors are plotted on a grid. The graph
obtained is somewhat scattered. Hence, in order to analyze and understand the graph we have
drawn a best-fit line.
In the graph below it can be seen that a much more scattered graph has been plotted.
Analyzing these kinds of graphs is a tedious job. So, in order to have a better explanation and
understanding of the data we have used best-fit to plot the graph and techniques like
geometric interpolation can be used for obtaining best possible values for data not available.
Example 1:
Question:
Data of an IR sensor from an IR camera used to measure the temperature intensity of a
heating rod is given in the table below. Fit a curve of the form y = a + bx
∑y = na + b ∑x (Eq:1)
a = -26.1
b= 17.8
Final Equation:
y = -26.1 + 17.8x
Example 2:
Question:
A data is collected relating to the average marks obtained in Computer Science of
students from a class. Use the table below fit the curve of the form y = a + bx + c x 2.
∑y = na + b∑x + c∑ x 2
∑xy = a∑x + b∑ x 2+ c∑ x 3
∑ x 2y = a∑ x 2+ b∑ x 3 + c∑ x 4
Using x = Student & y = Marks Obtained
Final Equation:
Applicability
There are hardly any applications where least squares doesn’t make sense
Theoretical Under-pinning
It is the maximum-likelihood solution and, if the Gauss-Markov conditions apply, the best linear
unbiased estimator