SlideShare a Scribd company logo
1 of 25
Download to read offline
The First NIDA Business Analytics and Data Sciences Contest/Conference
วันที่ 1-2 กันยายน 2559 ณ อาคารนวมินทราธิราช สถาบันบัณฑิตพัฒนบริหารศาสตร์
-เมื่อทฤษฎีและปฏิบัติมาเจอกัน งานวิจัย BEST PRACTICE ความรู้ใหม่ เทคโนโลยี
ใหม่ ทั้งด้าน BUSINESS ANALYTICS AND INTELLIGENCE, DATA SCIENCES,
APPLIED STATISTIC, COMPUTER SCIENCES AND INFORMATION SYSTEM,
INFORMATION TECHNOLOGY MANAGEMENT, และ LOGISTIC
MANAGEMENT
-ร่วมกันสร้างสรรค์และพัฒนาเยาวชนและบุคลากรของชาติเพื่อยกระดับความสามารถ
ในการแข่งขันของประเทศไทยตามยุทธศาสตร์ THAILAND 4.0
-จัดโดยคณะสถิติประยุกต์ สถาบันบัณฑิตพัฒนบริหารศาสตร์และ DATA SCIENCE
THAILAND
https://businessanalyticsnida.wordpress.com
https://www.facebook.com/BusinessAnalyticsNIDA/
1st September 2016
Introduction to
FinancialTime Series
NIDA Business Analytics and Data Sciences Conference
Chainarong Kesamoon, PhD

Thammasat University & Data Science Thailand Team

chainaron.kes@gmail.com
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!!!
FinancialTime
Series
✤ Stock prices
✤ Market index
✤ Money Exchange rates
✤ gold, oil
Date
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
Date
Better analyze returns than prices
Date
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
Date
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.
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
Date
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.
“Moltes Gracies”
–Chainarong Kesamoon-

More Related Content

Viewers also liked

سبک های رفتاری چهارگانه
سبک های رفتاری چهارگانهسبک های رفتاری چهارگانه
سبک های رفتاری چهارگانهسعید gona
 
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...Marco Muscroft
 
Organization Development Future Forward
Organization Development Future ForwardOrganization Development Future Forward
Organization Development Future Forwardvaxelrod
 
Smile design semenar
Smile design semenarSmile design semenar
Smile design semenarFebel Huda
 

Viewers also liked (7)

سبک های رفتاری چهارگانه
سبک های رفتاری چهارگانهسبک های رفتاری چهارگانه
سبک های رفتاری چهارگانه
 
Thesispub
ThesispubThesispub
Thesispub
 
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...
RIWC_PARA_A134 A critical discourse analysis of current rehabilitation polici...
 
Organization Development Future Forward
Organization Development Future ForwardOrganization Development Future Forward
Organization Development Future Forward
 
ινδιάνοι ελένη
ινδιάνοι ελένηινδιάνοι ελένη
ινδιάνοι ελένη
 
Smile design semenar
Smile design semenarSmile design semenar
Smile design semenar
 
ціни
ціниціни
ціни
 

Similar to introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษามูล และ Data Science Thailand

