Numerical code for risk prediction