The book builds on an analogy between social groups and assemblies of molecules to introduce the concepts of statistical mechanics, machine learning and data science. Applications to systems at the cutting-edge of research e.g. environmental and energy applications, will be used.