SlideShare une entreprise Scribd logo
1  sur  19
Télécharger pour lire hors ligne
Regression Analysis
Regression
Analysis
Section I – 39%
Explain why an ARIMA model may
be thought of as an adaptive
process
Explain how you would apply
ARIMA trading strategies to a
given chart scenario
Show how you might use linear
regression to compare relative
strength of various markets
Autoregressive Integrated Moving Average(ARIMA)
• An Autoregressive Integrated Moving Average(ARIMA) model is created by a
process of repeated regression analysis over a moving time window,
resulting in a forecast value based on the new fit.
• ARIMA process automatically applies the most important features of
regression analysis in a preset order and continues to reanalyze results until
an optimum set of parameters or coefficients is found.
• This technique is often referred to as the Box-Jenkins forecast.
• The two important terms in ARIMA are auto regression and moving average.
• Auto regression refers to the use of the same data to self-predict, for
example, using only gold prices to arrive at a gold price forecast.
• Moving average refers to the normal concept of smoothing price
fluctuations, using a rolling average of the past n days.
Autoregressive Integrated Moving Average(ARIMA)
• The autocorrelation is used to determine to what extent past prices will
forecast future prices.
• The success of the ARIMA model is determined by two factors:
- High correlation in the auto regression
- Low variance in the final forecast errors.
• Preliminary steps for determining the order of the autoregression and
moving average to be used:
- The variance must be stabilized
- Prices are detrended
- Specify the order of the autoregressive and moving average components.
Autoregressive Integrated Moving Average(ARIMA)
• To determine when an ARIMA process is completed, three tests are
performed at the end of each estimation pass:
• 1.Compare the change in the coefficient value. If the last estimation has
caused little or no change in the value of the coefficient(s), the model has
successfully converged to a solution.
• 2.Compare the sum of the squares of the error. If the error value is small or
if it stays relatively unchanged, the process is completed.
• 3.Perform a set number of estimations
Box-Jenkins methodology
Phase 1: Identification
Step 1: Data Preparation
• Transform the data to stabilize the attributes. • Find the difference if it is not stationary;
successively difference • Series to attain stationary.
Step 2: Model Selection
• Examine data, plot ACF and PACF to identify potential models
Phase 2: Estimation and Testing
Step 1: Estimation
• Estimate parameters in potential models • Select best model using AICBIC criterion
Step 2: Diagnostics
• Check ACF/PACF of residuals • Test the residuals • Are the residuals are white noise
Phase 3: Forecast the application
• Forecasting the trend • This model is used to forecast the future
Forecast Results
• Once the coefficients have been determined,
they are used to calculate the forecast value.
These forecasts are most accurate for the next
day and should be used with less confidence
for subsequent days
• ARIMA forecast which becomes less accurate
with 95% further ahead.
• What if the forecast does not work?
- First, Be sure that any data transformations
were reversed. Pay particular attention to the
removal of trends using the correlogram.
- Second, check the data used in the process. If
the data sample is changing
ARIMA Trading Strategies
Following the
Trend
Mean-
Reverting
Indicator
Use of Highs
and Lows
Slope Kalman Filters
ARIMA Trading Strategies
• Following the Trend : Use the 1-day-ahead forecast to determine the trend
position.
• Hold a long position if the forecast is for higher prices, and take a short
position if the process is expecting lower prices.
• Mean-Reverting Indicator : ARIMA confidence bands to determine
overbought/oversold levels.
• long position be entered when prices penetrate the lowest95% confidence
band, but they can be closed out when they return to the normal 50% level.
• A conservative trader will enter the market only in the direction of the
ARIMA trend forecast.
• If the trend is up, only the penetrations of a lower confidence band will be
used to enter new long positions.
ARIMA Trading Strategies
• Use of Highs and Lows :
• 1.Using confidence bands based on the closing prices, buy an intraday
penetration of the expected high or sell short a penetration of the expected
low, and liquidate the position on the close.
• Use a stop-loss. Take positions only in the direction of the ARIMA trend.
• Using the separate ARIMA models based on the daily high and low prices,
buy a penetration of the 50% level of the high and sell a penetration of the
50% level of the lows. Liquidate positions on the close. Use a stop-loss.
• Slope : The purpose of directional analysis, whether regression or moving
averages, is to uncover the true direction of prices by discarding the noise.
Therefore, the slope of the trend line, or the direction of the regression
forecast, is the logical answer.
• The slope itself should be viewed as the best approximation of direction.
ARIMA Trading Strategies
• Kalman offers an alternative approach to ARIMA, allowing an underlying
forecasting model to be combined with other timely information
• The message model may be any trading strategy, moving average, or
regression approach.
• The observation model may be the specialist's or floor broker's opening calls,
market liquidity, or earlier trading activity in the same stock or index market
on a foreign exchange—all of which have been determined to good
candidate inputs for forecasting.
Basic Trading Signals Using a Linear Regression Model
• Buy when tomorrow's
closing price (Ct+1) moves
above the forecasted value
of tomorrow's close (Ft+1).
• Sell short when tomorrow's
closing price (Ct+1) moves
below the forecasted value
of tomorrow's close (Ft+1).
Basic Trading Signals Using a Linear Regression Model
• Adding Confidence Bands
• The new trading rules using a 95%
confidence band would then become
• Buy when tomorrow's closing price
(Ct+1) moves above the forecasted
value of tomorrow's close (Ft+1) +
(2.0 × Rt).
• Sell short when tomorrow's closing
price (Ct+1) moves below the
forecasted value of tomorrow's close
(Ft+1) − (2.0 × Rt).
Using the Linear Regression Slope
• The slope of the linear regression line, the angle at which it is rising or falling, is an
effective way to simplify the usefulness of the regression process. The slope shows
how quickly prices are expected to change over a unit of time.
• Buy when the value of the slope is positive (rising).
• Sell when the value of the slope is negative (falling).
Adding Correlations
• Using the correlation coefficient, R2, will provide a measurement of the consistency of
the price movement
• Instead of R2, which is always positive, R will be used , the actual prices will be used
and correlated against a series of sequential numbers.
• This should give us a better value for whether the prices are trending.
• If R becomes negative then prices are trending down.
• The trading rules for the slope are normally the same as those for a moving average:
- a long position is entered when the trend line or slope turns up and
- a short sale begins when the trend line turns down;
Forecast Oscillator
• Tushar Chande used the regression forecast and its residuals to create
trend-following signals called the Forecast Oscillator
• 5-day regression, find the residuals and calculate the percentage variation
from the regression line.
• A buy signal occurs when the 3-day average of the residuals crosses above
the regression line;
• A short sale is when the 3-day average of the residuals crosses below the
regression line.
Measuring Market Strength
• “Which market is leading the other, Hewlett Packard or Dell?
• The slope of the linear regression, measured over the same calculation period, is the
perfect tool for comparing, or ranking, a set of markets.
• The prices of four pharmaceutical companies, Amgen (AMGN), Johnson & Johnson
(JNJ), Merck (MRK), and Pfizer (PFE). Which of them is the strongest during the last 60
days? No doubt it's PFE, the line at the bottom. But the weakest is not as clear.
Measuring Market Strength
• In order to rank these correctly, it is best to index the stock prices, starting at 100 on
the same date. For only stocks, indexing is not necessary, but if you are mixing stocks
and futures, or just using futures, indexing will be needed to put the trading units into
the same notation. Figure 28.6shows the indexed stocks beginning at the value of 100.
Measuring Market Strength
• PFE was the most volatile because the slope varied from much higher to much lower
than the others, while each stock had its turn at being the strongest and weakest. At
the right side of the chart, PFE finishes the strongest followed by AMGN, MRK, and
JNJ.
• Graph shows rolling linear regression slope with plots for AMGN, JNJ, MRK, and PFE on
year versus slope.

