The master equation and the arrow of time