How Do I Find a Surface Equation Using Multiple Polynomial Regression?

  • Context: Undergrad 
  • Thread starter Thread starter acmilanhn
  • Start date Start date
  • Tags Tags
    Multiple Regression
Click For Summary

Discussion Overview

The discussion revolves around finding a surface equation in the form of a function f(x,y) that fits a set of 66 data points using multiple polynomial regression techniques. Participants explore methods for approximation, including interpolation and least squares, and discuss the implications of different approaches for graphing the surface.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Homework-related

Main Points Raised

  • One participant seeks assistance in deriving a surface equation from a dataset of points.
  • Another participant questions whether the approximation must pass through all data points or if a general approximation is acceptable, suggesting that the latter could simplify the process using least squares.
  • A participant proposes using least squares with a high coefficient of determination (r2=0.999999) but emphasizes the need for an equation to graph the surface.
  • It is suggested that multilinear regression can be performed using a design matrix of two-dimensional monomials, with an example of a third-degree polynomial provided.
  • Concerns are raised about the trade-off between the degree of fit and the potential for numerical ill-conditioning as the polynomial order increases.
  • Participants discuss methods for implementing the regression analysis in Excel, mentioning the Regression tool from the Analysis Toolpak and the LINEST function as viable options.

Areas of Agreement / Disagreement

Participants express varying opinions on the necessity of exact data point fitting versus general approximation, indicating a lack of consensus on the best approach to take.

Contextual Notes

Participants mention the potential complexity of higher-order polynomials and the implications for numerical stability, but do not resolve these concerns.

acmilanhn
Messages
3
Reaction score
0
Hi friends,
I need to get the surface equation like function f(x,y) that passes through 66 points.
I attached the file xls where is the points, and a pdf file where is the graphics of the points.

Can somebody help say me that I have to do for solve it?
 

Attachments

Physics news on Phys.org
acmilanhn,

Does the approximation need to truly go through each of the data points (that is, approximate exactly at the data points) or is a more general approximation acceptable (one where the predicted values approximates the data at the data points)?

The former would generally involve an interpolation approximation while the latter could be treated more simply by, say, Least Squares.
 
I think my friend that using least squares can work, with r2=0.999999. But the same time, I need to graph the surface therefore I have to get the equation of the surface...
 
You can perform a multilinear regression (least squares) using a design matrix consisting of two dimensional monomials.

For example, a third degree (bi-cubic) approximation can be generated if you consider as basis functions the following:

[tex] [1,x,x^2,x^3, y,yx,yx^2, y^2, y^2x, y^3][/tex]

Construct a design matrix with columns computed with your data using this basis. Then regress. You'll obtain the various coefficents for each term. Examine the degree of fit.

Your prediction formula would then be:

[tex] \hat{z}(x,y) = g_0(x) + y \, \left(g_1(x) + y \, \left(g_2(x) + g_3(x) \, y \right) \right)[/tex]
with
[tex] g_0(x)= c_0+x \, (c_1 + x \, (c_2 + c_3 \, x ))[/tex]
[tex] g_1(x)= c_4+x \, (c_5 + c_6 \, x)[/tex]
[tex] g_2(x)= c_7+c_8 \, x[/tex]
[tex] g_3(x)= c_9[/tex]

A higher degree of fit requires a higher order polynomial. But this can have disadvantages as the number of terms can easily grow large. Also, you have to be concerned about the number of data and order of fit as well as the possibilities of numerical ill-condition.

However, this approach is not difficult. In fact, it can easily be done in Excel. For example, see the enclosed Excel file where I took your file and performed this analysis.
 

Attachments

excelent my friend... how to use Excel for solve it?
 
acmilanhn,

There are a couple ways to perform this. You can use the Regression tool from the Analysis Toolpak (which is what I did) or you could just as easily use the LINEST Excel (array) function. The Regression tool will give you a static solution while the LINEST function will give you a dynamic solution (one that changes when inputs change).

Either one will do the job. Look them up in Excel help.
 

Similar threads

  • · Replies 23 ·
Replies
23
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K