Volatility Estimator
This node calculates statistical volatility metrics from spin results.
The Volatility Estimator node computes standard deviation, variance, and volatility percentage.
The Volatility Estimator node is an analytical tool. It takes a stream of spin results (payouts) and calculates the statistical volatility of the game. High volatility means rare but large wins; low volatility means frequent but small wins.
| Data | Description |
|---|
| Spin Results | A payout value (number) or a result object/array from a spin. |
Actions
| Signal | Description |
|---|
| Do | Adds the current input to the dataset and recalculates metrics. |
| Reset | Clears the dataset. |
Outputs
Results
| Data | Description |
|---|
| Volatility (%) | Coefficient of variation (Standard Deviation / Mean * 100). |
| Standard Deviation | Measure of payout dispersion. |
| Mean | Average payout. |
| Variance | Variance of payouts. |
Events
| Signal | Description |
|---|
| Done | Triggered when calculation is complete. |
Usage
Game Balancing
- Connect Spin Winnings from Calculate Winnings to Spin Results.
- Run a simulation loop (e.g., 1000 spins).
- Trigger Do each spin.
- Monitor Volatility (%).
- Low: < 500%
- Medium: 500% - 1000%
- High: > 1000%
(Note: Interpretation depends on game design).
Detailed Behavior
- Accumulation: It stores the history of payouts internally to calculate standard deviation. Resetting clears this history.
- Input Handling: Can handle single numbers, arrays of numbers (cascades), or objects with a
totalPayout property.
Troubleshooting
- NaN: If Mean is 0 (no wins yet), Volatility % might be NaN or 0.