主要内容

tLocationScaleDistribution

tLocation-Scale probability distribution object

描述

AtLocationScaleDistribution对象由参数,模型描述和示例数据组成tlocation-scale probability distribution.

Thet与正态分布相比,位置尺度分布可用于建模具有较重的尾巴(更容易出现离群值)的数据分布。它接近正态分布ν接近无穷大,较小的值νyield heavier tails.

Thetlocation-scale distribution uses the following parameters.

Parameter 描述 金宝app
位置参数 < μ <
sigma 比例参数 σ > 0
nu Shape parameter ν > 0

Creation

There are several ways to create atLocationScaleDistributionprobability distribution object.

Properties

expand all

Distribution Parameters

位置参数tlocation-scale distribution, specified as a scalar value.

Data Types:single|double

比例参数of thetlocation-scale distribution, specified as a positive scalar value.

Data Types:single|double

Degrees of freedom of thetlocation-scale distribution, specified as a positive scalar value.

Data Types:single|double

Distribution Characteristics

此属性仅阅读。

截断分布的逻辑标志,指定为逻辑值。如果IsTruncated等于0,分布没有截断。如果IsTruncated等于1, the distribution is truncated.

Data Types:logical

此属性仅阅读。

参数数for the probability distribution, specified as a positive integer value.

Data Types:double

此属性仅阅读。

Covariance matrix of the parameter estimates, specified as ap-经过-p矩阵,哪里pis the number of parameters in the distribution. The (i,j)元素是估计值之间的协方差ith parameter and thej参数。The (i,i)元素是估计的差异i参数。如果参数iis fixed rather than estimated by fitting the distribution to data, then the (i,i) elements of the covariance matrix are 0.

Data Types:double

此属性仅阅读。

固定参数的逻辑标志,指定为逻辑值的数组。如果0,在参数名称array is not fixed. If1,在参数名称array is fixed.

Data Types:logical

此属性仅阅读。

分布参数值,指定为标量值的向量。

Data Types:single|double

此属性仅阅读。

概率分布的截断间隔,指定为包含下部和上部截断边界的标量值的向量。

Data Types:single|double

Other Object Properties

此属性仅阅读。

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

Data Types:char

此属性仅阅读。

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

  • 数据:用于分配拟合的数据向量。

  • Cens: Censoring vector, or empty if none.

  • freq: Frequency vector, or empty if none.

Data Types:struct

此属性仅阅读。

Distribution parameter descriptions, specified as a cell array of character vectors. Each cell contains a short description of one distribution parameter.

Data Types:char

此属性仅阅读。

分布参数名称, specified as a cell array of character vectors.

Data Types:char

Object Functions

cdf Cumulative distribution function
gather Gather properties of统计和机器学习工具箱object from GPU
icdf 反向分布函数
iqr Interquartile range
意思是 概率分布的平均值
median Median of probability distribution
negloglik Negative loglikelihood of probability distribution
paramci Confidence intervals for probability distribution parameters
pdf Probability density function
proflik 概率的概率分布功能
random Random numbers
std 概率分布的标准偏差
truncate Truncate probability distribution object
var 概率分布的差异

Examples

collapse all

Create a t location scale distribution object using the default parameter values.

pd = makedist('tlocationscale')
pd = tLocationScaleDistribution t Location-Scale distribution mu = 0 sigma = 1 nu = 5

Create a t location-scale distribution object by specifying the parameter values.

pd = makedist('tlocationscale','亩',-2,'sigma',1,'nu',20)
pd = tLocationScaleDistribution t Location-Scale distribution mu = -2 sigma = 1 nu = 20

Compute the interquartile range of the distribution.

r = iqr(pd)
r = 1.3739

Extended Capabilities

在R2013a中引入