Back to Browse

A Quant Finance Project in Python: Estimating a Risk Factor Model for a Stock with Live Data

23.5K views
Aug 18, 2021
1:01:05

In this tutorial we will learn how to estimate the Fama French Carhart four-factor risk model exposures for an arbitrary stock using live data in Python. We will cover the process and common pitfalls of pulling in live data from the Fama-French risk factor database and from Yahoo Finance, and running a factor sensitivity estimation using linear regression. *** Risk model details: https://en.wikipedia.org/wiki/Carhart_four-factor_model *** Python packages used Pandas: https://pandas.pydata.org/ Pandas Datareader: https://pandas-datareader.readthedocs.io/en/latest/ YFinance: https://aroussi.com/post/python-yahoo-finance Matplotlib: https://matplotlib.org/ Statsmodels: https://www.statsmodels.org/stable/index.html

Download

1 formats

Video Formats

360pmp4112.3 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

A Quant Finance Project in Python: Estimating a Risk Factor Model for a Stock with Live Data | NatokHD