PANDUAN Teknis

Metrik Akurasi Perkiraan: MAPE, sMAPE dan MASE

Metrik peramalan merangkum bagaimana prediksi berbeda dari nilai yang diamati, tetapi MAPE, sMAPE, dan MASE menangani skala dan nilai nol dengan cara yang berbeda.

Dengarkan panduan iniDiceritakan oleh AI · ~3 min

Di halaman ini3 menit membaca
  1. Ikhtisar
  2. Menyelam Lebih Dalam
  3. Implementasi Dunia Nyata
  4. The Future of Forecast Accuracy Metrics: MAPE, sMAPE and MASE
  5. Mempraktikkannya
  6. Terus Menjelajah
  7. Pertanyaan yang sering diajukan

Ikhtisar

Choose a metric that matches the decision, compare forecasts on the same evaluation windows and include a naive baseline rather than relying on a percentage score alone.

Menyelam Lebih Dalam

Forecast accuracy metrics turn prediction errors into summaries, but each emphasizes different properties. Mean absolute error averages absolute errors in the target's units. MAPE averages absolute error divided by the absolute actual value, often multiplied by 100. It is easy to read as a percentage, but it is undefined when actual values are zero and can be dominated by small actuals. It also treats over- and under-forecast errors asymmetrically in some settings because actuals appear only in the denominator. sMAPE attempts a symmetric percentage by scaling absolute error relative to the magnitudes of actual and forecast. Several formulas exist, some use a factor of two and others not, and zero-over-zero cases require conventions. Despite its name, sMAPE can behave unexpectedly around zero and does not guarantee fair comparisons across all scales. Always state the exact implementation. Mean absolute scaled error (MASE) divides a model's test-set MAE by the in-sample MAE of a naive forecast, typically the one-step persistence forecast for nonseasonal data. For seasonal data, a seasonal-naive denominator may be more appropriate. A MASE below one means the model's average absolute error on the evaluation cases is lower than the chosen naive in-sample scale. It does not mean the model always beats the baseline on every observation, and the denominator can be zero for perfectly constant training data. Use an evaluation period that reflects the intended forecast horizon, preserve time order and compare models on identical cases. Report metric definitions, units, treatment of zeros, aggregation weights and baseline. If many series are combined, averaging percentage errors may give tiny-volume series disproportionate influence. Pair a headline metric with error distributions and business costs, such as stockouts versus overstock. No single metric captures calibration of prediction intervals, bias, tail risk and operational impact at once.

Implementasi Dunia Nyata

A hypothetical forecast predicts 90 units when actual demand is 100. The absolute percentage error is 10%, using absolute error divided by the actual value.

When actual demand is zero, MAPE's denominator is zero and the percentage error is undefined; replacing zero with a small constant changes the metric and should be disclosed.

An analyst uses MASE and divides test-set MAE by the in-sample one-step naive MAE. A value below one means lower error than that naive scale on the evaluated cases, not guaranteed future superiority.

A team compares sMAPE implementation formulas before publishing results because definitions differ in denominator and scaling; values from different conventions may not be comparable.

The Future of Forecast Accuracy Metrics: MAPE, sMAPE and MASE

Forecast dashboards can be more honest by placing the metric formula, evaluation horizon, zero handling and naive baseline beside each result. Teams should show scale-dependent error in units as well as scale-free measures when comparing products or regions. As demand patterns shift, recompute the baseline using only information available at each forecast origin. Decision-weighted costs can complement statistical metrics when over- and under-forecasting have different consequences. Clear metric choices make it easier to compare models without implying that one percentage number captures every aspect of forecast quality.

Mempraktikkannya

Mengapa itu penting

  • Biaya dan anggaran. Keputusan arsitektur mendorong kinerja dan biaya pengoperasian selama bertahun-tahun.
  • Keputusan yang lebih jelas. Pendidikan teknis membantu tim memilih tumpukan yang tepat, bukan hanya yang terbaru.
  • Kontrol kualitas. Pilihan teknik yang lebih baik mengurangi insiden keandalan dalam produksi.

Hati-hati

  • Mengoptimalkan satu tolok ukur dapat menyembunyikan kelemahan sistem yang lebih luas.
  • Biaya infrastruktur dan pemeliharaan sering kali diremehkan.
  • Kesenjangan keamanan dan kemampuan observasi dapat tumbuh seiring dengan semakin kompleksnya sistem.

Langkah selanjutnya

  1. Tentukan target latensi, kualitas, dan biaya sebelum penerapan.
  2. Tolok ukur dalam kondisi beban dan data yang realistis.
  3. Pemantauan instrumen untuk kesalahan, penyimpangan, dan dampak pengguna.
  4. Siapkan jalur rollback dan respons insiden sebelum melakukan penskalaan.

Terus Menjelajah

Buletin gratis

Dapatkan pengarahan AI harian

Tiga cerita AI terverifikasi setiap pagi hari kerja, ditulis dalam bahasa Inggris sederhana. Gratis selamanya, tanpa iklan.

Satu email setiap hari kerja. Berhenti berlangganan dalam satu klik. Kami tidak pernah menjual atau membagikan alamat Anda.

Uji diri Anda sendiri

Take the Forecast Accuracy Metrics: MAPE, sMAPE and MASE quiz

Umpan balik instan untuk setiap jawaban, dan sertifikat yang dapat dibagikan dengan ID yang dapat diverifikasi setelah Anda lulus kursus.

Mulai kuis

Mendukung pendidikan AI gratis. AI Understanding adalah organisasi nirlaba 501(c)(3) — tanpa iklan, tanpa paywall, selamanya. Berikan sumbangan

Pertanyaan yang sering diajukan

What is Forecast Accuracy Metrics: MAPE, sMAPE and MASE?

Forecast metrics summarize how predictions differ from observed values, but MAPE, sMAPE and MASE handle scale and zero values differently. Choose a metric that matches the decision, compare forecasts on the same evaluation windows and include a naive baseline rather than relying on a percentage score alone.

Actual demand is 100 and the forecast is 90. What is the absolute percentage error under MAPE?

Absolute error is 10, divided by actual 100, giving 0.10 or 10%.

What issue arises for MAPE when an actual value is zero?

MAPE divides by the actual magnitude, so a zero actual makes the percentage undefined.

What does MASE below one indicate under its usual definition?

MASE compares test MAE with a chosen naive in-sample scale; below one indicates lower average error than that scale.

Why state the exact sMAPE formula in a report?

Different sMAPE variants and zero-handling choices can produce noncomparable values.

Why can MAPE overemphasize low-volume observations?

Dividing by a small actual makes the same absolute error a larger percentage contribution.