The prediction is based upon factors like the ease of scoring on the day according to the pitch, weather and boundary size. For the team batting first, it gives the prediction of the final total. For the team batting second, it gives the probability of the chasing team winning, although it does not just take the match situation into equation. Predictions are based on the average team playing against the average team in those conditions.
