Peter McGraw is a marketing and psychology professor at the University of Colorado at Boulder, where he directs the Humor Research Lab (peter.mcgraw@colorado.edu). They co-wrote “The Humor Code: A Global Search for What Makes Things Funny.” This article first appeared in The Washington Post.