Skip to content

Code, manuscript, datasets, and other materials from my MSc thesis in Mathematics and Finance

License

Notifications You must be signed in to change notification settings

alexandry-augustin/time_series_drift_estimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parametric Approach To Bayesian Drift Estimation of Discretely Observed Price Diffusion Processes

This repository contains the code, manuscript, datasets, and other materials from my thesis submitted in partial fulfilment of the degree of MSc in Mathematics and Finance at Imperial College London.

Motivation

Financial market participants often rely on market regimes to adjust investment decisions; and as such, they are looking to quickly detect changes in market performance (i.e. growth or decline). Unfortunately, the recovery of information from asset prices corrupted by uncertainty has long been a struggle endured by many financial investors. Typical to financial asset prices, the volatility is usually very large compare to the trend resulting in difficult accurate estimation.

We introduce a methodology for analysing and forecasting the direction of asset prices using past market data. We model asset prices using stochastic processes and make inference on the instantaneous trend using a Kalman filter ["Kalman, 1960"]. The method we propose is applicable to a large class of discretly observed diffusion processes; including those for which observations are irregularly spaced, those in which the data are observed with error due to factors such as market microstructure.

kalmanDiag
Figure 1. Ongoing Kalman filter cycle.

Compiling the Manuscript

The manuscript is located in the manuscript directory.

Run the following command to compile the manuscript:

latexmk manuscript.tex -pdf

If the above command ran successfully, the file manuscript.pdf will be created in the manuscript directory.

Note
You can optionally run the following command to clean the directory of all temporary files generated during compilation:
latexmk -c

Reproducing the Results

All source code used to generate the results and figures in the paper are in the code directory. The code has been written using GNU Octave, an open-source implementation of the commercial Matlab product. GNU Octave is largely compatible with MATLAB and provides a very similar command line interpreter interface.

GNU Octave can be downloaded here for your specific platform. Or using the folling command on the Fedora Linux distribution.

sudo dnf install octave

Use the following command to run a GNU Octave script:

octave filename.m

You can also use the REPL to run functions. For example:

octave

run kalmanPosition(100)

References

  1. []Kalman, Rudolph Emil. "A new approach to linear filtering and prediction problems." (1960): 35-45.

Acknowledgments

I would like to cordially thank Dr. Chris Barnett for his advice and help in the production of this work.

License

All source code is made available under the MIT license. You can freely use and modify the code, without warranty, so long as you provide attribution to the authors. See LICENSE for the full license text.

About

Code, manuscript, datasets, and other materials from my MSc thesis in Mathematics and Finance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published