Nonlinear Regression
Nonlinear Regression
yˆ bii (x)
shape functions i 1
• For linear
1 1 2 x
approximation
• Difference (residual) nb
r y b (x ) r y Xb
between data and
j j i i j
i 1
surrogate
• Minimize square rT r (y Xb)T (y Xb)
residual
• Differentiate to obtain X T Xb X T y
Basic equations
• General form
• Residuals
ri ˆ
y (xi , b) yi
1
2
erms
ny
i
r 2
• Rms error i
• Get 18
Data
Rational function
Polynomial
16
14
12
10
6.99
yrational 1.99 8
0.612 x 6
yquadratic 36.5 20 x 3 x 2 4
2
1 1.5 2 2.5 3 3.5 4
Estimating uncertainty in coefficients
• Brute force approach, generate noise in data
and repeat multiple times
• Alternatively linearize about optimum set of
coefficients b*
n
yˆ
r yˆ (x , b*) y
i i i b j
j 1 b j
n y nb
• Similarly, the standard error in the coefficients is
se(bi ) ˆ X X
T 1
ii
Rational function example
• Linearize with respect to b’s
b2 b2 b2*b3
y b1 r b1 *
b3 x b3 x b* x 2
3
• Perform fit by linear regression
X T X b X T r
=1.0e-007* [0.1435 0.3685 0.1230]’
-2
10
-3
10
-4
10
0 500 1000 1500 2000 2500
Number of cycles at inspection
All three unknown
• Difficult to differentiate between initial crack
size and bias 10
0
-1
Standard error
Standard deviation
10
meas
ai b v
Uncertainty in b
a
-2
10
i 10
-3
-4
2 10
10
Standard error -5
10
Standard deviation 0 500 1000 1500 2000 2500
1 Number of cycles at inspection
10
Uncertainty in m
0
10
0 Standard error
10 Standard deviation
-1
10
10
-1
Uncertainty in a0 -2
10
-3
-2 10
10
-4
10
-3
10
0 500 1000 1500 2000 2500 10
-5