Algorithm · Two Sigma · Medium
Requirements Given paired measurements (x_i, y_i), determine the coefficient for a one-variable ordinary least-squares regression whose intercept is fixed at zero. This task has been described in several equivalent forms: Receive two dataframes, match their columns in pairs, and calculate one regression coefficient for every paired set of columns. Receive a collection of (x, y) observations and return the OLS slope for the regression without an intercept. Follow-up:…
Checking your access…