How computer algorithms make predictions