Skip to content

Instantly share code, notes, and snippets.

@yhilpisch
Last active December 23, 2019 09:34
Show Gist options
  • Save yhilpisch/dfd1e9c87864d5e3d6b54f1943a9c1ec to your computer and use it in GitHub Desktop.
Save yhilpisch/dfd1e9c87864d5e3d6b54f1943a9c1ec to your computer and use it in GitHub Desktop.

Workshop PyConf Hyderabad

Time Series Analysis with Python

With Applications of Machine Learning Algorithms

Session by Dr. Yves J. Hilpisch | The Python Quants GmbH

Hyderabad, 07. October 2017

(short link to this Gist: https://goo.gl/Dvwhe8)

Quote

"Pichai said that as an 'AI first' company, this is a 'unique moment in time' for Google to combine hardware, software and artificial intelligence. 'It's radically rethinking how computing should work', he said."

Business Standard, "Google Ramps up Hardware Business", 06. October 2017.

Resources

PyConf Hyderabad 50% Special under http://hydpy.tpq.io

Slides

You find the introductory & overview slides under http://hilpisch.com/hydpy_workshop.pdf

Python

If you have either Miniconda or Anaconda already installed, there is no need to install anything new.

We are using Python 3.6. Download and install Miniconda 3.6 from https://conda.io/miniconda.html if you do not have conda already installed.

In any case, you should execute the following lines on the shell/command prompt to create a new environment with the needed packages:

conda create -n hydpy python=3.6
(source) activate hydpy
conda install numpy pandas=0.19 scikit-learn matplotlib
conda install ipython jupyter
jupyter notebook

Read more about the management of environments under https://conda.io/docs/using/envs.html

Agenda

We are going to cover the following topics:

  • Reading Financial Time Series Data with pandas
  • Working with pandas DataFrame objects
  • Formulating a Financial Trading Strategy
  • Vectorized Backtesting of the Trading Strategy
  • Getting More Realistic by Considering Bid-Ask Spread
  • Random Walk Hypothesis
  • Prediction based on Classification Algorithm
  • Out-of-Sample Performance of Fitted Model

Data

You find the data set used under http://hilpisch.com/eurusd.csv (as provided by FXCM Forex Capital Markets Ltd.).

Cloud

Use this link to get a 10 USD starting credit on DigitalOcean when signing up for a new account.

Books

Good book about everything important in Python data analysis: Python Data Science Handbook, O'Reilly

Good book covering object-oriented programming in Python: Fluent Python, O'Reilly

Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment