Finished the script for producing prediction stats.