def get_predictor_cost(x, y, rho, sens, spec, cov):
    """
    Calculate the predictor's cost on a point (x, y) based on the rho and its sensitivity, specificity and coverage
    """
    return x * ((rho * cov * (1 - sens)) + cov - 1) + y * (((1 - rho) * cov * (1 - spec)) + cov - 1) + 1 - cov