- Mean Arctangent Absolute Percentage Error (MAAPE) transforms percentage errors through the arctangent function, naturally bounding the metric betwe...
Mean Arctangent Absolute Percentage Error (MAAPE) transforms percentage errors through the arctangent function, naturally bounding the metric between 0 and π/2. This eliminates the unbounded nature of MAPE while preserving its scale-independence.
## Historical Context
MAAPE was introduced by Kim and Kim (2016) as a solution to MAPE's instability when actual values approach zero. By applying arctangent to percentage errors, extreme values are compressed while small errors remain approximately linear. This makes MAAPE particularly useful in domains where occasional extreme percentage errors occur.
## Architecture & Physics
MAAPE applies `arctan(|error/actual|)` to each error before averaging. The arctangent function compresses large values toward π/2 while preserving linearity for small inputs. This creates a bounded, well-behaved metric even when traditional MAPE would explode.
### Properties
* **Bounded**: Always between 0 and π/2 (≈ 1.571)
* **Scale-independent**: Percentage-based like MAPE
* **Smooth compression**: Large errors are dampened, not truncated
| **Allocations** | 0 | Uses pre-allocated ring buffer |
| **Complexity** | O(1) | Constant time per update |
| **Accuracy** | 10/10 | Exact calculation |
| **Timeliness** | 9/10 | No lag beyond the period |
| **Boundedness** | 10/10 | Always in [0, π/2] |
## Interpretation
| MAAPE Range | Interpretation | Approx. % Error |
| :--- | :--- | :--- |
| **0** | Perfect prediction | 0% |
| **0 - 0.1** | Excellent | < 10% |
| **0.1 - 0.3** | Good | 10-30% |
| **0.3 - 0.5** | Moderate | 30-50% |
| **0.5 - 0.8** | High error | 50-100% |
| **0.8 - π/2** | Very high error | > 100% |
## Comparison with MAPE
| Scenario | MAPE | MAAPE |
| :--- | :--- | :--- |
| **10% error** | 10% | 0.0997 rad |
| **100% error** | 100% | 0.785 rad (π/4) |
| **1000% error** | 1000% | 1.471 rad |
| **Near-zero actual** | → ∞ | → π/2 |
| **Outlier sensitivity** | High | Low |
### Key Insight
The arctangent compression means that the difference between 100% and 1000% error is much smaller in MAAPE than in MAPE, making MAAPE more robust to extreme outliers.
## Common Use Cases
1.**Demand Forecasting**: When some products have near-zero demand