def get_previous_n_numbers(data, previous_n, starting_index):
    """
    Return a list of the previous_n items, at starting_index
    """
    return data[starting_index - previous_n : starting_index]