Title: SE 301: Numerical Methods Topic 4: Least Squares Curve Fitting
1SE 301 Numerical MethodsTopic 4Least Squares
Curve Fitting
- Dr. Samir Al-Amer
- (Term 062)
2SE 301 Numerical MethodsIntroduction to Least
Squares
- Dr. Samir Al-Amer
- (Term 061)
3Motivation
- Given a set of experimental data
- The relationship between x and y may not be clear
- we want to find an expression for f(x)
1 2 3
4Curve Fitting
- Given a set of tabulated data, find a curve
or a function that best represents the data. - Given
- The tabulated data
- The form of the function
- The curve fitting criteria
-
- Find the unknown coefficients
5Selection of the functions
6Decide on the criterion
Chapter 17
Chapter 18
7Least Squares
Given
The form of the function is assumed to be known
but the coefficients are unknown
The difference is assumed to be the result of
experimental error
8Determine the Unknowns
9Determine the Unknowns
10Example 1
11Remember
12Example 1
13Example 1
14Example 1
15Example 1
16Example 2
17Example 2
18Example 2
19How do you judge performance?
20Multiple Regression
- Example
- Given the following data
- It is required to determine a function of two
variables - f(x,t) a b x c t
- to explain the data that is best in the
least square sense.
21Solution of Multiple Regression
- Construct , the sum of the square of the
error and derive the necessary conditions by
equating the partial derivatives with respect to
the unknown parameters to zero then solve the
equations.
22Solution of Multiple Regression
23SE301 Numerical MethodsLecture 13 Nonlinear
least squares problems More
- Examples of nonlinear least squares
- Solution of inconsistent equations
- Continuous least square problems
24Outlines
- Examples of nonlinear least squares
- Solution of inconsistent equations
- Continuous least square problems
25Nonlinear Problem
Given
26Alternative Solution(Linearization Method)
Given
27Inconsistent System of Equations
28Inconsistent System of EquationsReasons
Inconsistent equations may occur because of
errors in formulating the problem, errors in
collecting the data or computational errors.
Solution if all lines intersect at one point
29Inconsistent System of EquationsFormulation as a
least squares problem
30Solution
31Solution
32Examples (Linearization Method)
Given
33HW
- Check WebCT for HW problems and due date