Skip to content
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

Updating betting strategies based on latest backtesting results #543

Closed
wants to merge 1 commit into from

Conversation

evangriffiths
Copy link
Contributor

No description provided.

Copy link
Contributor

coderabbitai bot commented Nov 4, 2024

Walkthrough

The pull request introduces modifications to several classes within the prediction_market_agent module, specifically focusing on betting strategies and market interaction logic. A new betting strategy, MaxAccuracyWithKellyScaledBetsStrategy, is added, replacing the existing KellyBettingStrategy in certain classes. The get_betting_strategy method is updated across multiple agents to reflect changes in parameters such as max_bet_amount and max_price_impact. Additionally, a new method, verify_market, is introduced to enhance market responsiveness by checking for relevant news.

Changes

File Path Change Summary
prediction_market_agent/agents/prophet_agent/deploy.py - Added MaxAccuracyWithKellyScaledBetsStrategy to imports.
- Updated get_betting_strategy in multiple classes to reflect new strategy and adjusted parameters (max_bet_amount, max_price_impact).
- Added verify_market method in DeployablePredictionProphetGPT4oAgentNewMarketTrader.
prediction_market_agent/agents/think_thoroughly_agent/deploy.py - Updated get_betting_strategy in DeployableThinkThoroughlyAgent to change max_price_impact from None to 0.5.
- Updated get_betting_strategy in DeployableThinkThoroughlyProphetResearchAgent to change max_bet_amount from 5 to 25 and max_price_impact from 0.4 to 0.1.

Possibly related PRs

Suggested reviewers

  • kongzii

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@evangriffiths
Copy link
Contributor Author

Here are the full results from python examples/monitor/match_bets_with_langfuse_traces.py in PMAT:

## DeployablePredictionProphetGPT4TurboFinalAgent

345 bets

| strategy                                                       |     bet_amount |      bet_profit |        roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|----------------:|-----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  508.166       |    49.76        |   9.79206  |    0.267575 |              50 |       99.76   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |  322.323       |    34.7809      |  10.7907   |    0.267575 |              50 |       84.7809 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  769.528       |    30.3682      |   3.94634  |    0.267575 |              50 |       80.3682 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |  394.817       |    29.9782      |   7.59294  |    0.267575 |              50 |       79.9782 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |  256.384       |    28.693       |  11.1914   |    0.267575 |              50 |       78.693  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |  256.216       |    28.3996      |  11.0842   |    0.267575 |              50 |       78.3996 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |  256.213       |    28.3843      |  11.0784   |    0.267575 |              50 |       78.3843 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |  255.03        |    28.0991      |  11.018    |    0.267575 |              50 |       78.0991 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |  247.919       |    27.0385      |  10.9062   |    0.267575 |              50 |       77.0385 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |  250.426       |    26.9871      |  10.7765   |    0.267575 |              50 |       76.9871 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |  253.533       |    26.8748      |  10.6001   |    0.267575 |              50 |       76.8748 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |  243.018       |    25.8591      |  10.6408   |    0.267575 |              50 |       75.8591 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  445.327       |    25.2515      |   5.67033  |    0.267575 |              50 |       75.2515 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |  231.501       |    24.1231      |  10.4203   |    0.267575 |              50 |       74.1231 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |  203.557       |    23.7786      |  11.6816   |    0.267575 |              50 |       73.7786 |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |  133.71        |    22.2119      |  16.612    |    0.267575 |              50 |       72.2119 |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  343           |    22.1248      |   6.45039  |    0.267575 |              50 |       72.1248 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |  144.845       |    20.7283      |  14.3107   |    0.267575 |              50 |       70.7283 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |  254.41        |    15.1593      |   5.95861  |    0.267575 |              50 |       65.1593 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  509.292       |    13.5046      |   2.65165  |    0.267575 |              50 |       63.5046 |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  345           |     9.23109     |   2.67568  |    0.267575 |              50 |       59.2311 |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  686           |     8.3056      |   1.21073  |    0.267575 |              50 |       58.3056 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  539.358       |     7.34271     |   1.36138  |    0.267575 |              50 |       57.3427 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  551.853       |     5.16957     |   0.936766 |    0.267575 |              50 |       55.1696 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  557.637       |     5.08367     |   0.911645 |    0.267575 |              50 |       55.0837 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  560.99        |     4.58042     |   0.816489 |    0.267575 |              50 |       54.5804 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  566.814       |     3.25378     |   0.574048 |    0.267575 |              50 |       53.2538 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    3.24293e-05 |     3.50637e-06 |  10.8124   |    0.267575 |              50 |       50      |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  499.574       |    -1.75121     |  -0.35054  |    0.267575 |              50 |       48.2488 |
| original                                                       |  558.596       |    -4.83837     |  -0.866167 |    0.267575 |             nan |      nan      |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  955.333       |   -11.4206      |  -1.19546  |    0.267575 |              50 |       38.5794 |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  690           |   -20.7266      |  -3.00385  |    0.267575 |              50 |       29.2734 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  | 1262.05        |  -118.353       |  -9.3778   |    0.267575 |              50 |      -68.3528 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  | 1486.78        |  -223.531       | -15.0346   |    0.267575 |              50 |     -173.531  |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  | 1725           |  -231.253       | -13.406    |    0.267575 |              50 |     -181.253  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) | 1857           |  -431.196       | -23.22     |    0.267575 |              50 |     -381.196  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      | 4689.02        | -1713.06        | -36.5335   |    0.267575 |              50 |    -1663.06   |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 8550           | -2215.53        | -25.9126   |    0.267575 |              50 |    -2165.53   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 8575           | -2677.35        | -31.2227   |    0.267575 |              50 |    -2627.35   |

## DeployablePredictionProphetGPT4TurboPreviewAgent

38 bets

