adamsmail54321 / ML-Quant

Notebooks and Code for ML based quant strategies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ML-Quant

Notebooks and Code for ML based quant strategies and research.

Annotations and Sampling

Trend prediction using a Gaussian Mixture Model

Original data distribution, prediction by a mixture distribution implemented using tensorflow probability(TFP) and the prediction by sklearn Gaussian Mixture Model. gmm_mixture_data

TFP mixture model components

Mixture model components

Predicted trends by the mixture model predicted trend from mixture model

Volume bar sampling

Here we sample and plot 'close' value based on the volume. (Close value at every "xx" volume) VolumeBarSamples

Trend strength and trend period

Here we generate trends (% increase or decrease in SPY) and find the trend strength (value between 0 and 1 depending on how long the trend last) and trend period (how long the trend last). TrendStrength trend_period

EMA Optimization

This notebook has a method to find the best EMA lines that represent 'uptrends' and 'downtrends' in S&P 500.

ema optimize

ema optimized

Probabilistic Logistic Regression

This shows how to use probabilistic Logistic Regression to detect outliers in a dataset. Prob LR is useful to guage the confidence of a decision. This is helpful to decide the risk of a bet.

prob_logr

model_results

Probabilistic Linear Regression

priceranget1

priceranget2

prob_lr

Unsupervised Buy-Sell detection

outliers

About

Notebooks and Code for ML based quant strategies


Languages

Language:Jupyter Notebook 99.9%Language:Python 0.1%