You need to have a certain SOUL TRAIT. You can be cheerful or pessimistic after picking the SOUL TRAIT.