# 19.1.10.11 Peak Analyzer, Fit Peaks Page

This page is for OriginPro only. It is available in the Peak Analyzer only when Fit Peaks is selected for Goal in the Start page. It performs fitting to the peaks that are found by the Find Peaks page.

• Menu Command: Analysis: Peaks and Baseline: Peak Analyzer: Open Dialog
• Window Types: Workbook, Graph

## Dialog Theme

Dialog Theme See Peak Analyzer Themes.

## Fit Peaks Controls

 Snap to Spectrum Select this checkbox to specify whether you want the peak center anchor points to be snapped to the spectrum data. If this is selected, the peak center anchor points will be pulled onto the spectrum as you add or move them. Click the Add button to add peaks manually. Or, click the Modify/Del button to modify or delete peaks manually. Specifies whether to show the current residuals plot. Specifies whether to show the second derivative of the spectrum data. If this check box is selected, the results report will be generated after you click the Finish button even when the fitting does not converge. Otherwise, the results report will be generated only when the fitting converges. Click this button open the Peak Fit Parameters dialog, which allows you to control the fitting. See more details here. Click this button to perform the fit.

### The Weight Group

 Method Specifies the weighting method, which will be used in the calculating the Chi-Square during the fitting. The available weighting methods are: No Weighting Instrumental Statistical Arbitrary Dataset Direct Weighting See details in Fitting with Errors and Weighting This is available when Method is Instrumental, Arbitrary Dataset or Direct Weighting. Use this to specify the dataset that will be used for weighting.

### The Result Group

#### The Output Settings Branch

Dataset Identifier Specify the identifier for the source datasets. Identifier Select a type to specify the source datasets information. The Identifier can be Range, Book Name, Sheet Name, Name (Use the long name of the corresponding column if there is a long name, otherwise use the short name of column.), Short Name, Long Name, Units, Comments, (For its usage, please refer to Advanced legend text customizations). Show Identifier in Flat Sheet Specify whether to use the dataset identifier in flat sheet. Specifies the destination of Report Tables/ Peaks Table/ Fitted Curves. Report Tables store comprehensive results for peak fitting. Peaks Table store peaks information. Fitted Curves store the data for baseline and fitted curves. Book : Do not output Report Tables/ Peaks Table/ Fitted Curves : If source workbook is available, the source workbook will be used as output; Otherwise, a new workbook will be created and used as output. : The workbook that has the source data. : A new workbook. : A specified existing workbook. BookName Sheet: the destination worksheet. This is always . SheetName Results Log (Report Tables only): Output the report to the Results Log. Script Window (Report Tables only): Output the report to the Script Window. Notes Window (Report Tables only): Use this drop-down list to specify the destination Notes Window. (Report Tables only): Do not output to any Notes window. (Report Tables only): Output to a new Notes window. Specifies the destination workbook and worksheet for residual values Book : The workbook where the fitted values will be output. : A new workbook. : A specified existing workbook. BookName Sheet : The worksheet that has the fitted values. : A new worksheet. : A specified existing worksheet. SheetName This is available only when a baseline has been subtracted and the Add Back Baseline check box is disabled. Specifies the destination workbook and worksheet for subtracted data. Book : The workbook where the fitted values will be output. : A new workbook. : A specified existing workbook. BookName Sheet : The worksheet that has the fitted values. : A specified existing workbook. SheetName This is available only when a baseline has been subtracted and the Add Back Baseline check box is enabled. Specifies the destination workbook and worksheet for baseline data. Book : The workbook where the fitted values will be output. : A new workbook. : An existing workbook. BookName Sheet : The worksheet that has the fitted values. : A specified existing workbook. SheetName

#### The Configure Report Branch

