How can I fit a polynomial to an empirical data set such that it fits the "top" of the data -- i.e. for every value of x, the output of function is greater than the largest y at that x. But at the same time it minimizes this such that it hugs the data. An example of what I'm referring to is seen in the image here:
2026-05-05 20:33:54.1778013234
Frontier Equation - Fit a polynomial to the top of a data set
79 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in CONVEX-OPTIMIZATION
- Optimization - If the sum of objective functions are similar, will sum of argmax's be similar
- Least Absolute Deviation (LAD) Line Fitting / Regression
- Check if $\phi$ is convex
- Transform LMI problem into different SDP form
- Can a linear matrix inequality constraint transform to second-order cone constraint(s)?
- Optimality conditions - necessary vs sufficient
- Minimization of a convex quadratic form
- Prove that the objective function of K-means is non convex
- How to solve a linear program without any given data?
- Distance between a point $x \in \mathbb R^2$ and $x_1^2+x_2^2 \le 4$
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?

I am going to assume some things, since your question is missing some key pieces of information. I am going to assume that all the points are in $\mathbb{R}^2$, and denote them by $\{ (x_i, y_i) \}_{i=1}^m$. Second, I am going to assume that you have no additional requirements on the "shape" of the polynomial you want (e.g. convexity, concavity, ...).
For now, I will look at the standard polynomial basis, and thus assume that the decision variables are the coefficients of $p(x) = b + \sum_{j=1}^n a_i x^i$.
First, the polynomial should bound all the points from above. That is, $p(x_i) \geq y_i$, or, explicitly: $$ b + a_1 x_i + a_2 x_i^2 + \dots + a_n x_i^n \geq y_i $$ Second, the polynomial should be "tight" over the set, which means that its $y$ coordinates should be small. Assume that $[\ell, u]$ is the smallest interval containing all $x_i$, and minimize a function which measures the "tightness" over this interval. One example is taking the total area under the polynomial, that is: $$ f_1(b, a_1, \dots, a_n)= \int_{\ell}^u p(x) dx $$ Another example is looking at the highest $y$ coordinate the polynomial yields, that is: $$ f_2(b, a_1, \dots, a_n)= \max_{x \in [\ell, u]} p(x) $$ Both are convex functions of the coefficients. However, $f_1$ is easy to deal with, since it is a linear function of the coefficients. On the other hand, to the best of my knowledge, $f_2$ is intractable if the degree of the polynomial is greater than 4, and is very complicated to deal with anyway. You may devise your own other measures of 'tightness'.
The polynomial will be found by solving the following optimization problem: $$ \begin{aligned} \min_{b,a_1, \dots, a_n} &\quad f(b, a_1, \dots, a_n) \\ \text{s.t} &\quad b + a_1 x_i + a_2 x_i^2 + \dots + a_n x_i^n \geq y_i & i = 1, \dots, m \end{aligned} $$ where $f$ is the measure of "tightness" you choose. Choosing $f_1$ above yields a linear program, which has many readily available solvers.
From a numerical perspective, I would chose a different polynomial basis. Any book on polynomial approximation suggests several such bases. In that case, your polynomial becomes $$ p(x) = \sum_{j=0}^n a_j \ell_j(x) $$ where $\ell_j$ are the basis polynomials. Its coefficients, which are the decision variables, become $a_0, \dots, a_n$.