contingency analysis