Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
AUTOMATED TRADING PLATFORM
Document Type and Number:
WIPO Patent Application WO/2006/058041
Kind Code:
A3
Abstract:
Embodiments of the present invention include forecasting methods and systems and methods and systems for responding to forecasts. In one embodiment of the present invention, financial market trends are automatically forecast, allowing for automatic generation of specific market-transaction recommendations. An automated trading program embodiment of the present invention includes a short-term price forecaster and a controller that makes transaction recommendations.

Inventors:
KOHN WOLF (US)
BRAYMAN VLADIMIR (US)
Application Number:
PCT/US2005/042397
Publication Date:
October 16, 2008
Filing Date:
November 23, 2005
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
CLEARSIGHT SYSTEMS INC (US)
International Classes:
G06Q40/00
Foreign References:
US20020147671A12002-10-10
US20020019758A12002-02-14
Attorney, Agent or Firm:
BERGSTROM, Robert, W. (P.O. Box 4277Seattle, WA, US)
Download PDF:
Claims:

CLAIMS

1. A method for generating a real time state forecast signal for a financial instrument, the method comprising: receiving information about a market instrument; transforming the received market-instrument information into a synchronous signal; estimating uncertainty in the market-instrument information; estimating parameters of a model characterizing the instrument dynamics; and determining a nominal state forecast signal for the financial instrument.

2. The method of claim 1 wherein financial instruments include: currency; stocks; bonds; and futures

3. The method of claim 1 wherein a state forecast signal may include one or more of: a price signal; a risk signal; a volatility signal; a marginal volume signal; a price-rate signal; a risk-rate signal; a volatility-rate signal; and a marginal-volume-rate signal.

Description:

AUTOMATED TRADING PLATFORM

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of Provisional Application No. 60/630,822, filed November 23, 2004.

COMPUTER PROGRAM LISTING APPENDIX

Two identical CDs identified as "Disk 1 of 2" and "Disk 2 of 2," containing program source code implementing an embodiment of the present invention, are included as a computer program listing Appendix B. The program text can be viewed on a personal computer running a Microsoft Windows operating system, using Microsoft Notepad or other utilities used for viewing ASCII files.

TECHNICAL FIELD The present invention is related to forecasting, and, in particular, for forecasting financial market trends.

SUMMARY OF THE INVENTION

Embodiments of the present invention include forecasting methods and systems and methods and systems for responding to forecasts. In one embodiment of the present invention, financial market trends are automatically forecast, allowing for automatic generation of specific market-transaction recommendations. An automated trading program embodiment of the present invention includes a short-term price forecaster and a controller that makes transaction recommendations

BRIEF DESCRIPTION OF THE DRAWINGS

Figure 1 shows an architectural overview of the Automated Trading Plateform according to one embodiment of the present invention.

Figure 2 shows a dynamic Price Trajectory according to one embodiment of the present invention. Figure 3 shows forecast engine internals according to one embodiment of the present invention.

Figure 4 shows composition of a short-term price according to one embodiment of the present invention.

Figure 5 shows an architecture for a continuous forecast engine according to one embodiment of the present invention.

Figure 6 shows parallel operation of a parameter adaptation engine and a continuous forecast engine according to one embodiment of the present invention.

Figure 7 illustrates sliding-window forecasting according to one embodiment of the present invention.

DETAILED DESCRIPTION OF THE INVENTION

The Automated Trading Platform that represents one embodiment of the present invention implements a programmable financial forecasting and investing system designed to achieve pre-specified objectives for profit and risk by trading equities in a given portfolio. The platform is implemented through an architecture. A block diagram depicting the main components of this architecture and their connectivities is shown in Figure 1.

The architecture of the trading platform is composed of two components, a Short-Term Price Forecaster 102 and a Controller 104, as illustrated in Figure 1. The Short-Term Price Forecaster generates a time series of predicted security prices and their associated risk. Once security prices and risk are created the Controller develops recommendations for trading actions. These recommendations are reviewed and may be overridden by the user in forming buy and sell orders for the financial asset market. An implementation of one embodiment of the present invention is presented in this document.

Most problems involving the generation of actions in the financial environment are characterized by non-stationary uncertainty, non-negligible risk, and noisy, incomplete information. Embodiments of the present invention are based on the observation that financial decisions and forecasting processes are dynamical systems which can only be characterized, with acceptable level of accuracy, by fusing and synchronizing multiple models. Fusing and synchronizing models in this context means combining the extraction capabilities of specialized algorithms to produce an output with a lower level of uncertainty and better performance compared to results one would obtain by using individual models. The basis of embodiments of the present invention is to model uncertainty using differential geometry. The concept starts with a stochastic differential equation and solves a piecewise diffusion equation with impulses. Unlike the Black-Scholes formula, we are not limited to the linear Gaussian case. Our internal model is based on a general predictor-corrector algorithm derived from the appropriate Chapman Kolmogorov propagation model 6.

Model Overview

Our system is based on a model for the dynamics of the portfolio, which is a piecewise diffusion process (PDP) [6]. We consider the price and risk of n stocks. We let the stochastic process x(t) be an n x 1 vector for the price trajectory and u(t) be an ffl x l vector for volume trajectory. In general, the dimensions of x(t) and u(t) are not the same. For instance, x(t) might be an 2rø χ l vector for price and price rate trajectory and u(t) might be an n x 1 vector for volume trajectory. However, one implementation treats m = n. We refer to x(t) as a price trajectory, and u(t) as a volume trajectory.

In one embodiment of the present invention, the Automated Trading Platform forecasts the price trajectory in the Short-Term Price Forecaster, and controls the volume trajectory in the Controller, based on the stochastic model in (1). The form of this model is bilinear in price x(t) and volume u(t), which reflects their interdependence and lack of causality. This stochastic model is the foundation of the Short-Term Price Forecaster and the Controller. In the Controller, we let the volume

trajectory be impulses at times τ* and characterize the stochastic process x(t) with the following PDP

+ Cf(t)dt + φ(t)dt + dω{t) for τt < t < τ k+l and

for an interval t e [t 0 , t\ ] with impulses at times τ^ . The i th element of u(t)

