Understanding the power of optimism