SlideShare a Scribd company logo
Example Time Series & Multivariate Regression in R - Predicting Steel Demand
Time Series The math is pretty substantial (at least for me!)Key concepts are seasonality, auto-regression, trend and levelWe used Holt-Winters and ARIMA (auto regression integrated moving average); plenty of other functions exist
Client management wants to predict demand (in tons) of steel
Some HW Code
Prediction
ARIMA“Seasonal ARIMA modelsare powerful tools in the analysis of time series as they are capable of modeling a very wide range of series”Best to learn thoroughly and from deep study.  But if you have a day job ….  Just pluck code to optimize the parameters and use it
Here’s the code for selecting the best ARIMA parameters
Multivariate RegressionIdentified about 150 economic indicators; from economy.com and other sources.
1 response; 150 predictors – tedious to find best COR
Now we know top ten predictors for agriculture – let’s build a model
Whack a mole on predictors
Get a nice model
Remembering why we walked into the swamp … oh yea, to predict future tons for agriculture products
Another approachYou can “lag” your predictors so that – for example - when you build your model, you associate July 2011 actual (response) with April of 2011 predictor value.  If you have a good model, lagging allows you to predict future values without depending on “experts” to opine on future economic indicators.
Simple code to “lag” R has aBuilt inLag function
If you want a copy of slides or code, just email me. Bill Yarberrywayarberry@yahoo.comThanks.

More Related Content

PPTX
Improving performance and flexibility and Jeppesen
PDF
Luxor International Airport
PPSX
Airline Budgeting
PPT
Methodische Grundlagen der Mehrebenenanalyse
PPT
Multivariate data analysis and visualization tools for biological data
PDF
Random Forest for Big Data
PPTX
Random forest
PDF
Multivariate data analysis regression, cluster and factor analysis on spss
Improving performance and flexibility and Jeppesen
Luxor International Airport
Airline Budgeting
Methodische Grundlagen der Mehrebenenanalyse
Multivariate data analysis and visualization tools for biological data
Random Forest for Big Data
Random forest
Multivariate data analysis regression, cluster and factor analysis on spss

Viewers also liked (6)

PPTX
Random forest
PDF
Building Random Forest at Scale
PDF
Gradient Boosted Regression Trees in scikit-learn
PPTX
Mehr als A-/B-/C-Kunden: Customer Lifetime Value-Modellierung beim Multishop-...
PDF
Agile Data Science 2.0 - Big Data Science Meetup
PDF
Data Science - Part V - Decision Trees & Random Forests
Random forest
Building Random Forest at Scale
Gradient Boosted Regression Trees in scikit-learn
Mehr als A-/B-/C-Kunden: Customer Lifetime Value-Modellierung beim Multishop-...
Agile Data Science 2.0 - Big Data Science Meetup
Data Science - Part V - Decision Trees & Random Forests
Ad

Similar to Time series and regression presentation for oct 5th rice presentation r group (20)

