Counterfactual explanations (CE) analyze how single data points need to be changed to produce a certain prediction outcome. The idea behind CE and its mathematical foundation are topic of this section.