SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Financial Time Series:
Concept and Forecast
Chainarong Kesamoon, PhD
Data Science Thailand Team

chainaron.kes@gmail.com
Data Science Thailand Meetup #2
6 Nov 2015
Outline:
What is time series?
How to model financial time series?
Forecasting
What is time series?
Numeric data
1, 1, 2, 3, 5, 8,…
2.8, 1.9, -10, 25, -6.7,…
Time series
measured by time
Time matters!!!
Examples
Financial Time Series
Stock prices
Market index
Money Exchange rates
gold, oil
Typical data set
source: Google Finance
We would like to know:
Tomorrow prices!!!
Chance of profit or loss
Future value of our
money
That’s all about
“Return & Risk”
Return
Today’s return=today’s price - yesterday’s price
Percentage return = Today’s return/yesterday’s price
Log return = log(today’s price) - log(yesterday’s price)
know return then we also know price
Better analyze returns than prices
Let’s analyze!
Correlation
Positive correlation :
More experience, more salary
Where there’s a will, there’s a way.
Negative correlation:
The higher the Doy, the lower the temperature.
The more one works, the less free time one has.
No correlation:
The color of your shirt, the color of my shoes.
Coefficient of Correlation
mpg Miles/(US) gallon
cyl Number of cylinders
disp Displacement (cu.in.)
hp Gross horsepower
drat Rear axle ratio
wt Weight (lb/1000)
qsec 1/4 mile time
vs V/S
am Transmission (0 = automatic, 1 = manual)
gear Number of forward gears
carb Number of carburetors
Correlation between returns on different days
Can we forecast the return?
Imagine you have tossed a
normal coin ten times, last
five outcomes were all head.
Do you expect that the next
outcome would be head?
If there is no correlation, the
next outcome would be like
tossing a coin.
Seem hopeless T__T
H T T H
T H H H
H H
1 2 3 4
5 6 7 8
9 10 11
?
Efficient Market Hypothesis
A financial economist and passionate defender of the efficient markets hypothesis (EMH)
was walking down the street with a friend. The friend stops and says, "Look, there's a $20
bill on the ground."
The economist turns and says, "Boy, this must be our lucky day! Better pick that up quick
because the market is so efficient it won't be there for very long. Finding a $20 bill lying
around happens so infrequently that it would be foolish to spend our time searching for
more of them. Certainly, after assigning a value to the time spent in the effort, an
'investment' in trying to find money lying on the street just waiting to be picked up would be
a poor one. I am also certainly not aware of lots of people, if any, getting rich mining
beaches with metal detectors."
When he had finished they both look down and the $20 bill was gone!
source: http://www.etf.com/sections/features/123.html
Let’s try another way
Why squared return?
The variance of return is calculated from squared returns.
Why variance? What is it?
Variance is the degree of variation
High variance => high volatility=> high risk
Volatility is forecastable
High risk, high return (but return can be either + or - )
Major Stylized Facts for Return
I. The distribution of returns is not normal, it has a high
peak and fat tails.
II. There is almost no correlation between returns for
different days.
III. There is positive correlation between squared returns
on nearby days, likewise for absolute returns.
Time series models
General time series models:
MA : moving average
AR : autoregressive
ARMA : autoregressive moving average
ARIMA, ARFIMA,…
Financial time series models:
EWMA : exponentially weighted moving average
(G)ARCH : (generalized) autoregressive conditional heteroskedastic
SV : stochastic volatility
Asset pricing model
Black-Scholes model
Robert F. Engle Tim Bollerslev
Nobel Prize in Economic Sciences 2003
GARCH model
Generalized AutoRegressive Conditional
Heteroskedasticity Model
rt+1 = µ + t+1✏t+1
2
t+1 = ! + ↵(rt µ)2
+ 2
t
where ✏t+1 ⇠ N(0, 1)
Examples
GARCH volatility forecasting
Using data up to 5 Nov 2015
Date Return SD
6 Nov 0 0.384
7 Nov 0 0.390
8 Nov 0 0.396
9 Nov 0 0.401
10 Nov 0 0.407
11 Nov 0 0.412
12 Nov 0 0.416
13 Nov 0 0.421
"When Professors Scholes
and Merton and I invested
in warrants, Professor
Merton lost the most
money. And I lost the least”
– Fischer Black –
Nobel Prize in Economic Sciences1997:
Fischer Black, Myron Scholes, and Robert
Merton
Challenging, isn’t it?
Financial time series is challenging as it is quite difficult to
forecast.
Multivariate time series is also of interest, but it is even more
difficult to model multiple time series together.
Most financial models were created some years ago, at the time
that less data were available.
Nowadays, we can access more and more data, that would be
a good opportunity to explore and create better models for
financial market.
–Chainarong Kesamoon
“Moltes Gracies”

