Advanced numerical analysis - numerical integration

Click For Summary
SUMMARY

This discussion focuses on advanced numerical integration techniques for discrete datasets where delta x is not constant. While traditional methods like the Trapezoidal rule and Simpson's rule are commonly used for evenly spaced data, they are inadequate for irregular datasets. The conversation highlights the importance of fitting appropriate functions—such as polynomial, exponential, or trigonometric functions—to the data, utilizing metrics like sum of squares or mini-max for accuracy. Additionally, it emphasizes the necessity of considering the nature of the data, such as noise and potential aliasing, to achieve reliable integration results.

PREREQUISITES
  • Understanding of numerical integration techniques, specifically Trapezoidal and Simpson's rules.
  • Familiarity with function fitting methods, including polynomial and exponential fitting.
  • Knowledge of metrics for evaluating fit accuracy, such as sum of squares and mini-max.
  • Awareness of data characteristics, including noise and aliasing effects.
NEXT STEPS
  • Research advanced numerical integration techniques for irregular datasets.
  • Learn about function fitting methods and their applications in numerical analysis.
  • Explore the concept of aliasing and its impact on data interpretation.
  • Investigate Newton's law of cooling and its relevance in modeling real-world phenomena.
USEFUL FOR

Data scientists, numerical analysts, and engineers involved in modeling and integrating complex datasets, particularly those dealing with irregularly spaced data points.

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.
 

Similar threads

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