Statistical Mechanics and Foundations of Quantum Mechanics