MCSC202 Theory Chap 5 Lec 1
MCSC202 Theory Chap 5 Lec 1
(MCSC-202)
By
Samir Shrestha
Department of Mathematics
Kathmandu University, Dhulikhel
Lecture 1
Chap-5: Least Square Curve Fitting
1
Numerical Methods
Contents
Outline
• Introduction
• Least square curve fitting procedure
• Fitting a straight line
• Fitting a quadratic curve
• Non-linear curve fitting
- Fitting by power function
- Fitting by exponential function
• Fitting a polynomial degree n
4
Chap-5: Curve Fitting
Introduction
to
Curve Fitting
5
Chap-5: Curve Fitting
Introduction:
Idea !!!
From the given set of data points 𝑥𝑖 , 𝑦𝑖 , 𝑖 = 1,2, … , 𝑚, we fit a
curve 𝑌 = 𝑓(𝑥) that minimize the square of the errors
𝒚 𝒀 = 𝒇 (𝒙)
7
Chap-5: Curve Fitting
8
Chap-5: Curve Fitting
9
Fitting a Straight line (Continue ...) Chap-5: Curve Fitting
10
Fitting a Straight line (Continue ...) Chap-5: Curve Fitting
11
Chap-5: Curve Fitting
Examples
Straight Line Fitting
12
Chap-5: Curve Fitting
13
Chap-5: Curve Fitting
14
Chap-5: Curve Fitting
15
Chap-5: Curve Fitting
Non-linear curves transformed into linear form:
16
Chap-5: Curve Fitting
Non-linear curves transformed into linear form: Continue ...
17
Chap-5: Curve Fitting
Examples
Non-linear Curve Fitting
18
Chap-5: Curve Fitting
Example: (Non-linear curve fitting ): Continue ...
19
Chap-5: Curve Fitting
Example: (Non-linear curve fitting) : Continue ...
(2)
20
Chap-5: Curve Fitting
Example: (Non-linear curve fitting) : Continue ...
21
Chap-5: Curve Fitting
22
Chap-5: Curve Fitting
23
Curve Fitting by Polynomials: Continue ... Chap-5: Curve Fitting
24
Example (Curve Fitting by Polynomials) Chap-5: Curve Fitting
25
Chap-5: Curve Fitting
Example (Curve Fitting by Polynomials): Continue ...
26
Chapter-4
Classwork
Least Square Fitting
Problem 1:
Problem 2
27
Chapter-4
Classwork
Least Square Fitting
Problem 3:
Problem 4
28
End of Lecture-1
Next
Chapter-6
Numerical Soltuons of Ordinary
Differential Equations (ODEs)
29