Contenu connexe

Tendances

Scatter plot- Complete
Scatter plot- CompleteScatter plot- Complete
Scatter plot- CompleteIrfan Yaqoob
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regressionA M
 
Multicolinearity
MulticolinearityMulticolinearity
MulticolinearityPawan Kawan
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticityhalimuth
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression AnalysisJ P Verma
 
Overview of Multivariate Statistical Methods
Overview of Multivariate Statistical MethodsOverview of Multivariate Statistical Methods
Overview of Multivariate Statistical MethodsThomasUttaro1
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDouglas Joubert
 
Multivariate Variate Techniques
Multivariate Variate TechniquesMultivariate Variate Techniques
Multivariate Variate TechniquesDr. Keerti Jain
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 

Tendances (20)

Simple linear regression
Simple linear regressionSimple linear regression
Simple linear regression
 
Multivariate Analysis
Multivariate AnalysisMultivariate Analysis
Multivariate Analysis
 
Scatter plot- Complete
Scatter plot- CompleteScatter plot- Complete
Scatter plot- Complete
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
4.5. logistic regression
4.5. logistic regression4.5. logistic regression
4.5. logistic regression
 
Multicolinearity
MulticolinearityMulticolinearity
Multicolinearity
 
In Anova
In  AnovaIn  Anova
In Anova
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Presentation on Regression Analysis
Presentation on Regression AnalysisPresentation on Regression Analysis
Presentation on Regression Analysis
 
