alphalens 事件_Linius

Alphalens

Alphalens is a Python Library for performance analysis of predictive

(alpha) stock factors. Alphalens works great with the

Zipline open source backtesting library, and

Pyfolio which provides

performance and risk analysis of financial portfolios.

The main function of Alphalens is to surface the most relevant statistics

and plots about an alpha factor, including:

Returns Analysis

Information Coefficient Analysis

Turnover Analysis

Grouped Analysis

Getting started

With a signal and pricing data creating a factor "tear sheet" is a two step process:

import alphalens

# Ingest and format data

factor_data = alphalens.utils.get_clean_factor_and_forward_returns(my_factor,

pricing,

quantiles=5,

groupby=ticker_sector,

groupby_labels=sector_names)

# Run analysis

alphalens.tears.create_full_tear_sheet(factor_data)

Learn more

Check out the example notebooks for more on how to read and use

the factor tear sheet.

Installation

pip install git+https://github.com/quantopian/alphalens

Alphalens 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

For a full list of contributors see the contributors page.

Example Tear Sheet

Example factor courtesy of ExtractAlpha

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值