Do you have sympy code for the example noted at the bottom of the collab that claims a ratio of > 9.77 including the mediation DKL? I tried with the parameters you mention and am getting a ratio of ~3.4 (which is still a violation of previous expectations, tbc.)
By the way, there seems to be an issue where sympy silently drops precision under some circumstances. Definitely a bug. A couple of times it’s caused non-trivial errors in my KLs. It’s pretty rare, but I don’t know any way to completely avoid it. Thinking of switching to a different library.
Do you have sympy code for the example noted at the bottom of the collab that claims a ratio of > 9.77 including the mediation DKL? I tried with the parameters you mention and am getting a ratio of ~3.4 (which is still a violation of previous expectations, tbc.)
That’ll be the difference between max and sum in the denominator. If you use sum it’s 3.39.
Here’s one we worked out last night, where the ratio goes to infinity.
By the way, there seems to be an issue where sympy silently drops precision under some circumstances. Definitely a bug. A couple of times it’s caused non-trivial errors in my KLs. It’s pretty rare, but I don’t know any way to completely avoid it. Thinking of switching to a different library.
Did you report the bug?