All Projects → quantopian → Alphalens

quantopian / Alphalens

Licence: apache-2.0
Performance analysis of predictive (alpha) stock factors

Programming Languages

Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to Alphalens

Machinelearningcourse
A collection of notebooks of my Machine Learning class written in python 3
Stars: ✭ 35 (-98.36%)
Mutual labels:  jupyter-notebook, jupyter, pandas, numpy
Learnpythonforresearch
This repository provides everything you need to get started with Python for (social science) research.
Stars: ✭ 163 (-92.35%)
Mutual labels:  jupyter-notebook, jupyter, pandas, finance
Cheatsheets.pdf
📚 Various cheatsheets in PDF
Stars: ✭ 159 (-92.54%)
Mutual labels:  jupyter-notebook, jupyter, pandas, numpy
Pandapy
PandaPy has the speed of NumPy and the usability of Pandas 10x to 50x faster (by @firmai)
Stars: ✭ 474 (-77.75%)
Mutual labels:  pandas, finance, algorithmic-trading, numpy
Py
Repository to store sample python programs for python learning
Stars: ✭ 4,154 (+95.02%)
Mutual labels:  jupyter-notebook, jupyter, pandas, numpy
Opendatawrangling
공공데이터 분석
Stars: ✭ 148 (-93.05%)
Mutual labels:  jupyter-notebook, jupyter, pandas, numpy
Data Science Complete Tutorial
For extensive instructor led learning
Stars: ✭ 1,027 (-51.78%)
Mutual labels:  jupyter-notebook, pandas, numpy
Ncar Python Tutorial
Numerical & Scientific Computing with Python Tutorial
Stars: ✭ 50 (-97.65%)
Mutual labels:  jupyter-notebook, jupyter, numpy
Practical Machine Learning With Python
Master the essential skills needed to recognize and solve complex real-world problems with Machine Learning and Deep Learning by leveraging the highly popular Python Machine Learning Eco-system.
Stars: ✭ 1,868 (-12.3%)
Mutual labels:  jupyter-notebook, jupyter, pandas
Data Analysis
主要是爬虫与数据分析项目总结,外加建模与机器学习,模型的评估。
Stars: ✭ 142 (-93.33%)
Mutual labels:  jupyter-notebook, pandas, numpy
Python Training
Python training for business analysts and traders
Stars: ✭ 972 (-54.37%)
Mutual labels:  jupyter-notebook, jupyter, finance
Pymc Example Project
Example PyMC3 project for performing Bayesian data analysis using a probabilistic programming approach to machine learning.
Stars: ✭ 90 (-95.77%)
Mutual labels:  jupyter-notebook, pandas, numpy
Stock Market Analysis And Prediction
Stock Market Analysis and Prediction is the project on technical analysis, visualization and prediction using data provided by Google Finance.
Stars: ✭ 112 (-94.74%)
Mutual labels:  jupyter-notebook, pandas, numpy
Abu
阿布量化交易系统(股票,期权,期货,比特币,机器学习) 基于python的开源量化交易,量化投资架构
Stars: ✭ 8,589 (+303.24%)
Mutual labels:  pandas, algorithmic-trading, numpy
Pandas Ta
Technical Analysis Indicators - Pandas TA is an easy to use Python 3 Pandas Extension with 130+ Indicators
Stars: ✭ 962 (-54.84%)
Mutual labels:  jupyter-notebook, pandas, finance
Credit Risk Modelling
Credit Risk analysis by using Python and ML
Stars: ✭ 91 (-95.73%)
Mutual labels:  jupyter-notebook, pandas, numpy
100 Pandas Puzzles
100 data puzzles for pandas, ranging from short and simple to super tricky (60% complete)
Stars: ✭ 1,382 (-35.12%)
Mutual labels:  jupyter-notebook, pandas, numpy
Data Science For Marketing Analytics
Achieve your marketing goals with the data analytics power of Python
Stars: ✭ 127 (-94.04%)
Mutual labels:  jupyter-notebook, pandas, numpy
Jupyter Datatables
Jupyter Notebook extension leveraging pandas DataFrames by integrating DataTables and ChartJS.
Stars: ✭ 127 (-94.04%)
Mutual labels:  jupyter-notebook, jupyter, pandas
Stock Price Predictor
This project seeks to utilize Deep Learning models, Long-Short Term Memory (LSTM) Neural Network algorithm, to predict stock prices.
Stars: ✭ 146 (-93.15%)
Mutual labels:  jupyter-notebook, pandas, numpy

https://media.quantopian.com/logos/open_source/alphalens-logo-03.png

Alphalens

GitHub Actions status

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. You can try Alphalens at Quantopian -- a free, community-centered, hosted platform for researching and testing alpha ideas. Quantopian also offers a fully managed service for professionals that includes Zipline, Alphalens, Pyfolio, FactSet data, and more.

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. A good starting point could be this

Installation

Install with pip:

pip install alphalens

Install with conda:

conda install -c conda-forge alphalens

Install from the master branch of Alphalens repository (development code):

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

https://github.com/quantopian/alphalens/raw/master/alphalens/examples/table_tear.png

https://github.com/quantopian/alphalens/raw/master/alphalens/examples/returns_tear.png

https://github.com/quantopian/alphalens/raw/master/alphalens/examples/ic_tear.png

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].