3

I would like to implement (in R) the evaluation of the Lévy distance between two curves. Given two cumulative distributions, the formal definition is the following (see also Wikipedia):

img

Essentially one is trying to find the largest square that can be drawed between the two curves.
I am dealing with two cumulatives which are step functions with same domain, so the implementation should be easier than the general case.
Thanks in advance.

Is there any library that implements this metric, or something similar. If not, could you suggest some hints to start from scratch?

Community
  • 1
  • 1
Mitch76
  • 89
  • 1
  • 8

0 Answers0