Economist Jokes: A Typology - Michael Munger writes for Learn Liberty
Our thesis in our work on economist jokes is that there are really three factors: whether the joke is funny, or insightful, or makes fun of economists. If the unexpected alteration in point of view is too great, seems strained, or violates the internal logic of the joke itself, then we may say, “That’s not funny.” This may mean that the joke is not intended to be funny — though the teller finds it so — because the object is not humor, but rather mockery. And even mockery can be funny if the joke is also insightful.
Sometimes, truly good jokes are a kind of portmanteau, a combination of the three categories.