Welch Interval for a Seed Gap
~12 mincode completion
Implement seed_gap_interval(scores_a, scores_b, t_star) returning the array [gap, se_gap, low, high]. Keep the sign of the gap, and assume each method has at least two seeds.
Where this shows up
~12 min
••••••••••••••••
8 employers weight this skill
4 quant funds, 2 health and bio companies, 2 big tech firms. Top match scores 93.
Python
import numpy as np
def seed_gap_interval(scores_a, scores_b, t_star):
"""
Gap between two methods' mean seed scores, with a Welch interval.
Args:
scores_a: one score per seed for method A, shape (n_a,), n_a >= 2
scores_b: one score per seed for method B, shape (n_b,), n_b >= 2
t_star: critical value for the interval, e.g. 1.96
Returns:
array [gap, se_gap, low, high] with gap = mean_a - mean_b
"""
# YOUR CODE HERE
pass