Main Content

BinomialDistribution

二项式概率分配对象

描述

一个BinomialDistributionobject consists of parameters, a model description, and sample data for a binomial probability distribution

The binomial distribution models the total number of successes in repeated trials from an infinite population under the following conditions:

  • 每一个都只有两个结果ntrials.

  • 每个试验成功的可能性是恒定的。

  • 所有试验都是彼此独立的。

二项式分布使用以下参数。

范围 描述 金宝app
n 试验数 正整数
p Probability of success 0 p 1

创建

有几种创建一个方法BinomialDistribution概率分配对象。

  • 创建带有指定的分布参数瓦尔ues using制造者

  • Fit a distribution to data using菲迪斯特

  • Interactively fit a distribution to data using the分销钳工应用程序。

特性

展开全部

分布参数

试验数for the binomial distribution, specified as a positive integer value.

数据类型:单身的|双倍的

Probability of success of any individual trial for the binomial distribution, specified as a scalar value in the range[0,1]

数据类型:单身的|双倍的

分布特征

This property is read-only.

截断分布的逻辑标志,,,,specified as a logical value. If发出equals0,,,,the distribution is not truncated. If发出equals1,分布被截断。

数据类型:逻辑

This property is read-only.

概率分布的参数数量,指定为正整数值。

数据类型:双倍的

This property is read-only.

参数估计的协方差矩阵,指定为p-by-pmatrix, wherep是分布中的参数数。这 (一世,,,,j)element is the covariance between the estimates of the一世参数和j参数。这 (一世,,,,一世)element is the estimated variance of the一世参数。如果parameter一世是固定而不是通过将分布拟合到数据而估计的,然后一世,,,,一世)协方差矩阵的元素为0。

数据类型:双倍的

This property is read-only.

固定参数的逻辑标志,,,,specified as an array of logical values. If0,,,,the corresponding parameter in the范围names数组未固定。如果1,,,,the corresponding parameter in the范围names数组已固定。

数据类型:逻辑

This property is read-only.

Distribution parameter values, specified as a vector of scalar values.

数据类型:单身的|双倍的

This property is read-only.

截断间隔for the probability distribution, specified as a vector of scalar values containing the lower and upper truncation boundaries.

数据类型:单身的|双倍的

其他对象属性

This property is read-only.

概率分布名称,指定为字符向量。

数据类型:char

This property is read-only.

用于分配拟合的数据,指定为包含以下内容的结构:

  • data: Data vector used for distribution fitting.

  • cens:检查向量,或者如果没有,则空。

  • 弗雷克:频率向量,如果没有,则为空。

数据类型:结构

This property is read-only.

分布参数描述,指定为字符矢量的单元格数组。每个单元格包含一个分布参数的简短描述。

数据类型:char

This property is read-only.

分布参数名称,指定为字符向量的单元格数组。

数据类型:char

对象功能

CDF 累积分布函数
收集 收集的属性Statistics and Machine Learning Toolbox来自GPU的对象
ICDF Inverse cumulative distribution function
IQR Interquartile range of probability distribution
mean Mean of probability distribution
中位数 概率分布中位数
nenloglik 概率分布的负loglikeliones
paramci 概率分布参数的置信区间
PDF 概率密度函数
Proflik Profile likelihood function for probability distribution
随机的 随机数
标准 Standard deviation of probability distribution
截短 截断概率分配对象
var Variance of probability distribution

例子

全部收缩

Create a binomial distribution object using the default parameter values.

PD = Makedist(“二项式”
pd = binomialldistribution二项式分布n = 1 p = 0.5

通过指定参数值来创建二项式分布对象。

PD = Makedist(“二项式”,,,,'n',,,,30,'P',0.25)
pd = BinomialDistribution Binomial distribution N = 30 p = 0.25

Compute the mean of the distribution.

M =平均值(PD)
m = 7.5000

扩展功能

版本历史记录

Introduced in R2013a