Statistical Mechanics From First Principles to Macroscopic Phenomen