The process of doing mathematics is more important than the result.
Confidence isn't optimism or pessimism, and it's not a character attribute. It's the expectation of a positive outcome.