Entropy and large deviation