Three-term contingency refers to the relationship between a discriminative stimulus, an operant behavior, and a reinforcer or punisher.