3. ARIMA for time series forecasting
StockFusion Studio - Intelligent Trading Expert Adviser 3
ARIMA models are, in theory, the most
general class of models for forecasting a
time series which can be made to be
“stationary” by differencing.
An ARIMA model can be viewed as a “filter”
that tries to separate the signal from the
noise, and the signal is then extrapolated into
the future to obtain forecasts.
4. Example of ARIMA forecast
StockFusion Studio - Intelligent Trading Expert Adviser 4
5. Self-optimizing ARIMA expert
StockFusion Studio - Intelligent Trading Expert Adviser 5
• Full ARIMA(p,d,q) implementation
• Unlimited order of mixed modeling
• Conditional error estimates
• Chi-square statistics on residuals
• Expert inference for optimal parameters
• Automatic trend adjustments
• Prediction on multiple future horizons
6. FIR Neural Network
StockFusion Studio - Intelligent Trading Expert Adviser 6
• Finite-Impulse-Response (FIR)
• Optimal selection of filter parameters
• Adaptive neural network training
• Temporal back-propagation algorithm
7. Finite State Markov Automation
StockFusion Studio - Intelligent Trading Expert Adviser 7
• Market data flow exploration
• Dynamically construct Markov models
• Building state transition graph
• Predict future market states
9. Stepwise Regression Algorithm
StockFusion Studio - Intelligent Trading Expert Adviser 9
• Enter and remove predictors, in a stepwise
manner, until there is no justifiable reason
to enter or remove more.
• At each step, enter or remove a predictor
based on partial F-tests.
• Stop when no more predictors can be
justifiably entered or removed from the
stepwise model.
11. Linear Regression Model
StockFusion Studio - Intelligent Trading Expert Adviser 11
• Simple linear regression
• Least squares estimator
• Single explanatory variable
iii εβXαY
• Classics of technical analysis
• Useful as a reference for comparison
with nonlinear estimates
12. Linear versus Nonlinear Fit
StockFusion Studio - Intelligent Trading Expert Adviser 12
Linear fit does not give
random residuals
Nonlinear fit gives
random residuals
X
residuals
X
Y
X
residuals
Y
X
13. Square Root Regression
StockFusion Studio - Intelligent Trading Expert Adviser 13
• The square-root transformation
iii εXββY 110
• Used to
• overcome violations of the
homoscedasticity assumption
• fit a non-linear relationship
14. Square Root Transformation
StockFusion Studio - Intelligent Trading Expert Adviser 14
Shape of original relationship
X
b1 > 0
b1 < 0
X
Y
Y
Y
Y
Relationship when transformed
i1i10i εXββY i1i10i εXββY
15. Quadratic Regression Model
StockFusion Studio - Intelligent Trading Expert Adviser 15
where:
β0 = Y intercept
β1 = regression coefficient for linear effect of X on Y
β2 = regression coefficient for quadratic effect on Y
εi = random error in Y for observation i
Model form:
iiii εXβXββY 2
12110
17. Log Transformation
StockFusion Studio - Intelligent Trading Expert Adviser 17
Original multiplicative model Transformed multiplicative model
The Multiplicative Model:
Original multiplicative model Transformed exponential model
The Exponential Model:
18. Forecast with average value
StockFusion Studio - Intelligent Trading Expert Adviser 18
• Simple moving average predictor
• Predicted value equal to moving
average over previous values
• Useful as a reference for comparison
with more complex algorithms
n
ppp
SMA
nMMM )1(1
19. History Prophet
StockFusion Studio - Intelligent Trading Expert Adviser 19
• Dummy predictor for strategy testing
• Predicts every point with its future value
• Imitates a “prophet” knowing the future
• Delivers 100% of profitable trades
• Explicitly uses forward info
• Not suitable for practical trading
• Analog of “Maximum Profit System”
21. Extensible algorithmic API
StockFusion Studio - Intelligent Trading Expert Adviser 21
• Modular algorithmic server
• Extendable calculation engine
• Real-time C++ core framework
• Open standard development API
• Universal DLL interface
• Compatibility with development tools
• Multiple sample models