Definition of stupidity from The Basic Laws of Human Stupidity (haven’t read):

A stupid person is a person who causes losses to another person or to a group of persons while himself deriving no gain and even possibly incurring loss.