| strategy                                                       |    bet_amount |     bet_profit |        roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|--------------:|---------------:|-----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |  25.6952      |    4.05069     |  15.7644   |    0.257439 |              50 |      54.0507  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |  25.6952      |    4.05069     |  15.7644   |    0.257439 |              50 |      54.0507  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |  25.6952      |    4.05069     |  15.7644   |    0.257439 |              50 |      54.0507  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |  25.1023      |    3.55731     |  14.1712   |    0.257439 |              50 |      53.5573  |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |  13.4117      |    3.19681     |  23.8361   |    0.257439 |              50 |      53.1968  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |  24.4184      |    2.8879      |  11.8268   |    0.257439 |              50 |      52.8879  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |  23.7511      |    2.06103     |   8.67762  |    0.257439 |              50 |      52.061   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |  23.3881      |    1.61252     |   6.89463  |    0.257439 |              50 |      51.6125  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |  22.5964      |    0.860076    |   3.80625  |    0.257439 |              50 |      50.8601  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |  15.1092      |    0.425916    |   2.81892  |    0.257439 |              50 |      50.4259  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |  21.3476      |    0.165645    |   0.77594  |    0.257439 |              50 |      50.1656  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |   4.05263e-06 |   -9.06282e-08 |  -2.23628  |    0.257439 |              50 |      50       |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |  19.5994      |   -0.117932    |  -0.601713 |    0.257439 |              50 |      49.8821  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  49.8853      |   -0.906045    |  -1.81626  |    0.257439 |              50 |      49.094   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |  31.5306      |   -1.67667     |  -5.31757  |    0.257439 |              50 |      48.3233  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  52.7622      |   -1.71427     |  -3.24906  |    0.257439 |              50 |      48.2857  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  48.7826      |   -2.1897      |  -4.48869  |    0.257439 |              50 |      47.8103  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  48.0011      |   -2.5609      |  -5.33509  |    0.257439 |              50 |      47.4391  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  47.1658      |   -2.96737     |  -6.29136  |    0.257439 |              50 |      47.0326  |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  38           |   -3.09615     |  -8.14777  |    0.257439 |              50 |      46.9038  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  46.0791      |   -3.23403     |  -7.01844  |    0.257439 |              50 |      46.766   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  39.4171      |   -3.33907     |  -8.47111  |    0.257439 |              50 |      46.6609  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |  25.0863      |   -3.46593     | -13.816    |    0.257439 |              50 |      46.5341  |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  38           |   -3.46885     |  -9.12854  |    0.257439 |              50 |      46.5312  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  43.5973      |   -3.6082      |  -8.27619  |    0.257439 |              50 |      46.3918  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |  36.8239      |   -3.62365     |  -9.8405   |    0.257439 |              50 |      46.3763  |
| original                                                       |  43.1642      |  -10.0061      | -23.1816   |    0.257439 |             nan |     nan       |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  47.8859      |  -10.0793      | -21.0487   |    0.257439 |              50 |      39.9207  |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  76           |  -10.314       | -13.5711   |    0.257439 |              50 |      39.686   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  76.9803      |  -10.3511      | -13.4464   |    0.257439 |              50 |      39.6489  |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  76           |  -10.4221      | -13.7133   |    0.257439 |              50 |      39.5779  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  88.9141      |  -15.1461      | -17.0345   |    0.257439 |              50 |      34.8539  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  | 103.187       |  -18.6044      | -18.0297   |    0.257439 |              50 |      31.3956  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  | 115.141       |  -25.5062      | -22.1521   |    0.257439 |              50 |      24.4938  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) | 133.576       |  -39.4047      | -29.4999   |    0.257439 |              50 |      10.5953  |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  | 190           |  -43.7832      | -23.0438   |    0.257439 |              50 |       6.21676 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      | 370.055       | -239.513       | -64.7235   |    0.257439 |              50 |    -189.513   |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 925           | -313.247       | -33.8645   |    0.257439 |              50 |    -263.247   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 950           | -354.35        | -37.3      |    0.257439 |              50 |    -304.35    |

## DeployablePredictionProphetGPT4oAgent

417 bets

| strategy                                                       |      bet_amount |      bet_profit |       roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|----------------:|----------------:|----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  1363.07        |   241.31        |  17.7034  |    0.185627 |              50 |      291.31   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  1465.13        |   238.073       |  16.2493  |    0.185627 |              50 |      288.073  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  1183.92        |   232.345       |  19.6251  |    0.185627 |              50 |      282.345  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  1597.91        |   219.309       |  13.7248  |    0.185627 |              50 |      269.309  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |   645.396       |   212.113       |  32.8656  |    0.185627 |              50 |      262.113  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |   649.518       |   211.57        |  32.5733  |    0.185627 |              50 |      261.57   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |   991.708       |   209.345       |  21.1095  |    0.185627 |              50 |      259.345  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |   640.917       |   209.219       |  32.6437  |    0.185627 |              50 |      259.219  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |   634.555       |   205.308       |  32.3546  |    0.185627 |              50 |      255.308  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |   623.933       |   201.033       |  32.2203  |    0.185627 |              50 |      251.033  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |   601.996       |   190.379       |  31.6246  |    0.185627 |              50 |      240.379  |
| original                                                       |   622.323       |   176.577       |  28.3739  |    0.185627 |             nan |      nan      |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |   556.253       |   172.332       |  30.9808  |    0.185627 |              50 |      222.332  |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |   830           |   161.822       |  19.4967  |    0.185627 |              50 |      211.822  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |   510.369       |   155.246       |  30.4184  |    0.185627 |              50 |      205.246  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |   570.256       |   151.208       |  26.5158  |    0.185627 |              50 |      201.208  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |   322.714       |   144.989       |  44.9281  |    0.185627 |              50 |      194.989  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |   323.04        |   144.695       |  44.7917  |    0.185627 |              50 |      194.695  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |   324.25        |   144.293       |  44.5004  |    0.185627 |              50 |      194.293  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |   321.484       |   144.125       |  44.8313  |    0.185627 |              50 |      194.125  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |   318.327       |   140.968       |  44.2842  |    0.185627 |              50 |      190.968  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |   313.488       |   136.2         |  43.4468  |    0.185627 |              50 |      186.2    |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |   308.743       |   132.353       |  42.8685  |    0.185627 |              50 |      182.353  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |   635.732       |   127.55        |  20.0634  |    0.185627 |              50 |      177.55   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |   300.294       |   125.518       |  41.7982  |    0.185627 |              50 |      175.518  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |   416.515       |   122.591       |  29.4327  |    0.185627 |              50 |      172.591  |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |   832           |   120.935       |  14.5354  |    0.185627 |              50 |      170.935  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |   286.698       |   115.826       |  40.4     |    0.185627 |              50 |      165.826  |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |   415           |   105.957       |  25.5317  |    0.185627 |              50 |      155.957  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |   295.484       |    99.808       |  33.7778  |    0.185627 |              50 |      149.808  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |   260.521       |    98.8498      |  37.9431  |    0.185627 |              50 |      148.85   |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   175.326       |    89.3018      |  50.9347  |    0.185627 |              50 |      139.302  |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |   416           |    88.8037      |  21.347   |    0.185627 |              50 |      138.804  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   181.884       |    59.0785      |  32.4814  |    0.185627 |              50 |      109.078  |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  2080           |    41.7051      |   2.00505 |    0.185627 |              50 |       91.7051 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |     3.78089e-05 |     9.62412e-06 |  25.4546  |    0.185627 |              50 |       50      |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      |  3836.03        |  -453.212       | -11.8146  |    0.185627 |              50 |     -403.212  |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 10375           | -1325.24        | -12.7734  |    0.185627 |              50 |    -1275.24   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 10400           | -2056.35        | -19.7726  |    0.185627 |              50 |    -2006.35   |

