Math Question: Finding Best Approximation of Function

  • Thread starter Thread starter mrchauncey
  • Start date Start date
  • Tags Tags
    Random
mrchauncey
Messages
7
Reaction score
0
Hi everybody.

I am in this computer software class and I have a quiz coming up. My professor gave us a list of what to expect on the quiz and this question came up:

Given a family of functions f1, f2, f3, .., fn and given a function f, find the best approximation of f by the family. Best here means you have to minimize an error.

I am thinking it his something to do with least squares or some sort of curve fitting, but I just want to get an idea of what I need to review. This class is hard to study for because it is like a review of every math class I ever taken (and some I have not). Then I have to write certain commands and codes on the software to get the right answers, so its pretty hard.

Anybody got any ideas of what my professor is asking.

Thanks for looking.
 
Mathematics news on Phys.org
mrchauncey said:
Hi everybody.

I am in this computer software class and I have a quiz coming up. My professor gave us a list of what to expect on the quiz and this question came up:

Given a family of functions f1, f2, f3, .., fn and given a function f, find the best approximation of f by the family. Best here means you have to minimize an error.

I am thinking it his something to do with least squares or some sort of curve fitting, but I just want to get an idea of what I need to review. This class is hard to study for because it is like a review of every math class I ever taken (and some I have not). Then I have to write certain commands and codes on the software to get the right answers, so its pretty hard.

Anybody got any ideas of what my professor is asking.

Thanks for looking.

Well, you do have to know how the error is to be measured. If it is least squares, the problem would be to find the ##c_i## so that$$
\int_a^b \left( \sum_{i=1}^n c_i f_i - f\right)^2$$is minimized. Or if you want a uniform approximation it might be that$$
\max_{x\in [a,b]}\left|\sum_{i=1}^n c_i f_i(x) - f(x)\right|$$is minimized.
 
Yea I know how to use least squares. I just wanted some more insight on what he could possibly be asking. Right now in maple I am taking families of different functions, plotting all the points (for a certain range) of each function in the family. Then I found the best fit curve or line of all the points from the family of functions. Then I am taking a function (which is f in the question I stated in my original post) and plotting its points along with the points I found from the curve that fits through the families that I plotted before. Then I am taking the least squares of all the points and finding the least squares solution. I don't know if you will read this but what do you think of that? On track or way off?

Thanks for your time. I'm just confused at the question, but I seem to be getting somewhere so its a start.

EDIT: Now that I think about it I don't really need to fit a curve through the family of functions. I don't think that is necessary.
 
Last edited:
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top