Finding equation for regression curve

  • Thread starter Thread starter canadiangoose
  • Start date Start date
  • Tags Tags
    Curve Regression
AI Thread Summary
To find an accurate equation for a regression curve, particularly using software like Mathematica, it's important to ensure that the plotted points accurately represent the data range. Issues arise when using Excel, as demonstrated by a polynomial equation that produces values outside the expected range. For better results, consider using dedicated software such as MATLAB or Mathcad, which can provide algorithms for polynomial approximation. The discussion emphasizes the need for clarity on the number of data points and the type of equations being fitted to the data. Accurate regression analysis requires careful selection of tools and methods to ensure valid results.
canadiangoose
Messages
1
Reaction score
0

Homework Statement



I want to know how to find equation for the interpolated function of any degree. On Mathematica, for example.

The Attempt at a Solution



Unfortunately, on Excel, the plots are deceiving because the points on the plot are actually out of range.

For example, this equation: - 0.037*Math.pow(i,5) + 0.857*Math.pow(i,4) - 8.406*Math.pow(i,3) + 32.33*Math.pow(i,2) - 46.68*i + 260.2

is displayed to be in the range of 0 and 255 between values 1 and 21 for i.

however, when plugging in numbers, values are clearly not in the range. you get a negative number for i =18.

So therefore, is there a more accurate way of finding regression curves for data AND the equation for the curve?
 
Physics news on Phys.org
Are you trying to fit a polynomial to your data, or can you fit other equations?

How many data points do you have?
 
use some software as Mathlab or Mathcad, find the algorythm for 'Polynomial Approxiamtion' and you will obtain approximating polynomial for given data (x and y values)
 
Thread 'Have I solved this structural engineering equation correctly?'
Hi all, I have a structural engineering book from 1979. I am trying to follow it as best as I can. I have come to a formula that calculates the rotations in radians at the rigid joint that requires an iterative procedure. This equation comes in the form of: $$ x_i = \frac {Q_ih_i + Q_{i+1}h_{i+1}}{4K} + \frac {C}{K}x_{i-1} + \frac {C}{K}x_{i+1} $$ Where: ## Q ## is the horizontal storey shear ## h ## is the storey height ## K = (6G_i + C_i + C_{i+1}) ## ## G = \frac {I_g}{h} ## ## C...
Back
Top