Answer:
Matilda compared her daddy to Shakespeare in a way that he was the opposite of him. His dad always said having a good strong hair meant having a good strong brain underneath, but Shakespeare was bald which meant his dad didn't have a good strong brain underneath.
Step-by-step explanation:
The question above refers to the Chapter entitled, "The Platinum-Blond Man" of the Matilda book.
At this time, Matilda thought that his father deserved a "severe form of punishment" after she was called a cheat and a liar by his father just because she was able to answer an arithmetic problem. Her revenge happened after they had a conversation about his dad's hair. She compared it sarcastically to that of Shakespeare.