SlideShare a Scribd company logo
Time-Series Analysis in Minutes
Founder & CEO
Shanti Subramanyam
Orzota, Inc.
1
Agenda
§ Time-series	Introduction
› The	What	and	Why:	Use	Cases
› Why	Analyze
§ Exploratory	Analytics
› Fast	Visualization
› Insights
› Predictive	Analytics
› Forecasting
› Advanced	Prediction	
2
Time	Series	Definition
• Series	of	data	points	listed	in	time	order
• Commonly	taken	at	successive,	equally	spaced	points	in	time
Type of	Data Use	Case
Financial	Data Analyze	stock	performance
Census	Data
Analyze	population	types	and	
growth
Sales Data
Analyze	sales by	region,	
product,	etc.
Industrial	Data Analyze	machine	performance
Sample	Uses	Cases
Introduction
• Time series analytics in a variety of applications
• Classification
• Prediction
• Anomaly detection
• Pattern discovery
• And more…
5
Pattern 1 Pattern 2
Introduction Hybrid Neural Network(HNN) TreNet for Local Trend
ntroduction
Time series analytics in a variety of applications
• Classification
• Prediction
• Anomaly detection
• Pattern discovery
• And more…
5
Pattern 1 Pattern 2
ntroduction Hybrid Neural Network(HNN) TreNet for Local Trend
roduction
me series analytics in a variety of applications
Classification
Prediction
Anomaly detection
Pattern discovery
And more…
5
Pattern 1 Pattern 2
duction Hybrid Neural Network(HNN) TreNet for Local Trend
oduction
me series analytics in a variety of applications
Classification
Prediction
Anomaly detection
Pattern discovery
And more…
5
Pattern 1 Pattern 2
uction Hybrid Neural Network(HNN) TreNet for Local Trend
Time	Series	Applications
Classification
Prediction
Anomaly	Detection Pattern	Discovery
Time	Series	Components
• Trend	Component
• Seasonal	Component
• Cyclic	Component
• Irregular	Fluctuations
Time	Series	Components
• Trend	– gradual	upward	or	downward	shift
• Seasonality	– repeating	pattern	at	fixed	intervals	of	time	within	a	year
Cyclic	Component
Time	Series	that	exhibits	rises	and	falls	or	some	other	pattern	that	are	
NOT	of	a	fixed	period	is	said	to	have	a	cyclic pattern.	
Typically	this	is	exhibited	over	multiple	years.
Example:
Agri Commodities	exhibit	cyclical	
component.	
Area	under	cultivation	increases	
when	there	is	a	price	increase	in	
the	market	due	to	high	demand	
and	contracts	when	the	price
starts	falling	with	a	lag
Time	Series	Components
Exploratory	Analysis
Code	and	data	samples	available	at:	
https://github.com/Orzota/tutorials/tree/master/Time-Series
Exploratory	Analysis
• Basic	analysis	using	R
Load	data	from	csv	files
dat <-
read.csv(“/path/to/file.csv”)
• Create	time-series	
timeseries <- ts(dat,
start=c(1987,1), frequency=12)
plot.ts(timeseries)
TSstudio package
• Much	better	visualization	and	processing	for	TS	data
install.packages("TSstudio")
install.packages("xts")
library(TSstudio)
library(xts)
ts_plot(timeseries)
Seasonality	Plot
ts_seasonal (timeseries, type=“normal”)
Seasonality	Plot
ts_seasonal (timeseries, type=“cycle”)
Seasonality	Plot
ts_seasonal (timeseries, type=“box”)
Heatmaps
ts_heatmap (timeseries)
3D	Surface	Plots
ts_surface (timeseries)
Multiple	Time	Series
Data	Management
• Storing	large	amounts	of	historical	time	series	data	requires	a	scalable	
platform
• TimeScale DB
• InfluxDB
• OpenTSDB (built	on	HBase)
• Riak TS
• Things	to	look	for:
• Data	Ingestion	Rate
• Query	Speed	and	Capability
• Scalability
• Reliability
Aggregated	Analytics
20
Aggregated	Analytics
Aggregated	Analytics
Aggregated	Analytics
One	model	type	has	high	
“Pending	Sector	Count”
Predictive	Analytics
Code	and	data	samples	available	at:	
https://github.com/Orzota/tutorials/tree/master/Time-Series
Predictions
§ Forecast	Time-Series	Trend
› Sales	Forecasts	have	been	done	for	decades
› Sensor	Data	Forecasts	can	help	fix	issues	before	it	is	too	late
› Anomaly	Detection
› Network	Security	use	cases:	DDOS	attacks,	failed	logins
› Predictive	Maintenance
› Usually	requires	more	than	just	Time	Series	prediction
25
Exponential	Smoothing
§ Single	Exponential	Smoothing
§ Use	when	there	is	no	clear	
trend	or	seasonal	pattern
§ Works	for	slow	trend	changes	
as	well
26
Exponential	Smoothing
§ Double	Exponential	Smoothing	(Holt’s	Method)
§ Use	when	there	is	a	clear	trend
27
Triple	Exponential	Smoothing
§ Also	known	as	Holt-
Winters	Method	
§ Exponential	Smoothing	
applied	to	seasonality,	
level	and	trend
28
Forecasting	in	R
ARIMA	Model
• Great	for	short-term	forecasting;	can	handle	seasonality,	trends,	
errors,	cycles,	etc.		
• Cannot	handle	anomalies
Forecasting	Time	Series
Time	Series	in	Spark
Spark-TS
• Analyze	large	amounts	of	TS	data
• In	Scala,	Java	OR	Python
• Functionality	similar	to	R	
• Exploratory	Analysis	
• Save	the	data	in	Hive	and	use	standard	tools	like	Tableau
• Modeling	and	Predictions
• Exponential,	ARIMA,	other	Auto-regressive	models	as	well
Predictions	Using	Neural	Networks
§ Recurrent	Neural	Networks
§ Memorize	previous	info	and	apply	it	to	current	output
§ Complexity	reduction	ècurrent	state	relates	only	to	few	previous	states
§ LSTM	– Long	Short	Term	Memory
§ Widely	Used	Variant	of	RNNs
§ Model	learns	based	on	the	outputs
§ Uses	memory	units	to	learn	
§ when	to	“forget”		or	“update”	info
§ Ref:	http://file.scirp.org/pdf/JDAIP_2017082815492555.pdf
32
LSTM	GNB	for	Anomaly	Detection
§ LSTM	Gaussian	Naïve	Bayes	
Model
§ Enhances	LSTM	using	
Gaussian	Naïve	Bayes	Model
§ Uses	predicted	error	from	the	
LSTM	network	to	construct	
Gauss-NBayes
§ Detects	anomalies		from	the	
errors	and	learns	from	it
33
Conclusion
• Time	Series	Data	is	Every	Where
• Exploratory	Analysis	can	provide	lots	of	useful	insights
• Trend,	Seasonality,	Cyclic	Components	
• Single	Series	Analysis
• Multiple	Related	Series	
• Aggregation	of	Similar	Series	
• Predictive	Analytics
• Forecasting
• Anomaly	Detection
• Predictive	Maintenance
Additional	Info

