Humor arises from cognitive and emotional mechanisms. Key ingredients:
Setup creates a prediction; punchline subverts it logically-but-surprisingly. "I told my wife she was drawing her eyebrows too high. She looked surprised."
Laughing at others' misfortunes (schadenfreude) or releasing tension (taboo topics, fear).
Something threatens our sense of order but is simultaneously safe/acceptable. Tickling, puns, absurdity.
Brain predicts pattern → pattern breaks → "aha!" moment = laughter.
Culture, language, personal experience, mood, and timing all determine what lands. No universal formula.
Core: A benign violation that resolves in surprise.