Fitting a Second Order Polynomial to Data Points

In summary: It helps if you can show your work and explain your thought process. This will also help us understand where you're getting stuck and provide more specific guidance. In summary, the conversation discusses using the least squares method to fit a second order polynomial to a set of observations. The model is represented as y = Ax + c, where A is a matrix and x is the vector of unknown parameters. The least squares estimate x(hat) is calculated using the definition of least squares. To assess the accuracy of x(hat), the elements of x are given a physical interpretation. The stability of the problem can be assessed by examining the maximum difference between the observed values of t and the estimated values of t using the polynomial model.
  • #1
squenshl
479
4

Homework Statement


Suppose that you are given a set of observations (tk,yk), k = 1,...,M.
You plot these points on a sheet & it seems that the relationship between (t,y) could be approximated with a second order polynomial.
a) Write down the model in the form y = Ax + c. Specify the vectors & matrices & give interpretation to all terms.
b) Write down the least squares estimate x(hat) for x.
c) Let the elements of x bear a physical interest. How could you assess the accuracy of the estimate x(hat)?
d) How would you assess the stability of the problem if max(k,j) |tk-tj| is very small? It may help if you draw a picture. Or better still, study the structure of the matrix A.

Homework Equations





The Attempt at a Solution


a) Not sure on this one.
b) Isn't that just using the definition of least squares.
c) Not sure on this one.
d) Not sure on this one.
 
Physics news on Phys.org
  • #2
If the relationship between t and y were a second degree polynomial, we would have [itex]y_k= at_k^2+ bt_k+ c[/tex] for all x and y. That can be written as
[tex]\begin{bmatrix}y_1 & y_2 & y_3 & \cdot\cdot\cdot\end{bmatrix}= \begin{bmatrix}a & b & c\end{bmatrix}\begin{bmatrix}x_1^2 & x_1 & 1\\ x_2^2 & x_2 & 1 \\ x_3^3 & x_3 & 1\\ \cdot\cdot\cdot & cdot\cdot\cdot & cdot\cdot\cdot \end{bmatrix}[/tex]
 
  • #3
Fixed your post up.
HallsofIvy said:
If the relationship between t and y were a second degree polynomial, we would have [itex]y_k= at_k^2+ bt_k+ c[/itex] for all t and y. That can be written as
[tex]\begin{bmatrix}y_1 \\ y_2 \\ y_3 \\ \vdots\end{bmatrix}= \begin{bmatrix}t_1^2 & t_1 & 1\\ t_2^2 & t_2 & 1 \\ t_3^3 & t_3 & 1\\ \vdots & \vdots & \vdots \end{bmatrix}\begin{bmatrix}a \\ b \\ c\end{bmatrix}[/tex]
 
  • #4
Thanks.
For b) is it just using the definition of least squares otherwise what do I do?
 
  • #5
Still lost, any ideas.
 
  • #6
What exactly does it mean write down the least squares estimate x(hat)?
 
  • #7
Do you know what the least squares method is used for?
 
  • #8
Isn't it to fit a polynomial through a set of points where the idealized value provided by the model for any data point is expressed linearly in terms of the unknown parameters of the model.
For c) does that mean assume x is real world data and if so how do you assess the accuracy of x(hat)?
For d) How do I assess the stability of the problem if maxk,j |tk - tj| is very small, not too sure on these problems, please help.
 
  • #9
squenshl said:
Isn't it to fit a polynomial through a set of points where the idealized value provided by the model for any data point is expressed linearly in terms of the unknown parameters of the model.
So in this problem, the method is used to calculate what exactly?
For c) does that mean assume x is real world data and if so how do you assess the accuracy of x(hat)?
Could you clarify what you mean by "real world data"? The data in this problem are the pairs (tk, yk).
For d) How do I assess the stability of the problem if maxk,j |tk - tj| is very small, not too sure on these problems, please help.
Surely, the topic of stability must have been covered in your book or lecture. What do you know about it?

So far, all you've done is ask for the answers to the question. You need to show some effort that you've tried to figure out the problems on your own.
 

FAQ: Fitting a Second Order Polynomial to Data Points

1. What is a second order polynomial?

A second order polynomial is a mathematical function of the form y = ax^2 + bx + c, where a, b, and c are constants and x is the independent variable. It is also known as a quadratic function and is represented by a curved line when graphed.

2. When is it appropriate to fit a second order polynomial to data points?

A second order polynomial is appropriate when the relationship between the independent and dependent variables appears to be quadratic, meaning the data points form a curved pattern on a graph. It may also be used when there is a need to accurately predict values between data points.

3. How do you fit a second order polynomial to data points?

To fit a second order polynomial to data points, you can use a mathematical software program or a graphing calculator. These tools have functions that allow you to input your data points and automatically generate the equation for the polynomial that best fits the data.

4. What is the process for evaluating the fit of a second order polynomial?

The fit of a second order polynomial can be evaluated by calculating the coefficient of determination, also known as R-squared. This value represents the percentage of the variation in the dependent variable that is explained by the independent variable. A higher R-squared value indicates a better fit.

5. Can a second order polynomial always accurately represent a set of data points?

No, a second order polynomial may not always accurately represent a set of data points. It is important to evaluate the fit of the polynomial and consider other factors, such as the significance of the coefficients and the context of the data, before drawing conclusions. Additionally, in some cases, a higher order polynomial may be needed for a better fit.

Back
Top