Stochastic modelling and data analysis