Contenu connexe

Tendances

Business Valuation: Overview & Key Issues
Business Valuation: Overview & Key Issues Business Valuation: Overview & Key Issues
Business Valuation: Overview & Key Issues Corporate Professionals
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | IntroductionDhanashri Academy
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlphaQuantopian
 
Algo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with IpythonAlgo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with IpythonDeb prakash ganguly
 
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...Mehdi Merai Ph.D.(c)
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianJess Stauth
 
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMUQuantopian
 
Chapter 06_ Are Financial Markets Efficient?
Chapter 06_ Are Financial Markets Efficient?Chapter 06_ Are Financial Markets Efficient?
Chapter 06_ Are Financial Markets Efficient?Rusman Mukhlis
 
Basics of Stock Markets
Basics of Stock MarketsBasics of Stock Markets
Basics of Stock Marketstnd150
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency tradingQuantInsti
 
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C..."Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...Quantopian
 
Algorithmic Trading: an Overview
Algorithmic Trading: an Overview Algorithmic Trading: an Overview
Algorithmic Trading: an Overview EXANTE
 
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...Quantopian
 
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior LecturerQuantopian
 
Algorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingAlgorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingRyan Hendricks
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...Quantopian
 
Chp 11 efficient market hypothesis by mahmudul
Chp 11 efficient market hypothesis by mahmudulChp 11 efficient market hypothesis by mahmudul
Chp 11 efficient market hypothesis by mahmudulMahmudul Hassan
 

Tendances (20)

Business Valuation: Overview & Key Issues
Business Valuation: Overview & Key Issues Business Valuation: Overview & Key Issues
Business Valuation: Overview & Key Issues
 
Stock Market Analysis | Introduction
Stock Market Analysis | IntroductionStock Market Analysis | Introduction
Stock Market Analysis | Introduction
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
 
Algo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with IpythonAlgo trading(Minor Project) strategy EMA with Ipython
Algo trading(Minor Project) strategy EMA with Ipython
 
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
MLX 2018 - Marcos López de Prado, Lawrence Berkeley National Laboratory Comp...
 
Algo Trading
Algo TradingAlgo Trading
Algo Trading
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on Quantopian
 
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
 
Chapter 06_ Are Financial Markets Efficient?
Chapter 06_ Are Financial Markets Efficient?Chapter 06_ Are Financial Markets Efficient?
Chapter 06_ Are Financial Markets Efficient?
 
Basics of Stock Markets
Basics of Stock MarketsBasics of Stock Markets
Basics of Stock Markets
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency trading
 
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C..."Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
 
Pivot points
Pivot pointsPivot points
Pivot points
 
Algorithmic Trading: an Overview
Algorithmic Trading: an Overview Algorithmic Trading: an Overview
Algorithmic Trading: an Overview
 
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
 
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
 
Algorithmic & High-Frequency Trading
Algorithmic & High-Frequency TradingAlgorithmic & High-Frequency Trading
Algorithmic & High-Frequency Trading
 
Forex trading online
Forex trading online Forex trading online
Forex trading online
 
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob..."Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
"Portfolio Optimisation When You Don’t Know the Future (or the Past)" by Rob...
 
Chp 11 efficient market hypothesis by mahmudul
Chp 11 efficient market hypothesis by mahmudulChp 11 efficient market hypothesis by mahmudul
Chp 11 efficient market hypothesis by mahmudul
 

En vedette

On Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationOn Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationGautier Marti
 
Financial time series_forecasting_svm
Financial time series_forecasting_svmFinancial time series_forecasting_svm
Financial time series_forecasting_svmMohamed DHAOUI
 
Financial forecasting by time series 55660701
Financial forecasting by time series 55660701Financial forecasting by time series 55660701
Financial forecasting by time series 55660701Pongsiri Nontasak
 
Managing Large Scale Financial Time-Series Data with Graphs
Managing Large Scale Financial Time-Series Data with Graphs Managing Large Scale Financial Time-Series Data with Graphs
Managing Large Scale Financial Time-Series Data with Graphs Objectivity
 
