SlideShare a Scribd company logo
Data Mining By Example –
Forecasting and Cross Prediction
Using Microsoft Time Series
by Shaoli Lu
Microsoft Time Series
• Microsoft Time Series algorithm provides a
unique approach to time series forecasting that
is both intuitive and accurate. It is used to
forecast future series points based on past
history
Goal
• To forecast and cross-predict based on past
sales history
Prerequisite
• An SQL Server instance created (2005 or above)
• SQL Server Analysis Service (SSAS) –
Multidimensional Feature Installed
(this is used to host and browse the mining structures; cube is not required for data mining!)
• AdventureWorksDW database attached
(download from CodePlex - tailor to the SQL Server version you have)
• Visual Studio 2010 or above with SQL Server
Data Tools (SSDT) installed
My Demo Setup
• Visual Studio 2010
• SQL Server 2012
Create Data Mining Project
• Name the project as DM Forecasting
(DM = Data Mining)
Data mining by example forecasting and cross prediction using microsoft time series
Create Data Source and Impersonation
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Create Data Source View
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Create Mining Structure
• Use relational data source
• Choose Microsoft Time Series model
• Select Data Source View
• Select key, input and predict
• Name the mining structure and model
• Add Amount to the mining structure and
change it to Predict
• Tune Algorithm Parameters
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Deploy the mining structure and
model
Process the mining model
• This is also called “training the model”
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Mining Model Viewer
• Forecast trend
• Select items to predict
• View standard deviation
• View forecasting mode in a tree graph
• View regression formula
• Use Generic Content Tree View to inspect
stats details
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Mining Model Prediction
• Convert to DMX query
• Adjust the DMX query by adding FLATTENED
clause
• Add filters to the DMX query
• View query results
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Adding Additional Data
• DMX EXTEND_MODEL_CASES clause will add
additional data to the existing data
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Cross Prediction
• Create new named query AllRegions for cross-
prediction
• Create a query for a specific region and model
• Create a new mining structure for cross-
prediction
• Deploy and process the cross-prediction
mining structure and model
• Use REPLACE_MODEL_CASES in the DMX
query for cross-prediction
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Browse mining model on SQL Server
• Time Series Chart View
• Model Tree Graph
• Prediction Query Window
• DMX
• Query result
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Data mining by example forecasting and cross prediction using microsoft time series
Summary
• Microsoft Time Series is a powerful data mining
model, yet it is intuitive to build, train and use
• It is useful in forecasting future event points
• Algorithm Parameters can be tuned
• DMX EXTEND_MODEL_CASES clause will add
additional data to the existing data
• Use REPLACE_MODEL_CASES in the DMX query
for cross-prediction
• Relational database can be used for data mining;
cube is not required
The End

More Related Content

PPTX
Data mining by example - building predictive model using microsoft decision t...
PDF
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
PDF
Developing with SQL Server Analysis Services 201310
PPTX
Developing ssas cube
PDF
Intoduction to sql 2012 Tabular Modeling
PPTX
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
PPTX
SSAS Tabular model importance and uses
PDF
A Gentle Introduction to Microsoft SSAS
Data mining by example - building predictive model using microsoft decision t...
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Developing with SQL Server Analysis Services 201310
Developing ssas cube
Intoduction to sql 2012 Tabular Modeling
Modern ETL: Azure Data Factory, Data Lake, and SQL Database
SSAS Tabular model importance and uses
A Gentle Introduction to Microsoft SSAS

What's hot (20)

