Professional Documents
Culture Documents
Curve Fitting (Straight Line)
Curve Fitting (Straight Line)
Line)
Subhajit Golder
20151177010
Numerical Analysis
Course code:CSE-2303
Semester:2nd year 3rd semester
Department: CSE (4year)
North Western University
Contents
• Curve Fitting
• Why Curve Fitting?
• Approaches for Curve Fitting
• Fitting a straight line - Curve fitting
• Fitting a straight line - Curve fitting example
Curve Fitting
• Interpolation:
Given a set of data that results from an experiment
(simulation based or otherwise), or perhaps taken from a
real-life physical scenario, we assume there is some function
that passes through the data points and perfectly represents
the quantity of interest at all non data points. With
interpolation we seek a function that allows us to
approximate such that functional values between the original
data set values may be determined (estimated). The
interpolating function typically passes through the original
data set.
Fitting a straight line - Curve fitting
Formula
• Straight line equation is y=a+bx
Examples
Calculate straight line (y=a+bx) using
Least square method
Fitting a straight line - Curve fitting example
Solution:
• Straight line equation is y=a+bx.
• y=54+24/5(x)
• y=54+24/5
•
• (X-1998)
Thank You