Skip to content
No description, website, or topics provided.
Python
Branch: master
Clone or download
Pull request Compare This branch is even with YTZzzzz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Part1.py
Part2.py
Part3.py
Part4.py
README.md
UIconnect.py
data.py
factor_exposure.py
final.py
regression.py
results.py
style_factor.py
utility.py

README.md

MultiFactors

Provide risk forecasts by Barra China Equity Model

Code Usage

  1. data.py Extract data from Wind database.

  2. style_factor.py Build style factors.

  3. factor_exposure.py Prepare factor exposures data for regression: truncate, winsorize and normalize style factors, build industry factors.Return a dataframe with hierarchy index (datetime, code) and columns containing: industry factors, 10 style factors, daily return and weight.

  4. regression.py Calculate factor returns by weighted linear regression. Predict risk by factor returns.

  5. utility.py Some utility functions.

  6. results.py Store the useful results of this model including: factor results attribution, risk forecast, effective factors selection.

  7. final.py Functions used to connect with UI.

  8. UIconnect.py is the mainfunction of UI system.

You can’t perform that action at this time.