Reader small image

You're reading from  Forecasting Time Series Data with Facebook Prophet

Product typeBook
Published inMar 2021
Reading LevelBeginner
PublisherPackt
ISBN-139781800568532
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Greg Rafferty
Greg Rafferty
author image
Greg Rafferty

Greg Rafferty is a data scientist in San Francisco, California. With over a decade of experience, he has worked with many of the top firms in tech, including Google, Facebook, and IBM. Greg has been an instructor in business analytics on Coursera and has led face-to-face workshops with industry professionals in data science and analytics. With both an MBA and a degree in engineering, he is able to work across the spectrum of data science and communicate with both technical experts and non-technical consumers of data alike.
Read more about Greg Rafferty

Right arrow

Adding conditional seasonalities

Suppose you work for a utility company in a college town and are tasked with forecasting the electricity usage for the coming year. The electricity usage is going to depend upon the population of the town to some extent, and as a college town, there are thousands of students who are only temporary residents! How do you set up Prophet to handle this scenario? Conditional seasonalities exist for this purpose.

Conditional seasonalities are those that are in effect for only a portion of the dates in the training and future DataFrames. A conditional seasonality must have a cycle that is shorter than the period in which it is active. So, for example, it wouldn't make sense to have a yearly seasonality that is active for just a few months.

Forecasting electricity usage in the college town would require you to set up either daily or weekly seasonalities—and possibly even both, depending upon the usage patterns, one daily/weekly seasonality...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Forecasting Time Series Data with Facebook Prophet
Published in: Mar 2021Publisher: PacktISBN-13: 9781800568532

Author (1)

author image
Greg Rafferty

Greg Rafferty is a data scientist in San Francisco, California. With over a decade of experience, he has worked with many of the top firms in tech, including Google, Facebook, and IBM. Greg has been an instructor in business analytics on Coursera and has led face-to-face workshops with industry professionals in data science and analytics. With both an MBA and a degree in engineering, he is able to work across the spectrum of data science and communicate with both technical experts and non-technical consumers of data alike.
Read more about Greg Rafferty