PPTX
Building 1 million predictions per second using SQL-R
PPTX
Cloud architectural patterns and Microsoft Azure tools
PDF
Feature store Overview St. Louis Big Data IDEA Meetup aug 2020
PDF
Azure SQL Data Warehouse
PPTX
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
PPTX
Microsoft Azure Data Factory Hands-On Lab Overview Slides
PPTX
R in Power BI
PDF
Azure data analytics platform - A reference architecture
PPTX
Azure Data Factory Data Flow Preview December 2019
PDF
ADF Mapping Data Flow Private Preview Migration
PPTX
SQL PASS 2017 - Building one million predictions per second using SQL Server ...
PPTX
Spark Summit West 2017: Real-Time Image Recognition with MemSQL and Spark
PPTX
Microsoft Azure Data Factory Data Flow Scenarios
PPTX
Intro to Azure Data Factory v1
PPTX
Azure data factory
PDF
Azure Data Factory v2
PPTX
Analytics in the Cloud
PPTX
Tech-Spark: Azure SQL Databases
PPTX
Azure Data Factory for Azure Data Week
PPTX
Azure Data Factory for Redmond SQL PASS UG Sept 2018
Building 1 million predictions per second using SQL-R
Cloud architectural patterns and Microsoft Azure tools
Feature store Overview St. Louis Big Data IDEA Meetup aug 2020
Azure SQL Data Warehouse
Geek Sync | Taking Your First Steps to the Cloud—Building a Hybrid Model
Microsoft Azure Data Factory Hands-On Lab Overview Slides
R in Power BI
Azure data analytics platform - A reference architecture
Azure Data Factory Data Flow Preview December 2019
ADF Mapping Data Flow Private Preview Migration
SQL PASS 2017 - Building one million predictions per second using SQL Server ...
Spark Summit West 2017: Real-Time Image Recognition with MemSQL and Spark
Microsoft Azure Data Factory Data Flow Scenarios
Intro to Azure Data Factory v1
Azure data factory
Azure Data Factory v2
Analytics in the Cloud
Tech-Spark: Azure SQL Databases
Azure Data Factory for Azure Data Week
Azure Data Factory for Redmond SQL PASS UG Sept 2018
Ad

Viewers also liked (7)

PPTX
Stream flow forecasting
PPTX
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
DOCX
time series modeling-Decision Science Central Oct 26
PDF
Master's thesis
PPTX
STATA - Time Series Analysis
PPTX
LET sample questions - professional education set 1
DOCX
Final na final thesis
Stream flow forecasting
Raji Balasuubramaniyan, Senior Data Scientist, Manheim at MLconf ATL - 9/18/15
time series modeling-Decision Science Central Oct 26
Master's thesis
STATA - Time Series Analysis
LET sample questions - professional education set 1
Final na final thesis
Ad

Similar to Data mining by example forecasting and cross prediction using microsoft time series (20)

PDF
SQL Server 2016 BI updates
PDF
Cnam azure ze cloud resource manager
PPSX
New features of sql server 2016 bi features
PPTX
Data Migration - Activity slide.pptx
PPTX
PL SQLDay Machine Learning- Hands on ML.NET.pptx
PPT
Real-world BISM in SQL Server 2012 SSAS
PDF
Predicting Flights with Azure Databricks
PPTX
how to move data from on premise to ssis in google cloud platform ,azure, sno...
PDF
World2016_T5_S5_SQLServerFunctionalOverview
PPTX
Azure Stream Analytics
PPTX
Migrating Data and Databases to Azure
PDF
Session 2: SQL Server 2012 with Christian Malbeuf
PDF
Direct Lake Deep Dive slides from Fabric Engineering Roadshow
PDF
Machine Learning and AI at Oracle
PPTX
CosmosDB.pptx
PPTX
Using Couchbase and Elasticsearch as data layers
PPT
SQL Server 2008 Data Mining
PPT
SQL Server 2008 Data Mining
PDF
Alex mang patterns for scalability in microsoft azure application
PDF
DesignMind SQL Server 2008 Migration
SQL Server 2016 BI updates
Cnam azure ze cloud resource manager
New features of sql server 2016 bi features
Data Migration - Activity slide.pptx
PL SQLDay Machine Learning- Hands on ML.NET.pptx
Real-world BISM in SQL Server 2012 SSAS
Predicting Flights with Azure Databricks
how to move data from on premise to ssis in google cloud platform ,azure, sno...
World2016_T5_S5_SQLServerFunctionalOverview
Azure Stream Analytics
Migrating Data and Databases to Azure
Session 2: SQL Server 2012 with Christian Malbeuf
Direct Lake Deep Dive slides from Fabric Engineering Roadshow
Machine Learning and AI at Oracle
CosmosDB.pptx
Using Couchbase and Elasticsearch as data layers
SQL Server 2008 Data Mining
SQL Server 2008 Data Mining
Alex mang patterns for scalability in microsoft azure application
DesignMind SQL Server 2008 Migration

