Statistics for Categorical sequential pattern mining in a spatio-temporal environment