I want calculate relative entropy between two strings of binary such as:
It is primarily when the lengths of two strings is same and in general when the length is not same. and how calculate $p$ and $q$. Is it related to frequency in string or need infer from some more general distribution or what?
For example what is the $q$ and $p$ here?