Main Content

分销钳工

Fit probability distributions to data

Description

分销钳工APP可以交互拟合概率分布到从MATLAB导入的数据®workspace. You can choose from 22 built-in probability distributions or create your own custom distribution. The app displays plots of the fitted distribution superimposed on a histogram of the data. Available plots include probability density function (pdf), cumulative distribution function (cdf), probability plots, and survivor functions. You can export the fitted parameter values to the workspace as a probability distribution object, and use object functions to perform further analyses. For more information on working with these objects, see使用概率分布。有关配电钳工应用程序的编程工作流程,请参见distributionFitter

Required Products

  • MATLAB

  • 统计和机器学习工具箱™

笔记:分销钳工does not provide printing, custom distribution defining, or code generating functionality inMatlab Online™

打开配电钳工应用程序

  • MATLAB工具条:在应用标签,下Math, Statistics and Optimization,,,,click the app icon.

  • MATLAB command prompt: EnterdistributionFitter

参数

Data

通过从下拉列表中选择变量来指定要导入的数据。如果变量是矩阵,则该应用程序默认情况下将导入矩阵的第一列。要选择矩阵的不同列或行,请单击选择列或行。Alternatively, you can enter any valid MATLAB expression in the field.

指定the censoring data by selecting a variable from the drop-down list. If the variable is a matrix, the app imports the first column of the matrix by default. To select a different column or row of the matrix, click选择列或行。此参数是可选的。

指定the frequency data by selecting a variable from the drop-down list. If the variable is a matrix, the app imports the first column of the matrix by default. To select a different column or row of the matrix, click选择列或行。此参数是可选的。

Enter a name for the data set or accept the default name.

Manage previously imported data sets. Click the data set of interest, then click the buttons below this pane to view the data (看法),设置bin规则(Set Bin Rules),,,,rename the data set (改名),,,,or delete the data set (删除)。

显示从该变量中选择的预览图Datadrop-down menu.

新合身

输入拟合的名称或接受默认名称。

指定the data to fit by selecting a data set from the drop-down list.

指定the distribution to fit by selecting a distribution name from the drop-down list.

通过从下拉列表中选择排除规则来指定规则以排除某些数据值。要填充此下拉列表,您必须首先通过单击来定义排除规则Exclude在应用程序的主窗口中。此参数是可选的

Manage fits

指定which fit or fits to plot in the main window by selecting thePlotcheck box next to each fit. Clear thePlot复选框以删除图中的拟合。

如果you selectPlot对于特别合适的您,您可以选择conf界在主窗口中显示该拟合的置信界。清理conf界复选框从图中删除置信区间。仅当主窗口中的显示类型设置为Cumulative probability (CDF),,,,分位数(逆CDF),,,,幸存者功能, 或者累积危害

Evaluate

从列表中选择一个或多个拟合进行评估。

指定the type of probability function to evaluate from the drop-down list. Available probability functions include the probability density function (pdf), cumulative distribution function (cdf), quantile (inverse cdf), survival function, cumulative hazard, and hazard rate.

指定a numeric vector of values at which to evaluate the function. If you specifyFunction作为分位数(逆CDF),此字段名称更改为在p =然后您输入概率值的向量。

选择Compute confidence bounds计算所选拟合的置信界。仅在指定时才启用此复选框Function作为Cumulative probability (CDF),,,,分位数(逆CDF),,,,幸存者功能, 或者累积危害。此参数是可选的。

指定the level at which to compute the confidence bounds. This check box is enabled only if you specifyFunction作为Cumulative probability (CDF),,,,分位数(逆CDF),,,,幸存者功能, 或者累积危害

选择Plot functionto display a plot of the distribution function, evaluated at the points that you enter in the在x =字段,在新窗口中。此参数是可选的。

Exclude

Enter a name for the exclusion rule.

为数据指定数据的上限和上限。

通过从该数据中选择一个从选择数据drop-down list and clickingExclude Graphically。一个互动的情节在一个新的窗口中打开,you can add lower or upper limits by clicking and dragging a boundary on the plot.

从列表中选择现有的排除规则。您可以通过单击适当的按钮来复制,查看,重命名或删除排除规则。

程序化使用

expand all

distributionFitter打开Distribution Fitter应用程序,或者如果已经打开了该应用程序。

distributionFitter(y)打开用矢量指定的数据填充的分发钳工应用程序y

distributionFitter(y,,,,censuses the vectorcensto specify whether the observationy(j)被审查,(cens(j)==1),或完全观察到(cens(j)==0)。如果cens被省略或空,不y值受到审查。

distributionFitter(y,,,,cens,,,,弗雷克uses the vector弗雷克指定每个元素包含的频率y。如果弗雷克is omitted or empty, then all values inyhave a frequency of 1.

distributionFitter(y,,,,cens,,,,弗雷克,,,,dsname创建一个名称的数据集dsnameusing the data vector,y,检查指标,cens,,,,and frequency vector,弗雷克。指定dsname作为字符向量或字符串标量,例如'mydata'

Introduced before R2006a