Text this: Mathematical and statistical modelling of cointegration