The Linear Regression dialog can be used to fit the simple linear model to your data:
y = β0 + β1x
where β0 is the intercept and β1 is the slope.
Origin's linear regression dialog box can be opened from an active worksheet or graph. From the menu:
See Also:
| Recalculate |
Controls recalculation of analysis results
For more information, see: Recalculating Analysis Results |
|---|
| Multi-Data Fit Mode |
This control is available only when there is more than one input dataset.
|
|---|
| Range |
Specify the input XY data range X
Y
Error
Rows
For more information, see: Specifying Your Input Data |
|---|
| Errors as Weight |
Use error bars as value for weights. Only available when a designated Error column is selected.
For more information, see: Weighted Fitting | ||
|---|---|---|---|
| Fix Intercept |
Restrict the intercept to the value specified. | ||
| Fix Intercept at |
Specify the intercept. | ||
| Fix Slope |
Restrict the slope to the value specified. | ||
| Fix Slope at |
Specify the slope. | ||
| Scale Error with sqrt(Reduced Chi-Sqr) |
Available when fitting with weight. This check box only affects the error on the parameters reported from the fitting process, and does not affect the fitting process or the data in any way. By default, it is checked, and the covariance matrix is calculated by: When it is checked, it uses reduced Chi-Sqr to estimate error variance, and parameter's standard error is scaled by it, otherwise error variance is specified with 1, and parameter's standard error is not scaled.
| ||
| Apparent Fit |
Use the apparent values for fitting, according to the current axis scales. For example, select this box to fit exponentially decaying data with a straight line fit when data are plotted on a log scale. When this check box is selected and the data has error values associated with it, Origin uses the larger of the positive/negative errors as weight. | ||
| Invalid Weight Data Treatment |
| ||
| Custom Weight |
Set the value of Custom Weight. This option is available when Replace with Custom Value is selected. |
Apparent Fit is useful when you are performing a fit on data in an active graph window and you have changed the plot axis type (e.g. from Linear to Log10). When you select this option, the fitter will first transform your raw data into a new data space as specified by the graph axis type, and then fit the curve of the new data. Otherwise, Origin always fits raw data directly, regardless of the axis type. An apparent fit is equivalent to a direct fit performed on transformed raw worksheet data. All items in Residual Analysis are available for Apparent Fit. Outliers identification is also supported in Apparent Fit. |
| Fit Parameters |
Value
Standard Error
LCL
UCL
Confidence Level for Parameters (%)
t-Value
prob>|t|
CI Half-Width
For more information, see: Parameters |
|---|---|
| Fit Statistics |
Number of Points
Degrees of Freedom
Reduced Chi-Sqr
R Value
Residual Sum of Squares
Pearson's r
R-Square (COD)
Adj. R-Square
Root-MSE (SD)
Norm of Residuals
For more information, see Statistics |
| Fit Summary |
Output the fit summary table. This table organizes fit parameters by row for each curve (dependent data). |
| ANOVA |
Output the analysis of variance table. For more information, see: ANOVA Table |
| Lack of Fit Test |
Output the Lack of Fit results for fitting replicate data, which is used to measure the adequacy of the specified model. For more information, see: Lack of Fit Table |
| Covariance matrix |
Output the covariance matrix. For more information, see: Covariance and Correlation Matrix |
| Correlation matrix |
Output the correlation matrix. For more information, see: Covariance and Correlation Matrix |
| Outliers |
Output outliers list. |
| X Intercept |
Intercept of the fitted curve with line Y = 0. |
Select methods to calculate and output residuals. For more information, see Graphical Residual Analysis
| Regular |
Output the regular residuals. |
|---|---|
| Standardized |
Output the standardized residuals. |
| Studentized |
Output the studentized (internally studentized ) residuals. |
| Studentized Deleted |
Output studentized deleted (externally studentized) residuals. |
| Graph |
Results Table
Arrange Graphs into Columns
Arrange Plots of Same Type in One Graph
Arrange Residual Plots in One Graph
|
|---|---|
| Fitted Results Sheet Arrangement |
This drop-down list is only available when multiple datasets are input. Specify how to arrange the fitted result worksheets.
|
| Dataset Identifier | Specify how to label the source data in your output.
|
| Report Tables |
Specifies the destination of report tables.
|
| Fitted Curves |
Specifies the destination workbooks and worksheet for the fitted values.
|
| Fit Residuals |
|
| Find Specific X/Y Tables |
Specify the destination of Find Specific X/Y tables. This branch is only available when either the Find X from Y check box or the Find Y from X check box is selected.
|
| Optional Report Tables |
Specifies what is output to report worksheet.
|
| Plot in Report Table |
When the checkbox is selected, fitted curves will be added to Report Table. |
|---|---|
| Plot on Source Graph |
This option is available only when the input datasets are from a graph. It can be used to specify whether to add the fitted curve to the original graph.
|
| Stack with Residual vs. Independents Plot | Stack the fitted curve with the Residual vs. Independents Plot. |
| Update Legend on Source Graph |
Specify whether to update legend on the source graph. |
| Multiple Plots Use Source Graph Color |
Specify whether to use color settings of source graph to color multiple fitted curves. |
| X Data Type |
Specify how to generate the X values of the fitted curve.
|
| 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. For more information, see Confidence and Prediction Bands |
| 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. For more information, see Confidence and Prediction Bands |
| Confidence Level for Curves (%) |
Specify the confidence level for confidence bands and prediction bands. |
| Ellipse |
Check this check box to add the confidence ellipse to the fitted curve plot based on the chosen confidence level.
For more information, see: Confidence Ellipses. |
A Find Y from X table is used to obtain a dependent variable value that corresponds to a given independent variable value. A Find X from Y table is used to obtain an independent variable value for a given dependent variable value.
For more information, see: Finding Y/X from X/Y Standard Curves
| Find X From Y |
Generate a Find X From Y table.
|
|---|---|
| Find Y From X |
Generate a Find Y From X table.
|
|
Note: If you choose Apparent Fit, the Find X From Y and Find Y from X tables will find values on the transformed scale. |
Use the controls in this branch to customize the residual plots. For more information, see Graphical Residual Analysis
| Residual Plots |
Use the controls in this branch to customize the residual plots.
For the selected residual type, you can opt to output up to six residual plots:
|
|---|