Included a function to create a matrix of predictions to look at error prediction