## DeployablePredictionProphetGPTo1PreviewAgent

40 bets

| strategy                                                       |     bet_amount |     bet_profit |        roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|---------------:|-----------:|------------:|----------------:|--------------:|
| MaxAccuracyBettingStrategy(bet_amount=1)                       |   40           |    5.33527     |  13.3382   |    0.187038 |              50 |       55.3353 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |   22.6268      |    5.23373     |  23.1307   |    0.187038 |              50 |       55.2337 |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |   80           |    5.16254     |   6.45317  |    0.187038 |              50 |       55.1625 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |   42.4838      |    5.13465     |  12.0861   |    0.187038 |              50 |       55.1346 |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   16.0682      |    4.00744     |  24.9402   |    0.187038 |              50 |       54.0074 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |   47.2904      |    3.65237     |   7.72327  |    0.187038 |              50 |       53.6524 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |   22.8189      |    3.36756     |  14.7578   |    0.187038 |              50 |       53.3676 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |   42.846       |    3.3222      |   7.75381  |    0.187038 |              50 |       53.3222 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |   49.4128      |    3.29303     |   6.66433  |    0.187038 |              50 |       53.293  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |   30.1227      |    3.27507     |  10.8724   |    0.187038 |              50 |       53.2751 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |   24.2808      |    3.23716     |  13.3322   |    0.187038 |              50 |       53.2372 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |   25.3758      |    3.19863     |  12.6051   |    0.187038 |              50 |       53.1986 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |   25.764       |    3.15007     |  12.2266   |    0.187038 |              50 |       53.1501 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |   49.9812      |    2.88806     |   5.77828  |    0.187038 |              50 |       52.8881 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |   26.3196      |    2.78307     |  10.5741   |    0.187038 |              50 |       52.7831 |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |   40           |    2.6133      |   6.53325  |    0.187038 |              50 |       52.6133 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |   50.563       |    2.44928     |   4.84402  |    0.187038 |              50 |       52.4493 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |   26.888       |    2.37809     |   8.84442  |    0.187038 |              50 |       52.3781 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |   51.1588      |    1.97971     |   3.86974  |    0.187038 |              50 |       51.9797 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |   27.444       |    1.96514     |   7.16052  |    0.187038 |              50 |       51.9651 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |   19.4111      |    1.95001     |  10.0458   |    0.187038 |              50 |       51.95   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |   27.6569      |    1.87848     |   6.79211  |    0.187038 |              50 |       51.8785 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |   57.8899      |    1.8761      |   3.2408   |    0.187038 |              50 |       51.8761 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |   38.5084      |    1.68711     |   4.38116  |    0.187038 |              50 |       51.6871 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |   32.8549      |    0.759643    |   2.31211  |    0.187038 |              50 |       50.7596 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |   67.8164      |    0.35429     |   0.522425 |    0.187038 |              50 |       50.3543 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   14.2904      |    0.306027    |   2.14148  |    0.187038 |              50 |       50.306  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    5.96853e-06 |    5.06526e-05 | 848.662    |    0.187038 |              50 |       50.0001 |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |   80           |   -0.1649      |  -0.206125 |    0.187038 |              50 |       49.8351 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |   99.7521      |   -1.18659     |  -1.18954  |    0.187038 |              50 |       48.8134 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  109.929       |   -1.52802     |  -1.39001  |    0.187038 |              50 |       48.472  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |   87.3649      |   -2.05837     |  -2.35606  |    0.187038 |              50 |       47.9416 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  111.895       |   -2.38854     |  -2.13463  |    0.187038 |              50 |       47.6115 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  138.975       |   -4.40719     |  -3.17121  |    0.187038 |              50 |       45.5928 |
| original                                                       |   94.7843      |  -10.3011      | -10.8679   |    0.187038 |             nan |      nan      |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  200           |  -15.8497      |  -7.92485  |    0.187038 |              50 |       34.1503 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      |  189.726       |  -20.6065      | -10.8612   |    0.187038 |              50 |       29.3935 |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 1000           | -145.229       | -14.5229   |    0.187038 |              50 |      -95.2293 |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 1000           | -200.865       | -20.0865   |    0.187038 |              50 |     -150.865  |

## DeployablePredictionProphetGPTo1MiniAgent

204 bets

