Belief updating in bipolar disorder predicts time of recurrence