how investors learn from past mistakes