Expected Maximum over Random Seeds

~16 mincode completion

Implement seed_variance_and_expected_max(scores, k) returning the array [s2, expected_max].

Where this shows up

~16 min

8 employers weight this skill

4 quant funds, 2 health and bio companies, 2 big tech firms. Top match scores 92.

Python
import numpy as np


def seed_variance_and_expected_max(scores, k):
    """
    Sample variance of seed scores and the expected best score over k seeds.

    Args:
        scores: (n,) validation score of each observed seed, in any order, n >= 2
        k:      number of seeds the maximum is taken over

    Returns:
        array [s2, expected_max]
    """
    # YOUR CODE HERE
    pass

Run your code to see results

⌘↵ runs against the visible tests

Loading docs…

The AI Mentor needs an account

It reads your code and the failing tests and nudges you toward the fix without handing you the answer. Free accounts get it on every problem you're working on today.