Statistics for The automatic detection of patterns in people's movements