It looks like there is a typo in line 569 of this code, as it refers to bar_ddF instead of bar_ddf. The corresponding line in master (567) is fixed, so there may need to be an update in this installation. I think this is the main reason why the overlap is not defined, not anything to do with the math.
Mathematically, no overlap in the discrete distributions doesn't mean undefined overlap mathematically, but it does tail off exponentially.
Mathematically, I believe that in the limit of poor overlap, the BAR estimate does indeed converge to the average of the exponential average free energies. BAR is not providing any additional information in that situation.
Hi,
I am unsure how the
BAR
estimator calculates the free energy estimate if there is no overlap between work distributions. Even for distributions with no overlap, there is an estimate returned --- I created a minimal example here: https://colab.research.google.com/gist/wiederm/0cfc7f89ef56d461b7494a49a2de058b/understandingexp.ipynbThe estimate seems based on the forward and reverse EXP estimates, but that might be coincidental.