More Related Content

PDF
Timeseries forecasting
PPT
Arima model (time series)
PDF
Time series forecasting
PPTX
Time series forecasting with machine learning
PPTX
Presentation
PPTX
Time Series Forecasting Project Presentation.
PPTX
Time Series Analysis/ Forecasting
PDF
Time series forecasting with ARIMA
Timeseries forecasting
Arima model (time series)
Time series forecasting
Time series forecasting with machine learning
Presentation
Time Series Forecasting Project Presentation.
Time Series Analysis/ Forecasting
Time series forecasting with ARIMA

What's hot (20)

PDF
Multivariate time series
PPT
Time Series Analysis - Modeling and Forecasting
PDF
Seasonal ARIMA
PDF
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
PDF
Stock Price Trend Forecasting using Supervised Learning
PPTX
stock market prediction
PPTX
Time Series Analysis.pptx
PPTX
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
PDF
Time series Forecasting
PDF
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
PPT
Time series slideshare
PPTX
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
PPTX
STOCK_PPT.pptx
PPT
Time series.ppt
PPTX
Stock Market Prediction
PPTX
Stock market analysis using supervised machine learning
PPTX
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
PPTX
Stock Market Prediction using Machine Learning
PPTX
Time series
PDF
Multivariate time series
Time Series Analysis - Modeling and Forecasting
Seasonal ARIMA
STOCK MARKET PREDICTION USING MACHINE LEARNING METHODS
Stock Price Trend Forecasting using Supervised Learning
stock market prediction
Time Series Analysis.pptx
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
Time series Forecasting
Recurrent Neural Networks (RNN) | RNN LSTM | Deep Learning Tutorial | Tensorf...
Time series slideshare
Time Series Analysis - 1 | Time Series in R | Time Series Forecasting | Data ...
STOCK_PPT.pptx
Time series.ppt
Stock Market Prediction
Stock market analysis using supervised machine learning
Deep Learning Tutorial | Deep Learning Tutorial For Beginners | What Is Deep ...
Stock Market Prediction using Machine Learning
Time series
Ad

