Statistics for Episodes and Topics in Multivariate Temporal Data