def calculate_simpson_index(set1, set2):
    """Calculates the Simpson index of two sets"""
    size_intersection = float(len(set1.intersection(set2)))
    size_smaller_set = min(float(len(set1)), float(len(set2)))
    return size_intersection / size_smaller_set