Semivariance is a measure of downside risk. It works like variance, but counts only observations that fall below a chosen reference point, usually the mean or a target return, and ignores those above it. For returns ri over n periods and a target B, it averages the squared shortfalls:
SV=n1i=1∑nmin(ri−B,0)2
The idea is that investors mind losses more than gains, so a measure that treats a large rise as risky can mislead. Where standard deviation treats upside and downside alike, the square root of semivariance gives downside deviation, which is the denominator of the Sortino ratio. Semivariance is central to post-modern portfolio theory. Harry Markowitz discussed it as an alternative to variance in his early work on portfolio selection, but it is harder to use in optimisation because it depends on the chosen target.