Statistics: Descriptive Statistics: Distribution Fit
Fit parametric distribution to data
Minimum Origin Version Required: Origin 2015 SR0
This feature is OriginPro only.
1. distfit stat.moment:=0 stat.sum:=1 test.mtest.mean:=35 test.mtest:=1 dist.wb:=1 dist.gamma:=1 plot.plotinone:=1 ksmod:=1 plotdata:=<new>;//Carry out distribution fit on the active data range
2. distfit irng:=[Book1]Sheet1!B group:=[Book1]Sheet1!A stat.perc:=0 stat.sum:=1 stat.kurt:=1 test.mtest:=0 test.stest.var:=20.14 test.stest.cis:="" test.stest:=1 type:=1 dist.bino:=1 plot.cdf:=1 ks:=1 plotdata:=<new>;
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Data Range | irng |
Input Range |
|
Specifies the input data range, could be multiple columns. Note that beginning with Origin 2020b, there is a shortened syntax that follows the form [Book]Sheet!(N1:N2), N1 = the beginning column index and N2 being the ending column index in a contiguous range of columns. More complex strings from non-contiguous data of the form [Book]Sheet!([Book]Sheet!N1:N2,[Book]Sheet!N3:N4) are also possible. |
Grouping Range | group |
Input Range |
|
Specifies the grouping range (optional), only one column can be specified. |
Basic Statistics | stat |
Input TreeNode |
|
Specify whether to output a specified descriptive statistics quantities. Each sub node controls refers to a quantity. Available sub nodes includes:
|
Basic Tests | test |
Input TreeNode |
|
Specify whether to carry out t-test or z-test or none, and also specify the test conditions. Available sub tree nodes are:
|
Distribution Type | type |
Input int |
|
Specify whether continuous distribution or discrete distribution to be performed. Option list:
|
Distributions | dist |
Input TreeNode |
|
Select one or multiple distribution to be fit for the input data. See the Origin Help page for different distributions. Each sub node refers to a distribution, available sub nodes include: For continuous distribution:
For discrete distribution:
|
Sample Size | sample |
Input string |
|
Only available when Binomial distribution is used (dist.bino = 1), to specify the sample size for this distribution. |
Plots | plot |
Input TreeNode |
|
Specify whether to output certain type of plots in the report sheet. Each sub node refers to a plot type, available sub nodes are:
|
Kolmogorov-Smirnov | ks |
Input int |
|
Specify whether to perform the Komogorov-Smirnov test. |
Kolmogorov-Smirnov (Modified) | ksmod |
Input int |
|
Specify whether to perform the Modified Komogorov-Smirnov test. |
Anderson-Darling | ad |
Input int |
|
Specify whether to perform the Modified Anderson-Darling test. |
Distribution Fit Report | rt |
Output ReportTree |
|
Specify the worksheet to output the distribution fit results. |
Plot Data | plotdata |
Output ReportData |
|
Specify a worksheet to output the plotted data (Origin generates tabular data when plots are created). |
You can refer to the Distribution Fit chapter in Origin Help under Statistics >> Descriptive Statistics.
You can refer to the Origin Help file for detailed algorithm.
Keywords:normal, lognormal, weibull, exponential, gamma, binomial, poisson, cumulative distribution, probability plot