How estimating agricultural yields optimizes farm management