confidence vs pessimism

confidence

noun
  • A feeling of certainty; firm trust or belief; faith. 

  • Information held in secret; a piece of information shared but to thence be kept in secret. 

  • Self-assurance. 

pessimism

noun
  • A general belief that bad things will happen. 

  • The condition of being pessimal. 

  • The doctrine that this world is the worst of all possible worlds. 

How often have the words confidence and pessimism occurred in a corpus of books? (source: Google Ngram Viewer )