Theoretical connections between optimization algorithms based on an approximate gradient