| strategy                                                       |     bet_amount |      bet_profit |       roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|----------------:|----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  288.57        |    61.3882      |  21.2732  |    0.202741 |              50 |     111.388   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  286.603       |    60.7722      |  21.2043  |    0.202741 |              50 |     110.772   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  282.69        |    59.234       |  20.9537  |    0.202741 |              50 |     109.234   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  277.072       |    57.6701      |  20.8141  |    0.202741 |              50 |     107.67    |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  266.645       |    56.9918      |  21.3737  |    0.202741 |              50 |     106.992   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  470.849       |    55.3067      |  11.7462  |    0.202741 |              50 |     105.307   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  249.066       |    54.5138      |  21.8873  |    0.202741 |              50 |     104.514   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  390.241       |    54.2528      |  13.9024  |    0.202741 |              50 |     104.253   |
| original                                                       |  275.345       |    48.4987      |  17.6138  |    0.202741 |             nan |     nan       |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  223.907       |    48.3313      |  21.5855  |    0.202741 |              50 |      98.3313  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |  202.434       |    45.1437      |  22.3004  |    0.202741 |              50 |      95.1437  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |  137.173       |    44.5438      |  32.4727  |    0.202741 |              50 |      94.5438  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |  137.173       |    44.5438      |  32.4727  |    0.202741 |              50 |      94.5438  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |  137.173       |    44.5435      |  32.4724  |    0.202741 |              50 |      94.5435  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |  136.878       |    43.874       |  32.0533  |    0.202741 |              50 |      93.874   |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  275.869       |    43.3147      |  15.7012  |    0.202741 |              50 |      93.3147  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |  136.171       |    42.5503      |  31.2476  |    0.202741 |              50 |      92.5503  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |  133.203       |    41.379       |  31.0647  |    0.202741 |              50 |      91.379   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |  129.983       |    40.3346      |  31.0308  |    0.202741 |              50 |      90.3346  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  574.86        |    40.1254      |   6.98004 |    0.202741 |              50 |      90.1254  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |  125.131       |    38.5373      |  30.7976  |    0.202741 |              50 |      88.5373  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |  168.57        |    37.7901      |  22.418   |    0.202741 |              50 |      87.7901  |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  406           |    35.2004      |   8.67004 |    0.202741 |              50 |      85.2004  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |  117.131       |    35.0904      |  29.9583  |    0.202741 |              50 |      85.0904  |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  406           |    32.998       |   8.12758 |    0.202741 |              50 |      82.998   |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  203           |    31.03        |  15.2857  |    0.202741 |              50 |      81.03    |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  270.693       |    30.9883      |  11.4478  |    0.202741 |              50 |      80.9883  |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  203           |    29.234       |  14.401   |    0.202741 |              50 |      79.234   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |  104.655       |    29.1923      |  27.8938  |    0.202741 |              50 |      79.1923  |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   72.4254      |    28.6115      |  39.5048  |    0.202741 |              50 |      78.6115  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  639.932       |    28.3264      |   4.42648 |    0.202741 |              50 |      78.3264  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |  138.646       |    26.3239      |  18.9864  |    0.202741 |              50 |      76.3239  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   76.2446      |    19.9284      |  26.1375  |    0.202741 |              50 |      69.9284  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    2.03793e-05 |     2.86826e-06 |  14.0744  |    0.202741 |              50 |      50       |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  844.699       |   -28.852       |  -3.41565 |    0.202741 |              50 |      21.148   |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  | 1015           |   -46.1217      |  -4.54401 |    0.202741 |              50 |       3.87829 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      | 2165.56        |  -681.76        | -31.4818  |    0.202741 |              50 |    -631.76    |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 5050           |  -992.811       | -19.6596  |    0.202741 |              50 |    -942.811   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 5050           | -1253.72        | -24.8262  |    0.202741 |              50 |   -1203.72    |

## DeployableOlasEmbeddingOAAgent

200 bets

| strategy                                                       |     bet_amount |      bet_profit |        roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|----------------:|-----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  351.742       |    19.816       |   5.63366  |    0.233257 |              50 |      69.816   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |  205.604       |    12.2839      |   5.97455  |    0.233257 |              50 |      62.2839  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |  239.806       |    11.2333      |   4.68432  |    0.233257 |              50 |      61.2333  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |  127.619       |    10.2274      |   8.01395  |    0.233257 |              50 |      60.2274  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |  143.643       |     9.82999     |   6.84335  |    0.233257 |              50 |      59.83    |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  199           |     9.52764     |   4.78776  |    0.233257 |              50 |      59.5276  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  262.617       |     9.42062     |   3.58721  |    0.233257 |              50 |      59.4206  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |  154.373       |     9.34482     |   6.05342  |    0.233257 |              50 |      59.3448  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |  160.896       |     7.65311     |   4.75654  |    0.233257 |              50 |      57.6531  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   97.8071      |     7.3175      |   7.48157  |    0.233257 |              50 |      57.3175  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |  163.768       |     6.53019     |   3.98747  |    0.233257 |              50 |      56.5302  |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   89.0246      |     6.29202     |   7.06773  |    0.233257 |              50 |      56.292   |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  398           |     5.31625     |   1.33574  |    0.233257 |              50 |      55.3163  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  492.776       |     4.86692     |   0.987655 |    0.233257 |              50 |      54.8669  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |  166.327       |     4.10165     |   2.46602  |    0.233257 |              50 |      54.1017  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |  126.629       |     3.44125     |   2.71759  |    0.233257 |              50 |      53.4413  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |  167.216       |     3.21215     |   1.92096  |    0.233257 |              50 |      53.2121  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |  167.216       |     3.21208     |   1.92091  |    0.233257 |              50 |      53.2121  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |  167.216       |     3.21201     |   1.92087  |    0.233257 |              50 |      53.212   |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |  167.217       |     3.21122     |   1.92039  |    0.233257 |              50 |      53.2112  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  297.023       |     1.8993      |   0.639446 |    0.233257 |              50 |      51.8993  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    2.17869e-05 |     2.64362e-06 |  12.134    |    0.233257 |              50 |      50       |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  199           |    -3.5734      |  -1.79568  |    0.233257 |              50 |      46.4266  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  242.983       |    -4.25618     |  -1.75164  |    0.233257 |              50 |      45.7438  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  313.45        |    -4.68661     |  -1.49517  |    0.233257 |              50 |      45.3134  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  559.511       |    -6.42224     |  -1.14783  |    0.233257 |              50 |      43.5778  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  319.305       |    -8.33385     |  -2.60999  |    0.233257 |              50 |      41.6662  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  323.593       |   -11.0308      |  -3.40886  |    0.233257 |              50 |      38.9692  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  325.813       |   -12.4979      |  -3.83591  |    0.233257 |              50 |      37.5021  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  326.284       |   -12.9686      |  -3.97464  |    0.233257 |              50 |      37.0314  |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  398           |   -20.7598      |  -5.21603  |    0.233257 |              50 |      29.2402  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  666.814       |   -46.0313      |  -6.90318  |    0.233257 |              50 |       3.96867 |
| original                                                       |  624.107       |   -58.4961      |  -9.37276  |    0.233257 |             nan |     nan       |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  744.763       |   -89.6013      | -12.0308   |    0.233257 |              50 |     -39.6013  |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  995           |  -120.604       | -12.121    |    0.233257 |              50 |     -70.6039  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  815.545       |  -128.043       | -15.7003   |    0.233257 |              50 |     -78.0427  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      | 1351.44        |  -315.653       | -23.3569   |    0.233257 |              50 |    -265.653   |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 4950           |  -953.813       | -19.2689   |    0.233257 |              50 |    -903.813   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 4950           | -1264.29        | -25.5413   |    0.233257 |              50 |   -1214.29    |

