in reply to mathsy question: finding max of curve from discrete points

You cannot say if there is a peak outside the datapoints if you don't have any additional information about the function. You have to confine the possible functions to some special class to have an exact solution. For instance - you can assume that it is a polynomial - than there is exactly one polynomial with the lowest range that will fit to the data. Still finding it's extrema might be a bit difficult for range greater than 5 (you would have to solve the derivative of the polynomial).

Replies are listed 'Best First'.
Re: Re: mathsy question
by Anonymous Monk on May 07, 2003 at 11:36 UTC
    Are you sure it can't be done by fitting a curve to the line with quadratic regression?? (y = ax^2 + bx + c). Then with this plot lots of data-point near the peak (which lie of the line of best fit) and then read the highest. ;-0
      Quadratic regression is quite a different thing - it is an approximation by a range 2 polynomial. I thought you needed an exact solution. Unfortunately I don't know approximation techniques.
      I am not quite sure what you are suggesting? If you intend him to regress the coefficients a,b,c then this is just general linear regression. Why would it be quadratic rather than linear?