A computer implemented method for generating digital models of relative crop yield based on nitrate values in the soil is provided. In an embodiment, nitrate measurements from soil during a particular portion of a crop's development and corresponding crop yields are received by an agricultural intelligence computing system. Based, at least in part, on the nitrate measurements and corresponding crop yields, the system determines maximum yields for each location of a plurality of locations. The system then converts each crop yield value into a relative crop yield by dividing the crop yield value by the maximum crop yield for the location. Using the relative crop yields and the corresponding nitrate values in the soil, the system generates a digital model of relative crop yield as a function of nitrate in the soil during the particular portion of the crop's development. When the system receives nitrate measurements from soil in a particular field during the particular portion of a crop's development, the system computes a relative yield value for the particular field using the model of relative crop yield.