## DeployableThinkThoroughlyAgent

103 bets

| strategy                                                       |     bet_amount |     bet_profit |       roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|---------------:|----------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  125.917       |   30.1598      |  23.9522  |    0.213513 |              50 |       80.1598 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  120.516       |   29.2086      |  24.2362  |    0.213513 |              50 |       79.2086 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  127.476       |   28.9107      |  22.6794  |    0.213513 |              50 |       78.9107 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  128.799       |   27.6624      |  21.4772  |    0.213513 |              50 |       77.6624 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  135.856       |   26.7032      |  19.6556  |    0.213513 |              50 |       76.7032 |
| original                                                       |  137.373       |   25.5475      |  18.5972  |    0.213513 |             nan |      nan      |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |   65.3817      |   24.4475      |  37.3919  |    0.213513 |              50 |       74.4475 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  111.064       |   24.2353      |  21.8211  |    0.213513 |              50 |       74.2353 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |   62.4965      |   23.7537      |  38.008   |    0.213513 |              50 |       73.7537 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |   62.9051      |   23.6069      |  37.5279  |    0.213513 |              50 |       73.6069 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |   63.2424      |   23.3544      |  36.9284  |    0.213513 |              50 |       73.3544 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |   63.3817      |   23.2899      |  36.7455  |    0.213513 |              50 |       73.2899 |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  103           |   22.2176      |  21.5704  |    0.213513 |              50 |       72.2176 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |   61.5592      |   22.1377      |  35.9615  |    0.213513 |              50 |       72.1377 |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  206           |   21.6421      |  10.5059  |    0.213513 |              50 |       71.6421 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |   59.9149      |   21.0353      |  35.1086  |    0.213513 |              50 |       71.0353 |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   34.3674      |   19.6627      |  57.2134  |    0.213513 |              50 |       69.6627 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  267.511       |   18.9609      |   7.08791 |    0.213513 |              50 |       68.9609 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |   57.0618      |   18.6774      |  32.7319  |    0.213513 |              50 |       68.6774 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  100.394       |   18.5615      |  18.4887  |    0.213513 |              50 |       68.5615 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  228.415       |   17.9757      |   7.86975 |    0.213513 |              50 |       67.9757 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  293.093       |   17.7325      |   6.05012 |    0.213513 |              50 |       67.7325 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |   53.1099      |   15.0512      |  28.3398  |    0.213513 |              50 |       65.0512 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |   92.0957      |   14.894       |  16.1723  |    0.213513 |              50 |       64.894  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  195.915       |   13.1382      |   6.70606 |    0.213513 |              50 |       63.1382 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  142.516       |   11.1412      |   7.81746 |    0.213513 |              50 |       61.1412 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |   47.9536      |   10.7152      |  22.345   |    0.213513 |              50 |       60.7152 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |   78.7014      |    9.7886      |  12.4376  |    0.213513 |              50 |       59.7886 |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  103           |    8.96371     |   8.70263 |    0.213513 |              50 |       58.9637 |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  206           |    7.53582     |   3.65816 |    0.213513 |              50 |       57.5358 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |   61.9836      |    7.51123     |  12.1181  |    0.213513 |              50 |       57.5112 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  120.539       |    6.30912     |   5.23407 |    0.213513 |              50 |       56.3091 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   36.8337      |    4.69478     |  12.7459  |    0.213513 |              50 |       54.6948 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    1.10687e-05 |    1.81745e-05 | 164.197   |    0.213513 |              50 |       50      |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  405.954       |  -19.1155      |  -4.70879 |    0.213513 |              50 |       30.8845 |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  515           |  -25.3849      |  -4.92911 |    0.213513 |              50 |       24.6151 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      |  915.595       | -271.255       | -29.6261  |    0.213513 |              50 |     -221.255  |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 2575           | -513.791       | -19.953   |    0.213513 |              50 |     -463.791  |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 2575           | -671.838       | -26.0908  |    0.213513 |              50 |     -621.838  |

## DeployableThinkThoroughlyProphetResearchAgent

83 bets