Similar to Time-series Analysis in Minutes (20)

PDF
SplunkSummit 2015 - A Quick Guide to Search Optimization
PPTX
Time Series Anomaly Detection with .net and Azure
PDF
Technical track chris calvert-1 30 pm-issa conference-calvert
PPTX
2013.12.12 - Sydney - Big Data Analytics
PDF
SystemT: Declarative Information Extraction (invited talk at MIT CSAIL)
PPTX
Deep dive time series anomaly detection with different Azure Data Services
PPTX
SplunkLive! Frankfurt 2018 - Legacy SIEM to Splunk, How to Conquer Migration ...
PDF
Louis Rosenfeld: Nettstedssøk i et nøtteskall (Webdagene 2013)
PDF
Site Search Analytics in a Nutshell
PDF
[Data Meetup] Data Science in Finance - Building a Quant ML pipeline
PDF
Data Model for Mainframe in Splunk: The Newest Feature of Ironstream
PPTX
Introduction to Data mining
PDF
Data mining and Machine learning expained in jargon free & lucid language
PDF
Customer Intelligence & Analytics - Part I
PDF
Instant Tech Insights Lidar on June 21st 2022
PDF
Moving Targets: Harnessing Real-time Value from Data in Motion
PPTX
351315535-Module-1-Intro-to-Data-Science-pptx.pptx
PPTX
Power of SPL - Search Processing Language
PDF
AP-Summary-Aug-09-2022_capabilities .pdf
SplunkSummit 2015 - A Quick Guide to Search Optimization
Time Series Anomaly Detection with .net and Azure
Technical track chris calvert-1 30 pm-issa conference-calvert
2013.12.12 - Sydney - Big Data Analytics
SystemT: Declarative Information Extraction (invited talk at MIT CSAIL)
Deep dive time series anomaly detection with different Azure Data Services
SplunkLive! Frankfurt 2018 - Legacy SIEM to Splunk, How to Conquer Migration ...
Louis Rosenfeld: Nettstedssøk i et nøtteskall (Webdagene 2013)
Site Search Analytics in a Nutshell
[Data Meetup] Data Science in Finance - Building a Quant ML pipeline
Data Model for Mainframe in Splunk: The Newest Feature of Ironstream
Introduction to Data mining
Data mining and Machine learning expained in jargon free & lucid language
Customer Intelligence & Analytics - Part I
Instant Tech Insights Lidar on June 21st 2022
Moving Targets: Harnessing Real-time Value from Data in Motion
351315535-Module-1-Intro-to-Data-Science-pptx.pptx
Power of SPL - Search Processing Language
AP-Summary-Aug-09-2022_capabilities .pdf
Ad

Recently uploaded (20)

PPTX
A Complete Guide to Streamlining Business Processes
PPTX
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
PPTX
modul_python (1).pptx for professional and student
PPTX
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
PPTX
New ISO 27001_2022 standard and the changes
PDF
Jean-Georges Perrin - Spark in Action, Second Edition (2020, Manning Publicat...
PPT
Predictive modeling basics in data cleaning process
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PDF
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PPTX
Managing Community Partner Relationships
PPTX
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Database Infoormation System (DBIS).pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
retention in jsjsksksksnbsndjddjdnFPD.pptx
PPTX
Topic 5 Presentation 5 Lesson 5 Corporate Fin
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
A Complete Guide to Streamlining Business Processes
(Ali Hamza) Roll No: (F24-BSCS-1103).pptx
modul_python (1).pptx for professional and student
sac 451hinhgsgshssjsjsjheegdggeegegdggddgeg.pptx
New ISO 27001_2022 standard and the changes
Jean-Georges Perrin - Spark in Action, Second Edition (2020, Manning Publicat...
Predictive modeling basics in data cleaning process
Acceptance and paychological effects of mandatory extra coach I classes.pptx
Data Engineering Interview Questions & Answers Cloud Data Stacks (AWS, Azure,...
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
Managing Community Partner Relationships
Copy of 16 Timeline & Flowchart Templates – HubSpot.pptx
SAP 2 completion done . PRESENTATION.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Database Infoormation System (DBIS).pptx
Business Analytics and business intelligence.pdf
retention in jsjsksksksnbsndjddjdnFPD.pptx
Topic 5 Presentation 5 Lesson 5 Corporate Fin
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf

Time-series Analysis in Minutes