In this paper we propose a general framework for quantification of model risk. This framework allows us to allocate regulatory capital to positions in a given market depending on the extent to which this market can be reliably modeled. Our approach is based on computing worst-case risk measures...