This is an example of an out-of-sample problem. As easy as it might seem to avoid this sort of problem, the ratings agencies made just this mistake. Moody’s estimated the extent to which mortgage defaults were correlated with one another by building a model from past data – specifically, they looked at American housing data going back to about the 1980s.