Skip to content

yadongcao/alphalens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Qfactor

Qfactor is a Python Library for performance analysis of predictive (alpha) stock factors. Qfactor works great with the Zipline open source backtesting library, and pyfolio which provides performance and risk analysis of financial portfolios.

The main function of Qfactor is to surface the most relevant statistics and plots about an alpha factor, including:

  • Information Coefficient Analysis
  • Returns Analysis
  • Turnover Analysis
  • Sector Analysis

Getting started

With a signal and pricing data creating a factor "tear sheet" is just:

 import qfactor

 qfactor.tears.create_factor_tear_sheet(my_factor, pricing)
:alt:

Learn more

Check out the `example notebooks <>`__ for more on how to read and use the factor tear sheet.

Installation

pip install qfactor

Qfactor depends on:

Usage

A good way to get started is to run the examples in a Jupyter notebook.

To get set up with an example, you can:

Run a Jupyter notebook server via:

jupyter notebook

From the notebook list page(usually found at http://localhost:8888/), navigate over to the examples directory, and open any file with a .ipynb extension.

Execute the code in a notebook cell by clicking on it and hitting Shift+Enter.

Questions?

If you find a bug, feel free to open an issue on our github tracker.

Contribute

If you want to contribute, a great place to start would be the help-wanted issues.

Credits

Example Tear Sheet

Example factor courtesy of ExtractAlpha <http://extractalpha.com/>

qfactor/examples/table_tear.png

qfactor/examples/returns_tear.png

qfactor/examples/ic_tear.png

About

Performance analysis of predictive (alpha) stock factors

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 98.7%
  • Python 1.3%