NYC* Big Tech Day 2013: Financial Time Series
NYC* Big Tech Day 2013: Financial Time SeriesNYC* Big Tech Day 2013: Financial Time Series
NYC* Big Tech Day 2013: Financial Time SeriesCarl Yeksigian
 

En vedette (9)

trading
tradingtrading
trading
 
quantmachine
quantmachinequantmachine
quantmachine
 
On Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond CorrelationOn Clustering Financial Time Series - Beyond Correlation
On Clustering Financial Time Series - Beyond Correlation
 
Financial time series_forecasting_svm
Financial time series_forecasting_svmFinancial time series_forecasting_svm
Financial time series_forecasting_svm
 
Financial forecasting by time series 55660701
Financial forecasting by time series 55660701Financial forecasting by time series 55660701
Financial forecasting by time series 55660701
 
Managing Large Scale Financial Time-Series Data with Graphs
Managing Large Scale Financial Time-Series Data with Graphs Managing Large Scale Financial Time-Series Data with Graphs
Managing Large Scale Financial Time-Series Data with Graphs
 
Support Vector Machine
Support Vector MachineSupport Vector Machine
Support Vector Machine
 
NYC* Big Tech Day 2013: Financial Time Series
NYC* Big Tech Day 2013: Financial Time SeriesNYC* Big Tech Day 2013: Financial Time Series
NYC* Big Tech Day 2013: Financial Time Series
 
time series analysis
time series analysistime series analysis
time series analysis
 

Similaire à Financial Time Series: Concept and Forecast (dsth Meetup#2)

introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษา...
introduction to financial time series analysis with R  โดย อ.ดร.ชัยณรงค์ เกษา...introduction to financial time series analysis with R  โดย อ.ดร.ชัยณรงค์ เกษา...
introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษา...BAINIDA
 
Unexpected Returns Version 1a
Unexpected Returns   Version 1aUnexpected Returns   Version 1a
Unexpected Returns Version 1agrennon
 
Seigniorage Shares and Stablecoin
Seigniorage Shares and StablecoinSeigniorage Shares and Stablecoin
Seigniorage Shares and Stablecoinrmsams
 
Damien lamberton, bernard lapeyre, nicolas rabeau
Damien lamberton, bernard lapeyre, nicolas rabeauDamien lamberton, bernard lapeyre, nicolas rabeau
Damien lamberton, bernard lapeyre, nicolas rabeauBliyaminou Mamane Issa
 
Hidden Treasure of High Frequency Dynamics
Hidden Treasure of High Frequency DynamicsHidden Treasure of High Frequency Dynamics
Hidden Treasure of High Frequency DynamicsOlsen
 
Pricing Foreign Exchange Risk
Pricing Foreign Exchange RiskPricing Foreign Exchange Risk
Pricing Foreign Exchange RiskExpoco
 
Financial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesFinancial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesCaldera Labs
 
Fin415 Week 2 Slides
Fin415 Week 2 SlidesFin415 Week 2 Slides
Fin415 Week 2 Slidessmarkbarnes
 
Popular economicsciences2013
Popular economicsciences2013Popular economicsciences2013
Popular economicsciences2013Giancarlo Aguilar
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)Pietro Di Leo
 
What Is It Worth
What Is It WorthWhat Is It Worth
What Is It Worthsmarkbarnes
 
Random Walks, Efficient Markets & Stock Prices
Random Walks, Efficient Markets & Stock PricesRandom Walks, Efficient Markets & Stock Prices
Random Walks, Efficient Markets & Stock PricesNEO Empresarial
 
Wealth Accumulation under Equity Trading; A Rational Approach
Wealth Accumulation under Equity Trading; A Rational ApproachWealth Accumulation under Equity Trading; A Rational Approach
Wealth Accumulation under Equity Trading; A Rational ApproachHangukQuant
 
Tao Te Ching Essay.pdf
Tao Te Ching Essay.pdfTao Te Ching Essay.pdf
Tao Te Ching Essay.pdfAmy Hart
 

