Being sure isn't the same as being right.
Being sure is a state of mind whereas being right is a state of the Universe.
These things don't correlate as well as one would hope, unfortunately. So, next time you feel so cock sure about something, remember this and be humble.