Back to problems

Perform no-intercept linear regression from two datasets

Algorithm · Two Sigma · Medium

Two Pandas DataFrames are given. The table df_X is keyed by user_id and has two numeric feature columns, clicks and impressions. The table df_y is also keyed by user_id and contains the numeric target column conversions. You will fit a linear model through the origin, that is, without an intercept term. Example 1: primary sample data for Tasks 1–3 df_X user_id clicks impressions U01 4 25 U02 1 10 U03 3 20 U04 5 30 U05 2 15 df_y user_id conversions U01 7 U02 2 U03 5 U04 8 U05…

Checking your access…