Dự báo cơ sở statsforecast
VuaNem Forecasting Pipeline
2026-07-29 11:09
Phương pháp tính (kỹ thuật)
Huấn luyện AutoARIMA (tự động chọn p,d,q,P,D,Q qua AICc) và AutoETS trên từng chuỗi Phân loại×Kênh. Dự báo 3 tháng tới. Tổ hợp = trung bình đơn giản của cả hai mô hình. Báo cáo khoảng dự đoán 80%/95%.
Sales history→Class × Channel→AutoARIMA + AutoETS→Ensemble→Dự báo 3 tháng
Dữ liệu đầu vào
Chuỗi thời gian
6
Class × Channel
Khoảng thời gian
2025-08-01 → 2026-07-01
| unique_id | ds | y |
|---|
| Comfy_Ecom | 2025-08-01 00:00:00 | 38 |
| Comfy_Ecom | 2025-09-01 00:00:00 | 42 |
| Comfy_Ecom | 2025-10-01 00:00:00 | 40 |
| Comfy_Ecom | 2025-11-01 00:00:00 | 44 |
| Comfy_Ecom | 2025-12-01 00:00:00 | 50 |
| Comfy_Ecom | 2026-01-01 00:00:00 | 60 |
| Comfy_Ecom | 2026-02-01 00:00:00 | 35 |
| Comfy_Ecom | 2026-03-01 00:00:00 | 32 |
| Comfy_Ecom | 2026-04-01 00:00:00 | 40 |
| Comfy_Ecom | 2026-05-01 00:00:00 | 38 |
| Comfy_Ecom | 2026-06-01 00:00:00 | 42 |
| Comfy_Ecom | 2026-07-01 00:00:00 | 45 |
Quy trình xử lý
1Đọc dữ liệu doanh số lịch sử từ CSV/BigQuery
↓
2Nhóm theo unique_id (Class × Channel) và tháng
↓
3Chạy AutoARIMA(season_length=12) + AutoETS(season_length=12)
↓
4Xuất dự báo 3 tháng với khoảng tin cậy 80% và 95%
Kết quả dự báo

