Definition

The TD error is the difference between the target and the current prediction.

TD error for State-Value Function

TD error for SARSA

TD error for Q-Learning