Mathematical functions from data sets?

Click For Summary

Discussion Overview

The discussion revolves around the process of transforming a set of data points into a mathematical function that can be analyzed using calculus. Participants explore various methods and concepts related to data fitting, including regression analysis and curve fitting, while considering the implications of different mathematical models.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant questions how to derive a mathematical function from seemingly random data points, suggesting the use of sigma notation.
  • Another participant introduces the concept of a "random variable" as a way to associate numbers with data sets, proposing that it may address the original query.
  • A different participant suggests that regression analysis or least squares approximation could be the desired method for creating a function that closely fits the data set.
  • Another participant defines the process of finding a function that fits a set of points as curve fitting, noting that there are infinitely many functions that can fit the same data, depending on the properties desired by the fitter.
  • One participant humorously comments on the idea of predicting lottery numbers from data, while another emphasizes the challenge of having an infinite number of functions that can fit a finite number of data points, suggesting the use of assumptions to narrow down the options.
  • A later reply mentions the uniqueness of an n-1 degree polynomial fitting n data points and introduces the concept of splines as a modern alternative for fitting data.

Areas of Agreement / Disagreement

Participants express various viewpoints on methods for fitting functions to data, with no consensus reached on a single approach. Multiple competing views remain regarding the best techniques and underlying assumptions necessary for data fitting.

Contextual Notes

Participants note that the choice of function and fitting method depends on desired properties, and that assumptions are necessary to limit the infinite possibilities of fitting functions.

MathWarrior
Messages
267
Reaction score
5
I feel like I have gone pretty far in math now, but I keep finding myself asking the same question.

Say I had a series of data points from like a randomly collected survey or stock stock price graph over time etc.

Is there a way to take this seemingly random and scattered data and turn it into a mathematical function which I can then use calculus on to find things like optimal points of selling stock, maximum price a customer might pay based on survey data etc? What is this process called?

I was thinking perhaps you could use sigma notation which directly correlates with the data set or something but I am not positive this would be the correct way?
 
Physics news on Phys.org
It seems like you want the concept of "random variable"? See http://en.wikipedia.org/wiki/Random_variable

Basically, a random variable takes a data set and associates with the data set a certain number. For example, a random variable could be the minimum value of the data set, or the maximum value of the data set.

Or, we can also take Xn to be the n'th value of the data set. Then it's possible to form things like [tex]X_1+X_2[/tex]...

Is this what you're looking for?
 
I was thinking more the concept of taking a set of data and converting it into a mathematical function. Or approximating it with a function I guess? I am not sure what it would be I've always wondered how you would go about getting a function from the data.
 
Ah, then maybe regression analysis/Least squares approximation is the thing you're looking for. It creates a function that lies very close to the data set. And you can use calculus on the function to get to know things about it...
 
The process of finding a function that fits some given set of points is known as curve fitting.

There are infinitely many functions that can be fit to the same set of points. The person fitting it must choose what are the desired properties of the function it wants. One can fit a straight line, a parable, a cubic, etc, to the same set of points, depending on the "fitter" 's choice.

Anyway, you can find more information about this here:

http://en.wikipedia.org/wiki/Curve_fitting
 
When you deduce the 'next week's lottery numbers function' from your dataset, don't post it here, send it to me by PM.

:smile:
 
The difficulty is that given any finite number of data points, there exist an infinite number of different functions that will give those data points. You need to assume some other properties to reduce the possible functions. It is true that if, for example, you have n data points there exist a unique n-1 degree polynomial that fits those points. It is more common, recently, to use "splines", piecewise defined lower degree polynomials (cubic is most common) that can be fitted to any number of data points.
 

Similar threads

Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
12
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K