|
|||
|
|||
Want to see VantagePoint's nearly 80% accuracy* for yourself?
Simply click here to receive your FREE recent forecasts.
|
Home : Mendelsohn's Library : Neural Networks
As traders begin to experiment with and apply artificial neural systems to financial forecasting, there are pitfalls to avoid in the design and training of these systems so this new technology can be used effectively and profitably. If you want to develop a neural system to predict the Standard & Poor's 500 stock index (S&P 500) or the Dow Jones Industrial Average (DJIA) for the next day, for instance, you would need to specify five factors: the output that you want to forecast, the input data requirements, the type of neural system to apply to the problem, its size and structure. First, a neural system can predict four outputs: classification, pattern, real numbers (such as tomorrow's S&P 500 or DJIA close) and optimization. Second, you need to select the input data that will be used by the neural system. The data should be related to the output that you want to forecast. Unlike conventional technical trading systems, neural systems work well when you combine technical and fundamental data. Remember that apparently irrelevant data could conceivably allow the network to make distinctions that are not readily apparent, so don't be afraid to include such data as an input. During training, the neural system will sift through all the input data to determine relevance and may turn up with something that could surprise you. Next, you need to consider how to "massage," or manipulate, the input data before training. This step is extremely important, since neural systems train much better on relative numbers such as oscillators, momentum and ratios, which provide the relevant relationships explicitly rather than forcing the system to discover them. The more pertinent the data that you provide the network, the better it will train. Therefore, it is important to select the training data carefully and preprocess it before training. NEURAL LAYER ON LAYER THE INPUT LAYER The hidden layer is composed of neurons that are connected to neurons in the input and output layers but do not connect directly with the outside world. The hidden layer is where the system recodes the input data into a form that captures the hidden correlations, allowing the system to generalize from previously learned facts to new inputs. Experimentation often determines the number of hidden layers and the appropriate number of neurons in them. Too few neurons impair the network and prevent it from correctly mapping inputs to outputs, while too many neurons impede generalization by allowing the network to "memorize" the patterns presented to it without extracting any of the salient features (similar to curve-fitting or over optimization). Then, when presented with new patterns, the network cannot process them properly because it has not discovered the underlying relationships. THE OUTPUT LAYER With supervised learning, you would provide the neural system with "facts" that represent input training patterns (today's prices, discount rate and Fed funds rate) that you expect the system to encounter subsequently during trading, and an output training pattern (next day's prices) that you want it to forecast. In this manner, during training the system forecasts as its output the next day's S&P 500 or DJIA level, which is then used to adjust each neuron's connection weight, so that during subsequent training iterations, the system will be more likely to forecast the correct output. For the system to learn during training, there must be a way to alter the connection weights in terms of how much and in which direction they will be changed. This algorithm, or paradigm, is known as the "learning law." While numerous learning laws can be applied to neural systems, perhaps the most widely used is the generalized delta rule or back propagation method. During each iteration of training, the inputs presented to the network generate "a forward flow of activation" from the input to the output layer. Then, whenever the output forecast by the system (next day's S&P 500 or DJIA) is incorrect when compared with its corresponding value in the training pattern, information will flow backward from the output layer to the input layer, adjusting the weights on the inputs along the way. On the next training iteration, when the system is presented with the same input data, it will be more likely to forecast the correct output. The learning law for a given network defines precisely how to modify these connection weights between neurons to minimize output errors during subsequent training iterations. If no error occurs, then no learning is needed for that fact. Eventually, when the system has completed learning on all of the facts, it reaches a stable state and is ready for further testing. DISCERNING INTERNAL MAPPING The time necessary to train can be considerable, depending on your computer's speed, the number of layers and the number of neurons. You can perform "walk-forward" testing by creating a testing file made up of facts not included in the training facts. It may be necessary to refine system parameters, including modifying its architecture, learning law, input data or means of preprocessing. You may even need to redefine the expected output. Unlike training, during testing the system will not adjust the connection strengths to compensate for errors. The most common training problems occur when the system cannot train adequately or takes too long to train. If your system refuses to train on certain facts, there may be contradictory or ambiguous pairs of facts. If this is the case, you should reexamine your data inputs. You may also need to massage your input data more efficiently. To actually run the trained network in real time to get price forecasts, you would perform daily updates, giving the system each day's inputs just as you did during training, except that no adjustments are made to the neuron's interconnections. A trading fact file contains daily data that you provide to a trained system to get the daily projected output you're looking for. Trading fact files look like training fact files but don't contain training patterns. Neural trading systems are poised to change the nature of analysis performed on the financial markets. With the means to develop dynamic trading systems that can adapt themselves to changing market conditions, without the necessity of relying upon preconceived trading rules, this new "sixth-generation" trading technology has the potential to affect the way computerized traders apply technical and fundamental analyses to global markets of the 1990s. Louis Mendelsohn, president of Market Technologies, designs and tests neural trading systems for the financial industry. REFERENCES Reprinted from Technical Analysis of
Want to see how you can use VantagePoint |
|||||||||||||||
|
VantagePoint Intermarket Analysis Software, TraderTech, ProfitTaker, |