Help finding a best fit to an angular distribution

Click For Summary
SUMMARY

The discussion centers on finding the best fit for a dataset representing counts versus angles, specifically for non-linear functions similar to cosine. Chloe, the original poster, seeks a method for calculating a single angle for further analysis. Forum members recommend using statistical packages that facilitate regression modeling, emphasizing the importance of understanding the data characteristics before extrapolating values. The distinction between predicting values close to the dataset versus far away is highlighted as crucial for accuracy.

PREREQUISITES
  • Understanding of non-linear regression techniques
  • Familiarity with statistical packages for data analysis
  • Knowledge of data extrapolation principles
  • Basic concepts of cosine functions in data modeling
NEXT STEPS
  • Explore non-linear regression methods using R or Python libraries like SciPy
  • Learn about the characteristics of your data to improve prediction accuracy
  • Investigate statistical packages such as MATLAB or OriginLab for regression analysis
  • Study the implications of extrapolating data beyond the observed range
USEFUL FOR

Data analysts, statisticians, and researchers involved in modeling and predicting outcomes based on angular distributions and non-linear datasets.

chloealex88
Messages
4
Reaction score
0
Hi all,

I have a set of data that is number of counts - vs - angle. I need one angle for a calculation. I think need to find the best fit instead of an average. What would be the best way of doing this? Maybe perform a least sq calculation? The function is non-linear.

Thanks in advance,

Chloe
 
Physics news on Phys.org
Hey chloealex88 and welcome to the forums.

As you have alluded to, the idea of best fit seems good for your purpose.

There are a variety of statistical packages that do all kinds of regression modelling including linear and non-linear fits and its pretty much just a click of a button to do this automatically.

The most important that needs to be asked is essentially: "What are the important characteristics of your process?"

It's not really hard to click a button to generate a best-fit with a high correlation but again if you don't have any understanding of your process and just blindly extrapolate a value beyond your data based on the fit it may be so wrong as to be useless for your purposes.

So apart from the first question the next question to ask is if the value you are trying to predict is 'close' to your data or 'far away'?

Here is what I mean for the above. Imagine you have 2D data for value of A going from [0,10] and you want to predict a value of B for A = 10.5: that would be considered 'close'.

If however you wanted to predict a B value for A = 20 that would be very dangerous and is considered 'far'.

It's not a hard and fast definition but the idea of using fit data to predict a value that close with no detailed idea of the process is very different than doing the same thing for a 'far' value and its important you be aware of this.
 
chiro said:
Hey chloealex88 and welcome to the forums.

As you have alluded to, the idea of best fit seems good for your purpose.

There are a variety of statistical packages that do all kinds of regression modelling including linear and non-linear fits and its pretty much just a click of a button to do this automatically.

The most important that needs to be asked is essentially: "What are the important characteristics of your process?"

It's not really hard to click a button to generate a best-fit with a high correlation but again if you don't have any understanding of your process and just blindly extrapolate a value beyond your data based on the fit it may be so wrong as to be useless for your purposes.

So apart from the first question the next question to ask is if the value you are trying to predict is 'close' to your data or 'far away'?

Here is what I mean for the above. Imagine you have 2D data for value of A going from [0,10] and you want to predict a value of B for A = 10.5: that would be considered 'close'.

If however you wanted to predict a B value for A = 20 that would be very dangerous and is considered 'far'.

It's not a hard and fast definition but the idea of using fit data to predict a value that close with no detailed idea of the process is very different than doing the same thing for a 'far' value and its important you be aware of this.

Thank you that was very interesting. The will be a more probable scattering angle. The function itself is similar to a cosine function. I have found a good non-linear fitting program. I will know it has work because there is a theoretical trend to the calculation I will perform.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
Replies
28
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K