Value at risk (VaR) is a procedure for estimating the maximum loss associated with a security or portfolio over a specific period of time, associated with a given confidence level. VaR can be used to measure either market risk or credit risk. In a loss distribution, loss can be either expected loss (EL) or unexpected loss (UL). The UL is considered the measure of VaR.