expectedShortfall
Syntax
Description
ES = expectedShortfall("normal",
          computes the expected shortfall (ES) values for a standard normal distribution. The VaR
          levels represent the potential loss percentage within a portfolio.VaRLevels)
ES = expectedShortfall("normal",
          specifies optional name-value arguments for a normal distribution. For example,
            VaRLevels,Name=Value)expectedShortfall("normal",VaRLevels,Mean=10) specifies the mean
          value of the distribution and computes the ES values.
ES = expectedShortfall("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,
            expectedShortfall("t",VaRLevels,DegreesOfFreedom=3,Location=5,Scale=2)
          computes the ES values using a t distribution centered at 5 with a
          scale of 2.
ES = expectedShortfall(
          computes the ES 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 
Use the makedist function to create a probability
          distribution object for the normal, t location-scale, or piecewise
          linear distributions. Create a probability distribution object for the kernel distribution
          by using the fitdist function.
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2025a