There has been a correlation found between humor and creativity. The more creative an individual is, the more humor can they create and the better an individual can appreciate humor, the more creative they are.
Humor is one of the most distinguishable trait of human mind. It tells us more about how the human cognition than any other trait of humans. The significance of humor stems from the fact that humor is based on a logic which is different from the standard logic. Standard logic is bound by rules and has hard boundaries, while the the logic of humor cannot be bounded – perception is mapped to instant changes in emotion, something which cannot be explained by standard logic.
This is the link to a paper which deals with humor, creativity and cognition.