Mathematical Models For Legal Prediction