“Mind and Society” by Vilfredo Pareto is a staggeringly great book. Four volumes. Run don’t walk! It’s available in the Internet Archive for free.