Probability Estimation from a Database Using a Gibbs Energy Model