associated with stock / is denoted «i(0. We assume that the impulse times r* are known, but in the future we may allow the impulse times to be Markov times. In our model 1, the volume u(jk) is an impulse control, and the price is not well-defined at

T f c, so we use the notation x(Jl) and ^(^)to jump over the impulse time. A sample realization of a one-dimensional process x(t) with three impulses of volume is illustrated in Figure 2.

The financial model given in (1) provides the ability to forecast and recommend trading decisions at the speed needed for an automated trading platform. The bilinear model with impulses in (1) mathematically accounts for jumps in the price x(t). The price jumps (as illustrated in Figure 2) are not necessarily due to drastic changes in the market, but may be due to shifts in the frequencies, or spectral content, of the signals. The piecewise diffusion model in (1) does not assume that the market is a diffusion model, but rigorously models the discontinuities as impulses.

Empirical examination of market data supports the PDP model. Performing a Fast Fourier Transform (FFT) of the signal generates the underlying frequencies. The spectral analysis reveals discrete frequencies which support the PDP model with a diffusive component as well as a deterministic component. If the market were a pure diffusion process, the spectral analysis would generate a continuous spectrum of

frequencies. This frequency analysis explains why the market does not behave as a Gaussian model -because it has discontinuities.

The difference between a PDP model as opposed to a Black-Scholes diffusion model is magnified when considering a real-time system with a sampling interval of 0.1 milliseconds. Consider the current system which is using 30 seconds between data updates. In the current system, a bid or ask order by one of the specialists of approximately one million shares will impact the market, and in 30 seconds, the price of the stock will reflect this large order. However a smaller order of one hundred shares in 30 seconds will have a negligible effect on the market. Now consider the future system with 0.1 milliseconds between data updates. In the future system, a bid or ask order of one hundred shares will impact the market (because the system is 10,000 times faster, so 10 λ 6/10 λ 4 would have a similar impact). The model that represents an embodiment of the present invention can appropriately account for these impulses, whereas a Black-Scholes model will artificially create volatility because of the incorrect assumption of a diffusion process.

Another consequence of the PDP model is the opportunity to take advantage of frequencies associated with a stock price. If we can predict the dominant frequency, then we not only recommend what to trade, but more importantly when to trade. For example, the model may recommend holding one stock for twice as long as another stock based on their frequency analyses. This implies that we should first predict the dominant frequency and then forecast the phase to utilize our model at another level.

The stochastic process ω(t), which drives the price variation x(t), represents uncertainty in our model, and is assumed to be a Semi-Martingale (6). This stochastic process ω(t) represents the inherent uncertainty due to the market environment and the accuracy of the model. We let φ(t) be an n x 1 vector, representing the average value of the perturbation introduced by the market. The stochastic process ω(t) has zero mean, is of bounded quadratic variation, and has an n x n co variance matrix function Q(t). We assume that ω(t) is uncorrelated with x(t), i.e. E[x(t)ω(τ)]=0 for τ<t.

The piece-wise constant parameters of the model are AQ 1 A 1 J = \, ... ,m, D j ,j = l, ... ,p, B, and C. The n * n matrix A 0 defines a sales rate (also known as elasticity parameter in Leontief s model). The AQ matrix is also called the relaxation matrix. The diagonal terms of AQ establish the price trend of each stock, and the off-diagonal terms establish the relative advantage of one stock over another. The A 1 matrices are the effect of volume on price rate, and are n x n matrices which are multiplied by the i th element of u(t), for / = \,...,m. The A 1 matrices are called structure matrix coefficients because their product A,u,(t) modifies the price model. The rank of each matrix A , is one, and to simplify, we assume that the ii th entry is the only nonzero entry. The term A,u,(t) captures the effect of the price rate due to demand, if u,{t) is positive for stock i, then the price acceleration increases, and vice versa.

The D j matrices, for/ = \, ... ,p, are diagonal rt*n matrices that characterize the effect of the market on rate price. For each aggregate market signal fj(O , the product Djfj(t) represents the dynamics of the coordinate system of the market. This allows us to work in a principal coordinate system. The matrix B is an n*m diagonal matrix called the demand coefficient matrix, and C is an n*p coefficient matrix that measures the effect of the aggregate market on price rate. We use p(t) to denote the collection of parameters (AQ 1 A 1 , i = l, ... ,m, D j , j = l, . .. ,p, B, and C) of the model, with their current values at time t, as described in Section 3.5.

The characteristics of the market environment (for example, S&P500, Dow Jones, etc.) are included in f{t), ap x 1 vector, and/j(t) is the/ λ element of/(t).

We manage the uncertainty due to parameter values and the uncertainty due to the market environment separately by employing two engines that interact (see Meditch [5], 1968 for a discussion on forced separation). In the Short-Term Price

Forecaster, the Parameter Adaptation Engine addresses the uncertainty in the parameters, and the Continuous Forecast Engine captures the remaining uncertainty.

We use the concept of a sliding window to continuously adapt and coordinate changes to price, volume, and parameters over short periods of time. The length of the sliding window is chosen so that the parameters are constant with respect to the model (1). Real-time market and financial asset data are fed into the Short-Term Price

Forecaster. The Short-Term Price Forecaster includes ask price x ask , bid price x bld , sell price x sel! , and volume u data , for each stock, as well as market characteristics j ■ ύata _ ψ e use {Z(t k )} to denote the data observations that are collected at time instances t^ that are not necessarily equally spaced. This data is filtered in the Asynchronous Filter Bank, and used to calculate continuous input series Z(t) , which consists of the individual input series.

Short-Term Price Forecaster

Introduction

The Short-Term Price Forecaster is a real-time application for generating short-term forecast signals of price, risk, volume, and volatility for a user-selected portfolio. The input data is of two types: market data and asset data. The market data consists of user-selected indices (for example, DJIA, NASDAQ). In addition, the Short-Term Price Forecaster is supplied with asset data for each of the assets in the user's selected portfolio. The Short-Term Price Forecaster operates in sliding window mode and executes the repair strategy.

The concept of the repair strategy that is described here can adapt over short time periods when the price changes. The model is based on a propagator of the first moment conditioned on the filtration defined by the market data, and the second conditional moment that measures the volatility of the market. The model continuously repairs itself, as the system learns more accurate values of the model parameters. This repair strategy is crucial for periods of high volatility. The repair strategy begins by training the model with historical data to estimate the parameters. The dynamical model and the estimated parameters can then be used to solve for the

price and risk trajectories. The time window advances and the data is updated. Then the parameters are estimated for the new time window. With each advance of the time window, the repair strategy continuously solves for the price and risk trajectories while updating the parameters in real-time. The core of the Short-Term Price Forecaster is the Forecast Engine, which consists of three basic components: the Continuous Forecast Engine that estimates price and risk, the Parameter Adaptation Engine that estimates model parameters, and the Asynchronous Filter Bank that filters observations and produces continuous input streams. The uncertainty in the model is due to two reasons: uncertainty due to market environment and accuracy of the model, and uncertainty due to the parameter values. By using a separation principle, we can account for the two types of uncertainties separately in two coupled models. These coupled models can be executed in parallel with information exchange. The Parameter Adaptation Engine addresses the uncertainty due to parameter values and the Continuous Forecast Engine addresses the uncertainty due to market environment and accuracy. The sliding window concept with real-time data provides synchronization of the models, achieving our goal of predicting price and risk with a known level of uncertainty.

The overall system architecture of the Forecast Engine is shown in Figure 3. The architecture consists of seven components: Continuous Forecast Engine (CFE), Parameter Adaptation Engine (PAE), Asynchronous Filter Bank (AFB), Learning Engine, Shared Memory System, Window Clock and Synchronization.

The Continuous Forecast Engine generates the nominal price x N (t) and risk © N (t) trajectories using a repair strategy while the Parameter Adaptation Engine updates the parameters p{t) of the model. These parameters are stored in the Shared Memory System where, along with the computed input series and real-time data, they are available for the Continuous Forecast Engine to access at any moment. The

Asynchronous Filter Bank filters the real-time data {Z(t k )} and produces the continuous input series Z(t) needed in the CFE. The Learning Engine is an algorithm that allows us to detect when the model in the Forecast Engine is drastically out of phase with respect to the current data and therefore a restart of the associated model

is warranted. In this manner the Learning Engine acts as a meta-controller to the other modules in the Forecast Engine, detecting the need to regenerate the model paramaters and initiating the mechanism that does so. The Window Clock keeps track of the current time and the sliding window, and Synchronization handles all of the interactions between the Window Clock and the other components of the architecture.

We describe the functionality of the Continuous Forecast Engine in Section 3.4, the functionality of the Parameter Adaptation Engine in Section 3.5, the functionality of the Asynchronous Filter Bank in Section 3.3, the Learning Engine in Section 3.6, and the Lowpass Filter in Section 3.7.

Distributed Architecture

The computational algorithm of the Short-Term Price Forecaster is organized in a four-level hierarchical structure (see Figure 4). In the lowest level, a proprietary Asynchronous Filter Bank transforms the asynchronous market and asset data into synchronous signals. The signal is next fed to a group of algorithms called Forecast Engines. Each one of these engines processes a subset of the portfolio and market data to generate a forecast. The composition of these subsets is determined by the user and by correlation information of the assets in the portfolio. For example, one such grouping can be a group of transportation-related assets in the NYSE. The next level is composed of a set of Forecast Units that detect and correct incompatibilities in the forecasts from the Forecast Engines. This data fusion operation performed by the Forecast Units improves the overall quality of the forecast. At the highest level is aggregator software that implements a voting schema that allows the Forecaster to detect and discard erroneous forecasts in the subgroups of the portfolio. The voting schema significantly improves the reliability of the forecasts.

3.3 Asynchronous Filter Bank

The Asynchronous Filter Bank inputs are equity and market data. The data consists of the following items: ask price, bid price, sale price and volume for each equity and aggregated market data. Nominally, the data items should be available at

uniform sample times. However, this is not the case in the real-time setting. One or more data items may be missing at a sample time. Alternatively, for a given data item, we may obtain more than one value at a sample time. The Asynchronous Filter Bank has been designed to handle these anomalies in the input data. The filter operates on known statistics about the error rate in the data. The input data is transformed into a uniform time sequence of estimates of the original data with known statistics.

We use {Z(t k )\ to denote the data observations that are collected at time instance tk . The output from the Asynchronous Filter Bank are uniformly spaced sequences, x ask (t), x bid (t), x sell (t), u data (t), This data is used in the Continuous Forecast and Parameter Adaptation Engines. There are 4n+p streams of data. Each one of them is handled by a component of the Asynchronous Filter Bank.

The methodology of the Asynchronous Filter Bank is described in Hybrid

Asynchronous Filter, by Kohn, Brayman and Cholewinski (Clearsight document). The Asynchronous Filter Bank propagates the estimate. A Lyaponov filter is used to produce x ask (t), x bid (t), x sell (t), andf ala (t). If no data is available, the latest filtered data (corrected by the latest observations) is used to get boundary conditions for the next propagation and to tune the parameters of the Asynchronous Filter Bank. The volume u data {t) is produced by accumulating the volume data over the uniformly spaced time intervals. If no volume data is available in a time interval, then u data (t) is set to zero for that interval.

3.4 Continuous Forecast Engine

The primary role of the Continuous Forecast Engine is to generate the nominal price and risk trajectories using a repair strategy over a sliding time window. The architecture of the Continuous Forecast Engine takes advantage of the sliding window concept. It takes a nominal trajectory, extends it and computes a repair action, and then creates a new nominal trajectory. The Continuous Forecast Engine architecture, shown in Figure 5, consists of three components, the Repair Generator,

the Coefficient Generator & Synchronization (CG&S) module, and the Nominal Update Generator. The Nominal Update Generator computes nominal price and risk trajectories over an extended time window using the current estimate for the model parameters. The Repair Generator uses current model parameters and nominal trajectories to provide optimal repair price and risk trajectories over the advanced time window. The CG&S module computes nominal price and risk trajectories in the same time window using the trajectories provided by the Nominal Update Generator and the Repair Generator. The CG&S module also processes the new data as it becomes available, computes coefficients needed in the Repair Generator, and synchronizes with the Window Clock to coordinate the sliding window.

The Continuous Forecast Engine involves a sequence of steps over a time window, which are coordinated with the operations of the Parameter Adaptation Engine. The terminology of this sequencing in the Continuous Forecast Engine and the Parameter Adaptation Engine is illustrated in Figure 6.

The CFE starts at the current time tf, with an initial forecast window

Lf/-' 0/ + δT 1 ) J where (/ denotes the left side of the interval, and AT is the interval length. We use AT to denote the time horizon for forecasts; in the current example,

AT is six seconds. We also consider the repair window, [ iff - AT) ,t} \ , with a nominal trajectory for price and risk. The time interval between data points is δ^ αto ; in this example, A^ ata 1S one second. When the steps of the CFE are repeated, then the sliding window is updated from

[t), (t f + AT) ~ ] to [(jy + A data )\ (t f + A data + AT) ' ]. Then we slide the window, or "kiss" the data h times during the time window. We let h be such that T=hAT. Our approximate price is good up to the h order. We use T to denote the time between updates of the parameters, p(t) . In the current example, T is 30 seconds. The following steps in CFE describe the repair strategy over a sliding window. A summary of the steps with the equations are given in Section 3.4.7.

Step 0. Initialize window clock t, current time (/ > time increment AT, the time increment for the data A dala , and h such that AT = hA data . Also, initialize a few matrices. Assume that nominal trajectories, parameters, and other previously computed input series are available.

Step 1. The CG&S reads the parameters p(t) at t = tf from the Parameter

Adaptation Engine, and determines if the parameters have changed from the previous iteration. It sets the time window for the Repair Generator, i.e., [ (t/ - δ7 1 ) JJ J , The CG&S module also reads the filtered data

(x ask (t), x bld (t), x sell (t), u data (t), and f ata (t)) at the necessary times from the Asynchronous Filter Bank, Then the CG&S module computes input series and coefficients (e.g. w λf (t),/ v (t), φ N (t), etc.) needed for the Repair Generator and the Nominal Update Generator.

Step 2. The Repair Generator solves the repair optimization model for the repair state y(t), the incremental risk ω(t), and the repair action v(t) in the time window [{tf - AT) ,tj]. Update the new nominal trajectories in the repair window

[(tf - AT) , tj ] by adding the repair trajectories to the old nominal trajectories.

Step 3. The CG&S module uses the repaired trajectories to provide initial conditions at tf for price x N (t) and risk evolution θ λ {N}(t).

Step 4. The Nominal Update Generator solves for the nominal price χ N (t) and risk θ λ {N}(t) trajectories in the forecast time window [tJ, (tf + AT) ~ ]. Output

xf (t f + AT) and ffi,(t f + AT) for i = 1, ... ,n, and save trajectories for PAE.

Step 5. Update the sliding window and related trajectories:

and go to Step 1. 3.4.1 Time Window Updates

The price evolution and risk models for incremental and nominal modes are integrated into a scheme referred to as a sliding window. This strategy assumes that the decisions at the current time depend on finite interval (of duration A data ) histories of the evolution updates, and these intervals "slide" at a constant rate collecting present data (e.g. demand, uncertainty) and discarding the segments of the evolution in the past with respect to the current time. Figure 7 illustrates the sliding window and the sequence of steps in the Continuous Forecast Engine.

The Window Clock maintains the forecast time window as [tϊ, (tf + AT) ]

and the repair window as [(// — AT) ,tj], where tj is current time. With the initial condition being the last point of the updated evolution trajectories, the Nominal Update Generator computes an optimal extension of the nominal trajectories for the forecast interval [t^, (tf + AT) ~ ], The Coefficient Generator and Synchronization module, and the Repair Generator (in Steps 3 and 4) update the coefficients and compute the repair evolution trajectories over the forecast interval as a function of the parameters computed using the nominal evolution trajectory. The criterion for this optimization is a functional that encodes the desired behavior of the application, e.g. max profit. The forecasted price and risk at time tf + AT may be output. Then the

Window Clock advances the interval to [(t f + A data ) + , (t f + A data + AT) ~ ], and updates the nominal trajectories. 3.4.2 Nominal Update Generator Model

The Nominal Update Generator Model computes the nominal price x N (t) and risk ® N (t) trajectories in the forecast time window [t^, (tf + AT) ~ ]. The equations governing this computation are given in the following model.

Let Jc(O e R", 1 6 [tf, (t f + AT) " ], be an estimate of the price x(t) at time t.

While χ(t) is not defined at impulse time tf, x(t) is defined for the whole interval {tp (tf + AT) ~ ] so we can integrate (2) to get χ(t) in that interval. It can be shown (see Appendix 4.2) that χ(t) satisfies the following differential equation,

+ (Bu(t) + C/(0 + φ{t))dt

+ K(t) (x obs (t) - x(t))δ(t - t f )dt where

K{t) = θ(t)R -1

and δ(t - tf) is the delta distribution satisfying

/•+00

J -OO Mδ(t- τ)dt = f(τ)

for any continuous function f(t) ■ The third term on the third line of equation (2) is a correction term due to the observation of price at time tf. We use χ selι (t) as o\xx obs (t). The K(t) expression is referred to as the gain, where R is an nxn symmetric positive definite matrix representing the noise covariance matrix. The risk θ(t) is discussed next.

The central second moment conditioned in the continuous input series z(t) based on the input data of x(t), θ(t) e R" xn , t <≡ [t + , (t f + δ7) " ], measures the risk and it can be shown (see Appendix ??) that it satisfies the following differential equation

+ (Q(t) - θ(t)R- ι θ(t))dt.

Equation (3) propagates the parameters of the uncertainty ellipsoid θ(t) that models the risk as a function of exogenous uncertainty at time t. In equation (3), Q(t) defines the uncertainty ellipsoid and R is the same symmetric positive definite matrix involved in (2).

The Nominal Update Generator uses x and θ models (2) and (3) to create our nominal prediction over the forecast window. We use the superscript N to denote the nominal trajectories χ N {t) and ©^(t) for t e [t j , (t/+ δ7 1 ) " ]. We use the Parameter Adaptation Engine to estimate the parameters Ao, Aι, i = l,... ,m, Dj,j = l, ...,p, B, and C. The nominal values/^*), ψ N (t), and Q N (t) are computed from the data in the CG&S module (see Section 3.4.6). The initial conditions needed to compute x N (t) and 0^(t) are provided from the Repair Generator and the repaired trajectories x NN {t) and ® NN (t) for the repair window [(tf - AT) ~ ,tf ], We next describe how to identify the initial conditions. Then we specify the details for creating the nominal trajectories.

The initial condition of x(t) at time t^ needs to be corrected by our observed data at that time, x sell (t/) . We assume this correction is an impulse. For the nominal

prediction at forecasting time tj , assume u(t) = u N (tf) for t e [tj:, (ty+ δ7) ~ ] (i.e., u(t) is a constant in the forecast time interval). We denote the initial conditions χ /c and θ /c as the values of x N Qj) and θ N (t})~ respectively. The initial

conditions for χ IC include a correction term corresponding to the third line in equation (2) that includes the observed value x sell (t j ) . The initial conditions are updated as follows

where x m (j f ) and ® NN Qjj are given by repair, and

The correction term -®R ~l ® in (3) continuously updates 0 so that the initial conditions ø'C equal the repaired value

Now we forecast price and risk. We forecast price by integrating equation (2) where we use u N (t/) , f N (t f ), and φ N (t) as constant values over the forecast window.

The correction term in (2) has already been accounted for in the initial conditions (4) and is not needed in the integration. Thus we integrate the following differential equation to obtain the nominal price trajectory,

with initial conditions given in (4), and over t between tt and iff + AT) ~ .

The risk trajectory is forecasted by integrating (3) with constant values for w^(t/),/^((/), and Q N {tf) , yielding the following differential equation,

with initial conditions given in (5), and over t between t between ti and (tf + AT) ~ .

The initial conditions (4) and (5) are computed in Step 3 of the CFE, and the nominal trajectories are updated in Step 4 of the CFE.

3.4.3 Repair Generator Model

The repair model uses a singular perturbation to obtain an incremental variation of the price and risk evolution trajectories with respect to computed nominal trajectories:

x NN (t) = x N (t) + εy{t) ®^(t) = ® N (t) + eω(0

for t ≡ [(tf - AT) + ,tj ~ ] where the NN superscript denotes the new nominal trajectory,and ε is the perturbation parameter determined by the window characteristic, ε = δr fαto /δr = XIh- From the Ekeland principle [11], for a window of width δ T and increment δ data w ^ n no forgetting function, we know that ε = -^- . In (8)-(10), y(t) is the price repair, ω(t) is the incremental risk, and v(t) is the repair action.

We also use a singular perturbation for

where g(t) is the incremental force by the environment, ξ(t) is the uncertainty in the market, and W(t) is the incremental external uncertainty.

In the CG&S module, g(t) is approximated by taking the difference of real¬ time data at time t and at time t - A data . < "(t - A data ), yielding

Similarly, ξ(t) is estimated using φ m (t) = φ N {t) at time t and φ N {t - A data ) at time t - A data , yielding

ξN{f) = φ N it) - φ N jt - A data )

And the same for W(t),

wN{f) = Q N jt) ~ Q N jt ~ Adata) _

The data for fit) comes directly from the filtered data,

fit) = f data it).

