The blogspot's implementation seems to be the vector kalman, but I
have not gone through the code thoroughly and have very little
knowledge of JAMA.
I did compile and run Dr. Eubank's scalar kalman filtercode and it
seems to work well. But it is only a scalar.
I am working now on a class that will enable jArbitrageur to read and
write XML files. The XML files wil contain all the parameters,
contract specifications, etc. Once finished, I will upload it to the
jArbitrageur's site. One of the benefits of using this approach is
that I can use Matlab or R to run Kalman filter,- or any other stat
package, - and send the results to jArbitrageur through XML to place
and monitor trades.
The concept of giving greater weight to the better performing
predictors is already baked into the Kalman filter. Kalman filter is
also known as Predictor - Corrector algorithm. It generates future
predictions as a weighted average of its own prior predictions and
current values of its state variables. The weighting scheme gives more
weight to the more accurate predictors.
Here is relatively simple description of the scalar kalman:
http://www.swarthmore.edu/NatSci/echeeve1/Ref/Kalman/ScalarKalman.html#Defining
the Problem
I do not have much familiarity with jBookTrader. I probably should get
more familiar with it.
My concept has been to do statistical arbitrage with ETFs. Here
jArbitrageur seems quite good. I am looking to generate modest returns
with minimal risk. High leverage strategy is likely to be high return
- high risk. I am scared of those because of the Gambler's ruin
problem - a winning strategy may be inadequate if several losing
trades can wipe out your capital base.
I am not terribly worried about "big houses". I have worked for a few
of them and mostly have not been impressed at all. I know I can not
compete on the speed of execution, but I have no such reservations
with respect to the knowledge of markets and creativity of the
methodology. Also, I am explicitely looking for low-capacity
strategies, which do not attract big boys.
On Sep 21, 9:14 am, bubbleRefuge <
john.crichton.mccutch...@gmail.com>
wrote:
> Alex, Great explanations. Doesn't this one take
> a vector for input ?
http://the-lost-beauty.blogspot.com/2009/12/simulation-and-kalman-fil...
>
> On Sep 20, 3:26 pm, Alexana <
astorel...@yahoo.com> wrote:> Kalman filter can be a scalar filter, where the "state" is defined by
> > just one input variable, e.g. price spread. So, we have one input:
> > prior price spread, and one output, current or future expected price
> > spread. If the actual spread is greater than the expected one, we buy
> > cheap instrument, sell short expensive one and capture profit when the
> > actual spread mean reverts to the expected one.
>
> For JArbitrager that sounds good. I'm just not convinced JArbitrager
> has that muche looked
> potential for an ATS trader with a relatively small capital base.
> Can't get much leverage
> with this type of strategy. I've been recording data for the INTU -
> ADBE stock pair thinking
> there may be a statistical arbitrage opportunity there. After running
> the strategy through
> the optimizer the results are bread crumbs compared to what you get
> for JBookTrader
> when you run it through the optimizer with a single ES contract.
> Obviously this is because of leverage.
> Since I am amateur in this game, there maybe better ways to get more
> leverage using JArbitrager by
> choosing other pairs such as ES_SPY but I tend to believe the big
> houses will squeeze swallow
> these opportunities with superior networking, hardware, etc. Perhaps
> using options as the trading
> instruments are something worth exploring. Nevertheless, it may be
> worth using JArbitrager as the
> paradigm for implementing the Kalman Filter simply for academic
> reasons.
>
> > Kalman filter can also be vector, where the "state" is defined by
> > multiple variables at each point in time, e.g. P/E ratio, various
> > technical indicators, etc. There is still one output, for example
> > return.
>
> Yes this would be ideal.
>
> >Kalman filter will provide a prediction by weighting
> > contributions from each indicator in proportion to its most recent
> > accuracy.
>
> Wow that sounds great! Is this concept already baked into the
> Kalman filter?
>
> > I think, - if I understood you correctly, - you are proposing that the
> > "state" inputs to the vector kalman filter can be various strategies
> > and the filter will make the prediction of the future return by
> > weighted average of predictions from each input strategy. That could
> > be a good approach.
>