Quantities to Compute Specifies the quantities to be computed and displayed in the fitting report. Fit Parameters Value: Parameter value. Shared: If the parameter is not shared, this will be 0. Otherwise, this value indicates the index of the peak whose corresponding parameter is shared with the parameter. Fixed: Specifies whether the parameter is fixed. Standard Error: Standard error of parameters LCL: The lower confidence limit UCL: The upper confidence limit Confidence level for Parameters (%): The confidence level for regression t-Value: t-test value of parameters prob>|t|: p-value of parameters Dependency: The dependency values for parameters CI Half-Width: Half-width of the confidence interval Lower Bound: Lower bound Upper Bound: Upper bound Fit Statistics Number of Points: Total number of fitting points Degrees of Freedom: Model degrees of freedom Reduced Chi-Sqr: The reduced Chi-Square value R Value: The R value, equals to square root of $R^2$ Residual Sum of Squares: Residual sum of squares (RSS); or sum of square error. R-Square (COD): Coefficient of determination Adj. R-Square: Adjusted coefficient of determination Root-MSE (SD): Residual standard deviation; or square root of mean square error. Number of Iterations: Number of iterations that were performed. Fit Status: The status of the fitting ANOVA: Output the analysis of variance table. Covariance matrix: Output the covariance matrix. Correlation matrix: Output the correlation matrix. Please see details on the computation here. Specifies the peak characteristics to be computed and displayed in the peak worksheet report. Peak Index: The indices of peaks. Peak Function Type: The function that was used to fit the peak. (In the report worksheet, this column is named Peak Type.) Fitted Peak Area: Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit. The integration is performed from $-\infty$ to $\infty$. (In the report worksheet, this column is named Area Fit.) Fitted Peak Area Contained in Fitting Range: Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit. (In the report worksheet, this column is named Area FitT.) Fitted Peak Area Contained in Fitting Range(%): Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit. The integration is performed within the data range only. The result is expressed as a percent of the total area. (In the report worksheet, this column is named Area FitTP.) Peak Area by Integrating Data: Integrate to find the area between the fitted peak data and the baseline. The fitted peak data corresponds to Fit Peak # (Long Name) in FitPeakCurve# output sheet. The integration is performed within the data range only. (In the report worksheet, this column is named Area Intg.) Peak Area by Integrating Data(%): Integrate to find the area between the fitted peak data and the baseline. The fitted peak data corresponds to Fit Peak # (Long Name) in FitPeakCurve# output sheet. The integration is performed within the data range only. The result is expressed as a percent of the total area. (In the report worksheet, this column is named Area IntgP.) Location for Peak Maximum Height: The X value for the peak maximum. (In the report worksheet, this column is named Center Max.) Peak Gravity Center: The X value of the peak center of gravity ($m_1'$). See 3rd Order Moment below. (In the report worksheet, this column is named Center Grvty.) Peak Maximum Height: The Y value for the peak maximum. (In the report worksheet, this column is named Max Height.) Full Width @ Half Maximum: The peak width at half the peak's maximum value (In the report worksheet, this column is named FWHM). Width At: Specifies whether to enable the Width At(% of peak maximum) text box below. Width At(% of peak maximum): The peak width at n% of the peak's maximum value, where n is the value entered in this text box. (In the report worksheet, this column is named WidthAtP.) Area above: Specifies whether to enable the Area above(% of peak maximum) text box below. Area above(% of peak maximum): The peak area above the n% of the peak's maximum value, where n is the value entered in this text box (In the report worksheet, this column is named AreaAbove). Cumulative Area to: Specifies whether to enable the Cumulative Area to(Relative to center) text box below. Cumulative Area to(Relative to center): The cumulative fitted area from $-\infty$ to X, where X is the value entered in this text box and will be viewed as a specified value relative to the peak center (In the report worksheet, this column is named CumArea). Peak Variance: variance of the function, which is the second moment ($m_2$). See 3rd Order Moment below (In the report worksheet, this column is named Variance). Peak Skew: Fisher skewness, which is a measure of the degree of asymmetry of the peak. $S=\frac{m_3}{\sqrt{{m_2}^3}}$ where $m_3$ is the 3rd order moment and $m_2$ is the 2nd order moment. See their computations below. (In the report worksheet, this column is named Skew.) Peak Excess: Fisher kurtosis, measures the long-tailedness or peakedness of the peak relative to the normal or Gaussian distribution with the same mean and variance. $E=\frac{m_4}{{m_2}^2}-3$ where $m_4$ is the 4th order moment and $m_2$ is the 2nd order moment. See their computations below. (In the report worksheet, this column is named Excess.) Resolution with Next Adjacent Peak. $R_s=\frac{X_{c2}-X_{c1}}{0.5\cdot (w_2+w_1)}$ where $X_{c1}$ and $X_{c2}$ are peak centers, and $w_1$ and $w_2$ are constructed base widths. (In the report worksheet, this column is named Resolution.) 3rd Order Moment: The moments are defined as follows: $m_o=\int_{-\infty}^\infty F(x)dx$ (0th moment or the area of the peak) $m_n'=\frac 1{m_0}\int_{-\infty}^\infty F(x)x^ndx$, where $n\ge1$(nth zero-point moment) $m_n=\frac 1{m_0}\int_{-\infty}^\infty F(x)(x-m_1')^ndx$, where $n\ge2$((nth central moment) (In the report worksheet, this column is named Moment3.) 4th Order Moment: The fourth order moment. See 3rd Order Moment above. (In the report worksheet, this column is named Moment4.) Moments Computation Methods: This is available only when a least one of the following check boxes are selected: Peak Skew, Peak Excess, Resolution with Next Adjacent Peak, 3rd Order Moment and 4th Order Moment. You can use this drop-down list to select the method to calculate the peak properties related to moments. Two options are available: Speed Mode (Numeric Integral): Use trapezoid rule to perform integration on datasets when computing the moments. Accurate Mode (Function Integral): Use the function definition to compute the moments. This is more accurate than the speed mode. Note: for a peak which you fit with GaussAmp, Gaussian, Lorentz or BiGaussian, the selection in this drop-down list will not apply. Instead, Origin used the fitted parameters to calculate the moments. Y Maximum: Output the Y maximum (with baseline) for each found peak.

