valueAtRisk
Syntax
Description
VaR = valueAtRisk("normal",
computes the value-at-risk (VaR) values for a standard normal distribution. The VaR levels
represent the potential loss percentage within a portfolio.VaRLevels)
VaR = valueAtRisk("normal",
specifies optional name-value arguments for a normal distribution. For example,
VaRLevels,Name=Value)valueAtRisk("normal",VaRLevels,Mean=10) specifies the mean value of
the distribution and computes the VaR values.
VaR = valueAtRisk("t",
specifies optional name-value arguments for the t location-scale
distribution. You can use the VaRLevels,DegreesOfFreedom=dof,Name=Value)Location name-value argument to shift
the center of the distribution along the x-axis. Use the
Scale name-value argument to control the spread of the
distribution. For example,
valueAtRisk("t",VaRLevels,DegreesOfFreedom=3,Location=5,Scale=2)
computes the VaR values using a t distribution centered at 5 with a
scale of 2.
VaR = valueAtRisk(
computes the VaR values for the probability distribution object, pdobj,VaRLevels)pdobj,
which you can create for any of the following supported distributions:
Normal distribution
t location-scale distribution
Piecewise linear distribution
Kernel distribution
Empirical distribution
Use the makedist function to create probability
distribution objects for normal, t location-scale, and piecewise
linear distributions. Create objects for kernel and empirical distributions by using the
fitdist function.