Doubt is the expectation of failure. We have it as a way to protect ourselves from being surprised by failure, that is, to keep ourselves from believing and basing our thoughts and actions on things that are not true.