The anharmonic oscillator at a finite temperature. Comparison of quantum and classical stochastic calculations