PDF
Intro to Forecasting in R - Part 4
PPTX
Lesson 5 arima
DOCX
R forecasting Example
PDF
Different Models Used In Time Series - InsideAIML
PPTX
final.pptx
PDF
Webinar: The Whys and Hows of Predictive Modelling
PDF
ARIMA Models - [Lab 3]
PPTX
Business Analytics Foundation with R tool - Part 5
PPTX
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
PPTX
Dynamic Pricing Of stocks
PPTX
Air Passenger Prediction Using ARIMA Model
PPTX
Long Memory presentation to SURF
PDF
arimamodel-170204090012.pdf
DOCX
Exam 3 – Sampled Reading QuestionsIn Nigerian Gold Rush, Lead Po.docx
PPTX
Time series Analysis & fpp package
PPTX
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
PPTX
Arima model
PPTX
Project time series ppt
PDF
TIME SERIES ANALYSIS USING ARIMA MODEL FOR FORECASTING IN R (PRACTICAL)
PDF
STOCK PRICE PREDICTION USING TIME SERIES
Intro to Forecasting in R - Part 4
Lesson 5 arima
R forecasting Example
Different Models Used In Time Series - InsideAIML
final.pptx
Webinar: The Whys and Hows of Predictive Modelling
ARIMA Models - [Lab 3]
Business Analytics Foundation with R tool - Part 5
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Dynamic Pricing Of stocks
Air Passenger Prediction Using ARIMA Model
Long Memory presentation to SURF
arimamodel-170204090012.pdf
Exam 3 – Sampled Reading QuestionsIn Nigerian Gold Rush, Lead Po.docx
Time series Analysis & fpp package
What is ARIMA Forecasting and How Can it Be Used for Enterprise Analysis?
Arima model
Project time series ppt
TIME SERIES ANALYSIS USING ARIMA MODEL FOR FORECASTING IN R (PRACTICAL)
STOCK PRICE PREDICTION USING TIME SERIES
Ad

Recently uploaded (20)

PPT
What is a Computer? Input Devices /output devices
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Hindi spoken digit analysis for native and non-native speakers
PPT
Geologic Time for studying geology for geologist
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
STKI Israel Market Study 2025 version august
DOCX
search engine optimization ppt fir known well about this
PDF
Getting Started with Data Integration: FME Form 101
PDF
August Patch Tuesday
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PPTX
Modernising the Digital Integration Hub
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPTX
Tartificialntelligence_presentation.pptx
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
Architecture types and enterprise applications.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPT
Module 1.ppt Iot fundamentals and Architecture
What is a Computer? Input Devices /output devices
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
NewMind AI Weekly Chronicles – August ’25 Week III
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Hindi spoken digit analysis for native and non-native speakers
Geologic Time for studying geology for geologist
DP Operators-handbook-extract for the Mautical Institute
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
STKI Israel Market Study 2025 version august
search engine optimization ppt fir known well about this
Getting Started with Data Integration: FME Form 101
August Patch Tuesday
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Modernising the Digital Integration Hub
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Tartificialntelligence_presentation.pptx
Final SEM Unit 1 for mit wpu at pune .pptx
Architecture types and enterprise applications.pdf
A comparative study of natural language inference in Swahili using monolingua...
Module 1.ppt Iot fundamentals and Architecture

Time series and regression presentation for oct 5th rice presentation r group

  • 1. Example Time Series & Multivariate Regression in R - Predicting Steel Demand
  • 2. Time Series The math is pretty substantial (at least for me!)Key concepts are seasonality, auto-regression, trend and levelWe used Holt-Winters and ARIMA (auto regression integrated moving average); plenty of other functions exist
  • 3. Client management wants to predict demand (in tons) of steel
  • 6. ARIMA“Seasonal ARIMA modelsare powerful tools in the analysis of time series as they are capable of modeling a very wide range of series”Best to learn thoroughly and from deep study. But if you have a day job …. Just pluck code to optimize the parameters and use it
  • 7. Here’s the code for selecting the best ARIMA parameters
  • 8. Multivariate RegressionIdentified about 150 economic indicators; from economy.com and other sources.
  • 9. 1 response; 150 predictors – tedious to find best COR
  • 10. Now we know top ten predictors for agriculture – let’s build a model
  • 11. Whack a mole on predictors
  • 12. Get a nice model
  • 13. Remembering why we walked into the swamp … oh yea, to predict future tons for agriculture products
  • 14. Another approachYou can “lag” your predictors so that – for example - when you build your model, you associate July 2011 actual (response) with April of 2011 predictor value. If you have a good model, lagging allows you to predict future values without depending on “experts” to opine on future economic indicators.
  • 15. Simple code to “lag” R has aBuilt inLag function
  • 16. If you want a copy of slides or code, just email me. Bill Yarberrywayarberry@yahoo.comThanks.