Python for Finance (MaBDA)
This is a mini-course introduction to financial applications in Python for the LUISS Business School Master in Big Data Analytics. The course has a strong focus on data analytics and will also provide an introduction to the use of Python.
The main reference for the Python examples is Yves Hilpisch, Python for Finance: Analyze Big Financial Data (2015) (the latest edition is from 2019 with a slightly modiefied tititle "Mastering Data-Driven Finance").
Topic 1: A primer on data visualization with Python matplotlib.
Python notebook: using Python for data visualization (matplotlib).
Python notebook: a note on tuple, lists and dictionaries [required data files: file1].
Topic 2: A primer on working with the dataframe class with Python pandas and financial time series.
Python notebook: using dataframes with pandas.
Basic stylized facts from financial time series [pdf].
Topic 3: Mathematical tools for finance
Python notebook: using Python for regression and interpolation
Python notebook: using Python for statical analysis and simulations
Python notebook: using Python for simple math finance problems (present value, IRR, etc.)
Topic 4: Portfolio optimization
Python notebook: optimal portfolio, efficient frontier and Sharpe ratios
Links to data for in-class applications: