Two aspects of systemic risk, the risk that banks fail together, are modeled and their interaction examined: First, the ex-post aspect, in which the failure of a bank brings down a surviving bank as well, and second, the ex-ante aspect, in which banks endogenously hold correlated portfolios...