Financial Time Series: Concept and Forecast (dsth Meetup#2)
Financial Time Series: Concept and Forecast (dsth Meetup#2)Financial Time Series: Concept and Forecast (dsth Meetup#2)
Financial Time Series: Concept and Forecast (dsth Meetup#2)Data Science Thailand
 
Financial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesFinancial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesCaldera Labs
 
Unifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageUnifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageZakMaymin
 
Slides sales-forecasting-session1-web
Slides sales-forecasting-session1-webSlides sales-forecasting-session1-web
Slides sales-forecasting-session1-webArthur Charpentier
 
Finance Essay Topics. Finance topics for research paper in 2021 Research pap...
Finance Essay Topics. Finance topics for research paper in 2021  Research pap...Finance Essay Topics. Finance topics for research paper in 2021  Research pap...
Finance Essay Topics. Finance topics for research paper in 2021 Research pap...Ashley Matulevich
 
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)Localogy
 
Exploring the Data science Process
Exploring the Data science ProcessExploring the Data science Process
Exploring the Data science ProcessVishal Patel
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptQuantInsti
 
013 Research Paper Methods Section Social
013 Research Paper Methods Section Social013 Research Paper Methods Section Social
013 Research Paper Methods Section SocialNicole Williams
 
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docx
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docxRunning Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docx
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docxtodd521
 
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016Quantopian
 
Order or Chaos: The Case of Cryptocurrency Platform
Order or Chaos: The Case of Cryptocurrency PlatformOrder or Chaos: The Case of Cryptocurrency Platform
Order or Chaos: The Case of Cryptocurrency PlatformLawrenzo H.C. Huang
 
Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Adrian Aley
 
2015 Tech M&A Monthly - M&A Contract Overview
2015 Tech M&A Monthly - M&A Contract Overview2015 Tech M&A Monthly - M&A Contract Overview
2015 Tech M&A Monthly - M&A Contract OverviewCorum Group
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Quantopian
 

Similar to introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษามูล และ Data Science Thailand (20)

Financial Time Series: Concept and Forecast (dsth Meetup#2)
Financial Time Series: Concept and Forecast (dsth Meetup#2)Financial Time Series: Concept and Forecast (dsth Meetup#2)
Financial Time Series: Concept and Forecast (dsth Meetup#2)
 
Financial Forecasting For WordPress Businesses
Financial Forecasting For WordPress BusinessesFinancial Forecasting For WordPress Businesses
Financial Forecasting For WordPress Businesses
 
Unifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical ArbitrageUnifying Technical Analysis and Statistical Arbitrage
Unifying Technical Analysis and Statistical Arbitrage
 
Slides sales-forecasting-session1-web
Slides sales-forecasting-session1-webSlides sales-forecasting-session1-web
Slides sales-forecasting-session1-web
 
Finance Essay Topics. Finance topics for research paper in 2021 Research pap...
Finance Essay Topics. Finance topics for research paper in 2021  Research pap...Finance Essay Topics. Finance topics for research paper in 2021  Research pap...
Finance Essay Topics. Finance topics for research paper in 2021 Research pap...
 
Econophysics I: Basic Concepts - Thomas Guhr
Econophysics I: Basic Concepts - Thomas GuhrEconophysics I: Basic Concepts - Thomas Guhr
Econophysics I: Basic Concepts - Thomas Guhr
 
Mt 75 maelzer revise
Mt 75 maelzer reviseMt 75 maelzer revise
Mt 75 maelzer revise
 
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)
PlaceConf London 2018: The Many Uses of Location Intelligence (Carto)
 
Exploring the Data science Process
Exploring the Data science ProcessExploring the Data science Process
Exploring the Data science Process
 
Trading
TradingTrading
Trading
 
Classification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar pptClassification of quantitative trading strategies webinar ppt
Classification of quantitative trading strategies webinar ppt
 
013 Research Paper Methods Section Social
013 Research Paper Methods Section Social013 Research Paper Methods Section Social
013 Research Paper Methods Section Social
 
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docx
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docxRunning Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docx
Running Head UNITED STATES STOCK EXCHANGE MARKET 1UNITED STA.docx
 
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
 
Order or Chaos: The Case of Cryptocurrency Platform
Order or Chaos: The Case of Cryptocurrency PlatformOrder or Chaos: The Case of Cryptocurrency Platform
Order or Chaos: The Case of Cryptocurrency Platform
 
Published- MEMAG_032016
Published- MEMAG_032016Published- MEMAG_032016
Published- MEMAG_032016
 
Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)Intro to Quant Trading Strategies (Lecture 1 of 10)
Intro to Quant Trading Strategies (Lecture 1 of 10)
 
Qwafafew meeting 4
Qwafafew meeting 4Qwafafew meeting 4
Qwafafew meeting 4
 
2015 Tech M&A Monthly - M&A Contract Overview
2015 Tech M&A Monthly - M&A Contract Overview2015 Tech M&A Monthly - M&A Contract Overview
2015 Tech M&A Monthly - M&A Contract Overview
 
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
 

More from BAINIDA

Mixed methods in social and behavioral sciences
Mixed methods in social and behavioral sciencesMixed methods in social and behavioral sciences
Mixed methods in social and behavioral sciencesBAINIDA
 
Advanced quantitative research methods in political science and pa
Advanced quantitative  research methods in political science and paAdvanced quantitative  research methods in political science and pa
Advanced quantitative research methods in political science and paBAINIDA
 
Latest thailand election2019report
Latest thailand election2019reportLatest thailand election2019report
Latest thailand election2019reportBAINIDA
 
Data science in medicine
Data science in medicineData science in medicine
Data science in medicineBAINIDA
 
Nursing data science
Nursing data scienceNursing data science
Nursing data scienceBAINIDA
 
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...BAINIDA
 
Statistics and big data for justice and fairness
Statistics and big data for justice and fairnessStatistics and big data for justice and fairness
Statistics and big data for justice and fairnessBAINIDA
 
Data science and big data for business and industrial application
Data science and big data  for business and industrial applicationData science and big data  for business and industrial application
Data science and big data for business and industrial applicationBAINIDA
 
Update trend: Free digital marketing metrics for start-up
Update trend: Free digital marketing metrics for start-upUpdate trend: Free digital marketing metrics for start-up
Update trend: Free digital marketing metrics for start-upBAINIDA
 
Advent of ds and stat adjustment
Advent of ds and stat adjustmentAdvent of ds and stat adjustment
Advent of ds and stat adjustmentBAINIDA
 
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร BAINIDA
 
Data visualization. map
Data visualization. map Data visualization. map
Data visualization. map BAINIDA
 
Dark data by Worapol Alex Pongpech
Dark data by Worapol Alex PongpechDark data by Worapol Alex Pongpech
Dark data by Worapol Alex PongpechBAINIDA
 
Deepcut Thai word Segmentation @ NIDA
Deepcut Thai word Segmentation @ NIDADeepcut Thai word Segmentation @ NIDA
Deepcut Thai word Segmentation @ NIDABAINIDA
 
Professionals and wanna be in Business Analytics and Data Science
Professionals and wanna be in Business Analytics and Data ScienceProfessionals and wanna be in Business Analytics and Data Science
Professionals and wanna be in Business Analytics and Data ScienceBAINIDA
 
Deep learning and image analytics using Python by Dr Sanparit
Deep learning and image analytics using Python by Dr SanparitDeep learning and image analytics using Python by Dr Sanparit
Deep learning and image analytics using Python by Dr SanparitBAINIDA
 
Visualizing for impact final
Visualizing for impact finalVisualizing for impact final
Visualizing for impact finalBAINIDA
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshopBAINIDA
 
Second prize business plan @ the First NIDA business analytics and data scien...
Second prize business plan @ the First NIDA business analytics and data scien...Second prize business plan @ the First NIDA business analytics and data scien...
Second prize business plan @ the First NIDA business analytics and data scien...BAINIDA
 
Second prize data analysis @ the First NIDA business analytics and data scie...
Second prize data analysis @ the First NIDA  business analytics and data scie...Second prize data analysis @ the First NIDA  business analytics and data scie...
Second prize data analysis @ the First NIDA business analytics and data scie...BAINIDA
 

More from BAINIDA (20)

Mixed methods in social and behavioral sciences
Mixed methods in social and behavioral sciencesMixed methods in social and behavioral sciences
Mixed methods in social and behavioral sciences
 
Advanced quantitative research methods in political science and pa
Advanced quantitative  research methods in political science and paAdvanced quantitative  research methods in political science and pa
Advanced quantitative research methods in political science and pa
 
Latest thailand election2019report
Latest thailand election2019reportLatest thailand election2019report
Latest thailand election2019report
 
Data science in medicine
Data science in medicineData science in medicine
Data science in medicine
 
Nursing data science
Nursing data scienceNursing data science
Nursing data science
 
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...
Financial time series analysis with R@the 3rd NIDA BADS conference by Asst. p...
 
Statistics and big data for justice and fairness
Statistics and big data for justice and fairnessStatistics and big data for justice and fairness
Statistics and big data for justice and fairness
 
Data science and big data for business and industrial application
Data science and big data  for business and industrial applicationData science and big data  for business and industrial application
Data science and big data for business and industrial application
 
Update trend: Free digital marketing metrics for start-up
Update trend: Free digital marketing metrics for start-upUpdate trend: Free digital marketing metrics for start-up
Update trend: Free digital marketing metrics for start-up
 
Advent of ds and stat adjustment
Advent of ds and stat adjustmentAdvent of ds and stat adjustment
Advent of ds and stat adjustment
 
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร
เมื่อ Data Science เข้ามา สถิติศาสตร์จะปรับตัวอย่างไร
 
Data visualization. map
Data visualization. map Data visualization. map
Data visualization. map
 
Dark data by Worapol Alex Pongpech
Dark data by Worapol Alex PongpechDark data by Worapol Alex Pongpech
Dark data by Worapol Alex Pongpech
 
Deepcut Thai word Segmentation @ NIDA
Deepcut Thai word Segmentation @ NIDADeepcut Thai word Segmentation @ NIDA
Deepcut Thai word Segmentation @ NIDA
 
Professionals and wanna be in Business Analytics and Data Science
Professionals and wanna be in Business Analytics and Data ScienceProfessionals and wanna be in Business Analytics and Data Science
Professionals and wanna be in Business Analytics and Data Science
 
Deep learning and image analytics using Python by Dr Sanparit
Deep learning and image analytics using Python by Dr SanparitDeep learning and image analytics using Python by Dr Sanparit
Deep learning and image analytics using Python by Dr Sanparit
 
Visualizing for impact final
Visualizing for impact finalVisualizing for impact final
Visualizing for impact final
 
Python programming workshop
Python programming workshopPython programming workshop
Python programming workshop
 
Second prize business plan @ the First NIDA business analytics and data scien...
Second prize business plan @ the First NIDA business analytics and data scien...Second prize business plan @ the First NIDA business analytics and data scien...
Second prize business plan @ the First NIDA business analytics and data scien...
 
Second prize data analysis @ the First NIDA business analytics and data scie...
Second prize data analysis @ the First NIDA  business analytics and data scie...Second prize data analysis @ the First NIDA  business analytics and data scie...
Second prize data analysis @ the First NIDA business analytics and data scie...
 

Recently uploaded

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

introduction to financial time series analysis with R โดย อ.ดร.ชัยณรงค์ เกษามูล และ Data Science Thailand

  • 1. The First NIDA Business Analytics and Data Sciences Contest/Conference วันที่ 1-2 กันยายน 2559 ณ อาคารนวมินทราธิราช สถาบันบัณฑิตพัฒนบริหารศาสตร์ -เมื่อทฤษฎีและปฏิบัติมาเจอกัน งานวิจัย BEST PRACTICE ความรู้ใหม่ เทคโนโลยี ใหม่ ทั้งด้าน BUSINESS ANALYTICS AND INTELLIGENCE, DATA SCIENCES, APPLIED STATISTIC, COMPUTER SCIENCES AND INFORMATION SYSTEM, INFORMATION TECHNOLOGY MANAGEMENT, และ LOGISTIC MANAGEMENT -ร่วมกันสร้างสรรค์และพัฒนาเยาวชนและบุคลากรของชาติเพื่อยกระดับความสามารถ ในการแข่งขันของประเทศไทยตามยุทธศาสตร์ THAILAND 4.0 -จัดโดยคณะสถิติประยุกต์ สถาบันบัณฑิตพัฒนบริหารศาสตร์และ DATA SCIENCE THAILAND https://businessanalyticsnida.wordpress.com https://www.facebook.com/BusinessAnalyticsNIDA/
  • 2. 1st September 2016 Introduction to FinancialTime Series NIDA Business Analytics and Data Sciences Conference Chainarong Kesamoon, PhD
 Thammasat University & Data Science Thailand Team
 chainaron.kes@gmail.com
  • 3. Outline: ✤ What is time series? ✤ How to model financial time series? ✤ Forecasting
  • 4. 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.
  • 6. FinancialTime Series ✤ Stock prices ✤ Market index ✤ Money Exchange rates ✤ gold, oil
  • 8. We would like to know: ✤ Tomorrow prices!!! ✤ Chance of profit or loss ✤ Future value of our money ✤ That’s all about 
 “Return & Risk”
  • 9. 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
  • 12. 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.
  • 13. 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
  • 14. Date Correlation between returns on different days
  • 15. 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. H T T H T H H H H H 1 2 3 4 5 6 7 8 9 10 11 ?
  • 16. 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
  • 18. 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 - )
  • 19. 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.
  • 20. 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
  • 21. 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)
  • 22. 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
  • 23. "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
  • 24. 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.