SE 301: Numerical Methods Topic 4: Least Squares Curve Fitting PowerPoint PPT Presentation

presentation player overlay
1 / 33
About This Presentation
Transcript and Presenter's Notes

Title: SE 301: Numerical Methods Topic 4: Least Squares Curve Fitting


1
SE 301 Numerical MethodsTopic 4Least Squares
Curve Fitting
  • Dr. Samir Al-Amer
  • (Term 062)

2
SE 301 Numerical MethodsIntroduction to Least
Squares
  • Dr. Samir Al-Amer
  • (Term 061)

3
Motivation
  • 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
4
Curve 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

5
Selection of the functions
6
Decide on the criterion
Chapter 17
Chapter 18
7
Least 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
8
Determine the Unknowns
9
Determine the Unknowns
10
Example 1
11
Remember
12
Example 1
13
Example 1
14
Example 1
15
Example 1
16
Example 2
17
Example 2
18
Example 2
19
How do you judge performance?
20
Multiple 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.

21
Solution 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.

22
Solution of Multiple Regression
23
SE301 Numerical MethodsLecture 13 Nonlinear
least squares problems More
  • Examples of nonlinear least squares
  • Solution of inconsistent equations
  • Continuous least square problems

24
Outlines
  • Examples of nonlinear least squares
  • Solution of inconsistent equations
  • Continuous least square problems

25
Nonlinear Problem
Given
26
Alternative Solution(Linearization Method)
Given
27
Inconsistent System of Equations
28
Inconsistent 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
29
Inconsistent System of EquationsFormulation as a
least squares problem
30
Solution
31
Solution
32
Examples (Linearization Method)
Given
33
HW
  • Check WebCT for HW problems and due date
Write a Comment
User Comments (0)
About PowerShow.com