[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Code for alpha & beta?



PureBytes Links

Trading Reference Links

Hi, All:

Given data1 and data2, does anyone have code for determining the
alpha and/ or beta of one data stream with respect to the other?

As I understand it, they're calculated as follows:

Total Return of Stock = Beta * Total Return of S&P500 (e.g.) + Alpha

A best fit line is calculated using linear regression...


Cheers,

CAB VINTON
cvinton@xxxxxxxxxxxxxx