But the two statements are fundamentally different IMHO:
- Shakespeare writes of wisdom which comes in form of doubt. Only the wise men allow doubt into the conversation, hence their stance towards other parties is not aggressive and absolute, but rather flexible.
- The Dunning-Kruger effect, refers to personal biases of two categories.
However, I might be a little over-pedantic here, because comparing a study with a theatrical play can not be done in a straight way :-)
Don't worry, this is HackerNews, discussion among nerds of the highest form. Pedantry is what we do.
I think that while Shakespeare said it more poetically, he is essentially talking about the same thing. Perhaps Dunning-Kruger is more to the point and matter of fact, but it is the same thing. The expert speaks with doubt (because they know that there's so much more to know about a subject), and the fool speaks with certainty (because they do not know).
So maybe Shakespeare is describing half of Dunning-Kruger?
"The Dunning–Kruger effect is a cognitive bias manifesting in two principal ways: unskilled individuals tend to suffer from illusory superiority, mistakenly rating their ability much higher than is accurate, while highly skilled individuals tend to rate their ability lower than is accurate. In unskilled individuals, this bias is attributed to a metacognitive inability of the unskilled to recognize their ineptitude. Skilled individuals tend to underestimate their relative competence, erroneously assuming that tasks which are easy for them are also easy for others."
[1] http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect