Curve Fitting Data: Gamma Spectroscopy Lab Results

In summary, the conversation discusses the use of a calibration curve in gamma spectroscopy, using a scintillation crystal and photo-multiplier tube. The question is whether to use a linear or polynomial trend line for the calibration curve. It is suggested to have a sound theoretical reason for the chosen trend line and to check residuals for a quadratic trend. The conversation also mentions the use of statistics packages to calculate AIC or BIC and avoiding overfitting the data. Finally, the suggestion is made to use a more powerful tool like R instead of Excel for data analysis.
  • #1
bobred
173
0
Hi
I have some data from a gamma spectroscopy lab and using a series of known radioactive sources I obtain a calibration curve. The equipment is a scintillation crystal coupled to a photo-multiplier tube connected to a multi-channel analyser to obtain an energy spectrum. Using Excel I add a linear trend line of the form y=mx+c, adding a polynomial of increasing order the equation gives the energy more precisely. Is using a polynomial trend line appropriate or should I be using a linear trend line?
 
Physics news on Phys.org
  • #2
Sure it is appropriate. However, adding more terms to a model will almost always improve a fit. So the mere fact that a fit is improved is not by itself a good criteria.

The first thing to do is figure if there is a sound theoretical reason to expect a curve of a certain form. You can always do a Taylor series expansion to get a linear term and some correction terms, but having a theory to support your statistical model is always best.

The second thing to do is to look at a plot of your residuals for the linear plot. If the residuals show a quadratic trend then that is a good indication that the extra term is warranted.

Most statistics packages will also let you calculate the AIC or the BIC. Those criteria penalize a model for having too many terms.
 
  • #3
To clarify you want to produce a calibration curve by fitting a curve to your calibration peak channel no vs their specified energy. You should expect it to be linear for good equipment. How many calibration energies do you have?
 
  • #4
The best answer is if you have a theoretical expectation of the functional form the relation should take.

Ok, you don't have that. The next question is what is the curve for? If it is just going to be used as a calibration curve for that instrument the only rule is you have to avoid lying to yourself.

There are all kinds of good reasons such a calibration curve will be some unknown and not nice shape. This usually happens because there are several different factors contributing all with different functional forms.

It is therefore perfectly valid to try various functional forms trying to find one that reproduces the data within the apparent error bars.

However the trick is to NOT wind up with functional behaviors that aren't really in the data. You want to avoid making functions that have almost as many free parameters as you have data. You can always put a parabola through three points ... or a third order polynomial ... or any higher polynomial. The difference in all those possible shapes gives you an idea of how the fit can lie to you. The way to feel confident is to have a lot of data points and many fewer free parameters in the fit function.

If you do have a lot of data, and you arent really trying to find or understand the functional form of the curve, it is also perfectly valid to average or smooth or do a piece wise fit like a cubic spline. You'll get just as good or better calibration.
 
  • Like
Likes Dale
  • #5
PS: when you are faking it like this beware of extrapolation. A functional form that fits the data you have shouldn't be trusted to say anything beyond the edges of the region the data samples.
 
  • #6
Thanks for the replies. I have 5 Isotopes but two have multiple peaks, I shall include them and see if this improves things and revert back to a linear fit.
 
  • #7
I suggest using something more powerful than Excel, like R for example. Excel can do unweighted linear fits fine, but requires all sorts of hacks to get weighted fits or nonlinear fits, that you lose the only advantage of excel in simplicity.
 
  • Like
Likes Dale
  • #8
Can you show us a plot of the data?
 

1. What is curve fitting data?

Curve fitting data is a statistical method used to find the best mathematical equation that represents a set of data points. This is done by minimizing the distance between the curve and the data points, allowing for better understanding and prediction of the data.

2. What is Gamma spectroscopy?

Gamma spectroscopy is a technique used in nuclear physics to analyze the energy and intensity of gamma rays emitted by radioactive materials. It is commonly used in environmental monitoring, medical imaging, and materials analysis.

3. How is curve fitting data used in Gamma spectroscopy?

In Gamma spectroscopy, curve fitting data is used to determine the peak energies and peak counts of gamma rays emitted by a radioactive source. This allows for the identification and quantification of different radioactive isotopes present in the sample being analyzed.

4. What factors can affect the accuracy of curve fitting data in Gamma spectroscopy?

Some factors that can affect the accuracy of curve fitting data in Gamma spectroscopy include detector efficiency, background radiation, and the presence of overlapping peaks. It is important to account for these factors and use appropriate correction methods to ensure accurate results.

5. How is the quality of curve fitting data evaluated in Gamma spectroscopy?

The quality of curve fitting data in Gamma spectroscopy is evaluated by examining the residuals, which are the differences between the measured data and the fitted curve. A good fit will have small and randomly distributed residuals, indicating that the curve accurately represents the data.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
  • Other Physics Topics
Replies
5
Views
4K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
1K
  • Astronomy and Astrophysics
Replies
1
Views
1K
Replies
16
Views
2K
  • STEM Educators and Teaching
Replies
5
Views
674
  • Set Theory, Logic, Probability, Statistics
Replies
3
Views
1K
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
26
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
Back
Top