I'm running phi_k on a sample (1 mio rows) of my large dataset (>> 1 mio rows). Quite often, I get the following error:
ValueError: f(a) and f(b) must have different signs
This doesn't always happen; apparently it depends on the sample that is drawn. What could cause this error?