Giter Club home page Giter Club logo

ts_factor_analyst's Introduction

Time Selection: Factor Generation, Combination and Evaluation

This is an integrated analysis frame with factor calculation and evaluation.

How to use?

Note that you can add new factor calculation methods and construct your own factor pool, then play with the combination tools and the evaluation tools to renew your factor or to verify its effect. Every tool in this project is open to rebuild, just add your innovative idea and creativity!

Before a start

This project depends on:

Start analysis

There are two jupyter notebooks. single_factor.ipynb helps you to analyze a single factor, and multi_factors.ipynb integrates tools to load a calculated factor pool and factors selection, combination and evaluation.

Our evaluation method includes:

  • distribution plot
  • check if distribution is close to normal
  • adf test
  • ic test
  • Grangers causation test
  • trading back test
  • layered back test

After analysis

  • factors pool loading:

    • Calculated factors are saved as csv files located in the path ./factorloader/data
  • after factor combination:

    • Combination weights are located in the path ./factorcombiner/data

Repository Structure

  • ./stockdownload includes downloading stocks' original trading data and its return calculation for the factors combination tool.
  • ./factorloader generates factors pool, all of the factor calculation methods are saved at factorgens.py and an instruction also included.
  • ./factorcombiner saves both factors selection and combination tools.
  • ./evaluationtools saves all of the evaluation methods.
  • ./utils includes practical tools and a data's preprocessing tool.

More instructions

You can check the handbook.pdf located at ./Summary presentation

Further learning materials:

ts_factor_analyst's People

Contributors

xiweizhao118 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.