Quantcast

Documentation Center

  • Trial Software
  • Product Updates

std

Class: prob.ParametricTruncatableDistribution
Package: prob

Standard deviation of probability distribution object

Syntax

s = std(pd)

Description

s = std(pd) returns the standard deviation s of the probability distribution pd.

Input Arguments

expand all

pd — Probability distributionprobability distribution object

Probability distribution, specified as a probability distribution object. Create a probability distribution object with specified parameter values using makedist.

Output Arguments

expand all

s — Standard deviationnonnegative scalar value

Standard deviation of the probability distribution, returned as a nonnegative scalar value.

Examples

expand all

Standard Deviation of a Triangular Distribution

Create a triangular distribution object.

pd = makedist('Triangular','a',-3,'b',1,'c',3)
pd = 

  TriangularDistribution

A = -3, B = 1, C = 3

Compute the standard deviation of the distribution.

s = std(pd)
s =

    1.2472

See Also

Was this topic helpful?