Theories of humor
Computer Theory of Humor
It basically states that there is a need to delete the errors that can suddenly appear on our reasoning ant it works by zeroing of some part of the neural network and excessive energy of neurons is thrown out to the motor cortex, arousing muscular contractions.