Overview of Multivariate Statistical Methods
Overview of Multivariate Statistical MethodsOverview of Multivariate Statistical Methods
Overview of Multivariate Statistical Methods
 
Lecture 4
Lecture 4Lecture 4
Lecture 4
 
Descriptive Statistics and Data Visualization
Descriptive Statistics and Data VisualizationDescriptive Statistics and Data Visualization
Descriptive Statistics and Data Visualization
 
Cmt learning objective 3 time based trend calculation
Cmt learning objective 3   time based trend calculationCmt learning objective 3   time based trend calculation
Cmt learning objective 3 time based trend calculation
 
Moving average
Moving averageMoving average
Moving average
 
Heteroscedasticity
HeteroscedasticityHeteroscedasticity
Heteroscedasticity
 
Multivariate Variate Techniques
Multivariate Variate TechniquesMultivariate Variate Techniques
Multivariate Variate Techniques
 
Model selection
Model selectionModel selection
Model selection
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 

Similaire à Regression analysis

Cmt learning objective 2 a moving averages , types & its application
Cmt learning objective 2 a   moving averages , types & its applicationCmt learning objective 2 a   moving averages , types & its application
Cmt learning objective 2 a moving averages , types & its applicationProfessional Training Academy
 
Cmt learning objective 2 d envelopes , bands & channels
Cmt learning objective 2 d   envelopes , bands & channelsCmt learning objective 2 d   envelopes , bands & channels
Cmt learning objective 2 d envelopes , bands & channelsProfessional Training Academy
 
2. Module II (1) FRM.pdf
2. Module II (1) FRM.pdf2. Module II (1) FRM.pdf
2. Module II (1) FRM.pdfItzGA
 
Cmt learning objective 37 system trading & testing - copy
Cmt learning objective 37  system trading & testing - copyCmt learning objective 37  system trading & testing - copy
Cmt learning objective 37 system trading & testing - copyProfessional Training Academy
 
Section 2 - Chapter 7 Part II - Strategies using Moving Averages
Section 2 - Chapter 7 Part II - Strategies using Moving AveragesSection 2 - Chapter 7 Part II - Strategies using Moving Averages
Section 2 - Chapter 7 Part II - Strategies using Moving AveragesProfessional Training Academy
 
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...Professional Training Academy
 
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15MLconf
 
Cmt learning objective 6 momentum and oscillators Part-1
Cmt learning objective 6   momentum and oscillators Part-1Cmt learning objective 6   momentum and oscillators Part-1
Cmt learning objective 6 momentum and oscillators Part-1Professional Training Academy
 
