std - Standard deviation of probability distribution - MATLAB
Standard deviation of probability distribution
Syntax
Description
Examples
collapse all
Load the sample data. Create a vector containing the first column of students' exam grade data.
load examgrades
x = grades(:,1);Fit a normal distribution object to the data.
pd =
NormalDistribution
Normal distribution
mu = 75.0083 [73.4321, 76.5846]
sigma = 8.7202 [7.7391, 9.98843]
Compute the standard deviation of the fitted distribution.
For a normal distribution, the standard deviation is equal to the parameter sigma.
Create a Weibull probability distribution object.
pd = makedist('Weibull','A',5,'B',2)
pd =
WeibullDistribution
Weibull distribution
A = 5
B = 2
Compute the standard deviation of the 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.
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 =
KernelDistribution
Kernel = normal
Bandwidth = 3.61677
Support = unbounded
Compute the standard deviation of the fitted distribution.
Input Arguments
Output Arguments
collapse all
Standard deviation of the probability distribution, returned as a nonnegative scalar value.
Extended Capabilities
Version History
Introduced in R2013a