Skip to content

Introduction to Python programming language, with a focus on basic data analysis and financial economics applications.

Notifications You must be signed in to change notification settings

ajda-marjanovic/Intro-to-Python-for-Asset-Pricing

Repository files navigation

Introduction to Python for Asset Pricing / Financial Economics

This repository contains Python files that I have created for a Master's course in Asset Pricing / Financial Economics.

The goal is to introduce students to the Python programming language, with a focus on basic data analysis and financial economics applications.

It is recommended to work through the files in the following order:

  1. introduction.py (Introduction to Python, Pandas, and NumPy)

  2. yfinance.py (Yahoo finance package for financial data, Intorduction to dictionaries)

  3. regressions.py (Financial data cleaning, Realized Variance and GARCH, CAPM, Fama-French factor model)

  4. portfolioopt.py

  5. time_series_analysis.py (Testing for stationarity, Forecasting with ARIMA model) - 'portfolio.csv' dataset is used here

  6. regularization.py (Regularization techniques: Ridge, Lasso)

    Companion slides for the regularization script can be found here

Make sure you have these libraries installed:

  • pandas
  • numpy
  • matplotlib
  • yfinance
  • arch
  • pandas_datareader
  • statsmodels
  • sklearn

About

Introduction to Python programming language, with a focus on basic data analysis and financial economics applications.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages