A computer implemented method for comparing two groups of records to identify lab tests for use in diagnosis, prediction or treatment evaluation of a disease, the method comprising: receiving a medical code associated with a diagnosis of the disease; searching a database stored on a data storage device to obtain a first group of records associated with individuals having the medical code, wherein each record of the first group of records comprises one or more first lab test values, wherein each first lab test value is identified by a test code of one or more test codes; searching the database to obtain a second group of records associated with a control population, wherein each record of the second group of records comprises one or more second lab test values, wherein each second lab test value is identified by a respective test code of the one or more test codes; deriving percentile values from the first group and the second group of records for comparison; comparing representative values of the corresponding percentile values of both the first group and the second group and determining, from a relative degree of shift between the two corresponding values, a relevancy of each test code with the medical code; identifying one or more test codes wherein the relative difference indicates a statistically significant difference between the two groups of records based on a selected discovery threshold or criterion; and generating an output comprising a distribution graph on a shared scale from the first and second group of records, wherein the output represents the distribution of records identified by the one or more identified test codes in the presence of the received medical code as compared with those of the control population. receiving a medical code associated with a diagnosis of the disease; searching a database stored on a data storage device to obtain a first group of records associated with individuals having the medical code, wherein each record of the first group of records comprises one or more first lab test values, wherein each first lab test value is identified by a test code of one or more test codes; searching the database to obtain a second group of records associated with a control population, wherein each record of the second group of records comprises one or more second lab test values, wherein each second lab test value is identified by a respective test code of the one or more test codes; deriving percentile values from the first group and the second group of records for comparison; comparing representative values of the corresponding percentile values of both the first group and the second group and determining, from a relative degree of shift between the two corresponding values, a relevancy of each test code with the medical code; identifying one or more test codes wherein the relative difference indicates a statistically significant difference between the two groups of records based on a selected discovery threshold or criterion; and generating an output comprising a distribution graph on a shared scale from the first and second group of records, wherein the output represents the distribution of records identified by the one or more identified test codes in the presence of the received medical code as compared with those of the control population.