A Probabilistic Calculus for Molecular Systems