Advanced numerical analysis - numerical integration

Click For Summary
When integrating a discrete dataset with non-constant delta x, advanced techniques beyond the Trapezoidal and Simpson's rules are necessary. Fitting a suitable function to the data, such as polynomial or exponential, can improve integration accuracy, especially when considering the nature of the data. Metrics for fitting include exact agreement, sum of absolute values, or sum of squares, depending on data accuracy. It's crucial to account for potential aliasing, which can mislead interpretations of the data. Utilizing contextual knowledge about the data's behavior often yields better integration results than relying solely on standard numerical methods.
alpha754293
Messages
29
Reaction score
1
If I have a x,y table of discrete datapoints with a discrete dataset, such that delta x is not a constant, what are some of the more advanced techiques that I can use to integrate this?

I remember that there were Trapezoidal rules and Simpson's rule where delta x IS a constant (and there are additional requirements for Simpson's rule, for example), but my data set doesn't fit (and can't be made to fit) those requirements.

Is the trapezoid rule the only option that I have to integrate numerical data sets?

The y=f(x) is a pretty random curve (there's no rhyme or rhythm to it) and for all practical intents and purposes, it's pretty much random.* (*The reality is a little more complicated than that, but I don't want to get into the complication issues right now, because I want to focus on what are the options that are available to me for numerical analysis.)

Help/suggestion/advice would be greatly appreciated.
 
Physics news on Phys.org
So what you would usually do is fit a function (ie polynomial, exponential, trigonometric, or Bessel function) with parameters to the data. The question becomes how do we fit it? We could use exact agreement, sum of absolute value, sum of squares, or mini-max as our metric. It will depend how accurate our data is. There is the problem of aliasing. That basically means that a pattern in our data might mislead us. For example if our function were sin(pi*x) and all our x values were integers were would believe the function is 0. Evenly spaced data can have bad aliasing, but there might be some with our unevenly spaced data as well.
 
alpha754293 said:
(*The reality is a little more complicated than that, but I don't want to get into the complication issues right now, because I want to focus on what are the options that are available to me for numerical analysis.)

That is usually a bad strategy. To get a good solution to a problem, you need to use all the information you have about it.

For example if the data points are "noisy" measurements of something, the best way to "fit a smooth curve" through them is to use a function that you know represents the right type of response. For example if you are measuring the temperature of something cooling down, it is likely to be an exponential function of time, because of Newton's law of cooling. Or if you are measuring the response of a mechanical system to a force, it is likely to be some sort of damped oscillation. Using information like that will usually give better results than blindly following an "advanced" recipe from a numerical analysis cookbook.
 
We all know the definition of n-dimensional topological manifold uses open sets and homeomorphisms onto the image as open set in ##\mathbb R^n##. It should be possible to reformulate the definition of n-dimensional topological manifold using closed sets on the manifold's topology and on ##\mathbb R^n## ? I'm positive for this. Perhaps the definition of smooth manifold would be problematic, though.

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
1K
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K