This is the plot of one of the stories in I, Robot.
AI oracles are the central economic planners. But after years of perfection they have made a couple unusual "mistakes" and a human is trying to discover why.