DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Coding
  3. Languages
  4. The R Language and Flat Forecasts

The R Language and Flat Forecasts

Rob J Hyndman user avatar by
Rob J Hyndman
·
Aug. 19, 12 · Interview
Like (0)
Save
Tweet
Share
3.41K Views

Join the DZone community and get the full member experience.

Join For Free

About once a week some­one will tell me there is a bug in my fore­cast pack­age for R because it gives fore­casts that are the same for all future hori­zons. To save answer­ing the same ques­tion repeat­edly, here is my response.

A point fore­cast is (usu­ally) the mean of the dis­tri­b­u­tion of a future obser­va­tion in the time series, con­di­tional on the past obser­va­tions of the time series. It is pos­si­ble, even likely in some cir­cum­stances, that the future obser­va­tions will have the same mean and then the fore­cast func­tion is flat.

  • A ran­dom walk model will return a flat fore­cast func­tion (equal to the last observed value of the series).
  • An ETS(A,N,N) model will return a flat fore­cast function.
  • An iid model will return a flat fore­cast func­tion (equal to the mean of the observed data).

This is not a bug. It is telling you some­thing about the time series — namely that there is no trend, no sea­son­al­ity, and insuf­fi­cient tem­po­ral dynam­ics to allow the future obser­va­tions to have dif­fer­ent con­di­tional means.

I dis­cussed this once with another con­sul­tant and he told me that he some­times adds some ran­dom noise to his fore­casts, just to stop his clients ques­tion­ing the flat fore­cast func­tions. Unfor­tu­nately, that increases the fore­cast error, but he thought it was bet­ter to give them what they wanted rather than what was best!

 

 

R (programming language) Flat (geometry)

Published at DZone with permission of Rob J Hyndman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 9 Ways You Can Improve Security Posture
  • RabbitMQ vs. Memphis.dev
  • What Was the Question Again, ChatGPT?
  • Implementing Adaptive Concurrency Limits

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: