I have a set of points in two dimensional space, and I know a priori that they approximate half of a parabola. I want to find the coefficients for a quadratic function where all of the points fall on the same side of the parabola's axis of symmetry that minimizes the square of the residual to each point in my set.
Obviously, I can't perform the normal linear least squares regression procedure for a quadratic on the data, as it won't necessarily satisfy the condition that all of the points fall on the same half of the parabola, if, for instance, the error on the first point would suggest that it's curving back up from the vertex.
So I figure, that there's something I'm going to have to do with defining the interval of the solution as algebraically being from where the curve I'm solving for has a derivative of zero, to either positive or negative infinity, and then resolve the interval once I've solved the problem, but this is beyond my non-mathematician ken.
My questions, I guess, are:
- Can I express this problem as a linear least squares regression, or would be I restricted to non-linear techniques?
- Broader than the previous question, how should I do this?