1. A computer implemented method for performing analysis on a plurality of data stored in a database, the computer implemented method comprising: generating a first cohort from the plurality of data; generating an optimal control cohort from the plurality of data, wherein generating is performed based on the first cohort and at least one constraint, and wherein a mathematical process is used to derive the optimal control cohort; generating a first inference based on a comparison of the first cohort to the optimal control cohort, wherein the first inference is absent from the database; and storing the first inference.