Cmt learning objective 6 momentum and oscillators Part-3
Cmt learning objective 6   momentum and oscillators Part-3Cmt learning objective 6   momentum and oscillators Part-3
Cmt learning objective 6 momentum and oscillators Part-3Professional Training Academy
 
Cmt learning objective 6 momentum and oscillators Part-4
Cmt learning objective 6   momentum and oscillators Part-4Cmt learning objective 6   momentum and oscillators Part-4
Cmt learning objective 6 momentum and oscillators Part-4Professional Training Academy
 
Cmt learning objective 6 momentum and oscillators Part 2
Cmt learning objective 6   momentum and oscillators Part 2Cmt learning objective 6   momentum and oscillators Part 2
Cmt learning objective 6 momentum and oscillators Part 2Professional Training Academy
 
Strategy Part 3 - Combined Models
Strategy Part 3 - Combined ModelsStrategy Part 3 - Combined Models
Strategy Part 3 - Combined Modelsdemarcog
 

Similaire à Regression analysis (20)

Cmt learning objective 2 a moving averages , types & its application
Cmt learning objective 2 a   moving averages , types & its applicationCmt learning objective 2 a   moving averages , types & its application
Cmt learning objective 2 a moving averages , types & its application
 
Cmt learning objective 2 d envelopes , bands & channels
Cmt learning objective 2 d   envelopes , bands & channelsCmt learning objective 2 d   envelopes , bands & channels
Cmt learning objective 2 d envelopes , bands & channels
 
Cmt learning objective 4 trend system part i
Cmt learning objective 4   trend system part iCmt learning objective 4   trend system part i
Cmt learning objective 4 trend system part i
 
Cmt learning objective 5 trend system part ii
Cmt learning objective 5    trend system part iiCmt learning objective 5    trend system part ii
Cmt learning objective 5 trend system part ii
 
2. Module II (1) FRM.pdf
2. Module II (1) FRM.pdf2. Module II (1) FRM.pdf
2. Module II (1) FRM.pdf
 
Section 2 - Chapter 7 Part I - Moving Averages Basics
Section 2 - Chapter 7 Part I - Moving Averages BasicsSection 2 - Chapter 7 Part I - Moving Averages Basics
Section 2 - Chapter 7 Part I - Moving Averages Basics
 
Cmt learning objective 37 system trading & testing - copy
Cmt learning objective 37  system trading & testing - copyCmt learning objective 37  system trading & testing - copy
Cmt learning objective 37 system trading & testing - copy
 
System Design & testing
System Design  & testing System Design  & testing
System Design & testing
 
Cmt learning objective 36 case study of s&p 500
Cmt learning objective 36   case study of s&p 500Cmt learning objective 36   case study of s&p 500
Cmt learning objective 36 case study of s&p 500
 
Case study of s&p 500
Case study of s&p 500Case study of s&p 500
Case study of s&p 500
 
Section 2 - Chapter 7 Part II - Strategies using Moving Averages
Section 2 - Chapter 7 Part II - Strategies using Moving AveragesSection 2 - Chapter 7 Part II - Strategies using Moving Averages
Section 2 - Chapter 7 Part II - Strategies using Moving Averages
 
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...
Asset Relationships - CH 11 - Relative Strength | CMT Level 3 | Chartered Mar...
 
Adaptix_2013
Adaptix_2013Adaptix_2013
Adaptix_2013
 
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
 
Cmt learning objective 6 momentum and oscillators Part-1
Cmt learning objective 6   momentum and oscillators Part-1Cmt learning objective 6   momentum and oscillators Part-1
Cmt learning objective 6 momentum and oscillators Part-1
 
Cmt learning objective 6 momentum and oscillators Part-3
Cmt learning objective 6   momentum and oscillators Part-3Cmt learning objective 6   momentum and oscillators Part-3
Cmt learning objective 6 momentum and oscillators Part-3
 
Cmt learning objective 6 momentum and oscillators Part-4
Cmt learning objective 6   momentum and oscillators Part-4Cmt learning objective 6   momentum and oscillators Part-4
Cmt learning objective 6 momentum and oscillators Part-4
 
