このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

# var

## 構文

``v = var(pd)``

## 説明

``v = var(pd)` は確率分布 `pd` の分散 `v` を返します。`

## 例

すべて折りたたむ

```load examgrades x = grades(:,1);```

`pd = fitdist(x,'Normal')`
```pd = NormalDistribution Normal distribution mu = 75.0083 [73.4321, 76.5846] sigma = 8.7202 [7.7391, 9.98843] ```

`v = var(pd)`
```v = 76.0419 ```

ワイブル確率分布オブジェクトを作成します。

`pd = makedist('Weibull','A',5,'B',2)`
```pd = WeibullDistribution Weibull distribution A = 5 B = 2 ```

`v = var(pd)`
```v = 5.3650 ```

`pd = makedist('Triangular','A',-3,'B',1,'C',3)`
```pd = TriangularDistribution A = -3, B = 1, C = 3 ```

`v = var(pd)`
```v = 1.5556 ```

```load examgrades; x = grades(:,1);```

カーネル分布オブジェクトをデータにあてはめます。

`pd = fitdist(x,'Kernel')`
```pd = KernelDistribution Kernel = normal Bandwidth = 3.61677 Support = unbounded ```

`v = var(pd)`
```v = 88.4893 ```

## 入力引数

すべて折りたたむ

`BetaDistribution``makedist``fitdist`Distribution Fitter
`BinomialDistribution``makedist``fitdist`Distribution Fitter
`BirnbaumSaundersDistribution``makedist``fitdist`Distribution Fitter
`BurrDistribution``makedist``fitdist`Distribution Fitter
`ExponentialDistribution``makedist``fitdist`Distribution Fitter
`ExtremeValueDistribution``makedist``fitdist`Distribution Fitter
`GammaDistribution``makedist``fitdist`Distribution Fitter
`GeneralizedExtremeValueDistribution``makedist``fitdist`Distribution Fitter
`GeneralizedParetoDistribution``makedist``fitdist`Distribution Fitter
`HalfNormalDistribution``makedist``fitdist`Distribution Fitter
`InverseGaussianDistribution``makedist``fitdist`Distribution Fitter
`KernelDistribution``fitdist`Distribution Fitter
`LogisticDistribution``makedist``fitdist`Distribution Fitter
`LoglogisticDistribution``makedist``fitdist`Distribution Fitter
`LognormalDistribution``makedist``fitdist`Distribution Fitter
`LoguniformDistribution``makedist`
`MultinomialDistribution``makedist`
`NakagamiDistribution``makedist``fitdist`Distribution Fitter
`NegativeBinomialDistribution``makedist``fitdist`Distribution Fitter
`NormalDistribution``makedist``fitdist`Distribution Fitter
`PiecewiseLinearDistribution``makedist`
`PoissonDistribution``makedist``fitdist`Distribution Fitter
`RayleighDistribution``makedist``fitdist`Distribution Fitter
`RicianDistribution``makedist``fitdist`Distribution Fitter
`StableDistribution``makedist``fitdist`Distribution Fitter
`tLocationScaleDistribution``makedist``fitdist`Distribution Fitter
`TriangularDistribution``makedist`
`UniformDistribution``makedist`
`WeibullDistribution``makedist``fitdist`Distribution Fitter

すべて折りたたむ

R2013a で導入