Need help finding an equation that fits data

  • Thread starter Thread starter mudderrunner
  • Start date Start date
  • Tags Tags
    Data
AI Thread Summary
To create a point system for a project, an equation must be devised that fits specific data parameters. It is noted that there are infinite functions that can pass through a finite number of data points, so defining the type of function is crucial. A piecewise function can be used if continuity is not required, while a polynomial can be fitted for a smooth curve. For the given data, a unique 7th degree polynomial can be created using the six points provided. The discussion emphasizes the importance of specifying the desired function type to find suitable parameters.
mudderrunner
Messages
6
Reaction score
0
I'm trying to devise a point system for a project I'm working on and I need to come up with an equation that fits these parameters so that I can fill in the rest of the points. Hopefully someone can help me out. It looks like it should be easy but I can't figure it out. *this is not a school project*

# | points
----------
1 | 1
2 |
3 |
4 |
5 |
6 |
7 |
8 | 0
9 |
10| -1
11| -1
12| -1
13| -1
etc.|etc.
 
Physics news on Phys.org
You understand, don't you, that there exist an infinite number of functions passing through any given finite number of data points? You have to specify what kind of function you want and then find the parameters for it. If you don't need continuity, then a perfectly good function that works here would be f(x)= 1 if x< 8, f(8)= 0, f(x)= -1 if x> 8.
If you want a smooth function, then you can always fit an n+1 degree polynomial through any given n points. Here you have 6 points so there exists a unique 7th degree polynomial passing through those 6 points.
 
I picked up this problem from the Schaum's series book titled "College Mathematics" by Ayres/Schmidt. It is a solved problem in the book. But what surprised me was that the solution to this problem was given in one line without any explanation. I could, therefore, not understand how the given one-line solution was reached. The one-line solution in the book says: The equation is ##x \cos{\omega} +y \sin{\omega} - 5 = 0##, ##\omega## being the parameter. From my side, the only thing I could...
Back
Top