• Tidak ada hasil yang ditemukan

CURVE FITTING WITH LEAST SQUARE METHOD

N/A
N/A
Protected

Academic year: 2023

Membagikan "CURVE FITTING WITH LEAST SQUARE METHOD"

Copied!
9
0
0

Teks penuh

(1)

CURVE FITTING WITH LEAST SQUARE

METHOD

By :

Dewi Rachmatin

(2)

Least Squares Lines

The formulas for linear least squares fitting were independently derived by German

mathematician Johann Carl Friedrich Gauss (1777-1855) and the French mathematician Adrien-Marie Legendre (1752-1833).

(3)

Theorem

(Least Squares Line Fitting)

Given the n data points, the least squares line y=ax+b that fits the points

has coefficients a and b given by:

dan

(4)

Mathematica Subroutine

(Least Squares Line)

(5)

Example 1. Find the standard "least squares line“ for the data points

Use the subroutine Regression to find the line. Compare with the line obtained with Mathematica's Fit procedure.

(6)

Least Squares Polynomials

Theorem (Least-Squares Polynomial Curve Fitting).

Given the n data points

the least squares polynomial of degree m of the form

that fits the n data points is obtained by solving the following linear system

(7)

for the m+1 coefficients

These equations are referred to as the

"normal equations".

(8)

Mathematica Subroutine

(Least Squares Parabola).

(9)

Example 1. Find the standard "least squares parabola" a + b x + c x2

for the data points

Use the subroutine LSParabola to find the line. Compare with the line obtained with Mathematica's Fit procedure.

Referensi

Dokumen terkait