Recently uploaded (20)

PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PDF
Business Analytics and business intelligence.pdf
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
climate analysis of Dhaka ,Banglades.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
Lecture1 pattern recognition............
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PDF
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
1_Introduction to advance data techniques.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Business Analytics and business intelligence.pdf
Acceptance and paychological effects of mandatory extra coach I classes.pptx
climate analysis of Dhaka ,Banglades.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Business Acumen Training GuidePresentation.pptx
Lecture1 pattern recognition............
Galatica Smart Energy Infrastructure Startup Pitch Deck
oil_refinery_comprehensive_20250804084928 (1).pptx
IB Computer Science - Internal Assessment.pptx
Supervised vs unsupervised machine learning algorithms
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
TRAFFIC-MANAGEMENT-AND-ACCIDENT-INVESTIGATION-WITH-DRIVING-PDF-FILE.pdf
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Clinical guidelines as a resource for EBP(1).pdf
IBA_Chapter_11_Slides_Final_Accessible.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
1_Introduction to advance data techniques.pptx

Data mining by example forecasting and cross prediction using microsoft time series

  • 1. Data Mining By Example – Forecasting and Cross Prediction Using Microsoft Time Series by Shaoli Lu
  • 2. Microsoft Time Series • Microsoft Time Series algorithm provides a unique approach to time series forecasting that is both intuitive and accurate. It is used to forecast future series points based on past history
  • 3. Goal • To forecast and cross-predict based on past sales history
  • 4. Prerequisite • An SQL Server instance created (2005 or above) • SQL Server Analysis Service (SSAS) – Multidimensional Feature Installed (this is used to host and browse the mining structures; cube is not required for data mining!) • AdventureWorksDW database attached (download from CodePlex - tailor to the SQL Server version you have) • Visual Studio 2010 or above with SQL Server Data Tools (SSDT) installed
  • 5. My Demo Setup • Visual Studio 2010 • SQL Server 2012
  • 6. Create Data Mining Project • Name the project as DM Forecasting (DM = Data Mining)
  • 8. Create Data Source and Impersonation
  • 14. Create Mining Structure • Use relational data source • Choose Microsoft Time Series model • Select Data Source View • Select key, input and predict • Name the mining structure and model • Add Amount to the mining structure and change it to Predict • Tune Algorithm Parameters
  • 23. Deploy the mining structure and model
  • 24. Process the mining model • This is also called “training the model”
  • 27. Mining Model Viewer • Forecast trend • Select items to predict • View standard deviation • View forecasting mode in a tree graph • View regression formula • Use Generic Content Tree View to inspect stats details
  • 31. Mining Model Prediction • Convert to DMX query • Adjust the DMX query by adding FLATTENED clause • Add filters to the DMX query • View query results
  • 38. Adding Additional Data • DMX EXTEND_MODEL_CASES clause will add additional data to the existing data
  • 42. Cross Prediction • Create new named query AllRegions for cross- prediction • Create a query for a specific region and model • Create a new mining structure for cross- prediction • Deploy and process the cross-prediction mining structure and model • Use REPLACE_MODEL_CASES in the DMX query for cross-prediction
  • 50. Browse mining model on SQL Server • Time Series Chart View • Model Tree Graph • Prediction Query Window • DMX • Query result
  • 56. Summary • Microsoft Time Series is a powerful data mining model, yet it is intuitive to build, train and use • It is useful in forecasting future event points • Algorithm Parameters can be tuned • DMX EXTEND_MODEL_CASES clause will add additional data to the existing data • Use REPLACE_MODEL_CASES in the DMX query for cross-prediction • Relational database can be used for data mining; cube is not required