prophet icon indicating copy to clipboard operation
prophet copied to clipboard

Outliers detection not so obvious

Open Vanellope0602 opened this issue 1 year ago • 1 comments

Hi,

I am using Prophet to forecast web requests. The input meets Prophet's requirements, i.e., the ds column is the timestamp and the y column is the number of web requests in a time slice. This time series is highly periodic, with a large number of requests arriving at regular intervals, and the number of requests for the rest of the very long period being 0.

Will the prophet treat a large number of requests as outliers? Cuz I found that its prediction curve won't fit the training data points very well, it's not the same as the example graph given on the official website.

Black points are data, the blue curve is the prediction curve. I tried to adjust changepoint_prior_scale and n_changepoints but its seems not working for this problem, I want it to overfit the train data as possible as it can.

Prophet image: image

The overfit image I want: image

Vanellope0602 avatar Aug 02 '23 17:08 Vanellope0602

you can add add_seasonality: your_model.add_seasonality(name='monthly', period=30.5, fourier_order=6) # Adjusted Fourier order it will help with the very high and low points, adjust the fourier_order to make it even higher (try 10)

AlexandroLuis avatar Aug 08 '23 11:08 AlexandroLuis