Cmt learning objective 6 momentum and oscillators Part 2
Cmt learning objective 6   momentum and oscillators Part 2Cmt learning objective 6   momentum and oscillators Part 2
Cmt learning objective 6 momentum and oscillators Part 2
 
Asset pricing models
Asset pricing modelsAsset pricing models
Asset pricing models
 
Strategy Part 3 - Combined Models
Strategy Part 3 - Combined ModelsStrategy Part 3 - Combined Models
Strategy Part 3 - Combined Models
 

Plus de Professional Training Academy

Lecture E - Standard V Investment Analysis, Recommendations, and Actions
Lecture E - Standard V Investment Analysis, Recommendations, and ActionsLecture E - Standard V Investment Analysis, Recommendations, and Actions
Lecture E - Standard V Investment Analysis, Recommendations, and ActionsProfessional Training Academy
 
SECTION VII - CHAPTER 42 - Being Right or making money
SECTION VII - CHAPTER 42 - Being Right or making moneySECTION VII - CHAPTER 42 - Being Right or making money
SECTION VII - CHAPTER 42 - Being Right or making moneyProfessional Training Academy
 
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & EvaluationSECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & EvaluationProfessional Training Academy
 
SECTION VI - CHAPTER 39 - Descriptive Statistics basics
SECTION VI - CHAPTER 39 - Descriptive Statistics basicsSECTION VI - CHAPTER 39 - Descriptive Statistics basics
SECTION VI - CHAPTER 39 - Descriptive Statistics basicsProfessional Training Academy
 
SECTION V- CHAPTER 38 - Sentiment Measures from External Data
SECTION V- CHAPTER 38  - Sentiment Measures from External  DataSECTION V- CHAPTER 38  - Sentiment Measures from External  Data
SECTION V- CHAPTER 38 - Sentiment Measures from External DataProfessional Training Academy
 
SECTION V - CHAPTER 37 - Sentiment Measures from Market Data
SECTION V - CHAPTER 37 - Sentiment Measures from Market DataSECTION V - CHAPTER 37 - Sentiment Measures from Market Data
SECTION V - CHAPTER 37 - Sentiment Measures from Market DataProfessional Training Academy
 
SECTION V - CHAPTER 36 - Market Sentiment & Technical Analysis
SECTION V - CHAPTER 36 - Market Sentiment & Technical AnalysisSECTION V - CHAPTER 36 - Market Sentiment & Technical Analysis
SECTION V - CHAPTER 36 - Market Sentiment & Technical AnalysisProfessional Training Academy
 
SECTION V - CHAPTER 35 - Academic Approaches to Technical Analysis
SECTION V - CHAPTER 35 - Academic Approaches to Technical AnalysisSECTION V - CHAPTER 35 - Academic Approaches to Technical Analysis
SECTION V - CHAPTER 35 - Academic Approaches to Technical AnalysisProfessional Training Academy
 
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdf
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdfSECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdf
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdfProfessional Training Academy
 
SECTION V - CHAPTER 33 - Noise Traders & Law of One Price
SECTION V - CHAPTER 33 - Noise Traders & Law of One PriceSECTION V - CHAPTER 33 - Noise Traders & Law of One Price
SECTION V - CHAPTER 33 - Noise Traders & Law of One PriceProfessional Training Academy
 
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdf
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdfSECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdf
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdfProfessional Training Academy
 

Plus de Professional Training Academy (20)

Chapter D - Knowledge Domains and Weightings
Chapter D - Knowledge Domains and WeightingsChapter D - Knowledge Domains and Weightings
Chapter D - Knowledge Domains and Weightings
 
Lecture F - Standard VI Conflicts of Interest
Lecture F - Standard VI Conflicts of InterestLecture F - Standard VI Conflicts of Interest
Lecture F - Standard VI Conflicts of Interest
 
