def likelihood(self):
        '''
        Compute likelihood.

        Returns:
            likelihood.
        '''
        try:
            likelihood = self.__success / (self.__success + self.__failure)
        except ZeroDivisionError:
            likelihood = 0.0
        return likelihood
Compute likelihood.

        Returns:
            likelihood.