| strategy                                                       |     bet_amount |     bet_profit |         roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|---------------:|------------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  111.898       |    5.92743     |   5.29719   |    0.252282 |              50 |      55.9274  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |   59.8819      |    2.58316     |   4.31375   |    0.252282 |              50 |      52.5832  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |   39.8484      |    2.54757     |   6.39315   |    0.252282 |              50 |      52.5476  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |   26.5659      |    2.12522     |   7.9998    |    0.252282 |              50 |      52.1252  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |   35.1035      |    1.765       |   5.02799   |    0.252282 |              50 |      51.765   |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |   69.2011      |    1.42284     |   2.0561    |    0.252282 |              50 |      51.4228  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |   41.8863      |    1.1486      |   2.74217   |    0.252282 |              50 |      51.1486  |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |   83           |    0.865246    |   1.04246   |    0.252282 |              50 |      50.8652  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |   77.082       |    0.414084    |   0.537199  |    0.252282 |              50 |      50.4141  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |   42.8215      |    0.213413    |   0.498378  |    0.252282 |              50 |      50.2134  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    9.53055e-06 |    1.61071e-07 |   1.69005   |    0.252282 |              50 |      50       |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |   23.418       |   -0.0167702   |  -0.0716124 |    0.252282 |              50 |      49.9832  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |   43.3232      |   -0.288283    |  -0.665425  |    0.252282 |              50 |      49.7117  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |   88.1898      |   -0.744194    |  -0.843855  |    0.252282 |              50 |      49.2558  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |   43.8756      |   -0.84063     |  -1.91594   |    0.252282 |              50 |      49.1594  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |   43.8756      |   -0.84063     |  -1.91594   |    0.252282 |              50 |      49.1594  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |   43.8756      |   -0.84063     |  -1.91594   |    0.252282 |              50 |      49.1594  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |   43.8756      |   -0.84063     |  -1.91594   |    0.252282 |              50 |      49.1594  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |   43.8756      |   -0.84063     |  -1.91594   |    0.252282 |              50 |      49.1594  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  151.376       |   -1.06593     |  -0.704161  |    0.252282 |              50 |      48.9341  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |   92.4323      |   -3.23458     |  -3.4994    |    0.252282 |              50 |      46.7654  |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |   83           |   -4.80255     |  -5.78621   |    0.252282 |              50 |      45.1974  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |   94.1476      |   -4.94989     |  -5.25759   |    0.252282 |              50 |      45.0501  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |   95.136       |   -5.93828     |  -6.24189   |    0.252282 |              50 |      44.0617  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |   95.5383      |   -6.34054     |  -6.63665   |    0.252282 |              50 |      43.6595  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |   95.5383      |   -6.34054     |  -6.63665   |    0.252282 |              50 |      43.6595  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |   55.4563      |   -6.70657     | -12.0934    |    0.252282 |              50 |      43.2934  |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  166           |   -7.36061     |  -4.4341    |    0.252282 |              50 |      42.6394  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  174.75        |   -7.6111      |  -4.35543   |    0.252282 |              50 |      42.3889  |
| original                                                       |   85.8592      |  -13.0623      | -15.2136    |    0.252282 |             nan |     nan       |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  166           |  -15.117       |  -9.1066    |    0.252282 |              50 |      34.883   |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  108.77        |  -18.0109      | -16.5587    |    0.252282 |              50 |      31.9891  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  214.514       |  -23.3693      | -10.8941    |    0.252282 |              50 |      26.6307  |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  250.47        |  -35.161       | -14.038     |    0.252282 |              50 |      14.839   |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  415           |  -58.9922      | -14.215     |    0.252282 |              50 |      -8.99222 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) |  299.464       |  -65.1432      | -21.7533    |    0.252282 |              50 |     -15.1432  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      |  954.099       | -443.161       | -46.4482    |    0.252282 |              50 |    -393.161   |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 2075           | -585.157       | -28.2003    |    0.252282 |              50 |    -535.157   |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 2075           | -633.905       | -30.5497    |    0.252282 |              50 |    -583.905   |

## DeployableKnownOutcomeAgent

175 bets

