unitily to analyze sequences of outcome