Is there a method for polynomial regression in 2D dimensions (fitting a function f(x,y) to a set of data X,Y, and Z)? And is there a way to apply a condition to the regression in 2D that requires all functions fitted to go through the axis line x=0?
2026-04-04 08:39:50.1775291990
2D Polynomial regression with Condition
1.7k Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in POLYNOMIALS
- Alternate basis for a subspace of $\mathcal P_3(\mathbb R)$?
- Integral Domain and Degree of Polynomials in $R[X]$
- Can $P^3 - Q^2$ have degree 1?
- System of equations with different exponents
- Can we find integers $x$ and $y$ such that $f,g,h$ are strictely positive integers
- Dividing a polynomial
- polynomial remainder theorem proof, is it legit?
- Polyomial function over ring GF(3)
- If $P$ is a prime ideal of $R[x;\delta]$ such as $P\cap R=\{0\}$, is $P(Q[x;\delta])$ also prime?
- $x^{2}(x−1)^{2}(x^2+1)+y^2$ is irreducible over $\mathbb{C}[x,y].$
Related Questions in REGRESSION
- How do you calculate the horizontal asymptote for a declining exponential?
- Linear regression where the error is modified
- Statistics - regression, calculating variance
- Why does ANOVA (and related modeling) exist as a separate technique when we have regression?
- Gaussian Processes Regression with multiple input frequencies
- Convergence of linear regression coefficients
- The Linear Regression model is computed well only with uncorrelated variables
- How does the probabilistic interpretation of least squares for linear regression works?
- How to statistically estimate multiple linear coefficients?
- Ridge Regression in Hilbert Space (RKHS)
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?
Linear regression works for polynomials of degree $n$. There's also non-linear regression for "any function", but I think you want polynomials.
In practice there are recommendations about how many parameters you should fit to a model: problems arise with over fitting.
Suppose you want to fit a polynomial based on a single parameter matrix $X$, we can write $$X = \begin{pmatrix} 1 & x_1 & x_1^2 & \dots & x_1^n \\ 1 & x_2 & x_2^2 & \dots & x_2^n \\ \vdots & \vdots & \vdots & \cdots & \vdots\\ 1 & x_m & x_m^2 & \cdots & x_m^n \end{pmatrix}$$
Then you want a coefficient vector to best fit the data, call it $\beta$. We want to find $\hat \beta$ which best fits our data. In simple linear regression, we might consider a model $Z = X\beta + \epsilon$ where $\epsilon$ is an error term. We want to find the equation best fits the data and so has the smallest value of epsilon.
It turns out that the answer is $\hat \beta = (X^TX)^{-1}X^Tz$.
Now, if we wanted to use both variables, we could just make a new matrix which instead of only include the $x$'s, we also stuff all the $y$'s in there. If you wanted you could define a new matrix $Y$ and solve $Z = X\beta_x + Y\beta_y$ and basically get the same thing:
$$\hat \beta_x = (X^TX)^{-1}X^Tz$$
$$\hat \beta_y = (Y^TY)^{-1}Y^Tz$$ We end up solving the equation $Z = X\beta$ our vector $z = X\beta$
The $\hat \beta$'s are our coefficient vectors for our polynomials.
If you wanted them all to go through the origin, you'd remove the columns with ones.