We estimate φ N (t), the average value of the perturbation introduced by the market, by using the available data, χ seU , u data , and / 1 ^ in equation (6), yielding

φ N (t)

- Bu data {t) - Cf ata (t).

The estimate for the covariance matrix Q^{t) , the last term in equation (7), is also estimated using available data, χ ask , χ bid , and coefficients α, ερ, and αρ, yielding

for zj = 1, ... ,«.

To derive the differential equation for the price repair y(t), starting from (8), we have,

d(x NN (t)) _ d(x N (t) + εy(t)) dt dt which we can expand using equation (2), and then dropping the terms of order ε 2 , we get

ξ N {t) where

Because the control variable is v(t), we rewrite (14) to highlight its linear form,

For notational and computational convenience, in addition to defining A(t) , we also define B(t) to be an nxm matrix

where A x (t) is an nxm matrix with the Uh column of A x (t) , for i—l,...,m, given by

And C(t) is an «xl vector given by

J=I

The coefficients A(t), B(t), and C(t) are computed in Step 1 of the Continuous Forecast Engine by the CG&S module, where g N {t) and ξ N {t) are estimated from the data. Now we can rewrite the dynamics equation in (15) as

Similarly, from (9), we can expand

and using Equation (3) it can be shown that

For notational and computational convenience, we define

