Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

std

Class: prob.KernelDistribution
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

Probability distribution, specified as a probability distribution object. Fit a probability distribution object to data using fitdist or the Distribution Fitting app.

Output Arguments

expand all

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

Examples

expand all

Load the sample data. Create a vector containing the first column of students' exam grade data.

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

Create a probability distribution object by fitting a kernel distribution to the data.

pd = fitdist(x,'Kernel')
pd = 

  KernelDistribution

    Kernel = normal
    Bandwidth = 3.61677
    Support = unbounded

Compute the standard deviation of the fitted distribution.

s = std(pd)
s =

    9.4069

See Also

|

Was this topic helpful?