input x ↓ estimate p(y | x) ↓ compare candidate outputs ↓ select the most probable y