and

which are computed in Step 1 of the Continuous Forecast Engine. Using the notation for A{t), Vj(t), we can rewrite (17) as

- ® N Q)R- 1 Q(O - ω(t)R @ N (t) m m

Equations (15) and (17) constitute the model for the repair module. The control variable is v(t) which can be interpreted as a fictitious incremental volume caused by the uncertainty in the market and the accuracy of the model. Notice that the dynamics are functions of the control variable v(t), so we are controlling the uncertainty through v(t). The repair criterion in the following section completes the definition of the repair optimization model.

3.4.4 Repair Criteria The repair criterion uses a least squares criterion for the estimated repair trajectories. It represents the user-defined running criterion rate (e.g. profit-risk combination).

The criterion for the Repair Generator is a functional of the form

where

and ε = A da JδT = Vh, and S, R ω , and M are symmetric positive definite matrices where S and M have small positive values while R Q has large positive values to penalize the variance heavily. The notation diag (A) of an n*n matrix^ used here is

and

for each z— 1,..., «.

3.4.5 Repair Optimization Problem The repair optimization problem for the Repair Generator for each window update interval [t 1 ? t 2 ] is summarized here as

min δπ(y(t),ω(t),v(t),t)dt subject to

^ ~ = 1(0X0 +5(Ov(O + C(O as in (ref: repair y3)

- ® N (t)R- ι ω(t) - ω(t)R θ N (t) m m

+ I ) (O as in (ref: Repairθmega2)

where the repair criterion δTl(y(t),ω(t),v(t),t) is given in (20). Initial conditions are given as y{tχ) = 0 and ω(tO = 0.

Repair provides y(t), ω(t), and v(t) for t e [((/ - AT) + JJ ]. 3.4.6 Coefficient Generator and Synchronization

Coefficient Generator and Synchronization (CG&S) is involved in steps 1, 3 and 5 of the Continuous Forecast Engine. In general, CG&S reads the real-time data trajectories, and prepares the data and coefficients for use in the Repair Generator and in the Nominal Update Generator. CG&S also updates the information and synchronizes the computations with the sliding window.

In Step 1 of the CFE, the CG&S module reads the following data at time t = t/. x ask (t), x bid (t), x se "(t), u data (t),f ata (t). The data is used to compute Q N {t) for use in the Nominal Update Generator. Because the bid/ask prices give upper and lower bounds on market price (at time i), we can interpret them as the variance, standard deviation, or percentiles, on the average market price. The data is also used in the Repair Generator.

The data above is evaluated using values at t ~ t j and held constant

throughout the incremental window

The CG&S synchronizes with the Parameter Adaptation Engine to update parameters p(t) at appropriate times, and holds these constant throughout the incremental window J .

In Step 3 of the CFE, the CG&S module computes the coefficients needed for the Repair Generator to solve the repair optimization model in the sliding time window

[(tf — AT+ A data Ϋ, (tf + A data ) " ]. The coefficients computed are:

In Step 5 of the CFE, the CG&S module updates the new nominal trajectories in the sliding time window [(t_{f}-δT+δ_{data}) + ,(t_{f}+δ_{data}) " ]

where the Repair Generator provides y(t), Q(t), and v(t).

3.4.7 Summary of the Continuous Forecast Engine

Here we summarize the steps in the Continuous Forecast Engine.

Step 0. Initialize window clock t, current time tj, time interval for the forecast AT, the time increment for the filtered data A data , and h such that

AT = hA data • Also, initialize s, R ω , and M, where S 1 and R ω are diagonal nxn matrices and M is a diagonal mxm matrix, and S and M have small positive values while R ω has large positive values. Let ε = A data /AT = XIh- Set α, ε_{Q}, and α_{Q}, for use in α, ε Q , and a Q .

Assume that the nominal trajectories for price x N (t) , risk evolution θ N (t), and volume u N (t) as well as model parameters p(t) and data

(x ask (t), x bld (t), x sell (t), u data (t),f ala (t), andi A data ) are available over the interval [(tf - AT) + JJ]. Also assume that previously computed input series (e.g.

fit), φ N {t), and Q N (t)) are also available over the interval [0>- AT) + JJ].

Step 1. The CG&S module reads the parameters p(t) (A 0 , A,, i = l, . . . , m, D j ,j = \, ... ,p, B, and C), at t = tj, from the Parameter

Adaptation Engine, and determines if the parameters have changed from the previous iteration. It also computes input series and coefficients and sets the time window for the Repair Generator, i.e., [(tf - AT) JJ]. Also, it inputs the data

(x ask (t), x bid (t), x sell (t), u data (t), anάf ata (t)) at time t f from the Asynchronous Filter Bank.

The following input series and coefficients are computed for t = t j \

Step 2. The Repair Generator uses RSolver to solve the repair optimization model for the repair state y(t), the incremental risk ω.(t), and the repair action v(t) in the time window [tf — δr,ty]. Specifically, solve

subject to

where

and ε = A data /δT = 1/λ, and initial conditions are

The Repair Generator updates the new nominal trajectories for by adding the repair trajectories to the previous nominals,

Step 3. The CG&S module uses the repaired trajectories to provide initial conditions for price χ N (t) and risk evolution ® N (t) at t = tj,

It also calculates E(t f ) aϊ\<ά A NN {t f ) using u NN (t/)),

Note: Add update for Q N (t f ) .

Step 4. The Nominal Update Generator uses the initial conditions, % IC and θ IC , and coefficients A NN (t f ), E(t f ), and Q N (t f ), from the CG&S module to solve for the nominal price χ N (t) and risk ©^(t) trajectories in the incremental time window Specifically, solve

with initial conditions x JC and θ /c , and the coefficients A NN (t f ), E(t f ), and Q N (t f ) are kept constant at time tj throughout the time window.

Output and save ic^(r), 0^(0, dx N (t)/dt, and dθ N (t)/dt every δ rfαto throughout the time window in the database for use in the Parameter Adaptation Engine and the Controller.

Step 5. Update the sliding window

and trajectories for t e [ (t / - AT) , tj J

and for t e [(t f - AT) + ,t}] ,

and go to Step 1.

3.5 Parameter Adaptation Engine The inputs to the Parameter Adaptation Engine (PAE) are the trajectories generated by the Continuous Forecast Engine. These inputs are the trajectories

X = (x N (t),® N (t),ii N (t),f(t),Q N (t))~ . The Parameter Adaptation Engine generates periodically updates to estimates of the parameters

Pars — (λo,Aj, i = l, ... ,m,Dj,j = l, ... ,p,B,C). The Parameter Adaptation Engine implements an unbiased minimum variance estimator designed by the Clearsight team.

The main idea is to use the following version of Bayes 1 rule

= P(Wars) 'P( κ Pars) '-.

Pars is a stochastic process whose sample paths record conditional estimates of the parameters for the filtration generated by the process X. The Parameter Adaptation Engine generates the first and second moments of the stochastic process defined by (21).

The process Pars is sampled at regular time intervals T. During each interval T the conditional expectation (the first moment) is kept constant in CFE. This is required to satisfy a stability requirement of the overall system (see Kushner [4]).

3.5.1 Observation Model Definition for PAE

In this subsection we derive the observation model for the process Pars.

Recall that the conditional first moment of the price process x(t) , given a sample of the parameters, is given by (2),

ic(0 + Bu(t) + CM + φ(0 for an interval t e [t 0 , t \ ] .

The parameters to be estimated are: AQ is an nxn matrix,

A 1 J = 1 , .. . ,« is an n x n matrix of rank one, and we assume that the only non-zero value is the ii th entry, denoted A ih ,

Dj, j = 1, ... ,p is a diagonal n*n matrix,

B is a diagonal nxn matrix, with diagonal elements denoted 5,, for / = l, .. . ,n, and

C is an n*p matrix.

Let η(t) be the observation process

Then from (22)

»7(0 )x(t) +Bu(t) + Cf (t) + θ(t),

where θ{t) is a zero-mean stochastic process with covariance

e that models the observation error. We write the observation model for the parameters (23) as

where p(t) and P(t) are defined below.

We define a column vector p(t) of dimension g x 1, where q = ή 1 + 2np + 2n as follows:

where each block (p 0 (t), p A (t), P D (O, P B (0 > P C (O) o ^P( f ) i s described below. The first block p 0 (t) is an n 2 x 1 column vector consisting of AQ ,

the second block p A (Y) is an n x 1 is an n column vector consisting of the nonzero entries of A 1 , i = l,...,n,

the third block poit) is an np x 1 column vector consisting of nonzero (diagonal) entries of D j J = l,...,p,

the fourth block pβ(t) is an n x 1 column vector consisting of the diagonal elements of B,

and the fifth block pc(t) is an np x 1 column vector consisting of the elements of matrix C,

We now provide the structure of P(O-, a sparse n x q matrix. We write this matrix in terms of five blocks

The first block P 0 (O is « x n 2

the second bloc

the third bloc

the fourth bloc

and the fifth bloc

3.5.2 Discrete Dynamics for PAE

The Parameter Adaptation Engine generates an estimate of the parameters p at sampled time intervals kA datø , k — 0, 1,2, ... • We assume the parameters are time invariant over time-window intervals, therefore the parameter dynamics is given by

p(t k+ \ ) = p(t k ) + v(t k )

where v(t & ) i s a zero mean Gaussian Brownian q process with covariance Q(t k ) that models a process noise.

The positive definite matrix Q(t k ) is a q x q diagonal matrix with the diagonal elements given in equations (26) and (27). The covariance matrix Q{t^) is computed by finding the trace of the covariance matrix of the stochastic process pit) -pit):

Tr(E[W) -PiO)(P(O -P(Of]) = Tr(E\pi0p τ i0 ~p(0P T (0 ~p(0p T (0 +p(0P(0 T ]). To approximate the covariance, we update our estimate of Q(t h ) every length of the time window T, using the last two stored parameter estimates, p(t - tvooa(T) - T) and the previous pit - tmod(r) - 2T) as follows,

and when t HiOd(T)=O,

ise for ij = \, ... ,q, and when tmod(r) ≠ 0, \ei Q y (t) = Q y (t - twod(T)). We let a p = 0.05 initially. Notice that while Q(t) is a q x q matrix, it is diagonal and all the diagonal elements have the same value, so it is only necessary to store a single value to represent Q(t) .

3.5.3 Estimation Method for Q(i) in PAE The stochastic equation for parameters is

dp{t) = 0 + dυ(t) where dυ(t) is a zero mean Gaussian Brownian process with covariance Q(t) dt, and Q(t) is positive definite.

In the forecast engine, we use discrete Kalman filter to update parameters p(t). Given the k th estimation of parameters, p k and its covariance ∑/tμ and given (Jc + \) th observation R and given p, we update σ to get

∑*H I *H = + Q)

where R and Q are diagonal. If k → ∞, then σ A → stable states, which are denoted by E 00 . Therefore as k → ∞, then ∑*μ → σ∞, σ^ +1 \ k+\ ∑oo, and Q → Q . Restating equation (28) using σ∞ and Q∞ we get

∑oo = (∑oo + Q∞) - (∑oo + Q∞)p τ (p(∑∞ + Q∞)p τ + R) p(∑∞ + Q∞)

We assume that the parameters are independent in infinity (i.e. ∑ is diagonal), and that the main contribution of p to ∑ (i, ϊ) is the i th column of p, and

that other columns can be ignored. Let ∑" denote ∑∞ (ij), QT denote Q (i,i),p, denote the i th column of p . Also assume that for the sealer r,

r Wp 1 is the parameter related to u(t) or x(t) or fit) terms r 2 if p, is the parameter associated with x{t)v(t) or χ(t)f(t) terms

Then we can restate equation (28) again as

Let n denote the number of correlated stocks. The structure of p, is n x 1 , and only one entry is non-zero, which we denote by j . Then

Let a, = (p ι (j)) 2 , where j is index of the only non-zero entry of p, , and noting that R is an n^n diagonal matrix, then

which is solved for σJ°

y∞ -α,βf ± J(α,βf) 2 + 4QrRQJ)

Ia 1

Because σ™ > 0 we use only the "+" which gives us

where j corresponds to the one and only non-zero entry of p/ .

In the algorithm, Qf will be estimated by ∑f , i.e.

where q is the number of parameters; a, and Qf are as we defined above; and R and p, are given functions of time.

3.5.4 Aggregated Discrete Observation Model for PAE

To ensure sufficient statistics well-posediness, we need to construct an observation sample out of the observations generated during the interval AT. The number of needed observations in the observation sample is a function of the number of parameters to be identified, q.

The discrete observation model is given by

where Hh) is a zero mean discrete Gaussian stochastic measurement noise with

covariance R(Ji 0 ) and π(t /t ) and P (J k ) are defined later. The covariance matrix R(tk) is an (n-gjL) x (n-^) diagonal matrix given by

R(tk - δdata)

R(t k - AT+ A data ) where

Now we define Tl(t k ) and P (t k ). The column vector

and each η(t) block is «*1 with The matrix

and each P(t) block is nx ' q and given in (24).

3.5.5 Discrete Filter

We now describe our implementation of the discrete filter. Let p(t k+ ι \t k ) denote an estimate (conditional mean) oϊp(t) at time sample t k+\ given observations up to time t k , and given an observation at time t k+\ . Let also ∑(t /t+ i |^) denote the covariance matrix of p(t) at time sample t k+\

Let ) bθ a q x matrix representing the discrete gain at time sample t i+1 . It is given by (see Jazwinski [3]),

The propagation of the conditional mean p(t k+ ι ) and the covariance matrix σ(^ + i \h +\ ) after an observation at time t k+\ is made is given by the following equations

) ∑tøw|f*+i ) = - K D (! M ) P (h +i

+ K D (t k+ ι )[ U(t k+ι ) -P (

Equation (34) is called a prediction equation because it gives a way to propagate without an observation. Equation (35) is called a correction equations because it corrects P(^ 1 1^ ) based on an observation made at time t A+1 .

The term called an innovation process, gives a difference between an observation made at time and a "predicted observation" P (t k+ ι )β(t k+ι

To summarize, we can give the steps needed in the flowchart of PAE. Step 0. Initialize p(0|0) and σ(0|0). Set current time to t k í- t 0 -

Step 1. Set current time to t k * - t k + AT. Get information needed from the shared memory system: χ"(t), η(t), t ≡ [t k - AT+ A data , t k ]; u NN (t k - AT),f ata (t k - AT)..

Step 2. Construct U(t k ), P (t k ), R(t k ), and Q(t k ) Step 3 Calculate.

∑{t k - AT\t k - AT) + Q(t k ) (t k )yfp AT)(P (t k )y + R(t k

σ(t k ) ^ (σ(t k ) + (σ(t k )f)/2

Step 4. Go to Step 1.

3.5.6 Continuous Measurement Filter for PAE

This is cut-and-paste from the previous version of PAE, where we did not have enough data to estimate the parameters.

To conclude, given continuous trajectories x(t), u(t),f(t), and φ(t), the continuous measurement process for p{t) is written as

dx{t) - φ(t)dt = P(t)p(t)dt + dθ(t)

where dθ(t) is a zero mean Gaussian stochastic measurement noise with co variance R(t)dt. The noise θ(t) is due to the noise in measuring price. The covariance matrix R(t) is estimated by the risk θ(t) where

Ml if / = /

Ryit) = < Adata

0 otherwise

for ij = l, ... ,π and δr fαto is the time step in the Continuous Forecast Engine (possibly one second).

Assuming the parameters are constant over short intervals, we specify the dynamics of the parameter system by the following stochastic differential equation

dpit) = 0 + dv(t)

where the 0 ? χi column vector indicates that p(t) is constant over the interval of interest, and dv(t) is a zero mean Gaussian Brownian q process with covariance Q(t)dt, where Q(t) is positive definite. The noise v(t) is due to the noise in the parameters.

The covariance matrix Q(t) is estimated by taking the Tr(E[(p(t) -P(O)(P(O -P(Of] ' ) = -p{t)p τ (t) +p(t)p(t) τ ]).

To approximate the covariance, we update our estimate of Q{t) every length of the time window T, using the last two stored parameter estimates, pit — tmod(r) — T) and the previous p(t - tmod(T') - 2T) as follows,

and when t mod(7) = 0,

for /J = I, .. . , q, and when t moά(T) ≠ O 1 let Q 9 (t) = £„ (f - f mod(r) ). We let a p = 0.05 initially. Notice that while Q(J) \s a q x q matrix, it is diagonal and all the diagonal elements are the same value, so it is only necessary to store a single value to represent Q(t) .

We now apply the continuous measurement filter as described in Hybrid Asynchronous Filter. We propagate the conditional mean p(τ\t k ) and covariance matrix according to the following equations,

with initial conditions and where a q x n matrix, is the continuous gain given by

and

with initial condition is a q*q symmetric matrix. In the implementation of PAE 5 the observations dx(τ)/dτ, φ(τ), P(τ), and R(τ) are updated every δ^ αto , and Q(τ) is updated every T.

For initialization purposes, an initial p(0) = po is estimated from historical data using a min least squares approach. 3.6 Learning Engine

The concept of the repair strategy is to first use historical data to estimate the parameters of the model. This is called the training mode. Once we have initial estimates for the parameters, we are in the simulated real-time mode. In this mode, we can use the dynamical model (??) with the estimated parameters to solve for the price and risk trajectories. The time window is advanced and the data is updated. Then the parameters are estimated again. As the time window slides, the repair strategy continuously solves for the price and risk trajectories while updating the parameters in real-time, see section 3.4.

3.7 Lowpass Filter

The Lowpass Filter is used to filter the predicted price provided by the Forecast Engine to produce x out (t), the price provided to the user. It does this using a Laplace transform of the signals: xx' 'it) is the Laplace transform of x out (t) .

output signal _ xψ(t) _ 2π 1 input signal xψ dict (t) TLF t + j^

T LF is given; a large value of T LF filters high frequency signals.

Using known properties of Laplace transforms, use inverse Laplace transform X ~l , where:

£ ~l (t • x°/ (ή) = x out (t) X- 1 (x^ edict (ή) = χ Predict (t)

we have:

For each stock, given χP reώct (t c + AT) and x 0Ut (t c + AT- A c ), which is from the previous filtered forecast, we solve for

constant We solve the following differential equations

with the initial condition

If x is a scalar, and x{t) = αx(t) + b for t e [to,tχ ], then

3.8 Implementation

An overview of the modules in the repair system simulated real-time architecture is included below. In this section and in the flowcharts, we assume that computation is instantaneous, so the clock is not advanced during computation.

3.8.1 Asynchronous Filter Bank (AFB)

Reads asynchronous data from the tape, filters it, then sends filtered data at every δ ώt o to the database.

Input: From the data tape when data is available at time t data ;

X V data )i x v data )> x V data h u V data ) J V data ) Output: To the database for t every δ^ α/α ; x ask (t\x bld (t),x sell (t), u data (t),f ata (t)

3.8.2 Parameter Adaptation Engine (PAE)

• Computes the p(t c ) parameters including {A 0 , A , , i - 1 , .. ,n, D j J = \, .. ,p,B, C}. Input: From the database for nominal trajectories at time I = t c - T; x N (l),® N (l),u N (l),f(l),

Output: To the database when t c modr = 0; p(t c ), or if β(ξ) was updated for t c - δ data < ξ < t c , and ξ mod T = 0, then store p(ξ)

3.8.3 Continuous Forecast Engine (CFE)

Computes nominal and repair trajectories. Consists of the following elements: Initialization CFE Routine, Coefficient Generator and Synchronization module, Repair Generator and Nominal Update Generator.

CFE: Initialization CFE Routine

Computes an initial estimate of p, and the following data: x IC (t c ), x N it c ), ® JC (t c ), © N (t c ), Q N (t c ), u NN (t c ),f{t c ), φ N (t c ), g N (t c ), ξ N {t c ), W N (t c )

CFE: Nominal Update Generator

Computes a forecast of the price and the risk value at t c + AT.

■ Output: To user*f (t c + δr),and J®f,(t c + AT) for each stock / = 1, ... ,n and sends to the database, for t c ≤τ<t c + AT

CFE: Coefficient Generator and Synchronization (CG&S)

Computes the coefficients needed for the Repair Generator and the Nominal Update

Generator, and also identifies whether the parameters have changed and sets t \ ,

Omodr

where

Input: p(tc),Q N (tc),χ selι (tc), x N {t),® N {t),ύ N {t),f{t),g N {t),φ N {t),ξ N {t),W N {t)ion = tutχ+A data ,...,tc χ ask (t),x bld (t),t = t c -AT+A data ,tc-AT+2A data ,t c Output:

Coefficients output to CFE for use in the Repair Generator and in the Nominal Update Generator include:

A(t)M)Mt)M\ht),Yy(t),γςι(t),γ v {t), fort = t u t\ + A data ,...,t c + δ7 x se "(t c +AT),Q N (t c + AT) Nominal trajectories stored in the database include: u N {t),f{t),φ N {t),^{t),ξ N {t\W N {t),x ask {t),x M {t) fort = t c +A data ,t c +2A data ,...,t c +Al

CFE: Repair Generator

Uses the coefficients prepared by CG&S to solve the repair problem (using RSolver or other solver) for the repair variables over [tι,t c ] , which is considered long repair if parameters have changed and t \ = t c -T+ AT, or short repair if parameters have not changed and tj = t c • Also computes observations η needed for PAE.

Input: ...,f c + δ2

• Output:

To CFE: To Shared Memory System: