Giter VIP home page Giter VIP logo

deep-learning-in-asset-pricing's Introduction

Deep Learning in Characteristics-Sorted Factor Models

https://arxiv.org/abs/1805.01104

Example Data Description

1975 - 2017 monthly data (516 months)

  • "realMKT.txt": a 516*4 matrix of Fama & French factors. The columns are Mkt.RF, SMB, HML and MOM.

  • "realstock_return.txt": a 516*1000 matrix of stock returns, which contains monthly excess returns of 1000 stocks.

  • "realZ_sample.txt": a 516*2000 matrix of stock charcteristics. The columns are size of stock 1, size of stock 2, ..., book to market ratio of stock 1, book to market ratio of stock 2, ...

  • "realportfolio_return.txt": a 516*49 matrix of 49 Industry portfolio returns.

Usage of "dl_alpha" function

Input

  • "data": a dictionary of all kinds of data. The keys are

    • "characteristics"
    • "stock_return"
    • "target_return" (i.e. portoflio return)
    • "factor" (i.e. benchmark factors)
  • "layer_size": a list of hidden layer size where the last element is the number of deep factors to be constructed. For example, [32,16,8,4,2].

  • "para": a dictionary of all training parameters. The keys are

    • "split": the way to split data into training set and test set. See "data_split" function.
    • "train_ratio": the proportion of training set if "split" is "future", between 0 and 1.
    • "batch_size": batch size for training. For example, 32.
    • "train_algo": optimization method. For example, tf.train.AdamOptimizer.
    • "learning_rate": parameter for "train_algo".
    • "activation": activation function when constructing deep characteristics. For example, tf.nn.tanh.
    • "epoch": the number of epochs for training.

Output

  • "factor": deep factors in training periods.

  • "factor_oos": deep factors in test periods.

  • "loss_path": the loss during training.

deep-learning-in-asset-pricing's People

Contributors

jianeng 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.