def over_ranking_relations(CREDIBILITY_MODERATE, CREDIBILITY_GOOD, LAMBDA):
    """
    Built the over ranking relations matrix using the credibility vectors and the
    cutting threshold. The result is a matrix containing the following four outranking
    relations:
    - preference of ai over bk: '>'
    - preference of bk over ai: '<'
    - indifference: 'I'
    - incomparability: 'R'.

    :param CREDIBILITY_MODERATE: List of credibility values for the reference profil
        "moderate".

    :param CREDIBILITY_GOOD: List of credibility values for the reference profil "good".

    :param LAMBDA: Cutting threshold value.

    :return over_ranking: Dictionary containing the over ranking relation and where
        the keys are 'Floor', 'Moderate', 'Good' and 'Roof', représenting the limits
        and boundaries of the three different categories.
    """
    over_ranking_floor = []
    over_ranking_moderate = []
    over_ranking_good = []
    over_ranking_roof = []
    over_ranking = {}

    for i in range(len(CREDIBILITY_MODERATE['(ai,bk)'])):
        over_ranking_floor.append('>')
        if CREDIBILITY_MODERATE['(ai,bk)'][i] >= LAMBDA:
            if CREDIBILITY_MODERATE['(bk,ai)'][i] >= LAMBDA:
                over_ranking_moderate.append('I')
            else:
                over_ranking_moderate.append('>')
        else:
            if CREDIBILITY_MODERATE['(bk,ai)'][i] >= LAMBDA:
                over_ranking_moderate.append('<')
            else:
                over_ranking_moderate.append('R')

    for i in range(len(CREDIBILITY_GOOD['(ai,bk)'])):
        over_ranking_roof.append('<')
        if CREDIBILITY_GOOD['(ai,bk)'][i] >= LAMBDA:
            if CREDIBILITY_GOOD['(bk,ai)'][i] >= LAMBDA:
                over_ranking_good.append('I')
            else:
                over_ranking_good.append('>')
        else:
            if CREDIBILITY_GOOD['(bk,ai)'][i] >= LAMBDA:
                over_ranking_good.append('<')
            else:
                over_ranking_good.append('R')

    over_ranking['Floor'] = over_ranking_floor
    over_ranking['Moderate'] = over_ranking_moderate
    over_ranking['Good'] = over_ranking_good
    over_ranking['Roof'] = over_ranking_roof
    return over_ranking