Stocks & Commodities V. 28:1 (44-47): Predicting Market Data Using The Kalman Filter by R. Martinelli & N. Rhoads
Product Description
Predicting Market Data Using The Kalman Filter by R. Martinelli & N. Rhoads
The Kalman filter is a two-stage algorithm that assumes there is a smooth trendline within the data that represents the true value of the market before being perturbed by market noise. Can this filter be used to forecast stock price movements?
Figure 1 shows daily opens for one year (252 days) of Ford Motor Co. (F). According to modern financial engineering principles, market data such as this is considered to be Brownian motion, which means that the daily price changes form a white-noise process. White noise is a random process in which consecutive values are independent of each other, among other things, which means that each day, a price increase is just as likely as a decrease. In reality, it is not uncommon for a particular market item to have several consecutive down days or up days over a short time span. During such times, the prices are said to be correlated. The objective is to harness these correlations with a Kalman filter so you can forecast price movements.
In a 2006 article for Stocks & Commodities, a simple linear extrapolation was employed to predict tomorrow’s price change. The prediction was then used to calculate the alpha statistic, which compares the predicted price change to a recent average of price changes. Relatively large, positive values of alpha indicate a long position, and relatively large negative values indicate a short one. This procedure was backtested on a random selection of stocks and indexes to test its effectiveness. The indicated positions were taken, closed out the next trading day, and all profits and losses were accumulated in a chart called the Fortune. Surprisingly, of the 28 items tested, 20 produced greater profits than a simple buy & hold position for the same time period.
In this article, we will expand on the previous work, replacing the simple one-day predictor with a Kalman filter. The Kalman, as applied here, is a two-stage algorithm that assumes there is a smooth trendline within the data that represents the true value of the market item before being perturbed by market noise. In the first stage, a few previous trendline values are fit to a suitable model. It is then extrapolated to the next time value to generate a prediction and its error variance.
FOR THOSE ORDERING ARTICLES SEPARATELY:
*Note: $2.95-$5.95 Articles are in PDF format only. No hard copy of the article(s) will be delivered. During checkout, click the "Download Now" button to immediately receive your article(s) purchase. STOCKS & COMMODITIES magazine is delivered via mail. After paying for your subscription at store.traders.com users can view the S&C Digital Edition in the subscriber's section on Traders.com. Take Control of Your Trading. |
Professional Traders' Starter Kit |
All these items shown below only $299.99! |
5-year subscription to Technical Analysis of STOCKS & COMMODITIES, The Traders' magazine. (Shipping outside the US is extra. Washington state addresses require sales tax based on your locale.) 5 year access to S&C Archive 5 year access to S&C Digital Edition5-year subscription to Traders.com Advantage. 5-year subscription to Working Money. Free book selection. |
|
Click Here to Order |
|