- #1
hkBattousai
- 64
- 0
Can you give me a "least squares" example?
Assume that, I have a function to estimate like below:
f(x) = a3x3 + a2x2 + a1x1 + a0x0
After several experiments I have obtained these (x, f(x)) pairs:
(x1, y1)
(x2, y2)
(x3, y3)
(x4, y4)
(x5, y5)
(x6, y6)
How can I estimate a0, a1, a2 and a3?
I searched in Google, there are lots of definition of the theorem, but there is no example. I will be glad if you guys spare your time to help me.
Assume that, I have a function to estimate like below:
f(x) = a3x3 + a2x2 + a1x1 + a0x0
After several experiments I have obtained these (x, f(x)) pairs:
(x1, y1)
(x2, y2)
(x3, y3)
(x4, y4)
(x5, y5)
(x6, y6)
How can I estimate a0, a1, a2 and a3?
I searched in Google, there are lots of definition of the theorem, but there is no example. I will be glad if you guys spare your time to help me.