| index | unique_id | ds | AutoARIMA | AutoARIMA-lo-95 | AutoARIMA-lo-80 | AutoARIMA-hi-80 | AutoARIMA-hi-95 | AutoETS | AutoETS-lo-95 | AutoETS-lo-80 | AutoETS-hi-80 | AutoETS-hi-95 |
|---|
| 0 | Comfy_Ecom | 2026-08-01 00:00:00 | 42.16666793823242 | 27.81656265258789 | 32.78363800048828 | 51.5496940612793 | 56.51676940917969 | 42.158687591552734 | 25.33106231689453 | 31.15569496154785 | 53.16168212890625 | 58.98631286621094 |
| 1 | Comfy_Ecom | 2026-09-01 00:00:00 | 42.16666793823242 | 27.81656265258789 | 32.78363800048828 | 51.5496940612793 | 56.51676940917969 | 42.158687591552734 | 25.33106231689453 | 31.15569496154785 | 53.16168212890625 | 58.98631286621094 |
| 2 | Comfy_Ecom | 2026-10-01 00:00:00 | 42.16666793823242 | 27.81656265258789 | 32.78363800048828 | 51.5496940612793 | 56.51676940917969 | 42.158687591552734 | 25.33106231689453 | 31.15569496154785 | 53.16168212890625 | 58.98631286621094 |
| 3 | Comfy_Offline | 2026-08-01 00:00:00 | 50.16666793823242 | 34.805721282958984 | 40.122684478759766 | 60.21065139770508 | 65.5276107788086 | 50.18887710571289 | 32.17607879638672 | 38.41094207763672 | 61.96681213378906 | 68.20167541503906 |
| 4 | Comfy_Offline | 2026-09-01 00:00:00 | 50.16666793823242 | 34.805721282958984 | 40.122684478759766 | 60.21065139770508 | 65.5276107788086 | 50.18887710571289 | 32.17607879638672 | 38.41094207763672 | 61.96681213378906 | 68.20167541503906 |
| 5 | Comfy_Offline | 2026-10-01 00:00:00 | 50.16666793823242 | 34.805721282958984 | 40.122684478759766 | 60.21065139770508 | 65.5276107788086 | 50.18887710571289 | 32.17607879638672 | 38.41094207763672 | 61.96681213378906 | 68.20167541503906 |
| 6 | Comfy_Online | 2026-08-01 00:00:00 | 27.58333396911621 | 18.03774642944336 | 21.341808319091797 | 33.82485580444336 | 37.12892150878906 | 27.577272415161133 | 16.38375473022461 | 20.258224487304688 | 34.89632034301758 | 38.770790100097656 |
| 7 | Comfy_Online | 2026-09-01 00:00:00 | 27.58333396911621 | 18.03774642944336 | 21.341808319091797 | 33.82485580444336 | 37.12892150878906 | 27.577272415161133 | 16.38375473022461 | 20.258224487304688 | 34.89632034301758 | 38.770790100097656 |
| 8 | Comfy_Online | 2026-10-01 00:00:00 | 27.58333396911621 | 18.03774642944336 | 21.341808319091797 | 33.82485580444336 | 37.12892150878906 | 27.577272415161133 | 16.38375473022461 | 20.258224487304688 | 34.89632034301758 | 38.770790100097656 |
| 9 | Gummi_Ecom | 2026-08-01 00:00:00 | 52.83333206176758 | 31.759750366210938 | 39.05405807495117 | 66.61260986328125 | 73.90691375732422 | 52.84450912475586 | 28.132469177246094 | 36.68617630004883 | 69.00283813476562 | 77.55654907226562 |
| 10 | Gummi_Ecom | 2026-09-01 00:00:00 | 52.83333206176758 | 31.759750366210938 | 39.05405807495117 | 66.61260986328125 | 73.90691375732422 | 52.84450912475586 | 28.132469177246094 | 36.68617630004883 | 69.00283813476562 | 77.55654907226562 |
| 11 | Gummi_Ecom | 2026-10-01 00:00:00 | 52.83333206176758 | 31.759750366210938 | 39.05405807495117 | 66.61260986328125 | 73.90691375732422 | 52.84450912475586 | 28.132469177246094 | 36.68617248535156 | 69.00283813476562 | 77.55654907226562 |
| 12 | Gummi_Offline | 2026-08-01 00:00:00 | 60.08333206176758 | 40.22774887084961 | 47.1004638671875 | 73.06620025634766 | 79.93891906738281 | 60.07990646362305 | 36.79634475708008 | 44.85560607910156 | 75.30420684814453 | 83.36346435546875 |
| 13 | Gummi_Offline | 2026-09-01 00:00:00 | 60.08333206176758 | 40.22774887084961 | 47.1004638671875 | 73.06620025634766 | 79.93891906738281 | 60.07990646362305 | 36.79634475708008 | 44.85560607910156 | 75.30420684814453 | 83.36346435546875 |
| 14 | Gummi_Offline | 2026-10-01 00:00:00 | 60.08333206176758 | 40.22774887084961 | 47.1004638671875 | 73.06620025634766 | 79.93891906738281 | 60.07990646362305 | 36.79634475708008 | 44.85560607910156 | 75.30420684814453 | 83.36346435546875 |
| 15 | Gummi_Online | 2026-08-01 00:00:00 | 34.83333206176758 | 21.676645278930664 | 26.230636596679688 | 43.436031341552734 | 47.990020751953125 | 34.83671569824219 | 19.408554077148438 | 24.748783111572266 | 44.92464828491211 | 50.26487731933594 |
| 16 | Gummi_Online | 2026-09-01 00:00:00 | 34.83333206176758 | 21.676645278930664 | 26.230636596679688 | 43.436031341552734 | 47.990020751953125 | 34.83671569824219 | 19.408554077148438 | 24.748783111572266 | 44.92464828491211 | 50.26487731933594 |
| 17 | Gummi_Online | 2026-10-01 00:00:00 | 34.83333206176758 | 21.676645278930664 | 26.230636596679688 | 43.436031341552734 | 47.990020751953125 | 34.83671569824219 | 19.408554077148438 | 24.748781204223633 | 44.92464828491211 | 50.26487731933594 |