Lecture E - Standard V Investment Analysis, Recommendations, and Actions
Lecture E - Standard V Investment Analysis, Recommendations, and ActionsLecture E - Standard V Investment Analysis, Recommendations, and Actions
Lecture E - Standard V Investment Analysis, Recommendations, and Actions
 
Lecture D - Standard IV Duties to Employers
Lecture D - Standard IV Duties to EmployersLecture D - Standard IV Duties to Employers
Lecture D - Standard IV Duties to Employers
 
Lecture C - Standard III Duties to Clients
Lecture C - Standard III Duties to ClientsLecture C - Standard III Duties to Clients
Lecture C - Standard III Duties to Clients
 
Lecture B - Standard II Integrity of Capital Markets
Lecture B - Standard II Integrity of Capital MarketsLecture B - Standard II Integrity of Capital Markets
Lecture B - Standard II Integrity of Capital Markets
 
Lecture A - Standard I Professionalism
Lecture A - Standard I ProfessionalismLecture A - Standard I Professionalism
Lecture A - Standard I Professionalism
 
SECTION VII - CHAPTER 44 - Relative Strength Concept
SECTION VII - CHAPTER 44 -  Relative Strength ConceptSECTION VII - CHAPTER 44 -  Relative Strength Concept
SECTION VII - CHAPTER 44 - Relative Strength Concept
 
SECTION VII - CHAPTER 43 - Model Building Process
SECTION VII - CHAPTER 43 - Model Building ProcessSECTION VII - CHAPTER 43 - Model Building Process
SECTION VII - CHAPTER 43 - Model Building Process
 
SECTION VII - CHAPTER 42 - Being Right or making money
SECTION VII - CHAPTER 42 - Being Right or making moneySECTION VII - CHAPTER 42 - Being Right or making money
SECTION VII - CHAPTER 42 - Being Right or making money
 
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & EvaluationSECTION VII - CHAPTER 41 - Objective Rules & Evaluation
SECTION VII - CHAPTER 41 - Objective Rules & Evaluation
 
SECTION VI - CHAPTER 40 - Concept of Probablity
SECTION VI - CHAPTER 40 - Concept of ProbablitySECTION VI - CHAPTER 40 - Concept of Probablity
SECTION VI - CHAPTER 40 - Concept of Probablity
 
SECTION VI - CHAPTER 39 - Descriptive Statistics basics
SECTION VI - CHAPTER 39 - Descriptive Statistics basicsSECTION VI - CHAPTER 39 - Descriptive Statistics basics
SECTION VI - CHAPTER 39 - Descriptive Statistics basics
 
SECTION V- CHAPTER 38 - Sentiment Measures from External Data
SECTION V- CHAPTER 38  - Sentiment Measures from External  DataSECTION V- CHAPTER 38  - Sentiment Measures from External  Data
SECTION V- CHAPTER 38 - Sentiment Measures from External Data
 
SECTION V - CHAPTER 37 - Sentiment Measures from Market Data
SECTION V - CHAPTER 37 - Sentiment Measures from Market DataSECTION V - CHAPTER 37 - Sentiment Measures from Market Data
SECTION V - CHAPTER 37 - Sentiment Measures from Market Data
 
SECTION V - CHAPTER 36 - Market Sentiment & Technical Analysis
SECTION V - CHAPTER 36 - Market Sentiment & Technical AnalysisSECTION V - CHAPTER 36 - Market Sentiment & Technical Analysis
SECTION V - CHAPTER 36 - Market Sentiment & Technical Analysis
 
SECTION V - CHAPTER 35 - Academic Approaches to Technical Analysis
SECTION V - CHAPTER 35 - Academic Approaches to Technical AnalysisSECTION V - CHAPTER 35 - Academic Approaches to Technical Analysis
SECTION V - CHAPTER 35 - Academic Approaches to Technical Analysis
 
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdf
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdfSECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdf
SECTION V - CHAPTER 34 - Noise Traders as technical Traders.pdf
 