| strategy                                                       |     bet_amount |     bet_profit |         roi |   p_yes mse |   start_balance |   end_balance |
|:---------------------------------------------------------------|---------------:|---------------:|------------:|------------:|----------------:|--------------:|
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.5)   |  226.44        |   44.5696      |  19.6827    |    0.297143 |              50 |       94.5696 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.6)   |  227.387       |   44.1647      |  19.4227    |    0.297143 |              50 |       94.1647 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.7)   |  227.643       |   43.9089      |  19.2885    |    0.297143 |              50 |       93.9089 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=None)  |  227.97        |   43.5819      |  19.1174    |    0.297143 |              50 |       93.5819 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=2)       |  227.97        |   43.5819      |  19.1174    |    0.297143 |              50 |       93.5819 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.4)   |  224.399       |   43.4827      |  19.3774    |    0.297143 |              50 |       93.4827 |
| original                                                       |  191.625       |   41.3753      |  21.5918    |    0.297143 |             nan |      nan      |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.3)   |  220.208       |   39.5318      |  17.9521    |    0.297143 |              50 |       89.5318 |
| MaxExpectedValueBettingStrategy(bet_amount=2)                  |  350           |   39.0683      |  11.1624    |    0.297143 |              50 |       89.0683 |
| MaxAccuracyBettingStrategy(bet_amount=2)                       |  350           |   39.0683      |  11.1624    |    0.297143 |              50 |       89.0683 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.25)  |  214.734       |   37.569       |  17.4956    |    0.297143 |              50 |       87.569  |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.2)   |  337.786       |   34.8633      |  10.3211    |    0.297143 |              50 |       84.8633 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.2)   |  201.766       |   34.6994      |  17.1979    |    0.297143 |              50 |       84.6994 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  512.052       |   34.3336      |   6.70511   |    0.297143 |              50 |       84.3336 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.7)   |  497.22        |   33.5359      |   6.74468   |    0.297143 |              50 |       83.5359 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  472.733       |   33.5255      |   7.09185   |    0.297143 |              50 |       83.5255 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |  441.355       |   33.1912      |   7.52029   |    0.297143 |              50 |       83.1912 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.6)   |  488.601       |   33.0822      |   6.7708    |    0.297143 |              50 |       83.0822 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.3)   |  397.471       |   33.0563      |   8.31665   |    0.297143 |              50 |       83.0563 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.15)  |  295.52        |   32.1665      |  10.8847    |    0.297143 |              50 |       82.1665 |
| KellyBettingStrategy(max_bet_amount=1, max_price_impact=None)  |  118.035       |   31.7041      |  26.86      |    0.297143 |              50 |       81.7041 |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=1)       |  118.035       |   31.7041      |  26.86      |    0.297143 |              50 |       81.7041 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.15)  |  181.226       |   31.1379      |  17.1819    |    0.297143 |              50 |       81.1379 |
| MaxExpectedValueBettingStrategy(bet_amount=1)                  |  175           |   30.1998      |  17.257     |    0.297143 |              50 |       80.1998 |
| MaxAccuracyBettingStrategy(bet_amount=1)                       |  175           |   30.1998      |  17.257     |    0.297143 |              50 |       80.1998 |
| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.1)   |  244.594       |   27.3353      |  11.1758    |    0.297143 |              50 |       77.3353 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.1)   |  154.612       |   25.7063      |  16.6264    |    0.297143 |              50 |       75.7063 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.1)  |  388.147       |   16.5755      |   4.27042   |    0.297143 |              50 |       66.5755 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.2)  |  547.621       |   16.206       |   2.95935   |    0.297143 |              50 |       66.206  |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.05)  |  111.767       |   16.0905      |  14.3965    |    0.297143 |              50 |       66.0905 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.3)  |  670.036       |    5.75712     |   0.859226  |    0.297143 |              50 |       55.7571 |
| MaxExpectedValueBettingStrategy(bet_amount=5)                  |  875           |    0.436143    |   0.0498449 |    0.297143 |              50 |       50.4361 |
| KellyBettingStrategy(max_bet_amount=2, max_price_impact=0.01)  |    1.97066e-05 |    2.31161e-06 |  11.7301    |    0.297143 |              50 |       50      |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  954.263       |  -51.4706      |  -5.39375   |    0.297143 |              50 |       -1.4706 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  | 1129.61        | -100.199       |  -8.87019   |    0.297143 |              50 |      -50.1985 |
| KellyBettingStrategy(max_bet_amount=25, max_price_impact=None) | 1859.08        | -346.075       | -18.6154    |    0.297143 |              50 |     -296.075  |
| MaxAccuracyWithKellyScaledBetsStrategy(max_bet_amount=25)      | 1859.08        | -346.075       | -18.6154    |    0.297143 |              50 |     -296.075  |
| MaxAccuracyBettingStrategy(bet_amount=25)                      | 4375           | -827.736       | -18.9197    |    0.297143 |              50 |     -777.736  |
| MaxExpectedValueBettingStrategy(bet_amount=25)                 | 4375           | -827.736       | -18.9197    |    0.297143 |              50 |     -777.736  |

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
prediction_market_agent/agents/think_thoroughly_agent/deploy.py (1)

Line range hint 44-56: Consider implementing a monitoring strategy for the new betting parameters.

The significant changes in betting parameters across both agent classes represent different risk approaches:

  • DeployableThinkThoroughlyAgent: Higher price impact tolerance (0.5)
  • DeployableThinkThoroughlyProphetResearchAgent: Higher bet amounts but lower price impact (0.1)

Consider implementing:

  1. A/B testing to compare the performance of both strategies
  2. Monitoring system to track:
    • Win/loss ratios with different bet sizes
    • Actual market impact vs. thresholds
    • Trading balance utilization
  3. Fallback mechanisms to revert to previous parameters if performance degrades
prediction_market_agent/agents/prophet_agent/deploy.py (1)

Line range hint 79-92: Ensure accurate calculation of days_ago in verify_market

In the verify_market method, the calculation of days_ago uses:

days_ago = (utcnow() - last_trade_datetime).days

This calculation only accounts for whole days and may miss relevant news updates that occurred within the same day. To include partial days and ensure no recent news is overlooked, consider using total seconds:

days_ago = (utcnow() - last_trade_datetime).total_seconds() / 86400
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between d9086d4 and 8e27860.

📒 Files selected for processing (2)
  • prediction_market_agent/agents/prophet_agent/deploy.py (5 hunks)
  • prediction_market_agent/agents/think_thoroughly_agent/deploy.py (2 hunks)
🔇 Additional comments (7)
prediction_market_agent/agents/think_thoroughly_agent/deploy.py (2)

54-56: Review significant changes in betting parameters.

Two substantial changes have been made:

  1. 5x increase in max bet amount (5 → 25)
  2. 75% reduction in max price impact (0.4 → 0.1)

While these changes appear to be based on backtesting results, the significant increase in bet size warrants careful consideration.

#!/bin/bash
# Check for similar parameter changes across other agent implementations
echo "Checking max bet amounts:"
rg -A 1 "max_=\d+" --glob "**/deploy.py"
echo "Checking historical performance metrics:"
rg -A 5 "performance|accuracy|returns" --glob "**/backtesting/*.py"

Consider implementing these changes gradually or with additional safeguards:

  1. Monitor the impact of larger bets on trading balance and market liquidity
  2. Add circuit breakers or dynamic adjustment of max bet size based on market conditions
  3. Implement additional logging for trades near these new limits

44-44: Verify the 0.5 max_price_impact threshold.

The introduction of a 50% max price impact threshold is a significant change from the previous unlimited behavior. While this helps prevent excessive market manipulation, the threshold seems quite high and might still allow substantial market movements.

Consider if a lower threshold might be more appropriate to maintain market stability. Typical market impact thresholds often range between 1-10% to prevent significant price distortions.

✅ Verification successful

The previous search might have failed due to the strict regex pattern. Let's try with a more flexible search to understand the usage of price impact parameters across the codebase and find any related configurations.


The max_price_impact value of 0.5 is consistent with the codebase patterns

Based on the search results, the 0.5 (50%) max price impact threshold is actually within the normal range used across different agents in the codebase:

  • Prophet Agent: Uses 0.7 (70%) for some markets and 0.1 (10%) for others
  • Known Outcome Agent: Uses 0.6 (60%)
  • Think Thoroughly Agent: Uses 0.5 (50%) and 0.1 (10%) for different market configurations

The value of 0.5 appears to be a balanced choice between the more aggressive 0.6-0.7 thresholds and the conservative 0.1 thresholds used in the codebase, making it a reasonable parameter for this agent's strategy.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for other max_price_impact values across the codebase for comparison
rg -A 1 "max_price_impact\s*=\s*\d+\.?\d*" --glob "*.py"

Length of output: 2582


Script:

#!/bin/bash
# Let's search for max_price_impact with a more flexible pattern and include context
rg -B 2 -A 2 "max_price_impact" --glob "*.py"

# Also search for any price impact related configurations or constants
rg -B 2 -A 2 "price_impact|PRICE_IMPACT" --glob "*.py"

# Look for any configuration files that might contain these settings
fd -e yaml -e json -e toml -e ini | xargs rg "price_impact" -l

Length of output: 7159

prediction_market_agent/agents/prophet_agent/deploy.py (5)

5-5: Importing MaxAccuracyWithKellyScaledBetsStrategy

The addition of MaxAccuracyWithKellyScaledBetsStrategy to the imports is appropriate, as it is used in the DeployablePredictionProphetGPTo1PreviewAgent class.


120-122: Betting strategy parameters in DeployablePredictionProphetGPT4TurboPreviewAgent

The get_betting_strategy method updates max_bet_amount to:

  • min_=1
  • max_=2

And sets max_price_impact to 0.7. These adjustments appear to align with the PR objective of refining betting strategies based on the latest backtesting results.


141-143: Adjustments in DeployablePredictionProphetGPT4TurboFinalAgent betting strategy

The max_bet_amount is now set to:

  • min_=1
  • max_=25

And max_price_impact is reduced to 0.1. This fine-tunes the betting limits and minimizes price impact, likely reflecting a more conservative approach in line with recent performance analysis.


164-164: Updating max_price_impact to 0.1 in DeployableOlasEmbeddingOAAgent

Changing max_price_impact to 0.1 reduces the allowable price impact from the agent's trades, which can help mitigate market influence and potential slippage.


179-181: Switching to MaxAccuracyWithKellyScaledBetsStrategy in DeployablePredictionProphetGPTo1PreviewAgent

The get_betting_strategy method now utilizes MaxAccuracyWithKellyScaledBetsStrategy with max_bet_amount parameters:

  • min_=0.1
  • max_=1

This change introduces a new betting strategy focused on maximizing accuracy with scaled bets, aligning with the PR's objective to update strategies based on the latest backtesting results.

Copy link
Contributor

@kongzii kongzii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, that's worrying! If I'm looking correctly at these results, almost all agents are now very bad on it with the previously best strategies? I'd expect flucation in best strategies, but not that they'd be (almost) all in loss now with them 🤔

Makes me thing if we shouldn't revert to the original simple strategy (MaxAccuracyBettingStrategy) and investigate more. Wdyt?

@@ -137,9 +138,9 @@ class DeployablePredictionProphetGPT4TurboFinalAgent(DeployableTraderAgentER):
def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:
return KellyBettingStrategy(
max_bet_amount=get_maximum_possible_bet_amount(
min_=1, max_=5, trading_balance=market.get_trade_balance(APIKeys())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  566.814       |     3.25378     |   0.574048 |    0.267575 |              50 |       53.2538 |

(not in loss, but one of the worst strategies from profitable ones)

),
max_price_impact=0.5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.5)   |  47.1658      |   -2.96737     |  -6.29136  |    0.257439 |              50 |      47.0326  |

(in loss)

@@ -160,7 +161,7 @@ def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:
max_bet_amount=get_maximum_possible_bet_amount(
min_=5, max_=25, trading_balance=market.get_trade_balance(APIKeys())
),
max_price_impact=0.5,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.5)  |  666.814       |   -46.0313      |  -6.90318  |    0.233257 |              50 |       3.96867 |

(in loss)

max_bet_amount=get_maximum_possible_bet_amount(
min_=5, max_=25, trading_balance=market.get_trade_balance(APIKeys())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=25, max_price_impact=0.7)  |  111.895       |   -2.38854     |  -2.13463  |    0.187038 |              50 |       47.6115 |

(in loss)

@@ -51,9 +51,9 @@ class DeployableThinkThoroughlyProphetResearchAgent(DeployableThinkThoroughlyAge
def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:
return KellyBettingStrategy(
max_bet_amount=get_maximum_possible_bet_amount(
min_=1, max_=5, trading_balance=market.get_trade_balance(APIKeys())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=5, max_price_impact=0.4)   |   92.4323      |   -3.23458     |  -3.4994    |    0.252282 |              50 |      46.7654  |

(in loss)

@@ -41,7 +41,7 @@ def get_betting_strategy(self, market: AgentMarket) -> BettingStrategy:
max_bet_amount=get_maximum_possible_bet_amount(
min_=1, max_=5, trading_balance=market.get_trade_balance(APIKeys())
),
max_price_impact=None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous strategy now:

| KellyBettingStrategy(max_bet_amount=5, max_price_impact=None)  |  135.856       |   26.7032      |  19.6556  |    0.213513 |              50 |       76.7032 |

(5th best)

@gabrielfior
Copy link
Contributor

@kongzii I suggest we close this and wait for gnosis/prediction-market-agent-tooling#561 to update the strategies. Does that work for you?

@kongzii
Copy link
Contributor

kongzii commented Nov 20, 2024

Sure

@kongzii kongzii closed this Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants