How classical statistical and quantum mechanics related to?