stockparfait / experiments

Statistical experiments with financial data
Apache License 2.0
0 stars 0 forks source link

Statistical experiments with stock data

Build Status GoDoc

The purpose of this repository is to hold and document a series of statistical experiments with real financial data, primarily over the US stock market daily price data from 1998 to mid-2022. The code and the necessary configurations are provided, so the experiments can be repeated by anyone with access to the data and some basic understanding of how to compile and run a command-line app.

A few random conventions throughout the study:

multi-line
code block.

Most plots and other types of experimental results are accompanied by a corresponding config to reproduce the plot or experiment. See the usage section for details on how to use such configs with the tool.

Table of Contents

Installation

Requirements:

git clone https://github.com/stockparfait/experiments.git
cd experiments
make init
make install

This installs an executable experiments in your ${GOPATH}/bin, where GOPATH=`go env GOPATH`.

Quick start

An example of these steps together:

${GOPATH}/bin/parfait-sharadar
mkdir -p ${PLOTS}
cp stockparfait/stockparfait/js/* ${PLOTS}
experiments -conf ${CONFIG}.json -js ${PLOTS}/data.js

where ${CONFIG}.json is the config of your choice from one of the experiments, or your own. The schema of such configs is in config/config.go.

Contributing to Stock Parfait Experiments

Pull requests are welcome. We suggest to contact us beforehand to coordinate your code contributions.

Having said that, this repository serves primarily as the documentation of my own research into the behavior of the US stock market, and also as an example and the purpose and motivation behind the core libraries in stockparfait/stockparfait.