You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a monthly data with 11months cycle like below.
The peak appears every 11 months and shifts by one month each year.
(the data is very simplified for explanation)
I tried to predict it with Prophet but the result was incorrect.
I also tried with 12 months cycle data and the result was correct.
Prophet analyzes seasonality on a weekly or yearly basis. So it seems that data with cycles that are not divisors of 12 (11 months, 24 months, etc.) cannot be predicted correctly.
It seems that manually set cycle to add_seasonality() will solve the problem, but the cycle depends on the dataset so it need to automatically analyze the cycle from the data.
I have a monthly data with 11months cycle like below.
![Image](https://private-user-images.githubusercontent.com/25865392/407969734-c70a8f55-22a6-4aa6-a0c1-9cc8ad4410f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDY5NzYsIm5iZiI6MTczODg0NjY3NiwicGF0aCI6Ii8yNTg2NTM5Mi80MDc5Njk3MzQtYzcwYThmNTUtMjJhNi00YWE2LWEwYzEtOWNjOGFkNDQxMGY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNTc1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFiNDAxOTFiNjZiZmI4ZWNmYWJhZTVmOThkYmM0NTNlMjA4ODQ0MWI0MDhhNWNkM2M4NDg4YTRhNjhmYmM2ODUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.SP1thVtzG2TJ5DBT3JlDJlzBRBsH7bpSX0vBAbISXBo)
The peak appears every 11 months and shifts by one month each year.
(the data is very simplified for explanation)
I tried to predict it with Prophet but the result was incorrect.
![Image](https://private-user-images.githubusercontent.com/25865392/407970510-86ea37d2-699e-421b-8d5e-ce0c5fcf46c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDY5NzYsIm5iZiI6MTczODg0NjY3NiwicGF0aCI6Ii8yNTg2NTM5Mi80MDc5NzA1MTAtODZlYTM3ZDItNjk5ZS00MjFiLThkNWUtY2UwYzVmY2Y0NmMzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNTc1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTZjZjNjZjE3MTQ4MTZmODZiOWU1ZTEyYTE5ZTA2Y2QwNjIwYzdhMGQ0ZmJhNDY4NTE2NmQ0OTUxNTgxNjY5OTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.EgaJF9IIwt4BhU42lnNN-kWgaVk_LCvdJaJPpxcm5Ho)
I also tried with 12 months cycle data and the result was correct.
![Image](https://private-user-images.githubusercontent.com/25865392/407971495-3a0a81af-0002-4961-a9e2-f3ddfd3608be.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NDY5NzYsIm5iZiI6MTczODg0NjY3NiwicGF0aCI6Ii8yNTg2NTM5Mi80MDc5NzE0OTUtM2EwYTgxYWYtMDAwMi00OTYxLWE5ZTItZjNkZGZkMzYwOGJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA2VDEyNTc1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTFjN2I1NzRhYzlmZDE4ODNlOTY0Yjg1Y2I3YjBkM2QwNmI1MDg3MTAwYzY4ZGNiMTJiNDg5ZWYwYjFiYjgzMzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.uzmH7ye_yV0Muzp3exVPYrBgTAMjZ6cP5hymUoHO-Dk)
Prophet analyzes seasonality on a weekly or yearly basis. So it seems that data with cycles that are not divisors of 12 (11 months, 24 months, etc.) cannot be predicted correctly.
It seems that manually set cycle to
add_seasonality()
will solve the problem, but the cycle depends on the dataset so it need to automatically analyze the cycle from the data.Sample data and code
11month_span.csv
The text was updated successfully, but these errors were encountered: