Because I'm curious, also calculate Gini index at each period.
test