Confidence isn't optimism or pessimism, and it's not a character attribute. It's the expectation of a positive outcome.
The only way to achieve the impossible is to believe it is possible.