# thoughts…

## Probability Tutorials

These tutorials are designed as a set of simple exercises, leading gradually to the establishment of deeper results. Proved Theorems, as well as clear Definitions are spelt out for future reference. (An alphabetical index A|B|C|D … should also be helpful.) Contrary to standard university lectures or textbooks, these tutorials do not contain any formal proof: instead,they will offer you the means of proving everything yourself. However, for those who need more help, Solutions to exercises are provided, and can be downloaded in A4 paper format from the Printing  page…”

http://www.probability.net/

## How I made \$500k with machine learning and HFT (high frequency trading)

“This post will detail what I did to make approx. 500k from high frequency trading from 2009 to 2010. Since I was trading completely independently and am no longer running my program I’m happy to tell all. My trading was mostly in Russel 2000 and DAX futures contracts.

The key to my success, I believe, was not in a sophisticated financial equation but rather in the overall algorithm design which tied together many simple components and used machine learning to optimize for maximum profitability. You won’t need to know any sophisticated terminology here because when I setup my program it was all based on intuition. (Andrew Ng’s amazing machine learning course was not yet available – btw if you click that link you’ll be taken to my current project: CourseTalk, a review site for MOOCs)

First, I just want to demonstrate that my success was not simply the result of luck. My program made 1000-4000 trades per day (half long, half short) and never got into positions of more than a few contracts at a time. This meant the random luck from any one particular trade averaged out pretty fast. The result was I never lost more than \$2000 in one day and never had a losing month…”

## Learning Q KDB+

“This page lists the sites that I use to learn Q. I will be updating it as I explore more.

1) Q for Mortals by Jeffry A. Borror is the primer for learning Q. A tutorial page is provide in kx systems website. This book contains all the basic syntax and knowledge that is needed for a rampup.

2) A reference page containing all the functions is quite useful and handy while coding.

3) KDB+ for mortals which I consider the second level after having read Q for Mortals describes the database aspects. It helps you understand how the data is stored in partitions and how kdb uses map reduce to speed up your queries internally. In short, it helps you visualize the HDB. Some specific links handy in this regard are dotQ Utilities, pardottxt , tplog file and chained tickerplants.

4) Q Idioms contains code snippets and is useful for getting accustomed to style of coding in Q.

5) The cookbook contains lots of applications of Q/KDB+

6) Callbacks in Q…”

http://eternallearningq.wordpress.com/q-kdb-tutorials/

## High Frequency Trading – What’s broken and how to fix it

“In previous posts, I discussed the basic mechanics and social utility of high frequency trading. Of particular import is that I characterized the latency arms race as socially wasteful. Now I’ll discuss a policy proposal which might mitigate the harmful effects of the race for latency, while giving better prices to speculators…”

http://www.chrisstucchio.com/blog/2012/hft_whats_broken.html

## A High Frequency Trader’s Apology

“I’m a former high frequency trader. And following the tradition of G.H. Hardy, I feel the need to make an apology for my former profession. Not an apology in the sense of a request for forgiveness of wrongs performed, but merely an intellectual justification of a field which is often misunderstood.

In this blog post, I’ll attempt to explain the basics of how high frequency trading works and why traders attempt to improve their latency. In future blog posts, I’ll attempt to justify the social value of HFT (under some circumstances), and describe other circumstances under which it is not very useful. Eventually I’ll even put forward a policy prescription which I believe could cause HFT to focus primarily on socially valuable activities…”

http://www.chrisstucchio.com/blog/2012/hft_apology.html

“In the previous post, I explained that HFT’s usually make their money by running market making strategies. Consider a market with two market makers, Leela and Bender, as well as two speculators, Fry and Zoidberg. Fry bought shares of MomCorp one year ago when the price was \$5.00 and wants to cash out. Zoidberg thinks MomCorp is a good buy and wants to get into the market…”

http://www.chrisstucchio.com/blog/2012/hft_apology2.html