The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 number of peaks ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

jospector

8 Posts

Posted - 12/10/2008 :  3:06:39 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. 8 and SR 1
Operating System: XP

I have a bunch of data sets that a histograms. Some of them are clearly two Gaussian peaks, and others are clearly one. My question arises on my data sets that may be EITHER 1 or 2. I can't seem to find a way to discern the number of peaks. Is there a correct statistical test for this, and if so how would I implement it in Origin ? Any help is greatly appreciated..
thanks,
-js-

VincentLiu

China
Posts

Posted - 12/11/2008 :  01:24:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi jospector,

Could your first upgrade your Origin 8 to SR4? To upgrade your Origin 8, you can select Help-> Check for Updates. Or you can upgrade it through

http://www.originlab.com/index.aspx?s=9&lm=333

In Origin 8 SR4, there is a tool named Peak Analyzer may help you to find the number of peaks. To get the tool, you can highlight a dataset, and then choose Analysis-> Peaks and Baseline-> Peak Analyzer. There is a tutorial to show how to use this tool to find peaks:

http://www.originlab.com/www/helponline/Origin8/en/mergedProjects/Tutorial/Tutorial/Picking_and_Marking_Peaks.html

More details about Peak Analyzer, please refer to

http://www.originlab.com/www/helponline/Origin8/en/origin.htm#peak_analyzer/peak_analyzer.html

Best regards,
Vincent Liu
OriginLab Technical Services
Go to Top of Page

easwar

USA
1965 Posts

Posted - 12/12/2008 :  12:27:38 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Is there a correct statistical test for this, and if so how would I implement it in Origin ? Any help is greatly appreciated..



Hi,

First of all, it would help if you 'know' where the second peak could/should be. Then you can ask Origin to fit with two peaks, and in the process fix the peak center parameter, or at least put lower and upper bounds on peak center based on where it is expected to fall. This can help with obtaining some physically meaningful peak location.

Now, your primary goal appears to be to determine if one-peak-fit or two-peak-fit are statstically better. You cannot do this, at least now, with Peak Analyzer.

You can instead use NLFit tool, as follows:
1. First fit your data with one gaussian peak and create report
2. Then bring up NLFit tool again on your data, select Advanced from the list on the left under Settings tab
3. Set Number of Replicas to 1 (so a total of two peaks)
4. There are different peak finding methods such as 2nd derivative available under drop-down in that page, so those could be used to try find the 2nd peak location. But if those fail, or where they find the 2nd peak is not acceptable, click the Parameter tab and put in "expected" values for 2nd peak. Also put in bounds/constraints etc as explained above
5. Finish the 2nd fit to create report, make sure for both fits, the fit converged (does not make sense to compare if did not converge)
6. Then use Analysis->Fitting->Compare Models menu item. In the dialog that comes up, select the two fit sheets.

This Compare Models tool will then look at the fit statistics and use an F-test and an AIC test to output a statement (footnote in this tool's report) as to which model is statistically the better choice. Note that it is not appropriate to just compare R^2 etc as Degrees of freedom etc are involved - model with more parameters typically give lower R^2 etc as there is more "wiggle room", but that does not mean it is a statistically better model.

Hope this helps.

Easwar
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000