This blog is all about informatory articles based on my experience on various areas, including information technology, communications research, stock trading, traveling and cooking.
Monday, 27 October 2014
Sunday, 5 October 2014
Calculation of Beta of Stocks Using Python Libraries (Stock Risk Analysis)
As an example, let us consider Coca Cola (NYSE:KO). Historical Coca Cola stock data can be downloaded from Google Finance:
Historical NYSE:KO Data
Suppose we consider NYSE:SPY as the market indicator/index in calculating beta. Historical stock data of NYSE:SPY can be downloaded from Google Finance:
Historical NYSE:SPY Data
The following python script finds the beta value for market indicator and symbol historical data file names passed as command line parameters:
Historical NYSE:KO Data
Suppose we consider NYSE:SPY as the market indicator/index in calculating beta. Historical stock data of NYSE:SPY can be downloaded from Google Finance:
Historical NYSE:SPY Data
The following python script finds the beta value for market indicator and symbol historical data file names passed as command line parameters: