-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add metric for price estimates deviation #1921
Comments
Anyway, the formula for the standard deviation (using the unbiased estimator of the variance) is here: |
This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed. |
Do we still want to implement this suggestion in a world where we have verified quotes (ie we simulate the calldata a solver reports in their quote and only use a quote if the simulation matches the amount they claim)? This would make it very unlikely for solvers to accidentally report unrealistic quotes (only if the e.g. underwrote private liquidity orders for it). My main worry with this approach is that it will likely cost some significant engineering time to monitor and fine tune this system so that we are not accidentally ignoring good quotes (we have seen quotes where only two or three solvers respond with significant difference in the results, but all of them being valid). It is true that verified quotes do not work until the user has actually connected their wallet (and the wallet has sufficient funds to make the trades they are quoting). Until then bogus estimates could still be returned. However, I'd argue that in those cases the user is unlikely to place an order anyway, so what's the value in showing them a realistic quote (I'd rather show them a message in the UI for unverified quotes that those are only indicative and might change once they connect a wallet with sufficient funds). If at all, I'd like us to not filter out any quotes that have been verified no matter how good they are (to avoid false negatives in our detection). But in that case I wonder if this task is worth the cost of building it. |
This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed. |
This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed. |
Background
For a group of price estimates, add metric that shows the standard score of the winning solution.
Apparently,
CompetitionEstimator
would be a good place to add this metric.Later on, we can add grafana alert and inspect if the standard score is too big which would indicate that the winning solution is far away from what the general truth is (what most other estimators return).
The text was updated successfully, but these errors were encountered: