The Yerkes–Dodson law states that there is a relationship between arousal and task performance, essentially arguing that there is an optimal level of arousal for performance, and too little or too much arousal can adversely affect task performance.