<s> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> from scipy import stats <EOL> stock_returns = [ <NUM_LIT> , <NUM_LIT> , - <NUM_LIT> , - <NUM_LIT> , <NUM_LIT> ] <EOL> mkt_returns = [ <NUM_LIT> , - <NUM_LIT> , - <NUM_LIT> , <NUM_LIT> , <NUM_LIT> ] <EOL> beta , alpha , r_value , p_value , std_err = stats . linregress ( stock_returns , mkt_returns ) <EOL> print beta , alpha <EOL> """<STR_LIT>""" <EOL> rf = <NUM_LIT> <EOL> mrisk_prem = <NUM_LIT> <EOL> risk_prem = mrisk_prem * beta <EOL> print "<STR_LIT>" , risk_prem <EOL> expected_stock_return = rf + risk_prem <EOL> print "<STR_LIT>" , expected_stock_return </s>
