def frequency_dict(my_list):
    """Creates a dictionary from the frequencies of elements in a list."""

    frequencies = {}

    for element in set(my_list):
        n = my_list.count(element)
        if n > 1:
            frequencies[element] = n

    return frequencies