Skip to content

varun22802/VAR-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VaR

VaR calculation python library, including historical VaR, parametric VaR and PCA VaR
Third-Party Dependency: numpy, pandas, scipy, sklearn

Input data requirements

Historical VaR

The data should ascend by date which means the last row is most up-to-date

PCA VaR

The date of portfolio date should match the date of universe data
For example, the first row of portfolio price data and universe price data comes from the same day. This part can be done by my another library FinanceData

Demo Data

universe.csv

Price data from top 20 market capitalization stocks in 11 GIC sectors which in total 220 stocks. The date of price ranges from 2017/10/09 to 2018/10/08. This data set is used for generate principle components.

singleStock.csv

The price data from AAR Corp. (AIR). The date of price ranges from 2017/10/09 to 2018/10/08 which matches the dates in universe.csv

portfolio.csv

The portfolio price data from 2017/10/09 to 2018/10/08. The portfolio includes AIR, MMM, DIS and UPS.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages