Statistical analysis of attendance patterns