Name | goto-conversion JSON |
Version |
2.0.4
JSON |
| download |
home_page | None |
Summary | Gambling Odds To Outcome probabilities Conversion (goto_conversion) |
upload_time | 2025-03-08 01:02:52 |
maintainer | None |
docs_url | None |
author | Kaito Goto |
requires_python | >=3.7 |
license | None |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# `goto_conversion` - Used by 4+ Gold Medal Solutions on Kaggle
`goto_conversion` has been leveraged by at least four :1st_place_medal: gold-medal-winning solutions on Kaggle [[6](#6),[7](#7)] and many other medal-winning solutions. They include:
- :1st_place_medal: [Gold Medal (14th out of 3225) Solution from 2023 Stock Market Prediction Competition (the `zero_sum` variant)](https://www.kaggle.com/competitions/optiver-trading-at-the-close/discussion/462653) :chart_with_upwards_trend:
- :1st_place_medal::2nd_place_medal::2nd_place_medal: [1xGold and 2xSilver Medal Solution from 2019 to 2022 Basketball Outcome Prediction Competition](https://www.kaggle.com/code/kaito510/1xgold-2xsilvers-key-ingredient) :basketball:
- :1st_place_medal: [Gold Medal (3rd out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/495101) :basketball:
- :1st_place_medal: [Gold Medal (4th out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/494407) :basketball:
- :1st_place_medal: [Most Voted Solution from 2023 Stock Market Prediction Competition](https://www.kaggle.com/code/ravi20076/optiver-baseline-models?scriptVersionId=152991375) :chart_with_upwards_trend:
- :2nd_place_medal: [Silver Medal (38th out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/485888#2740879) :basketball:
- 15x :3rd_place_medal: [15xBronze Medal (86th to 100th place out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/code/kaito510/updated-1xgold-2xsilvers-key-ingredient) :basketball:
- :microphone: [Presentation at the Royal Statistical Society](https://youtu.be/M00osEjcp_4?si=_WZv09311q3UoS9t&t=411) :book:
# Ease of Use
To use `goto_conversion`, it does not require historical data for model fit, advanced domain knowledge, nor paid computational resources.
Linked below provides 4 examples of how to use `goto_conversion` in the freely available, Google Colab.
[](https://colab.research.google.com/drive/1Xdo-4uZu0XFdbFuqZbV0gKUGs4L2rCAt?usp=sharing)
# Abstract
The most common method used to convert gambling odds to probabilities is to normalise the inverse odds (Multiplicative conversion). However, this method does not consider the favourite-longshot bias.
To the best of our knowledge, there are two existing methods that attempt to consider the favourite-longshot bias. (i) Shin conversion [[1](#1),[2](#2),[3](#3)] maximises the expected profit for the bookmakers assuming a small proportion of bettors have inside information. (ii) Power conversion [[4](#4)] raises all inverse odds to the same constant power.
Our proposed method, **G**ambling **O**dds **T**o **O**utcome probabilities **Conversion** (`goto_conversion`) reduces all inverse odds by the same units of standard error. This attempts to consider the favourite-longshot bias by utilising the proportionately wider standard errors implied for inverses of longshot odds and vice-versa. Our experiments show `goto_conversion` converts gambling odds to probabilities more robustly than all three of these existing methods.
This package is an implementation of `goto_conversion` as well as `efficient_shin_conversion`. The Shin conversion is originally a numerical solution but according to Kizildemir 2024 [[5](#5)], we can enhance its efficiency by reduction to an analytical solution. We have implemented the enhanced Shin conversion proposed by Kizildemir 2024 as `efficient_shin_conversion` in this package.
The favourite-longshot bias is not limited to gambling markets, it exists in stock markets too. Thus, we applied the original `goto_conversion` to stock markets by defining the `zero_sum` variant. Under the same philosophy as the original `goto_conversion`, `zero_sum` adjusts all predicted stock prices (e.g. weighted average price) by the same units of standard error to ensure all predicted stock prices relative to the index price (e.g. weighted average nasdaq price) sum to zero. This attempts to consider the favourite-longshot bias by utilising the wider standard errors implied for predicted stock prices with low trade volume and vice-versa.
# Pseudo Code

# References
<a id="1">[1]</a>
[H. S. Shin, “Prices of State Contingent Claims with Insider
traders, and the Favorite-Longshot Bias”. The Economic
Journal, 1992, 102, pp. 426-435.](https://doi.org/10.2307/2234526)
<a id="2">[2]</a>
[E. Štrumbelj, "On determining probability forecasts from gambling odds".
International Journal of Forecasting, 2014, Volume 30, Issue 4,
pp. 934-943.](https://doi.org/10.1016/j.ijforecast.2014.02.008)
<a id="3">[3]</a>
[M. Berk, "Python implementation of Shin's method for calculating implied probabilities from bookmaker odds"](https://github.com/mberk/shin)
<a id="4">[4]</a>
[S. Clarke, S. Kovalchik, M. Ingram, "Adjusting bookmaker’s odds to allow for
overround". American Journal of Sports Science, 2017, Volume 5, Issue 6,
pp. 45-49.](https://doi.org/10.11648/j.ajss.20170506.12)
<a id="5">[5]</a>
[Kizildemir, M., Akin, E., & Alkan, A. (2024). A Family of Solutions Related to Shin’s Model For Probability Forecasts. Cambridge Open Engage](https://doi.org/10.33774/coe-2024-dwb6t)
<a id="6">[6]</a>
[goto_conversion's Kaggle Profile](https://www.kaggle.com/kaito510)
<a id="7">[7]</a>
[Kaggle Main Page](https://www.kaggle.com)
# Contact Me
via LinkedIn Message: https://www.linkedin.com/in/goto/
Raw data
{
"_id": null,
"home_page": null,
"name": "goto-conversion",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "Kaito Goto",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/b4/d2/96cc3417e05cbc9e449cf3a82004532b0b0cd001e9fbdf70043fe56d9b25/goto_conversion-2.0.4.tar.gz",
"platform": null,
"description": "# `goto_conversion` - Used by 4+ Gold Medal Solutions on Kaggle\n\n`goto_conversion` has been leveraged by at least four :1st_place_medal: gold-medal-winning solutions on Kaggle [[6](#6),[7](#7)] and many other medal-winning solutions. They include:\n- :1st_place_medal: [Gold Medal (14th out of 3225) Solution from 2023 Stock Market Prediction Competition (the `zero_sum` variant)](https://www.kaggle.com/competitions/optiver-trading-at-the-close/discussion/462653) :chart_with_upwards_trend:\n- :1st_place_medal::2nd_place_medal::2nd_place_medal: [1xGold and 2xSilver Medal Solution from 2019 to 2022 Basketball Outcome Prediction Competition](https://www.kaggle.com/code/kaito510/1xgold-2xsilvers-key-ingredient) :basketball:\n- :1st_place_medal: [Gold Medal (3rd out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/495101) :basketball:\n- :1st_place_medal: [Gold Medal (4th out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/494407) :basketball:\n- :1st_place_medal: [Most Voted Solution from 2023 Stock Market Prediction Competition](https://www.kaggle.com/code/ravi20076/optiver-baseline-models?scriptVersionId=152991375) :chart_with_upwards_trend:\n- :2nd_place_medal: [Silver Medal (38th out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/competitions/march-machine-learning-mania-2024/discussion/485888#2740879) :basketball:\n- 15x :3rd_place_medal: [15xBronze Medal (86th to 100th place out of 821) Solution from 2024 Basketball Outcome Prediction Competition](https://www.kaggle.com/code/kaito510/updated-1xgold-2xsilvers-key-ingredient) :basketball:\n- :microphone: [Presentation at the Royal Statistical Society](https://youtu.be/M00osEjcp_4?si=_WZv09311q3UoS9t&t=411) :book:\n\n# Ease of Use\n\nTo use `goto_conversion`, it does not require historical data for model fit, advanced domain knowledge, nor paid computational resources.\nLinked below provides 4 examples of how to use `goto_conversion` in the freely available, Google Colab.\n\n[](https://colab.research.google.com/drive/1Xdo-4uZu0XFdbFuqZbV0gKUGs4L2rCAt?usp=sharing)\n\n# Abstract\n\nThe most common method used to convert gambling odds to probabilities is to normalise the inverse odds (Multiplicative conversion). However, this method does not consider the favourite-longshot bias. \n\nTo the best of our knowledge, there are two existing methods that attempt to consider the favourite-longshot bias. (i) Shin conversion [[1](#1),[2](#2),[3](#3)] maximises the expected profit for the bookmakers assuming a small proportion of bettors have inside information. (ii) Power conversion [[4](#4)] raises all inverse odds to the same constant power.\n\nOur proposed method, **G**ambling **O**dds **T**o **O**utcome probabilities **Conversion** (`goto_conversion`) reduces all inverse odds by the same units of standard error. This attempts to consider the favourite-longshot bias by utilising the proportionately wider standard errors implied for inverses of longshot odds and vice-versa. Our experiments show `goto_conversion` converts gambling odds to probabilities more robustly than all three of these existing methods.\n\nThis package is an implementation of `goto_conversion` as well as `efficient_shin_conversion`. The Shin conversion is originally a numerical solution but according to Kizildemir 2024 [[5](#5)], we can enhance its efficiency by reduction to an analytical solution. We have implemented the enhanced Shin conversion proposed by Kizildemir 2024 as `efficient_shin_conversion` in this package.\n\nThe favourite-longshot bias is not limited to gambling markets, it exists in stock markets too. Thus, we applied the original `goto_conversion` to stock markets by defining the `zero_sum` variant. Under the same philosophy as the original `goto_conversion`, `zero_sum` adjusts all predicted stock prices (e.g. weighted average price) by the same units of standard error to ensure all predicted stock prices relative to the index price (e.g. weighted average nasdaq price) sum to zero. This attempts to consider the favourite-longshot bias by utilising the wider standard errors implied for predicted stock prices with low trade volume and vice-versa.\n\n# Pseudo Code\n\n\n\n# References\n\n<a id=\"1\">[1]</a> \n[H. S. Shin, \u201cPrices of State Contingent Claims with Insider\ntraders, and the Favorite-Longshot Bias\u201d. The Economic\nJournal, 1992, 102, pp. 426-435.](https://doi.org/10.2307/2234526)\n\n<a id=\"2\">[2]</a>\n[E. \u0160trumbelj, \"On determining probability forecasts from gambling odds\".\nInternational Journal of Forecasting, 2014, Volume 30, Issue 4,\npp. 934-943.](https://doi.org/10.1016/j.ijforecast.2014.02.008)\n\n<a id=\"3\">[3]</a>\n[M. Berk, \"Python implementation of Shin's method for calculating implied probabilities from bookmaker odds\"](https://github.com/mberk/shin)\n\n<a id=\"4\">[4]</a>\n[S. Clarke, S. Kovalchik, M. Ingram, \"Adjusting bookmaker\u2019s odds to allow for\noverround\". American Journal of Sports Science, 2017, Volume 5, Issue 6,\npp. 45-49.](https://doi.org/10.11648/j.ajss.20170506.12)\n\n<a id=\"5\">[5]</a>\n[Kizildemir, M., Akin, E., & Alkan, A. (2024). A Family of Solutions Related to Shin\u2019s Model For Probability Forecasts. Cambridge Open Engage](https://doi.org/10.33774/coe-2024-dwb6t)\n\n<a id=\"6\">[6]</a>\n[goto_conversion's Kaggle Profile](https://www.kaggle.com/kaito510)\n\n<a id=\"7\">[7]</a>\n[Kaggle Main Page](https://www.kaggle.com)\n\n# Contact Me\n\nvia LinkedIn Message: https://www.linkedin.com/in/goto/\n",
"bugtrack_url": null,
"license": null,
"summary": "Gambling Odds To Outcome probabilities Conversion (goto_conversion)",
"version": "2.0.4",
"project_urls": {
"Bug Tracker": "https://github.com/gotoConversion/goto_conversion/issues",
"Homepage": "https://github.com/gotoConversion/goto_conversion"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "af6590a7569ee69ab6c353b60821f86ed01d8ddd22d18e17ff6c4e7937a779e4",
"md5": "03ee881fa56060dfacdf87ed3ad28d79",
"sha256": "4ab682ec61621bc50883f70c7a5923eb7e096308d8ff63c84e27ed5e31bfad05"
},
"downloads": -1,
"filename": "goto_conversion-2.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "03ee881fa56060dfacdf87ed3ad28d79",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 5871,
"upload_time": "2025-03-08T01:02:51",
"upload_time_iso_8601": "2025-03-08T01:02:51.442348Z",
"url": "https://files.pythonhosted.org/packages/af/65/90a7569ee69ab6c353b60821f86ed01d8ddd22d18e17ff6c4e7937a779e4/goto_conversion-2.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "b4d296cc3417e05cbc9e449cf3a82004532b0b0cd001e9fbdf70043fe56d9b25",
"md5": "f0ff1da869602a2741347ba2131b49a0",
"sha256": "050b62b2c23d8ee9b7dcdae96da7be63d8c0511e3f21f809119747e4956dbf81"
},
"downloads": -1,
"filename": "goto_conversion-2.0.4.tar.gz",
"has_sig": false,
"md5_digest": "f0ff1da869602a2741347ba2131b49a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5659,
"upload_time": "2025-03-08T01:02:52",
"upload_time_iso_8601": "2025-03-08T01:02:52.733627Z",
"url": "https://files.pythonhosted.org/packages/b4/d2/96cc3417e05cbc9e449cf3a82004532b0b0cd001e9fbdf70043fe56d9b25/goto_conversion-2.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-03-08 01:02:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gotoConversion",
"github_project": "goto_conversion",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "goto-conversion"
}