SECTION V - CHAPTER 33 - Noise Traders & Law of One Price
SECTION V - CHAPTER 33 - Noise Traders & Law of One PriceSECTION V - CHAPTER 33 - Noise Traders & Law of One Price
SECTION V - CHAPTER 33 - Noise Traders & Law of One Price
 
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdf
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdfSECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdf
SECTION V - CHAPTER 32 - Forerunners to Behavioural Finance.pdf
 

Dernier

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxUmeshTimilsina1
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxDr. Sarita Anand
 

Dernier (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

Regression analysis

  • 2. Regression Analysis Section I – 39% Explain why an ARIMA model may be thought of as an adaptive process Explain how you would apply ARIMA trading strategies to a given chart scenario Show how you might use linear regression to compare relative strength of various markets
  • 3. Autoregressive Integrated Moving Average(ARIMA) • An Autoregressive Integrated Moving Average(ARIMA) model is created by a process of repeated regression analysis over a moving time window, resulting in a forecast value based on the new fit. • ARIMA process automatically applies the most important features of regression analysis in a preset order and continues to reanalyze results until an optimum set of parameters or coefficients is found. • This technique is often referred to as the Box-Jenkins forecast. • The two important terms in ARIMA are auto regression and moving average. • Auto regression refers to the use of the same data to self-predict, for example, using only gold prices to arrive at a gold price forecast. • Moving average refers to the normal concept of smoothing price fluctuations, using a rolling average of the past n days.
  • 4. Autoregressive Integrated Moving Average(ARIMA) • The autocorrelation is used to determine to what extent past prices will forecast future prices. • The success of the ARIMA model is determined by two factors: - High correlation in the auto regression - Low variance in the final forecast errors. • Preliminary steps for determining the order of the autoregression and moving average to be used: - The variance must be stabilized - Prices are detrended - Specify the order of the autoregressive and moving average components.
  • 5. Autoregressive Integrated Moving Average(ARIMA) • To determine when an ARIMA process is completed, three tests are performed at the end of each estimation pass: • 1.Compare the change in the coefficient value. If the last estimation has caused little or no change in the value of the coefficient(s), the model has successfully converged to a solution. • 2.Compare the sum of the squares of the error. If the error value is small or if it stays relatively unchanged, the process is completed. • 3.Perform a set number of estimations
  • 6. Box-Jenkins methodology Phase 1: Identification Step 1: Data Preparation • Transform the data to stabilize the attributes. • Find the difference if it is not stationary; successively difference • Series to attain stationary. Step 2: Model Selection • Examine data, plot ACF and PACF to identify potential models Phase 2: Estimation and Testing Step 1: Estimation • Estimate parameters in potential models • Select best model using AICBIC criterion Step 2: Diagnostics • Check ACF/PACF of residuals • Test the residuals • Are the residuals are white noise Phase 3: Forecast the application • Forecasting the trend • This model is used to forecast the future
  • 7. Forecast Results • Once the coefficients have been determined, they are used to calculate the forecast value. These forecasts are most accurate for the next day and should be used with less confidence for subsequent days • ARIMA forecast which becomes less accurate with 95% further ahead. • What if the forecast does not work? - First, Be sure that any data transformations were reversed. Pay particular attention to the removal of trends using the correlogram. - Second, check the data used in the process. If the data sample is changing
  • 8. ARIMA Trading Strategies Following the Trend Mean- Reverting Indicator Use of Highs and Lows Slope Kalman Filters
  • 9. ARIMA Trading Strategies • Following the Trend : Use the 1-day-ahead forecast to determine the trend position. • Hold a long position if the forecast is for higher prices, and take a short position if the process is expecting lower prices. • Mean-Reverting Indicator : ARIMA confidence bands to determine overbought/oversold levels. • long position be entered when prices penetrate the lowest95% confidence band, but they can be closed out when they return to the normal 50% level. • A conservative trader will enter the market only in the direction of the ARIMA trend forecast. • If the trend is up, only the penetrations of a lower confidence band will be used to enter new long positions.
  • 10. ARIMA Trading Strategies • Use of Highs and Lows : • 1.Using confidence bands based on the closing prices, buy an intraday penetration of the expected high or sell short a penetration of the expected low, and liquidate the position on the close. • Use a stop-loss. Take positions only in the direction of the ARIMA trend. • Using the separate ARIMA models based on the daily high and low prices, buy a penetration of the 50% level of the high and sell a penetration of the 50% level of the lows. Liquidate positions on the close. Use a stop-loss. • Slope : The purpose of directional analysis, whether regression or moving averages, is to uncover the true direction of prices by discarding the noise. Therefore, the slope of the trend line, or the direction of the regression forecast, is the logical answer. • The slope itself should be viewed as the best approximation of direction.
  • 11. ARIMA Trading Strategies • Kalman offers an alternative approach to ARIMA, allowing an underlying forecasting model to be combined with other timely information • The message model may be any trading strategy, moving average, or regression approach. • The observation model may be the specialist's or floor broker's opening calls, market liquidity, or earlier trading activity in the same stock or index market on a foreign exchange—all of which have been determined to good candidate inputs for forecasting.
  • 12. Basic Trading Signals Using a Linear Regression Model • Buy when tomorrow's closing price (Ct+1) moves above the forecasted value of tomorrow's close (Ft+1). • Sell short when tomorrow's closing price (Ct+1) moves below the forecasted value of tomorrow's close (Ft+1).
  • 13. Basic Trading Signals Using a Linear Regression Model • Adding Confidence Bands • The new trading rules using a 95% confidence band would then become • Buy when tomorrow's closing price (Ct+1) moves above the forecasted value of tomorrow's close (Ft+1) + (2.0 × Rt). • Sell short when tomorrow's closing price (Ct+1) moves below the forecasted value of tomorrow's close (Ft+1) − (2.0 × Rt).
  • 14. Using the Linear Regression Slope • The slope of the linear regression line, the angle at which it is rising or falling, is an effective way to simplify the usefulness of the regression process. The slope shows how quickly prices are expected to change over a unit of time. • Buy when the value of the slope is positive (rising). • Sell when the value of the slope is negative (falling).
  • 15. Adding Correlations • Using the correlation coefficient, R2, will provide a measurement of the consistency of the price movement • Instead of R2, which is always positive, R will be used , the actual prices will be used and correlated against a series of sequential numbers. • This should give us a better value for whether the prices are trending. • If R becomes negative then prices are trending down. • The trading rules for the slope are normally the same as those for a moving average: - a long position is entered when the trend line or slope turns up and - a short sale begins when the trend line turns down;
  • 16. Forecast Oscillator • Tushar Chande used the regression forecast and its residuals to create trend-following signals called the Forecast Oscillator • 5-day regression, find the residuals and calculate the percentage variation from the regression line. • A buy signal occurs when the 3-day average of the residuals crosses above the regression line; • A short sale is when the 3-day average of the residuals crosses below the regression line.
  • 17. Measuring Market Strength • “Which market is leading the other, Hewlett Packard or Dell? • The slope of the linear regression, measured over the same calculation period, is the perfect tool for comparing, or ranking, a set of markets. • The prices of four pharmaceutical companies, Amgen (AMGN), Johnson & Johnson (JNJ), Merck (MRK), and Pfizer (PFE). Which of them is the strongest during the last 60 days? No doubt it's PFE, the line at the bottom. But the weakest is not as clear.
  • 18. Measuring Market Strength • In order to rank these correctly, it is best to index the stock prices, starting at 100 on the same date. For only stocks, indexing is not necessary, but if you are mixing stocks and futures, or just using futures, indexing will be needed to put the trading units into the same notation. Figure 28.6shows the indexed stocks beginning at the value of 100.
  • 19. Measuring Market Strength • PFE was the most volatile because the slope varied from much higher to much lower than the others, while each stock had its turn at being the strongest and weakest. At the right side of the chart, PFE finishes the strongest followed by AMGN, MRK, and JNJ. • Graph shows rolling linear regression slope with plots for AMGN, JNJ, MRK, and PFE on year versus slope.