#### The Configure Graph Branch

Create Summary Graph Specifies whether to create report graph. None: Do not to create report graph. New Graph: Create a new report graph. Source Graph: Only available when source data is from graph. Use source graph as report graph. It is available only when Create Summary Graph was selected to New Graph or Source Graph. Use this drop-down list to specify whether to show the result table on the report/summary graph. None No not add fitting result table to the graph. Summary Graph Add fitting result table to the summary graph. Report Graph Add fitting result table to the embedded graphs in the report sheet. Summary and Report Graphs Add fitting result table to both the summary graph and report sheet graph. Table Style Template: Specifies the table template (*.OTW) to be used to show the results on the graph. By default, the system template is used. The table template should be placed in Origin installation folder for it to be used directly by name, e.g., MyTable.otw. Quantities in Table: Specify the quantities to be shown on table by inputting it in format *Quantity Abbreviation. You can also click the more options button next to edit box to bring up Quantities in Table dialog and add/remove/order the quantities. When this checkbox is selected, fitted curves will be outputted and the controls under this branch will become available. Otherwise, the fitted curves will not be outputted and other controls will be unavailable. Plot Curves: Use this drop-down list to select the curves to be plotted. Individual Peak curve: A curve for each individual peak Cumulative Curve: Cumulative curve for all peaks Both: Both individual peak curve and cumulative curve will be plotted. Use Separate X Data for Individual Peak: Use separate X data for individual peak so every fitted peak has its individual X data column. If unchecked, all peaks will share a same X data column. X Data Points for Individual Peak: Only available when Use Separate X Data for Individual Peak checkbox is checked. Specify the number of data points for X column for each peak. Add back Baseline: Specifies whether to add the baseline to the fitted curves and spectrum curve, if the baseline has been subtracted from the source data. Plot in Report Table: Specifies whether to include the plots in the report table. Stack with Residual vs. Independents Plot: Stack the fitted curve with the Residual vs. Independents Plot. Update Legend on Source Graph: Specifies whether to auto update legend on the source graph. Available only when Create Summary Graph is set to . X Data Type: Specifies how to generate the X values of the fitted curve: Uniform Linear: The X values of the fitted curve are plotted on an evenly-spaced linear scale. Log: The X values of the fitted curve are plotted on a logarithmic scale. Same as Input Data: The X values of the fitted curve are the same as the input X values. Use Source Graph Scale Type: The X values of the fitted curve uses the same scale type of the source curve. Follow Curve Shape: The X values of the fitted curve are smartly computed so that the fitted curve will follow the source curve shape. It is very useful when the shape of the source curve changes rapidly in some areas. For example, multiple peaks center in a short X range. Points This control is available only when X Data Type is either Uniform Linear or Log. It specifies the total number of data points in a fitted curve. Range This control is available only when X Data Type is either Uniform Linear or Log. It specifies the range of the X values of the fitted curve. Select one of the following options: Use Input Data Range + Range Margin: Use the X range of the input data and range margin specified in the Range Margin (%) text box below. Span to Full Axis Range: Span the X values to the full axis range. Custom: Enter the minimum X value and maximum X value in the Min and Max edit boxes below. Range Margin (%): This control is available only when X Data Type is either Uniform Linear or Log and Use Input Data Range + Range Margin is selected for Range. It specifies the range margin into which the fitted curves extend. Min: This text box is available only when X Data Type is either Uniform Linear or Log and Custom is selected for Range. It specifies the minimum X value for the fitted curves. Max: This text box is available only when X Data Type is either Uniform Linear or Log and Custom is selected for Range. It specifies the maximum X value for the fitted curves. Confidence Bands: If this is checked, confidence bands will be added to the fitted curve plot as two lines with filled area in between. You can turn the area fill off or customize the fill pattern on the Line tab of Plot Details dialog. Prediction Bands: If this is checked, prediction bands will be added to the fitted curve plot as two lines with filled area in between. You can turn the area fill off or customize the fill pattern on the Line tab of Plot Details dialog. Confidence Level for Curves(%): Specify the confidence level for confidence bands and prediction bands. This is editable when either the Confidence Bands check box or the Prediction Bands check box is selected. Specifies whether to output the Residual vs. Independent plot. This Peak Report Fields group includes a display box and a toolbar with five buttons : Triangle Button for Select . Click this button then choose a peak property from fly-out menu: Peak Index: The index of the peak. (In the graph report, this column is named Peak Index. Peak Function Type: The function that was used to fit the peak. (In the graph report, this column is named Peak Type.) Fitted Peak Area: Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit. The integration is performed from $-\infty$ to $\infty$ (In the graph report, this column is named Area Fit). Fitted Peak Area Contained in Fitting Range: Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit (In the graph report, this column is named Area FitT). Fitted Peak Area Contained in Fitting Range(%): Integrate to find the area between the peak function and the baseline using the parameter values obtained from the fit. The integration is performed within the data range only. The result is expressed as a percent of the total area. (In the graph report, this column is named Area FitTP.) Peak Area by Integrating Data: Integrate to find the area between the peak data and the baseline. The integration is performed within the data range only (In the graph report, this column is named Area Intg). Peak Area by Integrating Data(%): Integrate to find the area between the peak data and the baseline. The integration is performed within the data range only. The result is expressed as a percent of the total area (In the graph report, this column is named Area IntgP). Location for Peak Maximum Height: The X value for the peak maximum (In the graph report, this column is named Center Max). Peak Gravity Center: The X value of the peak center of gravity ($m_1'$). See 3rd Order Moment below (In the graph report, this column is named Center Gravity). Peak Maximum Height: The Y value for the peak maximum (In the graph report, this column is named Max Height). Full Width @ Half Maximum: The peak width at half the peak's maximum value. (In the graph report, this column is named FWHM). Resolution with Next Adjacent Peak $R_s=\frac{X_{c2}-X_{c1}}{0.5\cdot (w_2+w_1)}$ where $X_{c1}$ and $X_{c2}$ are peak centers, and $w_1$ and $w_2$ are constructed base widths. (In the graph report, this column is named Resolution.) Width At: The peak area above the n% of the peak's maximum value, where n is specified by the Width At(% of Peak Maximum) text box in the Peaks branch of the Configure Report group. (In the graph report, this column is named WidthAtP.) Area above: The peak area above the n% of the peak's maximum value, where n is specified by the Area above(% of peak maximum) text box in the Peaks branch of the Configure Report group. (In the graph report, this column is named AreaAbove.) Cumulative Area to: The cumulative fitted area from $-\infty$ to X, where X is the value in the Cumulative Area to(Relative to center) text box in the Peaks branch of the Configure Report group and will be viewed as a specified value relative to the peak center. (In the graph report, this column is named CumArea.) Peak Variance: Variance of the function, which is the second moment ($m_2$). See 3rd Order Moment below. (In the graph report, this column is named Variance.) Peak Skew: Fisher skewness, which is a measure of the degree of asymmetry of the peak. $S=\frac{m_3}{\sqrt{{m_2}^3}}$ where $m_3$ is the 3rd order moment and $m_2$ is the 2nd order moment. See their computations below. (In the graph report, this column is named Skew.) Peak Excess: Fisher kurtosis, measures the long-tailedness or peakedness of the peak relative to the normal or Gaussian distribution with the same mean and variance. $E=\frac{m_4}{{m_2}^2}-3$ where $m_4$ is the 4th order moment and $m_2$ is the 2nd order moment. See their computations below. (In the graph report, this column is named Excess.) 3rd Order Moment: The moments are defined as follows: $m_o=\int_0^\infty F(x)dx$ (0th moment or the area of the peak) $m_n'=\frac 1{m_0}\int_0^\infty F(x)x^ndx$, where $n\ge1$(nth zero-point moment) $m_n=\frac 1{m_0}\int_0^\infty F(x)(x-m_1')^ndx$, where $n\ge2$((nth central moment) (In the graph report, this column is named Moment3). 4th Order Moment: The fourth order moment. See 3rd Order Moment above. (In the graph report, this column is named Moment4.) Add All: Add all quantities to Peak Report Fields edit box. Reset: Reset quantities in Peak Report Fields edit box. Remove button Remove the selected peak properties from the Display Box. This button is available when you select one or more selected peak properties in the box. Move Up button Move the selected peak properties up in the Display Box. Use this button to order the peak properties and the results table will follow this order. Move Down button Move the selected peak properties down in the Display Box. Use this button to order the peak properties and the results table will follow this order. Select All button Select all data peak properties down in the Display Box. When clicked, this button becomes Unselect All button .

## Quantities in Table Dialog Control

Only available when Show Result Table on Graph is checked under Result: Configure Graph node. This Quantities in Table dialog includes a display box and a toolbar with five buttons :

Display Box The selected quantities and added comments will display in this box. Click this button then choose a quantity or add comments from fly-out menu: Model: The function model used to fit the peaks. Plot: The data plot to be fitted. Weight: Weighting method. Parameters: Fitting Parameters of peak function. Derived Parameters: Derived parameters from fitting parameters. Parameters & Derived Parameters: Both fitting parameters and derived parameters. Reduced Chi-Sqr: The reduced Chi-Square value. Residual Sum of Squares: Residual sum of squares (RSS); or sum of square error. R-Square(COD): Coefficient of determination. Adj. R-Square: Adjusted coefficient of determination. Add All: Add all quantities in the list. Reset: Clear the quantity list. User Comments...: Click to open User Comments dialog. Specify comments to be inputted into the result table. Use comma to separate comments to arrange them into multiple columns in result table. Remove the selected quantities from the Display Box. This button is available when you select one or more selected quantities in the box. Move the selected quantities up in the Display Box. Use this button to order the quantities and the results table will follow this order. Move the selected quantities down in the Display Box. Use this button to order the quantities and the results table will follow this order. Select all data quantities down in the Display Box. When clicked, this button becomes Unselect All button .