SlidePub
Home
Categories
Login
Register
Home
Technology
Chap_17.ppt - least-square cruve fitting
Chap_17.ppt - least-square cruve fitting
MacKy29
5 views
19 slides
Jul 24, 2024
Slide
1
of 19
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
About This Presentation
leats square
Size:
437.31 KB
Language:
en
Added:
Jul 24, 2024
Slides:
19 pages
Slide Content
Slide 1
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 1
CURVE FITTING
Part 5
•Describes techniques to fit curves (curve fitting) to discrete
data to obtain intermediate estimates.
•There are two general approaches two curve fitting:
–Data exhibit a significant degree of scatter. The strategy is to derive a
single curve that represents the general trend of the data.
–Data is very precise.The strategy is to pass a curve or a series of curves
through each of the points.
•In engineering two types of applications are encountered:
–Trend analysis. Predicting values of dependent variable, may include
extrapolation beyond data points or interpolation between data points.
–Hypothesis testing. Comparing existing mathematical model with
measured data.
Slide 2
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 2
Figure PT5.1
Slide 3
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 3
Mathematical Background
Simple Statistics/
•In course of engineering study, if several
measurements are made of a particular quantity,
additional insight can be gained by summarizing the
data in one or more well chosen statistics that convey
as much information as possible about specific
characteristics of the data set.
•These descriptive statistics are most often selected to
represent
–The location of the center of the distribution of the data,
–The degree of spread of the data.
Slide 4
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 4
•Arithmetic mean. The sum of the individual data
points (yi) divided by the number of points (n).
•Standard deviation. The most common measure of a
spread for a sample.
orni
n
y
y
i
,,1
2
)(
1
yyS
n
S
S
it
t
y
1
/
2
2
2
n
nyy
S
ii
y
Slide 5
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 5
•Variance. Representation of spread by the square of
the standard deviation.
•Coefficient of variation. Has the utility to quantify the
spread of data.1
)(
2
2
n
yy
S
i
y
Degrees of freedom%100..
y
S
vc
y
Slide 6
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 6
Figure PT5.2
Slide 7
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 7
Figure PT5.3
Slide 8
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 8
Least Squares Regression
Chapter 17
Linear Regression
•Fitting a straight line to a set of paired
observations: (x
1, y
1), (x
2, y
2),…,(x
n, y
n).
y=a
0+a
1x+e
a
1-slope
a
0-intercept
e-error, or residual, between the model and the
observations
Slide 9
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 9
Criteria for a “Best” Fit/
•Minimize the sum of the residual errors for all
available data:
n = total number of points
•However, this is an inadequate criterion, so is the sum
of the absolute values
n
i
ioi
n
i
i
xaaye
1
1
1
)(
n
i
ii
n
i
i
xaaye
1
10
1
Slide 10
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 10
Figure 17.2
Slide 11
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 11
•Best strategy is to minimize the sum of the squares of
the residuals between the measured y and the y
calculated with the linear model:
•Yields a unique line for a given set of data.
n
i
n
i
iiii
n
i
ir
xaayyyeS
1 1
2
10
2
1
2
)()model,measured,(
Slide 12
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 12
Least-Squares Fit of a Straight Line/
2
1
0
1
0
1
1
1
0
0
0)(2
0)(2
iiii
ii
iioi
r
ioi
o
r
xaxaxy
xaay
xxaay
a
S
xaay
a
S
xaya
xxn
yxyxn
a
yaxna
naa
ii
iiii
ii
10
2
2
1
10
00
Normal equations, can be
solved simultaneously
Mean values
Slide 13
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 13
Figure 17.3
Slide 14
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 14
Figure 17.4
Slide 15
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 15
Figure 17.5
Slide 16
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
16
“Goodness” of our fit/
If
•Total sum of the squares around the mean for the
dependent variable, y, is S
t
•Sum of the squares of residuals around the regression
line is S
r
•S
t-S
rquantifies the improvement or error reduction
due to describing data in terms of a straight line rather
than as an average value.t
rt
S
SS
r
2
r
2
-coefficient of determination
Sqrt(r
2
) –correlation coefficient
Slide 17
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 17
•For a perfect fit
S
r=0 and r=r
2
=1, signifying that the line
explains 100 percent of the variability of the
data.
•For r=r
2
=0, S
r=S
t, the fit represents no
improvement.
Slide 18
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 18
Polynomial Regression
•Some engineering data is poorly represented
by a straight line. For these cases a curve is
better suited to fit the data. The least squares
method can readily be extended to fit the data
to higher order polynomials (Sec. 17.2).
Slide 19
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
by Lale Yurttas, Texas
A&M University
Chapter 17 19
General Linear Least Squares
residualsE
tscoefficienunknown A
variabledependent theof valuedobservedY
t variableindependen theof valuesmeasured at the
functions basis theof valuescalculated theofmatrix
functions basis 1 are
10
221100
Z
EAZY
m, z, , zz
ezazazazay
m
mm
2
1 0
n
i
m
j
jijir
zayS
Minimized by taking its partial
derivative w.r.t. each of the
coefficients and setting the
resulting equation equal to zero
Tags
Categories
Technology
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
5
Slides
19
Age
500 days
Related Slideshows
11
8-top-ai-courses-for-customer-support-representatives-in-2025.pptx
JeroenErne2
51 views
10
7-essential-ai-courses-for-call-center-supervisors-in-2025.pptx
JeroenErne2
49 views
13
25-essential-ai-courses-for-user-support-specialists-in-2025.pptx
JeroenErne2
39 views
11
8-essential-ai-courses-for-insurance-customer-service-representatives-in-2025.pptx
JeroenErne2
38 views
21
Know for Certain
DaveSinNM
24 views
17
PPT OPD LES 3ertt4t4tqqqe23e3e3rq2qq232.pptx
novasedanayoga46
27 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-19)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better