Contingency matrix