Similaire à Financial Time Series: Concept and Forecast (dsth Meetup#2) (20)

introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษา...
introduction to financial time series analysis with R  โดย อ.ดร.ชัยณรงค์ เกษา...introduction to financial time series analysis with R  โดย อ.ดร.ชัยณรงค์ เกษา...
introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษา...
 
Unexpected Returns Version 1a
Unexpected Returns   Version 1aUnexpected Returns   Version 1a
Unexpected Returns Version 1a
 
Seigniorage Shares and Stablecoin
Seigniorage Shares and StablecoinSeigniorage Shares and Stablecoin
Seigniorage Shares and Stablecoin
 
Damien lamberton, bernard lapeyre, nicolas rabeau
Damien lamberton, bernard lapeyre, nicolas rabeauDamien lamberton, bernard lapeyre, nicolas rabeau
Damien lamberton, bernard lapeyre, nicolas rabeau
 
The Art and Science of Forecasting Financial Markets
The Art and Science of Forecasting Financial MarketsThe Art and Science of Forecasting Financial Markets
The Art and Science of Forecasting Financial Markets
 
Hidden Treasure of High Frequency Dynamics
Hidden Treasure of High Frequency DynamicsHidden Treasure of High Frequency Dynamics
Hidden Treasure of High Frequency Dynamics
 
HTHFD
HTHFDHTHFD
HTHFD
 
Pricing Foreign Exchange Risk
Pricing Foreign Exchange RiskPricing Foreign Exchange Risk
Pricing Foreign Exchange Risk
 
Financial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesFinancial Forecasting For WordPress Businesses
Financial Forecasting For WordPress Businesses
 
Qwafafew meeting 4
Qwafafew meeting 4Qwafafew meeting 4
Qwafafew meeting 4
 
Econophysics I: Basic Concepts - Thomas Guhr
Econophysics I: Basic Concepts - Thomas GuhrEconophysics I: Basic Concepts - Thomas Guhr
Econophysics I: Basic Concepts - Thomas Guhr
 
Fin415 Week 2 Slides
Fin415 Week 2 SlidesFin415 Week 2 Slides
Fin415 Week 2 Slides
 
project report(1)
project report(1)project report(1)
project report(1)
 
Popular economicsciences2013
Popular economicsciences2013Popular economicsciences2013
Popular economicsciences2013
 
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
4 things maybe you don't know about nasdaq-100 (posted 23th June 2017)
 
What Is It Worth
What Is It WorthWhat Is It Worth
What Is It Worth
 
Random Walks, Efficient Markets & Stock Prices
Random Walks, Efficient Markets & Stock PricesRandom Walks, Efficient Markets & Stock Prices
Random Walks, Efficient Markets & Stock Prices
 
Wealth Accumulation under Equity Trading; A Rational Approach
Wealth Accumulation under Equity Trading; A Rational ApproachWealth Accumulation under Equity Trading; A Rational Approach
Wealth Accumulation under Equity Trading; A Rational Approach
 
Tao Te Ching Essay.pdf
Tao Te Ching Essay.pdfTao Te Ching Essay.pdf
Tao Te Ching Essay.pdf
 
riskGRID ETRM Game ISS 2014 Rome Milan July 05 Stack Agrimax
riskGRID ETRM Game ISS 2014 Rome Milan July 05 Stack Agrimax riskGRID ETRM Game ISS 2014 Rome Milan July 05 Stack Agrimax
riskGRID ETRM Game ISS 2014 Rome Milan July 05 Stack Agrimax
 

Plus de Data Science Thailand

Drawing Your career in business analytics and data science
Drawing Your career in business analytics and data scienceDrawing Your career in business analytics and data science
Drawing Your career in business analytics and data scienceData Science Thailand
 
Microsoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaMicrosoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaData Science Thailand
 
Electronic Medical Records - Paperless to Big Data Initiative
Electronic Medical Records - Paperless to Big Data InitiativeElectronic Medical Records - Paperless to Big Data Initiative
Electronic Medical Records - Paperless to Big Data InitiativeData Science Thailand
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processingData Science Thailand
 
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...Data Science Thailand
 
Data Science Application in Business Portfolio & Risk Management
Data Science Application in Business Portfolio & Risk ManagementData Science Application in Business Portfolio & Risk Management
Data Science Application in Business Portfolio & Risk ManagementData Science Thailand
 
Precision Medicine - The Future of Healthcare
Precision Medicine - The Future of HealthcarePrecision Medicine - The Future of Healthcare
Precision Medicine - The Future of HealthcareData Science Thailand
 
Big Data Analytics to Enhance Security
Big Data Analytics to Enhance SecurityBig Data Analytics to Enhance Security
Big Data Analytics to Enhance SecurityData Science Thailand
 
Single Nucleotide Polymorphism Analysis (SNPs)
Single Nucleotide Polymorphism Analysis (SNPs)Single Nucleotide Polymorphism Analysis (SNPs)
Single Nucleotide Polymorphism Analysis (SNPs)Data Science Thailand
 
Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Data Science Thailand
 

Plus de Data Science Thailand (20)

Data Science Thailand Meetup#11
Data Science Thailand Meetup#11Data Science Thailand Meetup#11
Data Science Thailand Meetup#11
 
Define Your Data (Science) Career
Define Your Data (Science) CareerDefine Your Data (Science) Career
Define Your Data (Science) Career
 
Drawing Your career in business analytics and data science
Drawing Your career in business analytics and data scienceDrawing Your career in business analytics and data science
Drawing Your career in business analytics and data science
 
Data Science fuels Creativity
Data Science fuels CreativityData Science fuels Creativity
Data Science fuels Creativity
 
Microsoft R Server for Data Sciencea
Microsoft R Server for Data ScienceaMicrosoft R Server for Data Sciencea
Microsoft R Server for Data Sciencea
 
Electronic Medical Records - Paperless to Big Data Initiative
Electronic Medical Records - Paperless to Big Data InitiativeElectronic Medical Records - Paperless to Big Data Initiative
Electronic Medical Records - Paperless to Big Data Initiative
 
Text Mining and Thai NLP
Text Mining and Thai NLP Text Mining and Thai NLP
Text Mining and Thai NLP
 
Machine learning in image processing
Machine learning in image processingMachine learning in image processing
Machine learning in image processing
 
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...
CUSTOMER ANALYTICS & SEGMENTATION FOR CUSTOMER CENTRIC ORGANIZATION & MARKETI...
 
Bioinformatics in a Nutshell
Bioinformatics in a NutshellBioinformatics in a Nutshell
Bioinformatics in a Nutshell
 
Data Science Application in Business Portfolio & Risk Management
Data Science Application in Business Portfolio & Risk ManagementData Science Application in Business Portfolio & Risk Management
Data Science Application in Business Portfolio & Risk Management
 
Myths of Data Science
Myths of Data ScienceMyths of Data Science
Myths of Data Science
 
Hr Analytics
Hr AnalyticsHr Analytics
Hr Analytics
 
Marketing analytics
Marketing analyticsMarketing analytics
Marketing analytics
 
Precision Medicine - The Future of Healthcare
Precision Medicine - The Future of HealthcarePrecision Medicine - The Future of Healthcare
Precision Medicine - The Future of Healthcare
 
Big Data Analytics to Enhance Security
Big Data Analytics to Enhance SecurityBig Data Analytics to Enhance Security
Big Data Analytics to Enhance Security
 
Single Nucleotide Polymorphism Analysis (SNPs)
Single Nucleotide Polymorphism Analysis (SNPs)Single Nucleotide Polymorphism Analysis (SNPs)
Single Nucleotide Polymorphism Analysis (SNPs)
 
Using hadoop for big data
Using hadoop for big dataUsing hadoop for big data
Using hadoop for big data
 
My Spark Journey
My Spark JourneyMy Spark Journey
My Spark Journey
 
Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics Technology behind-real-time-log-analytics
Technology behind-real-time-log-analytics
 

Dernier

Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023ymrp368
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfMarinCaroMartnezBerg
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionfulawalesam
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxolyaivanovalion
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxolyaivanovalion
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxolyaivanovalion
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystSamantha Rae Coolbeth
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 

Dernier (20)

꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Data-Analysis for Chicago Crime Data 2023
Data-Analysis for Chicago Crime Data  2023Data-Analysis for Chicago Crime Data  2023
Data-Analysis for Chicago Crime Data 2023
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
FESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdfFESE Capital Markets Fact Sheet 2024 Q1.pdf
FESE Capital Markets Fact Sheet 2024 Q1.pdf
 
Week-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interactionWeek-01-2.ppt BBB human Computer interaction
Week-01-2.ppt BBB human Computer interaction
 
BabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptxBabyOno dropshipping via API with DroFx.pptx
BabyOno dropshipping via API with DroFx.pptx
 
BigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptxBigBuy dropshipping via API with DroFx.pptx
BigBuy dropshipping via API with DroFx.pptx
 
CebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptxCebaBaby dropshipping via API with DroFX.pptx
CebaBaby dropshipping via API with DroFX.pptx
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Unveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data AnalystUnveiling Insights: The Role of a Data Analyst
Unveiling Insights: The Role of a Data Analyst
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 

Financial Time Series: Concept and Forecast (dsth Meetup#2)

  • 1. Financial Time Series: Concept and Forecast Chainarong Kesamoon, PhD Data Science Thailand Team
 chainaron.kes@gmail.com Data Science Thailand Meetup #2 6 Nov 2015
  • 2. Outline: What is time series? How to model financial time series? Forecasting
  • 3. What is time series? Numeric data 1, 1, 2, 3, 5, 8,… 2.8, 1.9, -10, 25, -6.7,… Time series measured by time Time matters!!!
  • 5. Financial Time Series Stock prices Market index Money Exchange rates gold, oil
  • 6. Typical data set source: Google Finance
  • 7. We would like to know: Tomorrow prices!!! Chance of profit or loss Future value of our money That’s all about “Return & Risk”
  • 8. Return Today’s return=today’s price - yesterday’s price Percentage return = Today’s return/yesterday’s price Log return = log(today’s price) - log(yesterday’s price) know return then we also know price
  • 11. Correlation Positive correlation : More experience, more salary Where there’s a will, there’s a way. Negative correlation: The higher the Doy, the lower the temperature. The more one works, the less free time one has. No correlation: The color of your shirt, the color of my shoes.
  • 12. Coefficient of Correlation mpg Miles/(US) gallon cyl Number of cylinders disp Displacement (cu.in.) hp Gross horsepower drat Rear axle ratio wt Weight (lb/1000) qsec 1/4 mile time vs V/S am Transmission (0 = automatic, 1 = manual) gear Number of forward gears carb Number of carburetors
  • 13. Correlation between returns on different days
  • 14. Can we forecast the return? Imagine you have tossed a normal coin ten times, last five outcomes were all head. Do you expect that the next outcome would be head? If there is no correlation, the next outcome would be like tossing a coin. Seem hopeless T__T H T T H T H H H H H 1 2 3 4 5 6 7 8 9 10 11 ?
  • 15. Efficient Market Hypothesis A financial economist and passionate defender of the efficient markets hypothesis (EMH) was walking down the street with a friend. The friend stops and says, "Look, there's a $20 bill on the ground." The economist turns and says, "Boy, this must be our lucky day! Better pick that up quick because the market is so efficient it won't be there for very long. Finding a $20 bill lying around happens so infrequently that it would be foolish to spend our time searching for more of them. Certainly, after assigning a value to the time spent in the effort, an 'investment' in trying to find money lying on the street just waiting to be picked up would be a poor one. I am also certainly not aware of lots of people, if any, getting rich mining beaches with metal detectors." When he had finished they both look down and the $20 bill was gone! source: http://www.etf.com/sections/features/123.html
  • 17. Why squared return? The variance of return is calculated from squared returns. Why variance? What is it? Variance is the degree of variation High variance => high volatility=> high risk Volatility is forecastable High risk, high return (but return can be either + or - )
  • 18. Major Stylized Facts for Return I. The distribution of returns is not normal, it has a high peak and fat tails. II. There is almost no correlation between returns for different days. III. There is positive correlation between squared returns on nearby days, likewise for absolute returns.
  • 19. Time series models General time series models: MA : moving average AR : autoregressive ARMA : autoregressive moving average ARIMA, ARFIMA,… Financial time series models: EWMA : exponentially weighted moving average (G)ARCH : (generalized) autoregressive conditional heteroskedastic SV : stochastic volatility Asset pricing model Black-Scholes model
  • 20. Robert F. Engle Tim Bollerslev Nobel Prize in Economic Sciences 2003 GARCH model Generalized AutoRegressive Conditional Heteroskedasticity Model rt+1 = µ + t+1✏t+1 2 t+1 = ! + ↵(rt µ)2 + 2 t where ✏t+1 ⇠ N(0, 1)
  • 21. Examples GARCH volatility forecasting Using data up to 5 Nov 2015 Date Return SD 6 Nov 0 0.384 7 Nov 0 0.390 8 Nov 0 0.396 9 Nov 0 0.401 10 Nov 0 0.407 11 Nov 0 0.412 12 Nov 0 0.416 13 Nov 0 0.421
  • 22. "When Professors Scholes and Merton and I invested in warrants, Professor Merton lost the most money. And I lost the least” – Fischer Black – Nobel Prize in Economic Sciences1997: Fischer Black, Myron Scholes, and Robert Merton
  • 23. Challenging, isn’t it? Financial time series is challenging as it is quite difficult to forecast. Multivariate time series is also of interest, but it is even more difficult to model multiple time series together. Most financial models were created some years ago, at the time that less data were available. Nowadays, we can access more and more data, that would be a good opportunity to explore and create better models for financial market.