Back to Community
Multiple Linear Regression Lecture Beta

In the MLR lecture series I can't work out why running slr.params[1] is returning 2.78 but when printing summary.results() it shows X2 coef is 1.
Is the coef printed on the summary screen not reflecting the beta??

start = '2014-01-01'
end = '2015-01-01'
asset1 = get_pricing('AAPL', fields='price', start_date=start, end_date=end)
asset2 = get_pricing('FISV', fields='price', start_date=start, end_date=end)
benchmark = get_pricing('SPY', fields='price', start_date=start, end_date=end)

slr = regression.linear_model.OLS(asset1, sm.add_constant(asset2)).fit()
print 'SLR beta of asset2:', slr.params[1]
print results.summary()