Modeling outliers as special events
There is one final way to work with outliers in Prophet; it's a technique we used with James RodrÃguez's data in Chapter 7, Trend Changepoints—we can declare the outliers as a special event, essentially a holiday. By putting the outliers into the holidays DataFrame, we essentially instruct Prophet to apply trend and seasonality as if the data points were not outliers and capture the additional variation beyond trend and seasonality in the holiday term.
This could be useful if you know the extreme observations are due to some external factor that you do not expect to repeat. Such external factors could be the World Cup or a large marketing campaign but may also be mysterious and unknown. You could keep the data in your model but essentially disregard it. An added benefit is that you can simulate what would happen if the event repeats.
We'll again use the National Geographic data, but this time label that August 2016...