Formal framework for quantitative Root Cause Analysis