Portfolio value at risk (VaR)
returns the maximum potential loss in the value of a portfolio over one period of time (that is, monthly, quarterly, yearly, and so on) given the loss probability level.ValueAtRisk
= portvrisk(PortReturn
,PortRisk
)portvrisk
calculatesValueAtRisk
using a normal distribution.
adds optional arguments forValueAtRisk
= portvrisk(___,RiskThreshold
,PortValue
)RiskThreshold
andPortValue
.