<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[BowTiedBettor]]></title><description><![CDATA[Deep technical dives into foundational betting market concepts. ]]></description><link>https://www.blog.bowtiedbettor.com</link><image><url>https://substackcdn.com/image/fetch/$s_!bSCL!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F796c5fbc-1f4e-4a25-ab55-f917e5966f4d_1234x1234.png</url><title>BowTiedBettor</title><link>https://www.blog.bowtiedbettor.com</link></image><generator>Substack</generator><lastBuildDate>Sun, 03 May 2026 11:58:11 GMT</lastBuildDate><atom:link href="https://www.blog.bowtiedbettor.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[BowTiedBettor]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[bowtiedbettor@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[bowtiedbettor@substack.com]]></itunes:email><itunes:name><![CDATA[BowTiedBettor]]></itunes:name></itunes:owner><itunes:author><![CDATA[BowTiedBettor]]></itunes:author><googleplay:owner><![CDATA[bowtiedbettor@substack.com]]></googleplay:owner><googleplay:email><![CDATA[bowtiedbettor@substack.com]]></googleplay:email><googleplay:author><![CDATA[BowTiedBettor]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Pick N Insights]]></title><description><![CDATA[Horizontal Wisdoms]]></description><link>https://www.blog.bowtiedbettor.com/p/pick-n-insights</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/pick-n-insights</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sun, 06 Jul 2025 12:44:51 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!jOje!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h2>Introduction</h2><p>Pick N combination pools are popular within the racing &amp; sports betting spheres across the world. They&#8217;re frequently populated with &#8217;outside money&#8217;, creating carryover pools/jackpots, with takeout percentages miles below standard numbers [takeouts as high as 30-40 % are fairly standard for non-carryovers], &amp; in some special cases even generating negative vigs. Due to the excellent liquidity offered by these pools, they naturally become great targets for the high-scale, high-volume informed bettor.</p><div><hr></div><h2>Publicly available tools</h2><p>In a standard Pick N pool, the following tools/information are available/transmitted to the public/bettors:</p><p><em>- Turnover figures.</em></p><p><em>- Pool size/carryover numbers.</em></p><p><em>- Race-level stake distributions.</em></p><p><em>- Batch betting functionality.</em></p><p>If complemented with,</p><p>- <strong>An abstract, internal set of &#8217;true&#8217; race-level probability distributions,</strong></p><p>a sweet opportunity, at least in theory, to stake [a subset of] the underbet combinations arises.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jOje!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jOje!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 424w, https://substackcdn.com/image/fetch/$s_!jOje!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 848w, https://substackcdn.com/image/fetch/$s_!jOje!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!jOje!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jOje!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg" width="414" height="365.7283950617284" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:644,&quot;width&quot;:729,&quot;resizeWidth&quot;:414,&quot;bytes&quot;:175849,&quot;alt&quot;:&quot;Trading In Stock Market : Expectations &#128200; Vs Reality&#128201; : r/IndianStreetBets&quot;,&quot;title&quot;:&quot;Trading In Stock Market : Expectations &#128200; Vs Reality&#128201; : r/IndianStreetBets&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Trading In Stock Market : Expectations &#128200; Vs Reality&#128201; : r/IndianStreetBets" title="Trading In Stock Market : Expectations &#128200; Vs Reality&#128201; : r/IndianStreetBets" srcset="https://substackcdn.com/image/fetch/$s_!jOje!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 424w, https://substackcdn.com/image/fetch/$s_!jOje!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 848w, https://substackcdn.com/image/fetch/$s_!jOje!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!jOje!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F36a0a82a-0666-450c-8928-4f6f7f19b072_729x644.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><strong>Carryover Pool Betting - Expectation v Reality</strong></figcaption></figure></div><div><hr></div><h2>Limitations</h2><p>However, to make things more complex there are usually factors that [assuming you&#8217;re in possession of perfect fair odds distributions, which in themselves are quite demanding to come up with] increase the difficulty of taking &#8217;proper&#8217; advantage of the pools:</p><p>- Combination-level stake distributions/odds not transmitted to the public, rather hidden internally with the pool provider [PMU, TAB, HKJC, etc.].</p><p>- Batch betting and/or staking limitations. Rules governing what&#8217;s allowed &amp; what&#8217;s not, generally meant to restrict sharper high-volume bettors from &#8217;cleaning up completely&#8217;.</p><div><hr></div><h2>Approaching those limitations</h2><p>The second one is trivial to handle. You simply adhere to the relevant rules, and/or, if <em><strong>elite</strong></em>, lighten them up by &#8217;qualifying for special treatments&#8217; from the parimutuel provider/the partner you&#8217;re routing your action through. </p><p>The first limitation however, the lack of combination-level granularity, is more complicated &amp; requires the construction of a [mental?] model for how to move from what&#8217;s publicly available [race-level stake distributions] to what&#8217;s of actual interest [combination-level stake distributions]. A given set of combination-level stake distributions maps uniquely to a specific set of race-level distributions, but the reverse does not hold true [a single set of race-level distributions can be explained by many different combination level ones], hence the issue.</p><p>A standard, yet kind of naive way of handling this is to assume that the combination-level probabilities can be well approximated by a simple multiplication of the race-level probabilities. I.e. if a specific combination consists of 6 horses all wagered at 20 % of total stakes, this naive computation would yield an expected payoff of 1/0.2^6 = 15625. As you&#8217;ll swiftly note in practice, this kind of estimation is frequently *off by quite a margin*, though on average [probably?] correct [many such cases in betting]. The key question becomes: is there an order to the chaos/does there exist a way of accurately modelling/predicting the direction &amp; magnitude of this deviation?</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h2>Representation</h2><p>Let&#8217;s define a discrete function C that takes [a vector of] the N winners [winner of each of the N races] as input, counts what share of the total pool has been wagered on the specified combination, &amp; returns the given share. </p><p><em>As gamblers we don&#8217;t get to see C a priori [&amp; after the fact we&#8217;re generally limited to observing it only for the winning combination [or well, sometimes for a slightly larger subset, but rarely for the full universe of all possible combinations]], hence the interest in developing an estimation routine that predicts it as well as possible [parimutuel is PvP &#8594; no need to arrive at the truth, just make sure to be closer to it than what your counterparties are].</em></p><p>To predict C, we develop a separate routine, <strong>X&#8727;</strong>, whose sole goal is to return as good of an approximation to C (the true combination-level payoffs) as possible. In order to &#8217;perfect&#8217; this approximation, we use whatever [relevant] parameters are available to us at the time of estimation. This includes but is not limited to measures such as the race-level stake distributions [including changes/deltas in those], any internal/proprietary win probabilities, publicly available information regarding the horses/selections &amp; public/widely known tipster/model figures.</p><p>Mapping all of the above information into a reasonable decision framework can, as should be expected, be both difficult &amp; performed in a multitude of ways [your imagination is the only limitation here]. One such route is via the development of a &#8217;similarity measure&#8217; whose purpose is to measure the amount of similarity/correlation between the different winners in any provided combination/Pick N-vector. The thinking goes; the larger the similarity, the higher the likelihood of the combination being *overbet* relative to the naive race-level probabilities estimation.</p><div><hr></div><h2>A similarity measure</h2><p><em>Section removed by LL OPSEC dept.</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Cg8B!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Cg8B!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Cg8B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg" width="338" height="190.1865889212828" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:386,&quot;width&quot;:686,&quot;resizeWidth&quot;:338,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Maintaing User Privacy Online (OPSEC GUIDE 2023) - YouTube&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Maintaing User Privacy Online (OPSEC GUIDE 2023) - YouTube" title="Maintaing User Privacy Online (OPSEC GUIDE 2023) - YouTube" srcset="https://substackcdn.com/image/fetch/$s_!Cg8B!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 424w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 848w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!Cg8B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F26011d50-4251-4b16-89e0-13a335799dbf_686x386.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div><hr></div><h2>Effects on parallel/standard markets</h2><p>Significant carryover pools can have quite interesting effects on the remainder of the marketplace.</p><p>- Clear incentives to psyop early markets if, on a relative basis, cheap enough to do so [throws off counterparties that are guided by those numbers]. Even non-psyop-maxis are clever enough to understand that they&#8217;re heavily *disincentivized* from providing early markets with any kind of insightful information [assuming they&#8217;re pushing significant volume into the jackpot pools].</p><p><em><strong>Effect: Inefficient [fixed odds] early markets [&amp; yes, you can &#8217;potentially&#8217; use the late steam in those carryovers to pick off parallel market offers.]</strong></em></p><p>- Extra effort is put into the study of races included in &#8217;carryover sets&#8217; &#8594; this in- formation propagates into the closing numbers in exchange, parimutuel &amp; fixed odds markets. <em><strong>Effect: Sharper &#8217;standard markets&#8217; as soon as the large, attractive pools are closed for betting.</strong></em></p><div><hr></div><p>Until next time&#8230;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div>]]></content:encoded></item><item><title><![CDATA[a collection of [gambling?] thoughts]]></title><description><![CDATA[We&#8217;re So Back.]]></description><link>https://www.blog.bowtiedbettor.com/p/a-collection-of-gambling-thoughts</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/a-collection-of-gambling-thoughts</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Mon, 11 Nov 2024 05:45:55 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!L1SP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><strong>We&#8217;re So Back.</strong></p><p>33 days ago the Cartoon Horse officially resigned as a Substack writer.</p><p>33 days later &amp; he&#8217;s back at it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!L1SP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!L1SP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!L1SP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg" width="470" height="410.9271978021978" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1273,&quot;width&quot;:1456,&quot;resizeWidth&quot;:470,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;We're so back meme&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="We're so back meme" title="We're so back meme" srcset="https://substackcdn.com/image/fetch/$s_!L1SP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 424w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 848w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!L1SP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1ac79362-ac81-465e-8ec3-d57f885ad286_1540x1346.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p>giving up/exiting the game/leaving the table is a powerful little trick in life. why? it helps you find the way. you quit &amp; get quiet for a while and bam, you know where you are. and where you&#8217;re heading.</p><p><em>will never understand the &#8216;never give up&#8217;-crowd &amp; their love for artificial ideas</em></p><div><hr></div><p>one of the reasons behind the birth of this blog was to earn some &#8216;real&#8217;, non-gambling money that could enter a company sheet &amp; perhaps, if lucky, help the author larp as an [insert entrepreneurial title] IRL &amp; avoid having to live with the inevitable degenerate gambler limitations in everyday life. one thing led to another &amp; even if the blog itself didn&#8217;t print [in fact, &#8216;twas closer to the inverse], it helped in opening paths to other, more lucrative biz options. today we&#8217;re gambling as never before &amp; larping [&#8216;data reseller&#8217; &amp; &#8216;software provider&#8217;] as never before. mission accomplished.</p><p><em>all previous posts have gone from paid &#8594; free by the way. happy reading to the poors.</em></p><div><hr></div><h3>presidential election thoughts</h3><p>interesting betting market event last week [zero interest in politics, trump&#8217;s a chad though].</p><ul><li><p>presidential election markets are beautiful in that they allow for incredibly deep dives for &#8216;tism bettors. loads of perspectives &amp; data points to cover and understand, in particular if aiming to trade in-play markets. except for some extraordinary, truly rare events [do happen every now and then], everyday betting is mostly about clicking the same angles over and over again. one-off events such as this one provide an intriguing contrast.</p></li></ul><ul><li><p>a combination of the market &amp; a well designed model is probably superior to either of the two alone. make sure you build this 'stacked' model yourself though and avoid having it fed to you by another gambler/modeller</p></li><li><p>the change in, &amp; disconnect between, the EC &amp; the popular vote markets, esp at betfair [go ahead and compare the last week of trading or so with the action at polymarket and kalshi], implied a lot of the probability should be put on the 'trump EC, kamala PV' outcomes. the closer to election day, the more the probability mass shifted towards these outcomes. reasonable? i don't think so. max likelihood explanation? bookies laying off trump-action.</p></li><li><p>throughout the 'election period' there was a lot of money coming for trump. to think all of it was retarded $'s is in itself kind of retarded. tbh clueless about who potential counterparties were but to think all of it was just degens, arbers &amp; hedgooors is probably wrong. when you don&#8217;t know your counterparty you should definitely be scared on average.</p></li><li><p>with three large platforms you inevitably observe some interesting stuff by properly tracking them all in parallel.</p></li><li><p>an order at platform A is just an arbitrage away from accessing the liquidity at platform B. yes there can be costs involved, but there are not seven or eight different markets. there&#8217;s one market, and one only.</p></li><li><p>if i find myself laying a horse [trump] in repeated fashion &amp; it ends up winning very, very comfortably, i never assume 'the degenerate counterparty was just lucky'. however, in case it's a runner with tons of predicted 'performance variance', i&#8217;m usually not as worried </p></li><li><p>in hindsight, everything looks brilliant. &amp; sometimes it is. some conduct private polls in political markets while others [yard enjoyoors] study whether the set of selections they&#8217;re about to pick from are erect or not. in both cases it&#8217;s hard to quantify the &#8216;brilliance&#8217; without seeing the full picture.</p></li><li><p>public modellers, such as silver, usually get tons of criticism from the gambling community. they&#8217;re running a complex &amp; difficult modelling project [clever] but keep blending this piece of the puzzle with straight out retarded comments/statements &#8594; i kind of agree with the sentiment.</p></li></ul><div><hr></div><p>to succeed in betting markets you need two things. +EV [or well, +ROI] and volume. very simple.</p><ul><li><p>don&#8217;t take bad bets [unless you&#8217;re doing it for the sole purpose of learning, then it&#8217;s okay]. profitability = running a set of [highly] profitable strategies. if any given bet doesn&#8217;t pass the filters of at least one of the strats, it&#8217;s not bet. very simple. yes, this means your volume will be terrible until you&#8217;ve constructed a set of such strategies.</p></li><li><p>+EV can be found literally everywhere. volume is more difficult. before you embark on a 6 month modelling journey, take a proper look at the relevant market &amp; compute a couple of base estimates for what kind of volume it&#8217;d be possible to push through this market/strategy. unless it&#8217;s scalable, it&#8217;s useless. *scalability is king*. </p><p>in particular, if you&#8217;re new [&amp; serious about, if you &#8216;just love modelling&#8217; then go ahead, lol] to this there are good chances you&#8217;ll end up wasting tons of time before you notice: &#8216;ah I&#8217;ll never be able to make much out of this angle&#8217;.</p></li><li><p>dumb edges are good edges. not everything has to be built bill bettor-style.</p></li><li><p>modelling provides great assistance in identifying +EV. automation helps a ton in pushing volume. conclusion: <strong>learn how to use computers.</strong> </p><p>absolutely zero excuses in 2024 with chadgpt on your side. a lot of content on this blog re scraping, bet-botting &amp; data analysis.</p></li><li><p>+EV, +ROI is neat, but -EV, +ROI is amazing.</p></li><li><p>if you&#8217;re 10 % of the volume, ask yourself: why aren&#8217;t you 11 % of the volume?</p></li><li><p>outsourcing bet placement is necessary to stack up volume. there are two ways to do this: either you work with a bot, or you work with a human. if possible, the robot route is in many cases the most efficient one. but life happens between humans. hence, combine. [work with people, but make sure both parties have something to offer. also, ensure that any sort of deal/partnership yield great returns for everyone involved. things become so much easier when everyone prints [$&#8217;s or knowledge]].</p></li></ul><div><hr></div><p>you think you can handle variance.</p><p>until you experience variance.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WTfT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WTfT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 424w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 848w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WTfT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg" width="274" height="237.95704697986577" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:647,&quot;width&quot;:745,&quot;resizeWidth&quot;:274,&quot;bytes&quot;:58801,&quot;alt&quot;:&quot;Crypto Frog Meme Rekt Signal Essential | Essential T-Shirt&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Crypto Frog Meme Rekt Signal Essential | Essential T-Shirt" title="Crypto Frog Meme Rekt Signal Essential | Essential T-Shirt" srcset="https://substackcdn.com/image/fetch/$s_!WTfT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 424w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 848w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!WTfT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd07811d8-3cbd-446e-86eb-dca34503e4e1_745x647.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div><hr></div><h3>racing thoughts</h3><p>it should come as no surprise for readers of this blog that we&#8217;re primarily [financially &amp; emotionally] invested in horse racing markets around here.</p><p>the racing scene is made up of three types of &#8216;matching engines&#8217; [except for citibet [keen on accessing: if you&#8217;ve got any recommendations for smooth ways to join the movement, feel free to get in touch] which seems to be built upon an interesting combo between the first two of them. the exchange model, the parimutuel model &amp; fixed odds betting.</p><p>in easy-to-beat order:</p><ul><li><p>fixed odds: the easiest design to beat. you&#8217;re essentially up against [especially if betting at open/early] a relatively uninformed market maker [bookmaker] who&#8217;s forced to price literally every horse in every race correctly [or well, within the range true price +- their &#8216;spread&#8217;]. sniping these counterparties shouldn&#8217;t be too hard if you know what you&#8217;re doing.</p></li><li><p>exchange markets [betfair]. difficult to beat as the &#8216;volume-weighted competition&#8217; is very sophisticated, i.e. hard to get matched at good prices with decent size. to your advantage: if you find ways to match against &amp; restrict your action to less informed participants you need not worry about outperforming the sharks. also there are situations where fills pretty much remove information [usually in betting it&#8217;s the other way around]. a large block trade occurring between two sharps at a given price doesn&#8217;t [mechanically] stop the market from jumping around with the same curiosity it did before the trade took place.</p></li><li><p>pools: always competing against the volume-weighted opinions of the rest of the market. fee structures [as in the exchange case] important, if your counterparty is on rebates and you&#8217;re not you&#8217;re playing a very difficult game. price is uncertain as odds aren&#8217;t finalized until the pool closes. certainly see how this both could and should be a huge issue for the recreational gambler, but if you&#8217;re trying to operate on a professional level it shouldn&#8217;t matter too much? </p><p><strong>most likely the hardest *design* to beat, given a predetermined group of counterparties/competitors</strong>. in practice, whether you&#8217;ll be profitable or not will of course depend less on the design and more on how your numbers fare against the volume-weighted opinions of the rest of the market.</p></li></ul><div><hr></div><p>all for today, </p><p>until next time&#8230;</p><div><hr></div><h3>BowTiedBettor Products</h3><ul><li><p><a href="https://betpicks.bowtiedbettor.com">BetPicks</a>. </p></li><li><p><a href="https://www.bowtiedbettor.com/betstreams">BetStreams</a>.</p></li></ul><p>Winners Win.</p>]]></content:encoded></item><item><title><![CDATA[leaving the table]]></title><description><![CDATA[-ev, +roi]]></description><link>https://www.blog.bowtiedbettor.com/p/leaving-the-table</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/leaving-the-table</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Mon, 07 Oct 2024 00:15:46 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/da780d67-13f1-4ba9-a625-d12f8849ddf9_1500x906.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>genuine content is beautiful.</p><p>forced content, not so much.</p><p>if this is the last post that goes out to my subscribers? </p><p>either it is. or it isn&#8217;t. </p><p>it&#8217;s 50/50 really.</p><p>at some point, the thoughts might be back in motion.</p><p>for now, all subscriptions have been paused [indefinitely].</p><p><strong>thank you for your time.</strong></p><p><em>&amp; if you&#8217;re a horse racing bettor.</em></p><p><em>don&#8217;t miss out on The Revolution.</em></p><div><hr></div><p>see you in the order books &amp; carryover pools.</p><p>/<a href="https://x.com/BowTiedBettorII">Cartoon Horse</a></p>]]></content:encoded></item><item><title><![CDATA[Adverse Selection in Betting Markets]]></title><description><![CDATA[Level 2 - DEEP DIVER]]></description><link>https://www.blog.bowtiedbettor.com/p/adverse-selection-in-betting-markets</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/adverse-selection-in-betting-markets</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Fri, 22 Mar 2024 22:43:17 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p><strong>Ping!</strong></p><p>Your Bot just sent an order to the exchange.</p><p><strong>Ping!</strong></p><p>Bet went unmatched, a competing Bot claimed the offer. Outstanding order removed.</p><p><em>A shame you missed out on it. Well, back at it&#8230; Next time you&#8217;ll be quicker!</em></p><p><strong>Ping!</strong></p><p>A new opportunity! Your Bot just sent another order.</p><p><strong>Ping!</strong></p><p>Successful match, bet went through. </p><p><em>&#8220;Ha, there we go! Easy.&#8221;</em></p><p>Peacefully you move on with your life. However, as you check in on the bets a few hours later, you notice an interesting thing: the first bet turned out to be significantly better than the second one.</p><p><em>&#8216;Ah, just variance&#8217;</em>, you think. <em>&#8216;Tomorrow I&#8217;ll be back to being Lady Luck&#8217;s favourite bettor.&#8217;</em></p><p>Not so fast.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!sAaa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!sAaa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 424w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 848w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!sAaa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg" width="592" height="456.90107737512244" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:788,&quot;width&quot;:1021,&quot;resizeWidth&quot;:592,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;OZBREN on X: \&quot;Sorry for the lack of art lately. I'm just trying to secure  financial freedom for my entire bloodline by randomly clicking green and  red buttons on the computer. Thank&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="OZBREN on X: &quot;Sorry for the lack of art lately. I'm just trying to secure  financial freedom for my entire bloodline by randomly clicking green and  red buttons on the computer. Thank" title="OZBREN on X: &quot;Sorry for the lack of art lately. I'm just trying to secure  financial freedom for my entire bloodline by randomly clicking green and  red buttons on the computer. Thank" srcset="https://substackcdn.com/image/fetch/$s_!sAaa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 424w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 848w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!sAaa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff0b06794-ea7c-431c-8add-832c366fbd10_1021x788.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>What is Adverse Selection?</h3><p>Adverse selection refers to situations where either you or your counterparty [a bookie, another bettor, the market] possess information [broadly speaking] the other part of the trade is missing and use this informational asymmetry to create advantageous positions, oftentimes in a way that goes past the adversely selected market actor.</p><p>More concisely: your counterparty&#8217;s willingness to enter a trade/deal/contract with you is negatively related to the true value of the trade [from your perspective]. In a zero-sum game an excellent proposition for you is necessarily a terrible one for your counterparty. Thus, the only real reason for him to trade with you, is that he considers the price a good one &amp; consequently there&#8217;s great signal in his desire to enter the deal.</p><p><em>Note: these are *theoretical claims*, there are plenty of players in actual, real-world markets that act on vague &#8216;yeah I really think this horse will win today&#8217;-instincts or simply overestimates their level of sophistication [pseudo-sharps].</em></p><p>Spotting situations where you might potentially be/become a victim of adverse selection can often be difficult due to the subtle nature of the concept. Unlike standard fees/charges &#8216;adverse selection fees&#8217; aren&#8217;t well documented but rather hidden behind game theoretical reasoning and unless you develop a proper understanding of markets, counterparties &amp; what the game and its structure is really all about there&#8217;s a good chance you&#8217;ll simply fail to notice what&#8217;s happening [&amp;, as usual, pay for your lack of knowledge]. </p><p>To illustrate the many shapes &amp; forms adverse selection may take in betting markets we&#8217;ll share and dive into a list of examples we&#8217;ve encountered during our time in the world of prediction.</p><div><hr></div><h3>The best trades &amp; why you keep missing them</h3><p>Any procedure you&#8217;ll ever run will consist of several groups of bets: </p><ul><li><p>-EV bets. </p></li><li><p>Slight +EV ones. </p></li><li><p>Good bets.</p></li></ul><p>&amp; finally: </p><ul><li><p>The Excellent Ones. </p></li></ul><p>Your final EV/ROI, what you&#8217;ll actually observe, will be a volume-weighted combination of these subsets. The goal is to get enough money on in the last three [two?] categories to make up for the -EV positions you&#8217;ll inevitably acquire [no matter how sophisticated your methodology].</p><p>Now here&#8217;s the problem: in most cases you won&#8217;t catch [or even see ;)] the absolute best ones. Why?</p><p>A liquid, perfect bet/trade usually match the condition of many different strategies, effectively generating a much larger group of competitors than what you usually observe in your day-to-day action. You can have 10 sharp bettors operating in the same market without too much collision on an everyday basis [they look for different things, bet during different &#8216;limit periods&#8217; etc.], but whenever an outstanding bet appears on the screen the likelihood of such a collision increases rapidly &#8594; all sharps [even average gamblers] enter the same bet &#8594; trade gets very crowded &#8594; time until the mispricing is taken care of [your opportunity window] goes down dramatically.</p><p><em>Think of a horse race being fully determined by three features. Bettor A successfully trades the first feature, Bettor B the second &amp; Bettor C the third. Along comes a super bet that ticks all boxes, sending signals to all three. Competition up, probability of you being the first to click it down.</em></p><p>On the other hand, what do you think will happen when the next -EV bet [<em>as for the horse racing example, looks profitable if zooming in on feature A but left -EV if including the effect of B &amp; C</em>] pops up? Yep, plenty of time for you to take it! </p><p><strong>Result</strong>: Easy to invest in the unprofitable subset, significantly harder in the profitable one.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p><em><strong>Autist note:</strong> We love to think in distributions. A perfect illustration of adverse selection using probability distributions: imagine plotting your naive expectations [before considering the goals of your counterparties] of how your EV will be distributed over future bets/trades. Let&#8217;s say most of the probability mass will be located close to 0.13, your 'long-term EV&#8217;, &amp; more or less all of it contained between -0.09 &amp; 0.29. Now, if dropping the naive assumptions of competitors being indifferent towards you winning [i.e. allowing for the strategic aspects of a market with competing actors] you&#8217;ll likely observe a shift in the distribution [to the left, negative direction]. Perhaps you may even notice a fatter left tail [trivial to acquire all of the terrible positions], and a smaller right one [miss most of the great opportunities]. <strong>This is</strong> <strong>the effect of adverse selection.</strong></em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!RAhS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!RAhS!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 424w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 848w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 1272w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!RAhS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png" width="1456" height="370" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:370,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:449721,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!RAhS!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 424w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 848w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 1272w, https://substackcdn.com/image/fetch/$s_!RAhS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8fa852b4-a82f-487e-9f69-dd137e169670_2172x552.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Peer-to-peer: there&#8217;s information in you being matched</h3><p>One of the main homes for adverse selection in gambling markets are P2P markets &amp; a popular phrase illustrating its omnipresence at the exchanges is that &#8216;<em><strong>you only get filled when you don&#8217;t want to</strong></em>&#8217;. Due to exchanges&#8217; natural matching of [skilled] individuals with different opinions and/or asymmetric info &amp; their clarity in providing a [often unique and well informed] direct, single counterparty, they become an excellent playground for learning &amp; embracing the concept. </p><p>Counterparties in other markets are usually not as explicit [<em>standard sportsbooks rarely actual bookmakers, usually just uninformed copy pasta machines [far from the &#8216;real&#8217; source behind potentially opposing information] &amp; weighted averages of customers&#8217; insights, parimutuels a volume weighted average of clients/customers opinions</em>], making them somewhat more difficult to break down. On the other hand, the mechanics of the exchange markets make it clear as day that it&#8217;s <strong>Player A vs Player B</strong>.</p><p><em>Note: Often hearing marketing companies [also known as sportsbooks] complain &#8216;ah, of course we can&#8217;t keep taking your action if too much of it is just steam/value vs other shops&#8217;. In fact, they&#8217;ve even managed to psyop some bettors into agreeing with the statement, lol. Find it pretty funny since these companies&#8217; entire business models [appended with a couple of additional scam products] are built upon the very same concept of moving according to/listening to action at [predominantly] sharper places, baking some extra margin into everything &amp; letting highly uninformed counterparties enjoy these terrible propositions. A bookmaker learns from the market &amp; you applaud him: &#8216;impressive bookmaking&#8217;. A bettor learns from the market &amp; you conclude: &#8216;parasitic behaviour&#8217;. <strong>Bookie Derangement Syndrome.</strong></em></p><div><hr></div><p>Below we list a couple of exchange market examples where adverse selection plays a huge role. </p><p><em>If you&#8217;re planning on becoming an active P2P market participant: best think long &amp; hard about the reasons/models/frameworks behind the opinions &amp; decisions the people you&#8217;re being matched against chooses to go with. Well, either that or enjoy being humbled, fren. </em></p><h4>Liquifying illiquid markets</h4><p>The <strong>1v1 </strong>aspect of the exchange game is as clear as it gets in early markets, where you generally observe high spreads, low liquidity &amp; low amounts of information. </p><p>High spreads &amp; low liquidity may create an illusion of a perfect market to deal/make/provide liquidity to and pick up easy dollars from [quote wide, let the degens pick their favourite soccer teams]. However, in practice, especially at platforms such as Betfair with a bunch of sophisticated actors, you run a real risk of only getting matched on outcomes you&#8217;ve quoted incorrectly.</p><p>Generally two ways around this: </p><ul><li><p>Minimal offers only [no one good will care about looking]. </p></li><li><p>Brutally wide quotes [good traders ignore the market]. </p></li></ul><p>However, none of them are fancy solutions since they heavily restrict the amount of money the what-looked-like-a-free-lunch-strategy can generate. Nevertheless better than posting real offers that you&#8217;ll just get picked off on [oh, did we just figure out why the early markets were illiquid with huge spreads in the first place?]. </p><p>To get rid of poor liquidity you need some participants to be able to run profitable strategies, &amp; since the obvious solution here is one that&#8217;ll get slaughtered by adverse selection, it shouldn&#8217;t come as a surprise that people prefer to wait a bit before &#8216;posting their thoughts&#8217;, especially the ones that are wrapped into more sizeable offers [need higher confidence &amp; the attention of non-professional participants].</p><p><em>Note: If you&#8217;re a bookmaker with access to plenty of retard $&#8217;s this &#8216;liquifying illiquid markets&#8217;-strategy works perfectly fine, provided you&#8217;re actually able to get the sharks out of your pool of bettors. Like being a Betfair market maker with &#8216;only dumb counterparties&#8217; coded into your Bot. Of course it&#8217;ll make money.</em></p><h4>Maker meets maker</h4><p>Trivial. You&#8217;re both making a market &amp; thus compete against each other. You post an offer, he posts another one right before you, you continue and on it goes. At one point he stops posting new offers. So you win. Front of the queue! And wow, you just got matched! Great news. </p><p>Well, at least until you realise that it was nothing but the very same guy turning around and picking you off as a result of him having sharper fairs &amp; [probably] a passion for psyop.</p><p><em>If there are several makers in your market and you&#8217;re posting offers they aren&#8217;t interested in competing with, be cautious. Unless you know the reason [e.g. you&#8217;re in possession of an excellent fee structure], total silence contains tons of information.</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!hqE_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!hqE_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 424w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 848w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 1272w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!hqE_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png" width="224" height="64" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:64,&quot;width&quot;:224,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:7523,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!hqE_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 424w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 848w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 1272w, https://substackcdn.com/image/fetch/$s_!hqE_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F22cf418e-d3f1-4282-ada1-958c33d084e7_224x64.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Where maker doesn&#8217;t meet maker&#8230;</figcaption></figure></div><h4>Bettors awaiting sufficient liquidity</h4><p>Common phenomenon. Several bettors waiting for increased liquidity on the same horse/outcome. If it&#8217;s actually a good bet, there will be a quick race for the available offers as liquidity comes in, and you'll only get a fraction of what you'd like to have. If it&#8217;s a poor one, you&#8217;ll be free to take however much you want. Simple really, good bets move quick &amp; lack a crowd of counterparties, bad bets tend to meet a neverending stream of happy takers.</p><p>What will happen in practice [think of having an edge you&#8217;re sharing with a few others]:</p><ul><li><p>Usually: as more liquid players come in they&#8217;ll do so at lower &amp; more correct prices. Current price nothing but an illusion. </p></li><li><p>Less frequent: liquidity pops up at the current price &amp; there&#8217;ll be a brutal race to get it. </p></li></ul><p><em>Note: Compare with limit increases in fixed odds/standard sportsbook betting. If limits are raised from $250 to $2 000 &#8220;to win&#8221; at 9AM, you better be quick at taking decisions &amp; clicking buttons if your goal is to get any of the value. [Especially if competitors employ machines for clicking the buttons for them&#8230;]</em></p><div><hr></div><p>The above relates to another important intersection between adverse selection and betting, bet movements. You'll generally see counterparties move their offers on your action, and if they don't, what do you think that means? Only the naive bettor fails to realise that if you're betting into a &#8216;hidden wall&#8217; the likelihood of it being a good bet automatically decreases. </p><p>If the bet is as &#8216;perfect&#8217; as you hope it to be, the price *will* move. As an example, perfect bets often a result of an uncertain bookmaker *forced* to take action on an outcome despite insufficient knowledge. Such a counterparty is <strong>well aware of their unawareness</strong> &amp; will adjust heavily and quickly to your action, especially if you&#8217;ve been profiled [rare since your average bookmaker takes three bets then bans your account] and/or deploy decent size.</p><div><hr></div><h3>5-15 secs spinner, then denied or accepted</h3><p>Ah, the good old spinning wheel after requesting a bet! An excellent example of adverse selection.</p><p>So what&#8217;s the idea behind the &#8216;your bet is being processed, please wait&#8216;-spinner? Usually a light ban on the account. Can think of it as a bookie hedge for betting accounts they haven&#8217;t confirmed will be profitable, but have great suspicion will [remember false positives are terrible for bookies as their livelihood depends on robbing degenerate problem gambler prospects [no, not how they'll frame it in next week&#8217;s ads]]. </p><p>Your bet is sent to them, they either just put you on hold or 'refer to trader' &amp; what happens in practice is the following: the extra time window induced by the spinning wheel gives your counterparty [the bookie] an opportunity to level up their information levels &amp; in some cases even acquire more info than what you could possible have had at the time of your bet [especially for time-sensitive stuff such as in-play betting/just before post/steam chasing]. Essentially, they're using time to skew the rules against you:</p><ul><li><p>Deny all bets that seem +EV after a brief analysis of both the event and/or possible market movements. Of course steal the bettor&#8217;s information by adjusting your odds accordingly.</p></li><li><p>Happily accept the ones that turn out bad/seem to have been a result of a &#8216;fake&#8217; market move [rapidly reversed]. </p></li></ul><p><strong>Imagine being allowed to put up prices on everything with an option to cancel your offers as soon as someone hits them. Then adding an additional 5-15 seconds &#8216;thought window&#8217; to the already rigged setup. </strong></p><p><strong>&amp; STILL losing to some customers. </strong></p><p><strong>Bookmakers truly are impressive.</strong></p><div><hr></div><p><strong>Example I</strong>: You place a fixed odds bet ~10 seconds to post on a horse -&gt; 15 secs spinner -&gt; horses jump &amp; your horse is off to a TERRIBLE start [<em>e.g.</em> <em>breaks stride in harness racing</em>] -&gt; bet goes through. </p><p><strong>Example II</strong>: You place a fixed odds bet ~10 seconds to post on a horse -&gt; 15 secs spinner -&gt; horses jump &amp; your horse is off to a FANTASTIC start -&gt; bet denied, market closed. </p><p><em>You ask for internal logs after being scammed in a similar fashion for the fourth time this year. Referred to customer support, &#8216;hey there Cartoon sorry you seem to be a bit upset, can&#8217;t share that, highly confidential information, any other questions today?&#8217;.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pHsq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pHsq!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pHsq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp" width="298" height="298" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1024,&quot;width&quot;:1024,&quot;resizeWidth&quot;:298,&quot;bytes&quot;:193250,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pHsq!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 424w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 848w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 1272w, https://substackcdn.com/image/fetch/$s_!pHsq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc37705d2-1d28-46be-b0d6-acc631306d06_1024x1024.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Managed to get heaps down? </h3><p><em>Note: This point is largely irrelevant for gamblers that aren&#8217;t operating at or around max market capacity.</em></p><p>One of the main struggles for a serious bettor is to get liquidity down on favorable opportunities. By design, this *must* be a difficulty problem to solve since building such a position is entirely dependent on another actor taking the other side of the trade. &amp; why would they be fine with that, unless they themselves believe the trade they&#8217;re taking is in fact in their favor? Again, there&#8217;s [negative] information in the fact you&#8217;re finding people to trade good size against you. Generally the more you get on *without a proper reason for it*, the worse the bet. As the &#8216;without a proper reason for it&#8217;-statement suggests, there are exceptions:</p><ul><li><p>You construct a well-sized bet by betting max limit from 5-10 bookmaker accounts/shops in parallel. In such cases it&#8217;s extremely difficult [impossible] for the bookie/s to react until it&#8217;s too late. Risk of having all accounts banned of course so not necessarily an optimal kind of execution, that said a Degen Gambler needs some real action every now &amp; then.</p></li><li><p>Counterparty [bookmaker/platform/bettor] is stressed &amp; needs to move out of a position.</p></li><li><p>Counterparty is closing an outstanding *great* trade &amp; isn&#8217;t as careful as usual with the execution of the second leg.</p></li><li><p>Most of the sharps are all in on an outcome already &amp; something irregular/unexpected takes place that forces weird price movements. </p><p><em>Related but not the exact same thing: if you&#8217;re betting into a market with max cap $2 500 to win &amp; the intelligent segment of the market &#8216;empties their limits&#8217; at open, what could this [potentially] mean for price movements taking place later on during the betting period?</em></p></li><li><p>Counterparty is running some sort of marketing campaign that you&#8217;ve properly decomposed &amp; built a clever strategy around.</p></li></ul><p><strong>Conclusion</strong>: Get heaps down &#8594; most likely a bad position. Price moves just as you start building your bet &#8594; probably a good position. Again easy to invest in unprofitable &#8216;assets&#8217;, significantly harder in profitable ones. Adverse selection.</p><div><hr></div><h3>An amazing edge? Won&#8217;t last long&#8230;</h3><p>Again it all boils down to analyzing what your P&amp;L means for your counterparty&#8217;s profits/losses. If you continuously keep robbing a single counterparty on decent dollars day in day out, it won&#8217;t be long until it&#8217;s well noticed by him/them [and if it isn&#8217;t, please start pondering the probability of not being paid at all]. When [not if] it&#8217;s noticed, the part of their operation that give rise to the bulk of your profits will be well investigated &amp; likely cut off/heavily adjusted &#8594; edge vanishes. This is *by design*.</p><p>As mentioned earlier, EV&#8217;s/ROI&#8217;s are generally generated by volume weighted averages of different strategies/subsets of bets. This is of course just as applicable to your counterparty as it is for you. Hence, your mission is to find &amp; hit such players on subsets they&#8217;re grouping with other stuff &amp; empty their pockets at a &#8216;perfect pace&#8217;, i.e. one that makes it well worth it for you but at the same time doesn&#8217;t have them perform deep investigative analysis on what&#8217;s happening.</p><p><strong>A scalable, long-term edge/angle is one that cuts into the profits of *otherwise profitable* operations in subtle ways that are difficult to decipher.</strong></p><p><strong>Example:</strong> You&#8217;ve spotted an incredible &#8216;manipulation&#8217; opportunity in a certain kind of tote pool. If you go full retard &amp; launch your new strategy by pushing prices 50 % back &amp; forth in a matter of seconds you&#8217;re guaranteed to attract unwanted, intelligent attention within a few trades. If instead you handle things responsibly might get away with what you&#8217;re doing for quite some time.</p><div><hr></div><h3>Disagreeing with the market? A point estimate is always wrong, but in which direction?</h3><p>Numbers give you a false sense of security. Behind every number there's a probability distribution. [Why we&#8217;ll always keep shilling Bayes]. </p><p>The more experienced you become, the more you notice the following phenomenon: - whenever you/your model [<em>think of a non-market-based one</em>] disagrees with the market you're always wrong [in terms of the size of the inefficiency] &amp; always in the wrong direction. </p><p>I.e. if the market says 0.50, you say 0.60, the distribution [yes, there is one whether you choose to see it or not] around your estimate should 100 % be shifted &amp; skewed towards the market&#8217;s estimate.</p><p>No better example of this than the below from Benter&#8217;s &#8220;<em>Computer Based Horse Race Handicapping and Wagering Systems: A Report</em>&#8221; paper [read it <a href="https://gwern.net/doc/statistics/decision/1994-benter.pdf">here</a>].</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ajq6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ajq6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 424w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 848w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 1272w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ajq6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png" width="1456" height="1424" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1424,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:716205,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ajq6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 424w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 848w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 1272w, https://substackcdn.com/image/fetch/$s_!Ajq6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fec51df4b-ae06-4eb8-80ab-d2bdf4ae78d3_1980x1936.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ffud!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ffud!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 424w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 848w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 1272w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ffud!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png" width="1456" height="1444" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1444,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:895021,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ffud!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 424w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 848w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 1272w, https://substackcdn.com/image/fetch/$s_!Ffud!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3131ec0-21d0-4713-ac49-d64d45a4a861_1972x1956.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Wrap up &amp; an explanation of the first part</h3><p>Now that we&#8217;ve handled a good bunch of different examples of adverse selection, it&#8217;s time to return to the subject of the initial section of this post, a Betting Bot that&#8217;s missing out on certain trades. Recall the situation:</p><blockquote><p><strong>Ping!</strong></p><p>Your Bot just sent an order to the exchange.</p><p><strong>Ping!</strong></p><p>Bet went unmatched, a competing Bot claimed the offer. Outstanding order removed.</p><p><em>A shame you missed out on it. Well, back at it&#8230; Next time you&#8217;ll be quicker!</em></p><p><strong>Ping!</strong></p><p>A new opportunity! Your Bot just sent another order.</p><p><strong>Ping!</strong></p><p>Successful match, bet went through. </p><p><em>&#8220;Ha, there we go! Easy.&#8221;</em></p><p>Peacefully you move on with your life but then, as you check in a few hours later, you notice an interesting thing: the first bet turned out to be significantly better than the second.</p><p><em>&#8216;Ah, just variance&#8217;</em>, you think. <em>&#8216;Tomorrow I&#8217;ll be back to being Lady Luck&#8217;s favourite bettor.&#8217;</em></p></blockquote><p>At this point the issue should stare at you: the reason our Bot is &#8216;faster&#8217; in some situations isn&#8217;t really due to it being particularly fast, but rather a result of the competing Bot being *turned off* for those trades. The other Bot is probably built on better infrastructure [perhaps even backed by more precise/accurate fairs] and therefore quicker than ours, so whenever we actually get a match it&#8217;s due to our competitor *actively skipping it*. </p><p>&amp; by now I guess we all realise what that means&#8230;</p><p>All for today.</p><p>Until next time&#8230;</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[Building & Deploying a Betfair Bot]]></title><description><![CDATA[Level &#8734; - BILL BETTOR]]></description><link>https://www.blog.bowtiedbettor.com/p/building-and-deploying-a-betfair</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/building-and-deploying-a-betfair</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Fri, 26 Jan 2024 21:37:27 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Jp7o!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p></p><p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler!</p><p>It&#8217;s time to enter one of the most dangerous territories in betting markets, the Betfair Exchange. </p><p>Since</p><ol><li><p>There is a decent barrier to entry [knowledge-wise],</p></li><li><p>It&#8217;s one of very few places where you won&#8217;t be thrown out for winning a bet or two,</p></li></ol><p>you&#8217;ll naturally be up against the creme de la creme of gambling markets. Therefore, tread carefully or get rekt [&amp; poor].</p><p><em>Betfair is peer-to-peer, i.e. every time you get matched on a trade there&#8217;s another gambler out there taking the other side of it, much like classic order book action in crypto/stock markets. Compared to the other &#8216;real&#8217; betting alternative, parimutuels [where everyone places their bets &amp; the odds are calculated at post time], this gambler-to-gambler matching is *a great feature* since it only requires you to beat *one counterparty* as opposed to a complete market [weighted average of many opinions]. Not really a relevant fact in highly liquid instruments [why?] but far from every market is perfectly liquid. Finding one degen is easier than finding a whole army of them [the latter may present a far superior opportunity though].</em></p><p>Now, since we&#8217;re on this side of the web we won&#8217;t just enter the exchange markets with boring, manual trading. </p><p>Instead we&#8217;ll utilize one of the great advantages of Betfair, the Betfair API, &amp; code up a Betting Bot that will do the work for us. </p><p><em>For a gentle introduction to the Betfair API, see <a href="https://www.blog.bowtiedbettor.com/p/a-gentle-introduction-to-the-betfair">this post</a>.</em></p><p><strong>So what&#8217;s a Betting Bot?</strong></p><p>It&#8217;s simple, really.</p><p>You have *an idea/a potential edge* which [if your plan is to make any money from it] can be converted into A Trade.</p><p>With this idea/trade setup, you&#8217;ve got two options.</p><p><strong>Option Number One</strong>: stay at the desk 24/7, scan the markets manually to look for opportunities where you could run The Trade, &amp; then run it if certain conditions/requirements are satisfied.</p><p><strong>Option Number Two</strong>: map your thoughts/conditions into code &amp; let your computer perform the tasks for you.</p><p>Needless to say, <strong>Option Number Two</strong> is the better option.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Jp7o!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Jp7o!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 424w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 848w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 1272w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Jp7o!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png" width="728" height="593.1058823529412" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:1108,&quot;width&quot;:1360,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:610632,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Jp7o!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 424w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 848w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 1272w, https://substackcdn.com/image/fetch/$s_!Jp7o!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8666fda7-dd43-40e0-b897-08f134bc3e25_1360x1108.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"></figcaption></figure></div><p><em>Note: We&#8217;re assuming you&#8217;re in it to *win it* [long-term] here. If you&#8217;re only going to place a trade or two on rare one-time events it of course makes no sense to do it programmatically.</em></p><p>But how do we *actually go through* with <strong>Option Number Two</strong>, i.e. Build &amp; Deploy A [hopefully profitable] Betfair Bot?</p><p>Well, that&#8217;s what this post will explain.</p><div><hr></div><p><em><strong>Note: Our coding/programming material assumes that you have some familiarity with Python. If you don&#8217;t, go learn it or be left behind.</strong></em></p><div><hr></div><p><em>Except for Betfair&#8217;s guides [takes some time to find the good stuff, but check <a href="https://betfair-datascientists.github.io/">this site</a> out] there really isn&#8217;t much content available on this online. Ran some quick searches &amp; all we could find was a bunch of third-party software begging you to tell them all about your potential edges [our interpretation].</em></p><div><hr></div><h3>The Process</h3><p>The Process of Building &amp; Running A Betfair [or really any betting bot] Bot can be split into four phases.</p><ol><li><p><strong>Research/idea generation</strong>. This is the part where you&#8217;re supposed to come up with the potential inefficiency you want to take advantage of. If you&#8217;ve never been particularly active in the exchange markets your creativity levels will most likely be terrible at this point. That&#8217;s expected: no one invents theorems without studying math, similarly no one invents +EV models/angles without studying the markets. If this is the case for you [brain fog], use this guide solely to set up collection/storage of hard-to-find data &amp; then start analyzing that same data. Might find something&#8230;</p></li><li><p><strong>Design</strong>. When you&#8217;ve discovered and want to begin trading an edge, it&#8217;s more than helpful to create proper designs for both the program that will execute your instructions &amp; the exact trading methodology that&#8217;ll underpin your strategy. </p><ul><li><p><strong>Gathering Information/Updates</strong>. </p><p>Will you subscribe to a stream of order book updates &amp; handle them one by one, or rather perform a quick check every five seconds or so [e.g. after some background calculations have been completed]? Maybe a combination where you switch to &#8216;stream mode&#8217; closer to post time? </p></li><li><p><strong>Integration With Other Systems</strong>. </p><ul><li><p>At the very least you&#8217;ll probably want to call a couple of routines on the Betfair Data you&#8217;re receiving from the feeds mentioned above to determine whether you&#8217;ll be trading that particular horse/game or not. </p></li><li><p>More advanced users may want to use new updates as input to a more sophisticated model that&#8217;ll be called &amp; run repeatedly. </p></li><li><p>Perhaps [most likely] you want to manipulate &amp; write/store the data to a database/in memory, will this be done sequentially within the &#8216;trading process&#8217; [time between you receive an update &amp; it being fully handled by your trading module goes up] or from a separate, parallel one? </p></li><li><p>If your trading depends on the evolution throughout the last 1 000 updates, where will you store this data? How will you access it? In a proper database? A local JSON file? Keep it in memory [what if the Bot has to be relaunched]? Questions that need to be addressed. </p></li></ul><p><strong>You either think this part through at this step [before writing a single line of code], or find yourself frustrated &amp; wasting tons of time downstream.</strong></p></li><li><p><strong>Low-Level Trading Decisions</strong>. </p><ul><li><p>What will your execution look like? Maker/taker orders, or a combination of them? Iceberg/hidden orders to avoid showing your intentions or visible ones [positive for queuing position &amp; getting degen attention to your trades]?</p></li></ul><ul><li><p>How are you going to determine your sizing? </p></li></ul><ul><li><p>Trading in/out of positions repeatedly? </p></li></ul><ul><li><p>Checking for liquidity before sending trades? What if the liquidity disappears while your orders are on their way to the exchange? </p></li></ul><ul><li><p>Will you introduce caps on max exposure/number of trades in a particular market [maybe first &amp; foremost to prevent bugs]? </p></li></ul><ul><li><p>Any other exception handling?</p></li></ul></li></ul></li><li><p><strong>Construction</strong>. Now that you&#8217;ve created a great design for your project, it&#8217;s time to actually build it all out. Recommend you do it yourself [or at least that you&#8217;re well involved with the coding] but in case you&#8217;re uncomfortable with coding/not willing to spend time learning it, it&#8217;s of course an option to outsource this part. </p><p>The actual programming will naturally give rise to plenty of implementation details/questions you&#8217;ll want to think through properly so in practice most likely to find yourself iterating between (2) &amp; (3).</p></li><li><p><strong>Continuous re-evaluation</strong>. The first draft will never be the optimal version of a gambling bot. Optimization is an ongoing process &amp; as the Bot keeps taking trades day in day out you&#8217;ll automatically find yourself asking a bunch of questions about its performance, strategy &amp; execution. And adjust accordingly. By continually running this sort of trial &amp; error you get closer &amp; closer to the perfect version of your strategy, until one day you simply deem it good enough &amp; &#8216;let it run&#8217; [at least until a stupid nerd comes along &amp; starts stealing your trades, heh]. In order to complete this evaluation/optimization stage as efficiently as possible it&#8217;ll be necessary to log &amp; store everything that has even the slightest chance of providing answers to future, often yet unknown, questions [just log it all]. Two examples:</p><ul><li><p><strong>Bet Logging</strong>. Hard to improve a &#8216;betting system&#8217; without proper logging of the bets/trades/positions it&#8217;s taking. Many ideas that &#8216;should work&#8217; actually do when sufficiently constrained, but people never find out because they group them with other -EV bets &amp; end up never seeing the difference.</p></li><li><p><strong>&#8216;Action&#8217; logging</strong>. When the Bot performs any action whatsoever [e.g. sends a trade to the exchange], you log it &amp; store it for future [error?] analysis. Simple as that. Aim to surveil the Bot like a bank would do a bettor &amp; you&#8217;ll be good to go.</p></li></ul><p><strong>Champions adjust.</strong></p></li></ol><div><hr></div><p>The overall concept &amp; a clear, precise process of how to make the transition from a vague idea to a complete, proper implementation has now been defined.</p><p>With the recipe laid out in front of us, it&#8217;s time to cook up a [the best?] Betting Bot.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!M3Rm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!M3Rm!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 424w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 848w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!M3Rm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg" width="256" height="304.574358974359" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1392,&quot;width&quot;:1170,&quot;resizeWidth&quot;:256,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;He's cooking. Are you feasting? : r/Catmemes&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="He's cooking. Are you feasting? : r/Catmemes" title="He's cooking. Are you feasting? : r/Catmemes" srcset="https://substackcdn.com/image/fetch/$s_!M3Rm!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 424w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 848w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!M3Rm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9879c66f-ca44-4bd6-af7d-1d4f687301d9_1170x1392.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Code repository available <strong><a href="https://github.com/BowTiedBettor/BetfairBot">here</a></strong>. As usual recommended to move back &amp; forth between text and code to make sure you&#8217;re actually following while reading.</p><div><hr></div><h3>(1) Research/Idea Generation</h3><p>Repeatedly been shilling the importance of staying up-to-date on the *exact* rules/features of the platforms/exchanges you&#8217;re using. Whether it&#8217;s sports, crypto or tradfi doesn&#8217;t matter. Why?</p><ul><li><p>The &#8216;fun stuff&#8217; is what keeps the people excited &amp; their dopamine levels high &#8594; no one takes the time to actually read through the rules/docs *properly*. The crowd prefers pure guessing &amp; yelling &#8216;SCAM&#8217; as they&#8217;re caught by surprise when a market is settled according to the rules, but against their &#8216;logic&#8217;. <strong>Conclusion:</strong> <strong>If you&#8217;re one of the few who&#8217;ve studied the design of the game diligently beforehand, you&#8217;ll be taking their money when this happens</strong>. </p></li><li><p>Larger players are in many cases constrained and/or incentivized in different ways by such rules &amp; consequently forced to adjust their action. You&#8217;re much more likely to understand how &amp; why certain things [will] play out if you can put yourself in the perspective of a main market participant and think about his/her optimal strategies under different setups/conditions. </p></li></ul><p><em><strong>Example</strong>: Free sizing is an important ingredient for improved market efficiency since [in general/on average] high stakes gamblers possess higher value opinions. Now what if the max stake per ID/account in the &#8216;should be highly efficient&#8217; parimutuel pool is capped at ~1/1000 of the total pool size? </em></p><p>Really doesn&#8217;t take much time &amp; thinking to either create new edges and/or improve/increase confidence in existing ones by integrating &#8216;rule-inspired&#8217; ideas.</p><div><hr></div><p>To illustrate the advantage of staying up to date on new features, we&#8217;ll have today&#8217;s Betting Bot targeted at a fairly recent addition to the Betfair website/UI, the &#8216;Betfair Price Beacons&#8217;.</p><p><em>No, don&#8217;t believe this will be a money making machine [or it wouldn&#8217;t be shared here]. Hopefully slightly more interesting than your average tutorial though. </em></p><p><em>[Haven&#8217;t checked potential profitability so in case you appreciate the angle &amp; spend some time sharpening it might earn a dollar or two ;).]</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FZm3!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FZm3!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 424w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 848w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 1272w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FZm3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png" width="1410" height="386" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:386,&quot;width&quot;:1410,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:72664,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FZm3!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 424w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 848w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 1272w, https://substackcdn.com/image/fetch/$s_!FZm3!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b91a7e7-cc3c-452f-8e36-6368ce2466a1_1410x386.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong><a href="https://support.betfair.com/app/answers/detail/a_id/10315/">Beacons FAQ</a></strong>. </p><p>The Idea we&#8217;ll be trading is the following: </p><p><strong>Traders trust trends &amp; enjoy catching on to larger price moves. The new &#8216;Beacon Feature&#8217; makes it easier for manual traders to do so. Therefore, if we position ourselves in front of them &amp; have our orders meet theirs just as the thresholds of the beacons have been passed, we&#8217;re more likely than usual to get matched at a price of our choice.</strong></p><div><hr></div><h3>(2) Design</h3><p>As with business ideas, coming up with something that *potentially could be a clever trade* is easy, while the implementation &amp; the conversion of thoughts into money is the difficult part. </p><p><em>Side Note: Obvious ideas will get you into crowded trades. Yes, in theory [perhaps even in backtests] they might work out well but in practice you&#8217;ll always see a quicker/smarter nerd come along &amp; pick the profits up in front of you. Solution: either become that nerd [hard] or develop more sophisticated angles [again hard].</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!A4cr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!A4cr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 424w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 848w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 1272w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!A4cr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp" width="564" height="474.99375" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:539,&quot;width&quot;:640,&quot;resizeWidth&quot;:564,&quot;bytes&quot;:32258,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!A4cr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 424w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 848w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 1272w, https://substackcdn.com/image/fetch/$s_!A4cr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f5b7505-5688-418a-80fc-93c61718c4f1_640x539.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Before we proceed with construction we&#8217;ll have to define &amp; clarify exactly how our thesis is supposed to be transformed into real world $&#8217;s.</p><p>Recall the idea.</p><blockquote><p><strong>Traders trust trends &amp; enjoy catching on to larger price moves. The new &#8216;Beacon Feature&#8217; makes it easier for manual traders to do so. Therefore, if we position ourselves in front of them &amp; have our orders meet theirs just as the thresholds of the beacons have been passed, we&#8217;re more likely than usual to get matched at a price of our choice.</strong></p></blockquote><div><hr></div><p><strong>Trading Methodology</strong></p><ul><li><p>*Manual traders* are mentioned [find it hard to believe bots will be influenced by the emojis, but who knows]. Which markets have high manual activity &amp; when are those manual gamblers active? <strong>Honestly don&#8217;t know &#8594; we&#8217;ll just run the strategy 24/7 on all UK races for now &amp; see what happens</strong>.</p></li><li><p>The anchor price [from which the 7.5 % drop/drift is determined] will be crucial to get right, as everything depends upon it. It&#8217;ll be necessary to construct a <em><strong>get_anchor_price</strong></em> routine that when fed a horse/a runner book [or possibly a sequence of them] returns the correct anchor price for the selection. </p></li><li><p>A reasonable execution of this trade should be the following [we&#8217;ll handle the dropping odds/steamer case here, equivalent for drifters but in the opposite direction]: </p><ol><li><p>Compute both the anchor &amp; threshold prices [7.5 % below the anchor price].</p></li><li><p>Analyze the order book around the threshold price &amp; add lay orders within a few ticks of the threshold price. </p><p><em>What&#8217;a few ticks? 1? 10? There&#8217;s a tradeoff between likelihood of being matched &amp; profit size per successful trade to consider here.</em></p></li><li><p>Whenever a price trends towards the threshold price, add extra pressure with a bunch of back orders to push the price past the threshold point &amp; have the manual traders pile in to back it.</p><p><em>Note that the &#8216;Betfair Beacon&#8217; [the information symbol] will disappear if the price reverses &amp; crosses the 7.5 % line again. Might make sense to move our trade one or two [or more] ticks to the left.</em> </p></li></ol><p><strong>EXAMPLE</strong>: Jumeira Vision trades at ~4.50-4.60 with an anchor price of 4.70 [threshold price of 4.3475]. We&#8217;ll prepare for a potential trade by adding lay orders at 4.20 &amp; 4.10 [want decent queuing positions]. As the &#8216;best available back price&#8217; transitions to 4.30, we&#8217;ll back it &amp; thus have the symbol &#8216;turned on&#8217;. If our thesis is correct, backers will come in &amp; join the steam [<em>more precisely we, on average, hope to see &#8216;more backers than layers&#8217; under this setup</em>].</p><ol start="4"><li><p>Include additional order book checks to avoid taking the back side on horses with a wall of lay orders before ours [unlikely to be matched on the second leg of the trade].</p></li></ol></li></ul><div><hr></div><p><strong>Bot Design</strong></p><ul><li><p>Our Bot will be built in <a href="https://github.com/betcode-org/flumine">Flumine</a> &#8594; won&#8217;t have to worry too much about the communication with the Betfair Engine/Servers, Flumine takes care of this for us.</p></li><li><p>We&#8217;ll connect to a Betfair data stream which pushes all order book updates. As an update comes along, we&#8217;ll run our trading logic on it &amp; process/add/remove orders + store relevant parts of the data for analysis/logging purposes.</p></li><li><p>At the completion of a trade [back &amp; lay orders fully matched], we&#8217;ll log it in a local file &amp; possibly send information about it via Email/Telegram or any other notification service.</p></li><li><p>The infrastructure for the Bot will consist of three main parts/mini-modules:</p><ul><li><p><strong>Trading &amp; Help Routines</strong>: Necessary and/or helpful functions (for instance <strong>get_anchor_price</strong> for a given horse/object, <strong>send_to_telegram</strong> for notifications&#8230; ). Called while processing order book updates and/or orders from within the Strategy discussed below.</p></li><li><p><strong>Strategy</strong>: Defines our Strategy/Trade Idea as a Python Class. Methods such as <strong>check_market_book</strong>, <strong>process_market_book</strong>, <strong>process_orders</strong>. Uses functions from the <strong>Trading &amp; Help Routines </strong>to beautify &amp; readify the code.</p></li><li><p><strong>Trading Instance/Execution Program</strong>: Responsible for defining trading parameters, launching the Flumine Instance &amp; feeding it our Strategy.</p></li></ul></li></ul><div><hr></div><h3>(3) Construction</h3><p>At this point our idea has been well defined &amp; the design completed.</p><p>Thus, it&#8217;s time to dive into the code.</p><p><em>We&#8217;ll only comment on the most important aspects here &amp; let you investigate the implementation for yourself <a href="https://github.com/BowTiedBettor/BetfairBot">over at Github</a>. </em></p><p><strong>Quick overview of Flumine specifics [bot.py file]:</strong></p><ol><li><p>At initialization, the Flumine Framework/Trading Bot is basically &#8216;naked&#8217;, it sits there &amp; awaits further instructions.</p></li><li><p>Next we equip it with the most basic information: login details + which events/races to &#8216;listen to&#8217; [receive updates from]. Bot completes the stream listening part by setting up subscriptions to the relevant Betfair Order Book Feeds [the markets matching your criteria/filter], essentially sends a &#8216;hey set me up for these races&#8217;-request to Betfair.</p></li><li><p>We then add strategies [implemented as Python Classes] to it. In our case we only run one [<strong>BetfairBeacons</strong>] but there&#8217;s nothing stopping you from running a bunch of them. When receiving new updates, the Bot will simply redirect/forward the content to each one of your strategies &amp; run them more or less in parallel [well, we skip the &#8216;tism details here].</p></li><li><p>Finally we adjust the Trading Controls &amp; [possibly] add custom Background Workers.</p><p>Trading Controls are hard stops that prevent the Bot from executing certain transactions. <strong>Example</strong>: StrategyExposure checks that orders doesn&#8217;t invalidate max caps [that you&#8217;ve determined yourself] on order size &amp; total selection exposure [how much is risked on a given horse].</p><p>Background Workers are code routines that are being run in the background to keep everything clean &amp; up-to-date and/or handle &#8216;outside tasks&#8217;. </p><p><strong>Example I</strong>: Every 45 seconds, update numbers/parameters by fetching &amp; manipulating data from a third-party source. </p><p><strong>Example II</strong>: If more than 30 seconds has passed since the last race of the day went In-Play, terminate the Bot.</p></li></ol><p><em>For more information on the inner workings of Flumine, check the <a href="https://betcode-org.github.io/flumine/">docs</a>. </em></p><div><hr></div><p><strong>The lowest level parts of the implementation were left undone, would simply take too much time for no return at all. Brief comments on what needs to be done for the Trading Bot to be 100 % ready for deployment:</strong></p><ul><li><p>Implementation of the <strong>update_anchor_prices</strong> routine [<strong>tradingroutines.py</strong> file]. Seems like it will be enough to hold the latest version of each RunnerBook [Order Book for a runner] in memory &amp; compare the traded runner volume between version N &amp; version (N+1). Whenever it crosses the required volume for the given odds range (i.e. traded selection volume at time N is below the Betfair threshold, volume at (N+1) above), the anchor price has been determined. Add the selectionId &amp; the anchor price as a key-value pair &amp; return the updated dictionary.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!AwYi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!AwYi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 424w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 848w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 1272w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!AwYi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png" width="597" height="194" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:194,&quot;width&quot;:597,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:26814,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!AwYi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 424w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 848w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 1272w, https://substackcdn.com/image/fetch/$s_!AwYi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59bd06b7-d836-44e7-ab90-7bc83e8ca8c4_597x194.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Rules for Betfair to form an anchor price</figcaption></figure></div></li><li><p><strong>Exact trading logic</strong>. Probably best implemented completely within the <strong>process_market_book</strong> method [<strong>strategies.py</strong> file]. Whenever a new anchor price is determined, initialize a Trade for the selection. Then at each new stream update you may want to calibrate/adjust this Trade with new orders/removal of orders &amp; so on. Tons of freedom here and there&#8217;s really no correct way to do this. </p><p><em>Note that you&#8217;ll need to consider precise Betfair Order Rules [price, order size etc.] to avoid getting a bunch of violations</em>.</p></li></ul><div><hr></div><h3>(4) Continuous Re-evaluation</h3><p>This is where the trial &amp; error begins. Now that the Bot is launched and up and running on the exchange, we&#8217;ll of course be interested in monitoring, analyzing and improving its performance. Different strategies give rise to different analysis and for our specific trading strategy it may be beneficial to put some extra emphasis on questions such as:</p><ul><li><p>Given the first leg of the trade, what percentage of the time is the next leg matched on the correct/wrong side of it?</p></li><li><p>Would the performance be improved if we moved the whole trade/parts of it two ticks to the left/right? Don&#8217;t just try 1 000 angles here &amp; go with the one that fits your data best, statistical common sense [<strong>Bayesian Thinking</strong>] still applies.</p></li><li><p>What percentage of the size of the second leg do we tend to get matched on when we get matched? If ~100 %, increase size. If less, reduce size?</p></li><li><p>Given the price crossing our threshold price, what does the price distribution look like over the next 1/5/10/15 minutes?</p></li></ul><p><strong>***ALWAYS PLOT EVERYTHING***</strong></p><p>Then, given answers, we adjust the code and deploy GamblingBot v2.</p><p>&amp; repeat.</p><p>Iteration yields magic. </p><p>Always Be Iterating.</p><div><hr></div><h3>Summary &amp; general BowTiedBettor notes</h3><p>Turned into one of our longer posts, we hope you enjoyed the read. More Betfair content will be shared&#8; but might take some time since most of our subscribers are US based &amp; don&#8217;t have access. </p><p><em>Note I: <a href="https://prophetbettingexchange.com/betting-api">Prophet Exchange</a> is available in NJ &amp; appears to offer all their customers API access. If in NJ, give it a try. Never checked it out so no clue about liquidity/spreads etc., feel free to share any findings. </em></p><p><em>Note II: With a high-gambling-volume election coming up we wouldn&#8217;t be too surprised if we could invent a post or two that could spur some American curiosity.</em></p><p><strong>Feel free to use the Comments section [&amp; the Discord] as much as you please if you found today&#8217;s content interesting &amp; feel like getting to work.</strong></p><div><hr></div><p><strong>General BowTiedBettor notes:</strong></p><ul><li><p>Currently working on a &#8216;The Path To $100 000 in Betting Profits&#8217;-post. Will lay out the most efficient route to make a decent chunk out of gambling markets *without* having to devote your life to it. Includes [of course] but not limited to bonus rugging. Can think of it as a one-time-robbery. When you&#8217;re done you&#8217;re *done* [won&#8217;t be any easy money left for you to collect]. Stay toon&#8217;d! </p></li><li><p>Our promise of &#8216;<strong>high volume streams of top quality bets</strong>&#8217; at the launch of BowTied BetPicks has been kept very well so far. </p><ul><li><p>UK Horse Racing Channel is averaging ~50 bets per day, ROI ~20 %.</p></li><li><p>US Sports Channel at ~70 bets per day with a ~8 % ROI. </p></li></ul><p><em><strong>Note: Real, practical figures probably slightly lower since bets arrive while you sleep and/or live life [affects volume] + a subset of them are hard to catch at the logged price but still offer value at the tick [or ticks] below [affects ROI].</strong></em> </p><p>Personal BetPicks bets [currently have two guys tailing as much of the action as possible ;)] has generated a 17 % ROI over ~1 300 bets for the horses &amp; a 9 % ROI over ~750 bets for sports.</p></li></ul><p>Think that&#8217;s all for today. </p><p>Until next time&#8230;</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[Learning from Odds Moves]]></title><description><![CDATA[Level 3 - WAGMI]]></description><link>https://www.blog.bowtiedbettor.com/p/learning-from-odds-moves</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/learning-from-odds-moves</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Fri, 15 Dec 2023 03:27:11 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/699a751b-b851-4d7f-954b-600c996436f6_1200x894.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler!</p><p>Today it&#8217;s time for an exhaustive overview of <strong>odds moves in betting markets</strong> &amp; as you&#8217;ll notice along the way there&#8217;s *a lot* to say about them.</p><p><em>There&#8217;s somewhat of a division into two camps within the betting community: steam chasers [with the standard angle being: check odds at Pinnacle &amp; look for/chase large deviations at soft books] &amp; anti-steam chasers/&#8217;originators&#8217;. </em></p><p><em><strong>Quick Explanation: &#8220;Chasing Steam&#8221;</strong> is <strong>a strategy where a bettor can move quickly to get down a wager at a slower sportsbook that has yet to change their line with the rest of the market</strong>.</em></p><p><em>Weird ideas prosper in both groups.</em></p><p><em>A subset of the steam chasers, especially the newer ones, think chasing steam is the only &#8216;mathematically sound&#8217; way to make money from betting markets. If they can&#8217;t see clear value against the rest of the market, there cannot be +EV involved. Delusional.</em></p><p><em>On the other hand, the &#8216;originators&#8217; [meme term since &gt;80 % are just memorizing [either manually or by use of computers] what the market has revealed to them before, not much &#8216;originality&#8217; in doing that] have transcended the steam chasing stage and instead transitioned into the art of dunking on the chasers. Strange phenomenon as they&#8217;d probably increase their profits quite a bit by paying more [automated] attention to what&#8217;s happening in the marketplace during game/racedays. Many cases where it makes sense to listen to what other &#8216;originators&#8217; are trying to tell you. </em></p><p>The reality? As usual the whole is greater than the sum of its parts. </p><p>Tracking moves at sharp books/exchanges to beat soft books can be a clever way to increase volume early on in your &#8216;betting career&#8217;, but as you get thrown out by sportsbook after sportsbook the game changes &amp; you&#8217;ll at some point have to build/come up with something more sophisticated. </p><p>On the other hand, efficient extraction of information by tracking market moves will always be an excellent complement to a fundamental model [if you disagree/are doubtful you&#8217;ve probably never *really* tried it out], so why not spend some time trying to figure this part of the game out as early as possible?</p><p><em>Note I: This isn&#8217;t going to be another *boring* &#8216;how to chase steam&#8217;-post. If you&#8217;re looking for that stuff please ask ChatGPT or visit any of the hundreds SEO-maxxing/affiliate gambling websites. We&#8217;ll try to keep our content on a somewhat more interesting level, heh. </em></p><p><em>Note II: A hidden advantage of tracking as much as possible in the marketplace is that you occasionally stumble upon fairly lucrative edges &#8216;by chance&#8217;. Relates to another concept: how to look for an edge in a given market. Don't just sit there &amp; observe the market manually like a [redacted]. Track *all* the info within the marketplace for a few months, store it, then do some heavy analysis with a million plots &amp; see what you find. </em></p><div><hr></div><h3>Reasons to track odds moves &amp; things to be aware of</h3><p>A couple of reasons for why it might make sense to track what&#8217;s happening to prices/liquidity/volume throughout a day.</p><ol><li><p>Using a highly liquid &#8216;source&#8217; to beat lower liquidity markets. <strong>Example</strong>: Using Betfair Horse Racing prices to take advantage of inefficient Quaddie Jackpot Pools in Australia. A quadrella bet, affectionately known as the quaddie, is a bet where your objective is to <strong>select the winner of four consecutive races. </strong>Exotic bets such as the Quaddie usually attract a decent amount of -EV bettors [<em>small chance to win huge</em>] &amp; when pools are enlarged with &#8216;Jackpot&#8217;-money there are times where those exotics present opportunities with even negative track takes [<em>no *need* for negative track takes, usually it lets you increase your sizing quite dramatically though</em>]. Combine a positive sum game with a crowd of clueless gamblers &amp; you know what that means.</p><p><em>Note: We don&#8217;t know anything about <strong>Quaddies</strong> &amp; have never bet them so might not be as lucrative as indicated. However, speaking from similar experiences: we&#8217;d at least have a look!</em></p><p>What&#8217;s *very important* with this strategy of using highly liquid markets to beat less liquid/dumber ones is to verify that your source [Betfair in this case] really is a source:</p><ul><li><p>It must have a <strong>significantly larger handle</strong> than any other platform [or combination of platforms] that&#8217;s making markets on the same events and/or [even more important] learning from the source. If the turnover in the Quaddie Pool is 10X the early Betfair Liquidity &amp; every &#8216;+EV gambler&#8217; is checking BF prices to come up with Quaddie bets, you should take a moment to think about the incentives this structure generates.</p></li><li><p>The source should <strong>learn continuously</strong> <strong>&amp; react appropriately</strong> to/from the information it obtains from its market participants. For instance, if your source is a standard sportsbook it&#8217;s a great advantage if they&#8217;ve profiled their customers &amp; adjust pricing not only on volume but on the pair (volume/size, customer ID).</p></li><li><p>Preferably <strong>limits are raised/increased to a &#8216;high enough&#8217; level throughout the day</strong>. Otherwise you can have situations where a few sharp bettors lock in their max limits at open [often best +EV offered here] just to see a crowd of noisy gamblers do all kinds of weird things to the prices throughout the rest of the day [the sharps can&#8217;t correct anything since they&#8217;re &#8216;all in&#8217;/bet their limits already]. As long as you know that this is the case can still use &#8216;non-limit-increasing&#8217; sources though [trust super early action, ignore the rest].</p></li><li><p><a href="https://www.thoroughbredracing.com/articles/2102/how-outlaw-exchanges-threaten-integrity-global-horse-racing/">A recommended read</a>.</p></li></ul></li><li><p><strong>Identifying short time-frame bets/trades</strong>. Been talking about this from time to time on Twitter. There&#8217;s a ton of action that you won&#8217;t notice for one reason and one reason only: you&#8217;re not looking. How do you expect to see that &#8220;12 % of the pool&#8221;-bet that came in last second, if you didn&#8217;t log the price &amp; volume before and after it came in? What about the weird orders that occasionally come in &amp; eat the books ~25 minutes to post time for the UK dogs? Ah, you haven&#8217;t seen them? Of course you haven&#8217;t, they&#8217;re gone as fast as they come in. The alert trader knows that he must take them off the table before anyone notices, or he&#8217;ll gain competition. But he won&#8217;t trap us, right?</p></li><li><p><strong>Learning how to optimally get your size on &amp; understanding how other large punters are operating</strong>. Let&#8217;s say there are seven sportsbooks offering odds on your main market &amp; each one of them takes ~$200 on an outcome [on average]. By tracking the bookmakers in parallel and placing a couple of large bets spread across all sites, you&#8217;ll soon realise that sportsbook 6 looks at/learns from sportsbook 3 which looks at sportsbook 1 &amp; 2. However, sportsbook 1 &amp; 2 is much larger than the rest so they don&#8217;t care too much about what&#8217;s happening at the other places. Then, what are you supposed to do with this information? Well:</p><ul><li><p>Unless you&#8217;re happy taking lower prices, you&#8217;ll of course place your bets in the order (6) &#8594; (3) &#8594; (1 &amp; 2). This way you&#8217;ll be safe from bookies noticing your money/information *before*  you hit them.</p></li><li><p>Now that you know how *you* should operate, you also know how *other sharps* are [or at least should be] operating. Conclusion: you set up notifications for sharp drops at sportsbook 6 &amp; join the movement.</p></li></ul></li><li><p><strong>Finding huge discrepancies &amp; large deviations</strong>. Not much to say here, as obvious as it gets. If there&#8217;s a 40 % drop/drift in an outcome you&#8217;ll want to know this. If a $20 000 order/bet [<em>insider info/rich owners or perhaps both? or a misclick/bot going crazy [yes, has happened several times]</em>] comes in at the exchange/in the parimutuels, you want to get this information. If all bookies have 2.10 but the liquid one runs to 1.60, again you want to know this. <strong>Just. Track. It.</strong></p></li></ol><div><hr></div><h3>How to do it?</h3><p>Generally two options on how to actually take your &#8216;odds tracking ideas&#8217; from ideas to real world implementations.</p><ul><li><p>Join existing software services. <strong>Example</strong>: Subscribe to a couple of information feeds &amp; sign up for an odds screen service.</p><p><strong>Advantages:</strong></p><ul><li><p>Efficient, doesn&#8217;t have to build anything &amp; can get started tomorrow.</p></li></ul><p><strong>Disadvantages:</strong></p><ul><li><p>Can be pricey.</p></li><li><p>Miss out on the opportunity to learn [&amp; stumble upon other things] while you&#8217;re building.</p></li><li><p>Restricted to the exact logic provided by the software vendor.</p></li><li><p>Effectively handing the software provider your data [assume everything is logged &amp; analyzed] for free [or even at a huge cost depending on what you&#8217;re doing].</p></li></ul></li><li><p>Build it yourself. [<em>Recommended route, in particular for the many devs we have in our subscribers list</em>].</p><p><strong>Advantages:</strong></p><ul><li><p>Learning while doing.</p></li><li><p>Full generality, can choose to look at whatever you&#8217;d like to investigate.</p></li><li><p>Removes/reduces your dependency on other actors in the ecosystem.</p></li></ul><p><strong>Disadvantages:</strong></p><ul><li><p>Costs both time &amp; money.</p></li></ul></li></ul><p>Note that &#8216;building it yourself&#8217; doesn&#8217;t mean building it *yourself*. If you don&#8217;t enjoy/have time for hours &amp; hours of coding, focus on properly designing everything and then outsource the actual construction to others. <span class="mention-wrap" data-attrs="{&quot;name&quot;:&quot;BowTiedCaptain&quot;,&quot;id&quot;:109149355,&quot;type&quot;:&quot;user&quot;,&quot;url&quot;:null,&quot;photo_url&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/b2d23409-2498-447a-8820-b8d7b1d96c40_1024x1024.png&quot;,&quot;uuid&quot;:&quot;84d2ae00-bf16-495d-90c4-5b6ee6bd7856&quot;}" data-component-name="MentionToDOM"></span> has all you need to know for this, read his Substack &amp; check his Twitter. Also if possible get yourself a partner [but make sure it&#8217;s a great partner].</p><p><em>Related: Sincerely believe that you could run a profitable business in <strong>Australia</strong> only by tracking odds moves across horse racing bookies &amp; hitting them at sites that are lagging. Shouldn't take long before you learn in what order the 'real' punters place their wagers [even without having to become one] which should help tremendously. Would definitely do this ourselves if we were AUS based. Exists a couple of similar services but the greatest EV when it comes to these things always lies in <strong>specialized software</strong>, i.e. software that's looking for specific setups, not just tracking everything &amp; spending tons of time behind an odds screen trying to infer things [inefficient].</em></p><p><strong>If you&#8217;re serious, happy to help with &amp; discuss anything. Twitter DM&#8217;s or comments section below.</strong></p><div><hr></div><h3>Final stretch</h3><p>Not a single picture in today&#8217;s post&#8230; ;)</p><ul><li><p>Been spending a decent amount of time at the intersection of horse racing &amp; machine learning lately, hopefully ready to share some of that stuff soon. Have a couple of brutal racing autists reading this Blog &amp; they need their fair share of content as well&#8230;</p></li><li><p>BetPicks US has now been launched. Don&#8217;t expect ROI&#8217;s on par with the UK/AUS Horse Racing versions but should get better &amp; better for each update, and probably fairly good already [<em>letting it run for a few weeks until we perform an analysis on the notifications posted in the Channel, to see if there are ways to make it sharper</em>].</p></li></ul><p>Finally, something to think about until next time:</p><div class="pullquote"><p>Consider a very liquid order book. </p><p>What's more informative? </p><p>A: Price moving from 5.00 -&gt; 4.00, traded volume is high. </p><p>B: Price moving from 5.00 -&gt; 4.00, traded volume is low.</p></div><p><strong>That&#8217;s all for today.</strong></p><p>Until next time&#8230;</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[Betting meets automation]]></title><description><![CDATA[Lose Money While Sleeping]]></description><link>https://www.blog.bowtiedbettor.com/p/betting-meets-automation</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/betting-meets-automation</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Wed, 25 Oct 2023 02:39:24 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!7JWz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Avatar!</p><p>Today we&#8217;ll discuss something we&#8217;re fairly certain our readers will love to read about, the act of applying automation to different betting market pursuits.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7JWz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7JWz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 424w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 848w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7JWz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg" width="472" height="358.65429234338745" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:655,&quot;width&quot;:862,&quot;resizeWidth&quot;:472,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Pepe hacker - pepe post - Imgur&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Pepe hacker - pepe post - Imgur" title="Pepe hacker - pepe post - Imgur" srcset="https://substackcdn.com/image/fetch/$s_!7JWz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 424w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 848w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!7JWz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82cfedd0-443a-4408-b110-9d11c928e337_862x655.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Before we begin, a side note: </em></p><p><em>As with all things automation you&#8217;ll always find a bunch of larps looking to automate everything despite having no idea regarding *what* they&#8217;d like to automate. They want to build betting bots, but have zero clue about what the bots are supposed to bet/trade. They&#8217;re currently scraping the whole web on sports data, but haven&#8217;t spent a single thought on how they&#8217;re going to use it. <strong>Don&#8217;t fall for this automation/coding psyop</strong>. Sounds smart, is completely deranged. You think you&#8217;re moving forward [ahhh I&#8217;m cooooding] but you&#8217;re literally just wasting precious time. </em></p><p>The real path is instead: </p><ul><li><p>Spend some time in the betting markets. </p></li><li><p>Come up with an angle/idea. </p></li><li><p>Think everything through properly. </p></li><li><p>Define proper requirements [what you <em>require</em> from your program/what your program is supposed to do for you]. </p></li><li><p>*Then* build. </p></li></ul><p><em>When you find yourself performing a repetitive, well-defined *money-making* pattern on an everyday basis, you automate. Not before. </em></p><div><hr></div><h3>Possible coding projects within the betting sphere</h3><p>Now that we&#8217;ve warned you not to initialize time-consuming projects without a proper design of how they&#8217;re expected to evolve through time, let&#8217;s jump into the fun stuff &amp; discuss a couple of plausible use-cases for code in betting. </p><ul><li><p><strong>News trading systems</strong>. Trainer just reported a change in horse equipment? Scratch in a race that changes the expected pace/tactics in the race and/or doesn&#8217;t affect rest of the field linearly? Player out in tonight&#8217;s NHL game &amp; prop bets lagging for the one taking his place in the PP unit? Doesn&#8217;t require much thinking to get this right [<em>of course even better if you manage to come up with a set of subtle second order effects</em>] &amp; there are tons of easy +EV-dollars to pick up. <strong>In particular a great complement to an existing operation.</strong></p><p><em>There are people out there reading this thinking &#8220;what stops the bookie from reacting to the news flash before you get the chance to do so?&#8221;. If this is you, unsubscribe &amp; enjoy your crickets.</em></p></li><li><p><strong>Scrapers</strong> in general. An absolutely fundamental part of any serious betting endeavour. Data will be necessary. How do you get data? You scrape it. You&#8217;ll need odds, how do you get odds? You scrape it. News trading systems without scrapers? Lol! </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!uue8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!uue8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 424w, https://substackcdn.com/image/fetch/$s_!uue8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 848w, https://substackcdn.com/image/fetch/$s_!uue8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 1272w, https://substackcdn.com/image/fetch/$s_!uue8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!uue8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png" width="434" height="202.43624161073825" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/23b006bd-b935-43b3-a985-46b7912b9454_596x278.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:278,&quot;width&quot;:596,&quot;resizeWidth&quot;:434,&quot;bytes&quot;:104664,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!uue8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 424w, https://substackcdn.com/image/fetch/$s_!uue8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 848w, https://substackcdn.com/image/fetch/$s_!uue8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 1272w, https://substackcdn.com/image/fetch/$s_!uue8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23b006bd-b935-43b3-a985-46b7912b9454_596x278.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Scrape, scrape, scrape</figcaption></figure></div></li><li><p><strong>Oddscheckers</strong>. Building bots to avoid spending hours each day scrolling through pages &amp; pages of odds only to check whether they meet your criterias or not is most likely one of the most efficiency-generating upgrades you&#8217;ll ever do to your betting. Define a bunch of basic checks that will filter out plausible bets within a reasonable margin of error (<em>no need to be perfect here since you&#8217;ll have a second look &amp; place the bets manually anyway</em>).</p></li><li><p><strong>API&#8217;s for parimutuel providers/sportsbooks</strong>. Far from all gambling actors offer their customers Betting API&#8217;s &amp; simple programmatic ways to enter their pools &amp; books. If that&#8217;s the case and you nevertheless find yourself having a bunch of daily action [<em>in particular if triggered by events you can integrate with your code</em>] at such places it may make sense to construct a basic API for automation of the final step of the betting process, i.e. the actual wagering. No need to build something crazy, a browser automation session coupled with a small collection of elementary routines [<em>create_order</em>, <em>send_order, generate_submission_file, log_order etc.]</em> can take you far.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8Twg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8Twg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 424w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 848w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 1272w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8Twg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png" width="446" height="130" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/184ff013-49be-44bb-8987-f13c007cece0_446x130.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:130,&quot;width&quot;:446,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:21727,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8Twg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 424w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 848w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 1272w, https://substackcdn.com/image/fetch/$s_!8Twg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F184ff013-49be-44bb-8987-f13c007cece0_446x130.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Not good, not terrible</figcaption></figure></div></li><li><p><strong>Exchange algos</strong>. Infinite number of angles at the exchanges for a programming wizard with an understanding of betting markets. Betfair offers an Exchange API [<em><a href="https://www.blog.bowtiedbettor.com/p/a-gentle-introduction-to-the-betfair">learn more here</a></em>] that lets you enter the chaos in a straightforward manner. Zero constraints. Think, map your thoughts into code, put money behind it &amp; let your creativity earn you money. Heaven on betting earth? Perhaps.</p><p><em>Don&#8217;t worry about the &#8216;exchange market efficiency&#8217; crowd. Real &#8216;tists enjoy maximum freedom [for everyone]. &amp; worst case you&#8217;ll obtain a lesson in adverse selection!</em></p></li><li><p><strong>Fundamental systems</strong>. In our opinion the end game for any *serious* [<em>if this isn&#8217;t your job, this doesn&#8217;t apply to you. Keep collecting your dollars &amp; don&#8217;t worry about how you do it lol&#8230;</em>] gambler. Steam chasing, news trading &amp; the rest of that stuff does a *great* job at *accompanying* a more [<em>mentally</em>] rewarding project. As you go beyond your first steps on your path to the riches you&#8217;ll lose that intense feeling of &#8216;<em>wow, I can actually make money by clicking buttons</em>&#8217; &amp; will thirst for something more stimulating [<em>as with all advice it&#8217;s possible that this only refers to the author&#8217;s personal experience/view, but whatever</em>]. After all you&#8217;ll spend hours &amp; hours each and every day on this. <strong>Move forward,</strong> <strong>build something cool</strong>. </p><p>*Not everything is numbers on a screen.*</p><p>Finally, harnessing [:D] the power of ML/stats/data analysis for something as beautiful as horse racing will deepen your understanding of statistical learning techniques &amp; software development, which translates very well into several other fields/career paths. Moreover, such a project is guaranteed to yield tons of insights into the equine world&#8230; Might come in handy when you decide to launch your &#8216;<em>Moneyball-style</em>&#8217; thoroughbred/standardbred breeding operation in 10 years! </p></li><li><p><strong>Optimizations &amp; similar engineering stuff</strong> pop up more or less everywhere no matter what you&#8217;re doing. Examples:</p><ul><li><p>Your #1 bot has always managed to find a great amount of good opportunities each day but since approx. a month ago this number has decreased dramatically. After looking into it you find this new <em>Degen Bot</em> that somehow manages to get in front of 90 % of &#8220;your&#8221; trades &amp; literally steals your EV right in front of your [<em>your bot&#8217;s</em>] nose. No way you&#8217;ll let that continue, right?</p></li><li><p>A steam chasing program seems to offer potential but since the current version of the code only lets you visit each market/selection once every 3 minutes your hypothesis is that you miss out on a bunch of short timeframe +EV bets! Time to upgrade the codebase. </p></li><li><p>This absolute Autist Play that on rare occasions puts in a &#8216;decent&#8217; amount of late money into the parimutuel pools got you deeply rekt last time when only ~35 % of the supposed bets were entered successfully. Again a speed issue. </p></li></ul><p><strong>Easy to see that efficient, clever &amp; optimized code might have a substantial effect on the P&amp;L you end up with after it&#8217;s all said &amp; done.</strong></p></li></ul><div><hr></div><h3>Development/job/projects opportunities</h3><p>Having introduced &amp; discussed a fair amount of plausible betting projects, let&#8217;s turn to what may turn out to be an interesting opportunity for some of our readers/subscribers out there. </p><p><strong>We&#8217;re constantly working on stuff that&#8217;s heavily related to the bullet points above and it is very much possible that we&#8217;ll start outsourcing parts of it going forward. </strong></p><p>Therefore, if you believe you&#8217;d find it stimulating to work on such projects, feel free to get in touch with us via Twitter DMs/Discord etc. with the following information:</p><ul><li><p>A brief overview of your coding/programming/software development experience.</p></li><li><p>A list with a subset of the above use-cases which you&#8217;d guess would be most suitable for you to help work on.</p></li></ul><p><strong>Note that there is nothing [*zero*] available at this very moment, consider this an early hint about upcoming *future* projects.</strong></p><div><hr></div><p><em><strong>How it will work:</strong></em></p><ul><li><p>Cartoon Horse will get in touch with you with a detailed set of instructions/design guidelines [<em>could be for a smaller part of a larger project, could be for a full project</em>].</p></li><li><p>Discussions back &amp; forth to make sure the project is OK with you &amp; that everything is clear.</p></li><li><p>You implement the requirements.</p></li><li><p>Computer coins switches owners.</p></li></ul><p>Please spare us psyopping edge extractors [<em>or well, we have a few dead end projects in store for you guys</em>]. <strong>Also our bets are -EV anyway.</strong> </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oEL6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oEL6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 424w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 848w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oEL6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg" width="337" height="302.28241563055064" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:505,&quot;width&quot;:563,&quot;resizeWidth&quot;:337,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;NotFurr on X: \&quot;$25 ~ 8 HOURS &#129443;&#129452;&#128042; -RT this -Post Pepe meme on tweet Below  + Tag 3 friends &#128071;\&quot; / X&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="NotFurr on X: &quot;$25 ~ 8 HOURS &#129443;&#129452;&#128042; -RT this -Post Pepe meme on tweet Below  + Tag 3 friends &#128071;&quot; / X" title="NotFurr on X: &quot;$25 ~ 8 HOURS &#129443;&#129452;&#128042; -RT this -Post Pepe meme on tweet Below  + Tag 3 friends &#128071;&quot; / X" srcset="https://substackcdn.com/image/fetch/$s_!oEL6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 424w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 848w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!oEL6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8de2b12-0d79-4e08-9e06-f850e830788b_563x505.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Conclusion</h3><p>THE END. Yep, this is a short one today.</p><p>Until next time&#8230; </p><div><hr></div><p><em>New to the gambling world? Do <a href="https://www.blog.bowtiedbettor.com/p/bonus-rugging-10-collect-your-first">bonus rugging</a> and make thousands of dollars from bookies' welcome offers alone.</em></p><p><em>Routined bettor? Check out the rest of our <a href="https://www.blog.bowtiedbettor.com/">Substack/Blog</a> [with millions of readers] &amp; have a look at <a href="https://betpicks.bowtiedbettor.com/">BowTied BetPicks</a>, a +EV data feed that continues to deliver 30-40 profitable Horse Racing Picks on a daily basis with amazing results.</em></p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[The Power Of Simulations]]></title><description><![CDATA[Level 5 - SHARP]]></description><link>https://www.blog.bowtiedbettor.com/p/the-power-of-simulations</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/the-power-of-simulations</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Mon, 28 Aug 2023 02:55:01 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca3b3c-92ce-453e-99d1-563b5c8778f3_1512x1040.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler! </p><p>Today we&#8217;ll touch on an important &amp; very interesting topic: <strong>running simulations to obtain a better understanding of the future</strong>. There&#8217;s no doubt that the ability to run &amp; learn from simulations is a crucial tool for any bettor trying to recognize what the future may have in store for him. Without it he&#8217;ll naturally fall victim to the #1 predator in gambling, randomness.</p><p>We&#8217;ll illustrate the power of simulations by having a look at two different questions. </p><ol><li><p>A <strong>UK Horse Racing gambler</strong> has recently signed up to the <a href="https://betpicks.bowtiedbettor.com">BowTied BetPicks Premium Service</a> &amp; has, during his first week, placed a total of 100 bets on different Bot recommendations. He&#8217;s been placing flat bets of &#163;100/bet &amp; is interested in learning what an arbitrary week/month/year may have in store for him if he keeps rollin&#8217; at the same pace! </p></li><li><p>A <strong>Longshot Enjoyooor</strong> is placing one $10 000 longshot bet a week with the following payoff structure: There&#8217;s a 1/100 chance that he wins a million &amp; a 1/8 chance that the bet returns $30 000. At 37.5 % EV he understands that the structure could be an opportunity of a lifetime, but he&#8217;s curious to whether his portfolio will be able to stand the variance or not. After all, he values being comfy &amp; cool while emptying the market&#8217;s pockets. </p></li></ol><p><em>Note: Case 2 above may sound like a very much invented problem. It&#8217;s not. IYKYK.</em> </p><div><hr></div><h3>Why simulations?</h3><p>Mathematics offer a tremendous amount of tools to understand reality. However, the closer you get to real world phenomena [which are unique, flexible &amp; rarely adhere to standard mathematical rules], the more advanced &amp; complex the models become. </p><p>Instead of spending countless hours on manipulating unintuitive formulas only to at best find a couple of non-precise upper/lower bounds, a better [<strong>&amp; easier</strong>] way to approach such problems [to understand reality/a real world process] is to code up a close approximation of it &amp; iterate through that coded version of the process a large number of times to see what happens. </p><p>Under the assumption that the coded version is a reasonable approximation of the real world process, the simulation will yield a set of alternative realities that behave very much like the one that awaits you. &amp; by analyzing those invented realities you&#8217;ll gain the insights you need to avoid a lot of the real life confusion you&#8217;d otherwise have to deal with [<em>rule #1: *your* intuition for randomness is beyond terrible &amp; simply much, much worse than you think</em>].</p><p><em>Note I: Of course not saying mathematics is outdated and/or useless here. As usual, the real magic lies in the combination of maths with a second subject, in this case simulations. Without math: </em></p><ul><li><p><em>You don&#8217;t *really see* the assumptions underpinning the simulation results.</em></p></li><li><p><em>You can&#8217;t determine whether your simulations are properly constructed and/or whether they are any accurate at all.</em></p></li></ul><p><em>Note II: Code is more flexible than pure math models. That said, it&#8217;s not as flexible as reality. <strong>The Map Is Not The Territory</strong>. Example: your amazing backtest is more likely to be a result of a bad map [poor backtesting assumptions/model] rather than a signal of a true edge.</em></p><div><hr></div><h3>Case 1: Horse Racing Bettor</h3><p><em>A <strong>UK Horse Racing gambler</strong> has recently signed up to the <a href="https://betpicks.bowtiedbettor.com">BowTied BetPicks Premium Service</a> &amp; has, during his first week, placed a total of 100 bets on different Bot recommendations. He&#8217;s been placing flat bets of &#163;100/bet &amp; is interested in learning what an arbitrary week/month/year may have in store for him if he keeps rollin&#8217; at the same pace!</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_fyj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_fyj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 424w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 848w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 1272w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_fyj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png" width="624" height="361.68152866242036" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:728,&quot;width&quot;:1256,&quot;resizeWidth&quot;:624,&quot;bytes&quot;:286476,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_fyj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 424w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 848w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 1272w, https://substackcdn.com/image/fetch/$s_!_fyj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F64432dea-d2de-4e4f-a17b-52607bfc1213_1256x728.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Performance for the first 100 BowTied BetPicks bets</figcaption></figure></div><p>To help our bettor understand the kind of risk he&#8217;s taking as well as what he&#8217;s to expect profit-wise we&#8217;ll utilize a combination of two clever statistical concepts, bootstrapping &amp; simulations. </p><h4><em><strong>Theoretical explanation</strong>:</em></h4><p><strong>Bootstrapping</strong> is a statistical method that involves resampling from the original dataset to create new samples that are used to estimate statistical properties of the population. The idea is to simulate the process of randomly drawing new samples from the same population to better understand the uncertainty associated with our estimates. Bootstrapping is useful because it allows us to simulate random processes and estimate the variability of our estimates without having to make assumptions about the underlying distribution of the population.</p><p><strong>Simulations</strong>/Monte Carlo methods are a class of computational techniques that use random sampling to estimate numerical solutions to problems that may be difficult or impossible to solve using &#8216;standard&#8217; methods.</p><h4><em><strong>Practical explanation: </strong></em></h4><p>You have a dataset of 100 bets at your disposal. However, you&#8217;d like to investigate what the P&amp;L in a sequence of 1 000 similar bets may look like. To solve this seemingly unsolvable problem you use the information provided in the dataset to generate an *artificial sequence of bets*. How? You repeatedly roll a &#8220;100 sided die&#8221;. If it comes up <strong>64</strong>, you pick the <strong>64</strong>th bet in your dataset &amp; denote this &#8216;bet #1&#8217;. Next you throw the die a second time and in case it lands <strong>27</strong>, you, exactly as before, pick the <strong>27</strong>th bet in your dataset &amp; set this to be &#8216;bet #2&#8217;. Then you keep rolling until you&#8217;ve built up a full series of bets that matches whatever length you wish it to have [in our case 1 000 bets]. Simple, right?</p><p>Having obtained the set of 1 000 bets, it&#8217;s time for the simulation/Monte Carlo part of the procedure. For this purpose we&#8217;ll assume [<strong>NOTE ASSUMPTION</strong>] that the closing odds equals the true probability. Is this a valid assumption? No, but it&#8217;s likely to be good enough for what we&#8217;re doing.</p><p><em>Each row of the dataset contains the following information: the outcome, the stake [in our case always 100 GBP], the odds &amp; the closing odds.</em> </p><pre><code><strong>Simulation recipe: </strong>

1. Visit bet #1. The closing odds is 6.40, implying a true probability of 15.6 %. 

2. Generate a random number between 0 and 1. 

3. If the random number falls below 0.156, consider it a 'win'. Otherwise, a 'loss'. 

4. If it&#8217;s a win, add the net profits to the P&amp;L. Else subtract the net losses. 

5. Visit bet #2. 

Continue until you've looped through all 1 000 bets [&amp; make sure to track your P&amp;L at each step of the process]... </code></pre><div><hr></div><p><em>Note I: Bootstrapping methods require that the dataset/sample you&#8217;re working with [in our case the set of 100 bets] is a reasonable representation of the distribution that is generating them [both now &amp; in the future, the &#8216;underlying distribution&#8217; must stay stable]. If for some reason the Bot starts delivering completely different bets going forward and/or our 100 bet sample happens to be a huge outlier, we&#8217;ll be fooled by using the now misrepresentative dataset as a basis for our analysis. <strong>Good thing here is that there&#8217;s no particular reason to expect this pitfall to be of much relevancy for us, thus validating the use of the methodology</strong>.</em></p><p><em>Note II: The line of thinking presented here can of course be generalized far beyond betting. Stock market performance [use hourly data from the last ten High Vol days to simulate what a full month of high volatility may cause]. Crypto trading [analyze your P&amp;L]. Sales analysis. Expected ad revenues&#8230; The list goes on. Before you begin though: <strong>understand what you&#8217;re doing</strong>. Read up on the theory &amp; try to come up with cases where bootstrapping methods would be straight out dangerous to use [example: fat-tailed domains, rare events likely to be unseen in small samples/tail behaviour not properly captured by 50/100 data points].</em> </p><div><hr></div><p>To really hammer it home, here&#8217;s a step-by-step breakdown of the approach: </p><ol><li><p><strong>Assumption</strong>: We assume that the 100 bets we have are representative of the true underlying distribution that generates the bets. Essentially saying that the empirical distribution is a great approximation the true/real distribution.</p></li><li><p><strong>Resampling</strong>: For each simulation [let's call it a run], we resample 1 000 bets from our original 100 bets with replacement [bet #64 can appear several times]. This is our sample A.</p></li><li><p><strong>Compute P&amp;L</strong>: For each of these 1 000-bet samples [like A], we compute the P&amp;L.</p></li><li><p><strong>Repeat</strong>: We repeat the resampling and P&amp;L computation process for multiple runs [B, C, D, etc.] until we've done it enough times to get a good estimate of the mean/variance/distribution of the P&amp;L over 1 000 bets.</p></li><li><p><strong>Analysis</strong>: After all runs, we can analyze the distribution of P&amp;L values from all the samples [A, B, C, etc.] to estimate the distribution of the real P&amp;L over 1 000 bets.</p></li></ol><div><hr></div><p>Now let&#8217;s get to work. Excel file with the data for the 100 bets provided below. Python code available <strong><a href="https://github.com/BowTiedBettor/RandomSubstackMaterial/tree/main/ThePowerOfSimulations">here</a></strong>. </p><div class="file-embed-wrapper" data-component-name="FileToDOM"><div class="file-embed-container-reader"><div class="file-embed-container-top"><image class="file-embed-thumbnail-default" src="https://substackcdn.com/image/fetch/$s_!0Cy0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Fattachment_icon.svg"></image><div class="file-embed-details"><div class="file-embed-details-h1">Betpicksdata</div><div class="file-embed-details-h2">14.8MB &#8729; XLSX file</div></div><a class="file-embed-button wide" href="https://www.blog.bowtiedbettor.com/api/v1/file/c36245aa-afc8-4710-890d-d3d5faf9701f.xlsx"><span class="file-embed-button-text">Download</span></a></div><a class="file-embed-button narrow" href="https://www.blog.bowtiedbettor.com/api/v1/file/c36245aa-afc8-4710-890d-d3d5faf9701f.xlsx"><span class="file-embed-button-text">Download</span></a></div></div><h3>Analysis, results &amp; graphs</h3><p>First, let&#8217;s recall the underlying assumptions of our analysis. </p><ul><li><p><strong>Betfair Closing Odds = True Probability.</strong> [<em>Could be reduced to saying that Betfair Closing Odds is an unbiased measure (correct on average) of the True Probability, but the lighter the assumptions, the more complicated the model&#8230; &amp; it would yield frustrating [but perhaps instructive] edge cases</em>]</p></li><li><p><strong>Flat Bets of &#163;100 GBP/bet.</strong> </p></li><li><p><strong>Future bets are well described by the 100 bets taken so far.</strong></p></li></ul><p>Since launch there has been an average of 27 bets per day. Assuming the typical subscriber is able to tail ~10 bets/day [not meant to be a full-time job, but rather an enjoyable [&amp; profitable, ofc] experience], we consider 1 000 bets to be a natural number to begin the analysis at. This is ~3 months of using the service and if you aren&#8217;t able to run a strategy for at least 3 months without changing things, betting markets aren&#8217;t for you anyway. <strong>Consumed by Randomness</strong>.</p><h4><em><strong>1 000 bets</strong></em></h4><p>Below you find an illustration of 50 different runs of 1 000 bets. You can think of it like 50 subscribers taking bets in parallel [<em>well, not really since their performances would be heavily correlated, but you get it</em>] until they&#8217;ve all placed a thousand bets. Throughout this time we track their performance &amp; plot it on a bet-by-bet basis. Their final P&amp;L&#8217;s are determined by the height of where their individual P&amp;L graphs end.</p><p>As you can see, despite an obvious advantage over the sportsbooks [<em>graphs trending up on average</em>], there&#8217;s still a risk they end up losing money to them. &amp; this is after 1 000 bets! Meanwhile Mr Average Bettor tries the service for 2 weeks &amp; either declares you the King Of Horses or jumps the ship.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!7oZg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!7oZg!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 424w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 848w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 1272w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!7oZg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png" width="1456" height="922" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:922,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2284716,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!7oZg!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 424w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 848w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 1272w, https://substackcdn.com/image/fetch/$s_!7oZg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc33242dc-0a9b-46c9-a128-dc6ec910f2b2_2098x1328.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Next diagram is a histogram over final wealths for the above runs, but with the number of runs extended to 1 000 instead of 50. I.e. a distribution describing where the paths tend to end up. As you can see: very clear +EV, but with a considerable variance.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!afiL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!afiL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 424w, https://substackcdn.com/image/fetch/$s_!afiL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 848w, https://substackcdn.com/image/fetch/$s_!afiL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 1272w, https://substackcdn.com/image/fetch/$s_!afiL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!afiL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png" width="1456" height="961" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:961,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1176114,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!afiL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 424w, https://substackcdn.com/image/fetch/$s_!afiL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 848w, https://substackcdn.com/image/fetch/$s_!afiL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 1272w, https://substackcdn.com/image/fetch/$s_!afiL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F48c1a0a1-c8cd-4089-94c9-0de907c62106_1976x1304.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The Degen Gambler looks at the above two graphs &amp; conclude: LFG! However, there&#8217;s this guy that doesn&#8217;t really enjoy the variance and so he comes up with an idea, what if he could hedge all the bets just before the market closes at Betfair and never take any outcome risk? And, to make things even better [or so he believes], he realises that this would allow him to increase his size heavily *while reducing the variance*. I.e. keep the same EV per staked pound, but reduce the variance. &amp; increase the number of staked pounds. The magic formula? </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XrKy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XrKy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 424w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 848w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XrKy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg" width="554" height="349.02" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:630,&quot;width&quot;:1000,&quot;resizeWidth&quot;:554,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Stephen TCG | DeFi Dojo on Twitter: \&quot;I feel personally ...&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Stephen TCG | DeFi Dojo on Twitter: &quot;I feel personally ..." title="Stephen TCG | DeFi Dojo on Twitter: &quot;I feel personally ..." srcset="https://substackcdn.com/image/fetch/$s_!XrKy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 424w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 848w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!XrKy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd3ae98b4-504f-4649-abf8-663d5cae6ce1_1000x630.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Picture of our guy</figcaption></figure></div><p>Well, there&#8217;s some truth to what he&#8217;s saying, but it&#8217;s not that easy. Couple of things to consider: </p><ul><li><p>Taking trades at Betfair/Smarkets/any other exchange *costs money*. You pay spread fees &amp; commissions. Expect to lose at least 2-3 % of the value of your initial position from this alone. With an ordinary EV of 10 % that&#8217;s 20-30 % of your expected profits *erased*. However, if it lets you double your size, then it doesn&#8217;t really matter, does it? Nuanced. </p></li><li><p>Hedging things properly takes time. Contemplate the Opportunity Cost of spending 1-2 hours/day doing this.</p></li><li><p>Depending on your size, your exchange action might influence the pricing, making it a challenge for you to hedge your bets at prices you&#8217;d obtain as a low stakes bettor. Eats into your profits + won&#8217;t be long until counterparties [<strong>Cartoon Horse!?</strong>] observe that there&#8217;s yet another impatient gambler to take advantage of.</p></li></ul><p><strong>Anyway, lets simulate it</strong>. We&#8217;ll assume hedges are matched at (Closing Odds + 3 %) &amp; commissions = 2 % [standard Betfair fee] to incorporate the thoughts in the above bullet points into our model. Results below. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ATaF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ATaF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 424w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 848w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 1272w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ATaF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png" width="1410" height="914" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:914,&quot;width&quot;:1410,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:997308,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ATaF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 424w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 848w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 1272w, https://substackcdn.com/image/fetch/$s_!ATaF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa92ac5fe-9ea9-4ea4-979f-cd1ec12dafd2_1410x914.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">As expected, variance greatly reduced, average profits somewhat depressed</figcaption></figure></div><p>Looks good! Note that all paths go +ROI [&amp; stay there] almost immediately. </p><p><em>Note: We&#8217;d recommend combining the two strategies. Sometimes you hedge, sometimes you don&#8217;t. If a 10/10 bet comes along [example, drop from 4.00 &#8594; 3.00, Unibet remains at 3.85], no reason not to hit it as hard as you possibly can [assuming it won&#8217;t get you instantly banned by the bookie] &amp; hedge your position at Betfair. Free money.</em></p><div><hr></div><p>Below we repeat the above analysis but for 10 000 bets instead of 1 000. The #1 insight: with time, the law of large numbers comes into effect &amp; pushes more or less *all* paths into profitability. </p><h4><em><strong>10 000 bets</strong></em></h4><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!PSAI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!PSAI!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 424w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 848w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 1272w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!PSAI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png" width="1456" height="1003" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1003,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2667605,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!PSAI!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 424w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 848w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 1272w, https://substackcdn.com/image/fetch/$s_!PSAI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5c27c95e-4ebc-4178-8ff8-5a66e76522b4_1940x1336.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mIrc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mIrc!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 424w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 848w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 1272w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mIrc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png" width="1456" height="852" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:852,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:535209,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mIrc!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 424w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 848w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 1272w, https://substackcdn.com/image/fetch/$s_!mIrc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1525177c-1cd4-4278-8eae-b4dd69c5137c_1904x1114.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Resz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Resz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 424w, https://substackcdn.com/image/fetch/$s_!Resz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 848w, https://substackcdn.com/image/fetch/$s_!Resz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 1272w, https://substackcdn.com/image/fetch/$s_!Resz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Resz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png" width="1456" height="914" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:914,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:767711,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Resz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 424w, https://substackcdn.com/image/fetch/$s_!Resz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 848w, https://substackcdn.com/image/fetch/$s_!Resz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 1272w, https://substackcdn.com/image/fetch/$s_!Resz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F158a4158-167e-4c62-8ef2-18c88cf326d5_1500x942.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Note: As you may have understood by now: simulations are incredibly powerful. &amp; they&#8217;re just as good for small, finite samples as they are for arbitrarily large ones. <strong>Remember, your betting career is finite</strong>. Meanwhile many mathematical results rely on asymptotic/limit theorems. The question you got to ask yourself: will I be able to run far enough to those theorems into play?</em> <em>If not, beware putting too much trust into them.</em></p><div><hr></div><h3>Case 2: Longshot Gambler</h3><p>Since the first part of this post blew up we&#8217;ve decided to handle [&amp; add in some extra twists] <strong>Case 2: The Longshot Gambler</strong> properly in a future write-up instead. Graphs shared below [for the curious reader] though. Code <a href="https://github.com/BowTiedBettor/RandomSubstackMaterial/tree/main/ThePowerOfSimulations">here</a>. </p><p><em>Recall the situation: A <strong>Longshot Enjoyooor</strong> is placing one $10 000 longshot bet a week with the following payoff structure: There&#8217;s a 1/100 chance that he wins a million &amp; a 1/8 chance that the bet returns $30 000. At 37.5 % EV he understands that the structure could be an opportunity of a lifetime, but he&#8217;s curious to whether his portfolio will be able to stand the variance or not. After all, he values being comfy &amp; cool while emptying the market&#8217;s pockets.</em> </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!jhjr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!jhjr!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 424w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 848w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 1272w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!jhjr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png" width="1456" height="838" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:838,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!jhjr!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 424w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 848w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 1272w, https://substackcdn.com/image/fetch/$s_!jhjr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc7c01d3e-6f7a-452f-8a91-b5105ba70ae5_1846x1062.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Jump Processes in action</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WqeA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WqeA!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 424w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 848w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 1272w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WqeA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png" width="1456" height="663" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:663,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WqeA!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 424w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 848w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 1272w, https://substackcdn.com/image/fetch/$s_!WqeA!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686b4861-25bb-43fd-b5d1-80915c6246ac_2218x1010.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Why are the final wealths divided into different clusters?</figcaption></figure></div><div><hr></div><h3>Conclusion</h3><p>As usual &#8216;near email length limit&#8217;. A few notes before we leave you for today: </p><ul><li><p>Sincerely hope we&#8217;ve managed to convince you of The Power Of Simulations with this post. The frameworks presented within this treatment are strikingly effective when used correctly. </p></li><li><p>The &#8220;simple path&#8221; to success in betting markets now updated: </p><ol><li><p>Do <a href="https://www.blog.bowtiedbettor.com/p/bonus-rugging-10-collect-your-first">BR</a>, continue until no more promotions.</p></li><li><p>Repeat BR on friends/family. </p></li><li><p>Transition into +EV betting [<em><a href="https://betpicks.bowtiedbettor.com">BowTied BetPicks</a></em>], continue until limited/banned. </p></li><li><p>Repeat +EV betting on friends/family accounts.</p></li></ol></li><li><p>The <strong>real world path</strong> for our personal BowTied BetPicks bets will unfold at <a href="https://betpicks.bowtiedbettor.com/stats-graphs">https://betpicks.bowtiedbettor.com/stats-graphs</a>. Stay toon&#8217;d &amp; let&#8217;s pray and hope for that pink one!</p></li><li><p>BR posts coming up next on the Blog. First one on the #1 offer in the USA, a freebet packaged inside a risk-free bet. Second one on taking advantage of casino bonuses. If you have more suggestions/requests, please share them in the comments section. </p></li></ul><p><strong>Until next time&#8230;</strong></p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[A Thought Or Two]]></title><description><![CDATA[Level 4 - WAGMI 2.0]]></description><link>https://www.blog.bowtiedbettor.com/p/a-thought-or-two</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/a-thought-or-two</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Wed, 19 Jul 2023 01:09:57 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!D3Hv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Avatar!</p><p>When we first set up the Substack, one of the primary reasons was to sharpen our action. &amp; being forced to map those latent thoughts hidden in the back of our heads into well crafted explanations has indeed been a clever trick [as noted by many before us] to perfect our edges.</p><p><em>Don&#8217;t misinterpret this as us being against the act of letting thoughts exist without further inspection. Definitely not. To be fair, in 99 % of the cases the time spent on deeper knowledge for an arbitrary niche question will yield zero. Nada. </em></p><p><em>&amp; there&#8217;s some magic removed when certain concepts are made into 'study material'. Love to have a thought hanging around for a while [or forever] until the time has come for it to be handled properly&#8230;</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!D3Hv!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!D3Hv!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 424w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 848w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 1272w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!D3Hv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png" width="328" height="286.5287356321839" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:608,&quot;width&quot;:696,&quot;resizeWidth&quot;:328,&quot;bytes&quot;:331900,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!D3Hv!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 424w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 848w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 1272w, https://substackcdn.com/image/fetch/$s_!D3Hv!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f6955d4-57d1-4c3e-a5f1-6cb4e0eff5d0_696x608.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em><strong>Warning: This post could come along as somewhat disorganized. Much of the content is a direct function of a late night thought process, a process that gets bored to death by organization. Love to read organized posts. Hate writing them. How lucky we don&#8217;t have to read our own posts! :)</strong></em></p><div><hr></div><h3>Thought A [Market efficiency]</h3><p>Seen a lot of brain dead arguments [mainly by data enjoyooors] 'supporting' market efficiency. Everywhere. All the time. Excellent example of how repetitive &amp; boring people are in general [everyone parrots &amp; circulates what others are saying <strong>&amp;</strong> <em><strong>travels through knowledge, devoid of context</strong></em>]. </p><p>So, what is <strong>market efficiency</strong>? </p><p>The market&#8217;s perceived ability to price objects according to their underlying, &#8216;true&#8217; probabilities (if we allow for such an abstraction). Effectively creating an environment where all strategies should be equivalent [profit-wise]. So how would you go about proving market efficiency?</p><p>Two options: </p><ul><li><p>Show that each outcome is perfectly priced by the market.</p></li><li><p>Prove that no matter the strategy employed, profit expectations remain the same.</p></li></ul><p>Can either be shown in real life? Of course not. This yields our first insight: <strong>since in practice market efficiency cannot be proven, any attempt at such a proof must naturally fall apart</strong>. There is no escaping, there&#8217;s no place to hide. Might be hard to find, but somewhere there *must* be a crack in the argument. Your mission: find this crack &amp; *see*. </p><div><hr></div><p><em>All there can ever be is *beliefs* about market efficiency. &amp; whose beliefs should you trust? <strong>The practictioner's</strong>. If you wonder whether a specific market is efficient, refuse to ask the confused but of course very certain &#8216;data scientist&#8217; &amp; try to find yourself an autist gambler betting the market on an everyday basis to answer the question instead. </em></p><p><em><strong>Random note: the greatest advantage of building great mental models?</strong> Don&#8217;t have to waste time cleaning, reading &amp; manipulating data. Who enjoys working with data anyway? 100 % the most boring part of any &#8216;research process&#8217;. </em></p><div><hr></div><h3>Thought B [Bayes, Bayes, Bayes]</h3><p>We&#8217;ll return to market efficiency, but the path towards it will have to be somewhat roundabout. Enter thought B. Bayes. Have been said many times by the cartoon horse before: <strong>Bayes is incredibly powerful</strong>. Why? Learning how to think in conditionals &amp; inverses opens the door to a new dimension. The Bayes Dimension. And how do you learn to do such a thing? By studying Bayes. We preach Bayes all the time &amp; of course the mids don&#8217;t see why. With no room for abstraction, they look at the formula &amp; conclude: &#8220;nothing special about that&#8221;. It&#8217;s *a framework*. *Not* a formula. </p><p><em><strong>Ability to think in conditionals</strong> = accustomed to &amp; can entertain &#8220;if, then&#8221;-scenarios, even in complex cases. An arbitrary example: a sentence like &#8220;what is the probability of Brazil winning the 2018 World Cup, given them winning it in 2022?&#8221; doesn&#8217;t cause any confusion [conditional probability on a probability space is time independent] whatsoever.</em></p><p><em><strong>Ability to think in inverses</strong> = appreciates that to truly answer the question in one direction, one must in many cases understand the reverse one. If you&#8217;ve never thought about the probability of a market price, given a true, underlying probability, how can you infer the [in practice] more important answer: the probability of a true, underlying probability, given a certain market price?</em></p><p>Mixing these two abilities with a suitable generative [either theoretical or practical, doesn&#8217;t matter] model is what we really mean when we repeatedly shill Bayes. Some would claim it isn&#8217;t an optimal mental framework in order to *think with precision*. Some are wrong. </p><p>Bayes is #1.</p><p>Intelligence guaranteed to skyrocket when *getting it*.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Pa6m!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Pa6m!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 424w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 848w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 1272w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Pa6m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png" width="314" height="342.9549180327869" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1066,&quot;width&quot;:976,&quot;resizeWidth&quot;:314,&quot;bytes&quot;:827650,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Pa6m!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 424w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 848w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 1272w, https://substackcdn.com/image/fetch/$s_!Pa6m!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff775cb1a-21ce-493c-8ed0-0f0d4d9fed6e_976x1066.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Back to market efficiency</h3><p>Every single day tons of people ask: &#8220;given a market price, what&#8217;s the true probability?&#8221; They want to combine a bunch of sportsbooks to reach a fair number, then use it to beat whatever bookie they&#8217;re up against. A legitimate idea, but not the one we&#8217;ll investigate in this passage. Instead, we&#8217;ll have a look at a much less analyzed one, the inverse question. It&#8217;s interesting on its own, and, as noted above, it&#8217;ll most likely help us understand the reverse one better. </p><p><strong>Q: &#8220;</strong><em><strong>Given a true, underlying probability [e.g. a horse winning a race], what does the probability distribution of the market price look like?</strong></em><strong>&#8221;</strong></p><p>The answer to this question is the ultimate &amp; only *real* measure of market efficiency. </p><p><em>In an efficient market, the distribution must collapse at the true price.</em> </p><p><em>In an inefficient one, the price distribution might either be biased or spread out, or both.</em></p><p>&amp; different degrees of market efficiency are perfectly incorporated in this model simply by varying the shape of the distribution.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2dfE!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2dfE!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 424w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 848w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 1272w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2dfE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png" width="416" height="331.46076458752515" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:792,&quot;width&quot;:994,&quot;resizeWidth&quot;:416,&quot;bytes&quot;:174802,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2dfE!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 424w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 848w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 1272w, https://substackcdn.com/image/fetch/$s_!2dfE!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b16509f-88a0-4ec7-a4a9-43395100aaad_994x792.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Distribution tightly covering the true price, not much room for +EV bets </figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GOd1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GOd1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 424w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 848w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 1272w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GOd1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png" width="418" height="343.3874239350913" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/013838bc-6a05-4544-afa5-6755b044daf2_986x810.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:810,&quot;width&quot;:986,&quot;resizeWidth&quot;:418,&quot;bytes&quot;:189878,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GOd1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 424w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 848w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 1272w, https://substackcdn.com/image/fetch/$s_!GOd1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F013838bc-6a05-4544-afa5-6755b044daf2_986x810.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Wide-spread distribution. Unbiased, yet inefficient due to *variance*</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XV3z!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XV3z!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 424w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 848w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 1272w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XV3z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png" width="416" height="343.50207468879665" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:796,&quot;width&quot;:964,&quot;resizeWidth&quot;:416,&quot;bytes&quot;:182537,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XV3z!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 424w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 848w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 1272w, https://substackcdn.com/image/fetch/$s_!XV3z!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fee07dfd0-dff1-41ea-9de7-955313cbb76d_964x796.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Biased &amp; spread out. A snapshot of the market&#8217;s pricing distribution for longshots in Horse Racing, perhaps?</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!F8WF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!F8WF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 424w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 848w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 1272w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!F8WF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png" width="434" height="352.89463220675947" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:818,&quot;width&quot;:1006,&quot;resizeWidth&quot;:434,&quot;bytes&quot;:233020,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!F8WF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 424w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 848w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 1272w, https://substackcdn.com/image/fetch/$s_!F8WF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6586a072-b722-4b5f-a5a8-637514393ce2_1006x818.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">In reality, feature X has no effect on the true probabilities, but the market believes otherwise&#8230;</figcaption></figure></div><p><em>Note: In general there is no need to come up with parameters &amp; plots. Close your eyes and visualize the distributions instead. Mind &gt; Python. &amp; if what you see is a normal distribution, NGMI&#8230; ;) </em></p><div><hr></div><p>Now, having developed this distributional market efficiency framework, we&#8217;re ready to have a look at the problem with standard market efficiency studies. The ordinary reasoning goes somewhat like this: </p><ol><li><p>Collect historical data on closing prices. </p></li><li><p>Sort them into different price buckets, odds in [1.00, 1.20], (1.20, 1.50], (1.50, 2.00] and so on.</p></li><li><p>For each price bucket, compute the fraction of wins for the observed data points.</p></li><li><p>Note that this fraction lies close to the implied probability &amp; conclude market efficiency.</p></li></ol><p>Since, as established before, market efficiency cannot be practically proven, and any attempt at doing so will inevitably crumble, we now find ourselves compelled to uncover the erroneous reasoning within this argument.</p><p>Having spent many hours in Bayes Boot Camp, we see it at first glance.</p><p><strong>There are a ton of alternative realities [wherein markets are assumed to be inefficient] that could have generated the same data.</strong> </p><p><em>A common application of Bayes is to update your beliefs regarding different, alternative realities as you observe new evidence. Thus, you get used to asking yourself: what alternative frameworks could have generated the data I&#8217;m seeing? Unless there&#8217;s only one such framework, you can never, ever conclude anything simply by observing the new piece of information. All you can do is to reweight your probabilities/beliefs regarding the different scenarios.</em></p><p><em>The problem here [&amp; definitely not only here, see this all the time]: a complete failure to consider any alternative realities. Yes, if markets *were* efficient, then you would expect to see this data. But that does in no way imply the reverse, i.e. that if you see this data, then markets must be efficient. Why? <strong>Because even if markets aren&#8217;t efficient, there may still be many ways for this data to be seen, and unless you have successfully disproven *all* such situations, you really haven&#8217;t proven anything &amp; you definitely cannot conclude that your framework is correct.</strong></em></p><div class="pullquote"><p>Taleb believes all swans are white. </p><p>The next day he sees another white swan.</p><p>Taleb is now certain all swans are white.</p><p>&#8230;</p></div><ul><li><p>A bookmaker prices all NBA games during a full season at even odds, i.e. 2.00 for the home team, 2.00 for the away team. At the end of the season, his data analytics team comes up to him &amp; reveals that his pricing has indeed been very efficient. <strong>The 2.00/50 % outcomes won half of the time!</strong> Yet he&#8217;s infinitely poor.</p></li><li><p>Onto the second bookmaker! When this dude puts up an odds of 10.00, the outcome is equally likely to possess a <strong>true probability of </strong>either 5 or 15 %. In hindsight, again, his pricing is very sharp since his 10.00 horses wins a tenth of the time. The problem? Also this bookie is infinitely poor. </p></li><li><p>The third bookie [well, the real bookie] possesses an odds/probability distribution that is centered at the fair odds [unbiased], but with some spread around it. His 10.00 horses are as likely to be a 8 % horse as a 12 % horse &amp; so on. He rarely misses by a huge margin, but there&#8217;s still some wiggle-room when he puts up a price. Again, &#8220;market efficiency&#8221;. Again, a negative result at the end of the year.</p></li></ul><p><strong>Do you see it yet?</strong></p><div><hr></div><p>This relates to another phenomenon: in previous posts &amp; in many Bird App tweets we&#8217;ve repeatedly been saying the following: "<em><strong>If you have *more information* than your counterparty, you&#8217;ll always end up taking his/her money over time</strong></em>&#8221; <em><strong>[at least as a bettor/price taker]</strong></em>. </p><p>Having come this far in our distributional thinking, we&#8217;re now ready to see why [a picture tells more than a thousand words&#8230;].</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fEjy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fEjy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 424w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 848w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 1272w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fEjy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png" width="1456" height="693" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:693,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:321125,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fEjy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 424w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 848w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 1272w, https://substackcdn.com/image/fetch/$s_!fEjy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fce739ca8-b849-4d18-9fa4-ab7c5f734b74_1728x822.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The importance of informational advantages in prediction markets</figcaption></figure></div><p><em>Note: Information &#8800; data. Information = data + ability to process data.</em></p><p><strong>Question for Plato: Under what circumstances will the Autist Gambler in the picture above place a bet with the market/bookie?</strong></p><p><em>Note: A bookie &amp; a market can in many cases be different names of the same thing. Hint: What makes the bookie adjust his odds?</em></p><div><hr></div><p>This post has been yet another proof that people waste too much time thinking about averages [IYKYK].</p><p>Final note: Some of our arguments in this post haven&#8217;t been perfected yet. If you can see why, congratulations on being an absolute turbo!</p><p><strong>Until next time&#8230;</strong> </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[Practical aspects of betting]]></title><description><![CDATA[Level 2 - DEEP DIVER]]></description><link>https://www.blog.bowtiedbettor.com/p/practical-aspects-of-betting</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/practical-aspects-of-betting</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Mon, 26 Jun 2023 15:48:59 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!g0Ed!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler!</p><p>It&#8217;s time for a post discussing the practical aspects of betting. Less theory, more day-to-day stuff.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!g0Ed!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!g0Ed!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 424w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 848w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!g0Ed!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg" width="800" height="546" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:546,&quot;width&quot;:800,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:44630,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!g0Ed!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 424w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 848w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!g0Ed!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F80f72818-e0cd-48dc-bfd3-cdcd416452e5_800x546.jpeg 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Pepe preparing for tomorrow&#8217;s races&#8230;</figcaption></figure></div><p>As we&#8217;ve mentioned multiple times before, thinking doesn&#8217;t translate into profits. *Doing* does. No matter what kind of ingenious model/edge you&#8217;ve managed to develop, it won&#8217;t make you any money unless you keep showing up day after day for [<em>at least</em>] a couple of years. Thus, since this part of the game is guaranteed to take up such a great chunk of your time, why not optimize it?</p><p>In today&#8217;s post we&#8217;ll share a few things we&#8217;ve picked up along our path that relates to increasing the efficiency and profitability of a betting operation.</p><p><em>Note I: Some will truly believe that they can start tomorrow &amp; &#8220;build a betting bot and let it print while spending time at the beach&#8220;. As delusional as it gets. </em></p><p><em>Note II: Real winners enjoy the infinite hammering &amp; refinements of their edges. <strong>The Grind</strong>. Why? No doubt there&#8217;s a charm in it. For me personally there&#8217;s not much that beats a meeting where &#8220;I know everything about everything&#8221;. Completely prepared &amp; in sync with what happens both at the racetrack and on the odds boards/in the pools. Magic.</em></p><p><em>Note III: One of our earlier posts, <a href="https://bowtiedbettor.substack.com/p/so-youre-gonna-be-a-bettor-huh">So you&#8217;re gonna be a bettor, huh?</a>, is somewhat along the same lines and is a recommended read if you for some reason haven&#8217;t read it already.</em></p><p><em>Note IV: Since there are more or less an unlimited amount of things to say on this subject we&#8217;ll be back with a follow-up to this post in a few weeks. Will treat the practical parts of the Banking &amp; Data segment of betting [unfortunately an important piece of the puzzle].</em></p><div><hr></div><p><strong>Structure of the post</strong>: a division into several subsections with each section containing a bunch of bullet points. Zero time wasted, tons of information. </p><p>Enjoy! </p><div><hr></div><h3>Limits</h3><p>Limits [how much you&#8217;re allowed to bet] are a huge problem in betting. Some bookies offer fixed, equal limits for everyone, others (the marketing companies) decide the limits on a customer by customer basis. Profitable +EV bettors &#8594; kicked out as soon as possible. Casual punters with no clue/degenerate -EV enjoyooors &#8594; limits increased. Can discuss this for years but it is what it is. </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IF0u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IF0u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 424w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 848w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 1272w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IF0u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png" width="457" height="192.6198347107438" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:255,&quot;width&quot;:605,&quot;resizeWidth&quot;:457,&quot;bytes&quot;:34060,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IF0u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 424w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 848w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 1272w, https://substackcdn.com/image/fetch/$s_!IF0u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e98f8c2-eb09-4004-86fb-452968f37adc_605x255.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p>The natural question to ask: how can I avoid being hindered by those limits? Several answers to this. If you insist on using sportsbooks, jump to the next bullet point. If not, betting exchanges [e.g. Betfair] or parimutuel betting [primarily available for horse racing] are possible solutions. However, no solutions without problems. </p><ul><li><p>The ease of getting volume down attracts other sharps, i.e. makes the market more competitive &amp; harder to beat.</p></li><li><p>Liquidity issues are common if you look beyond the most popular markets in the top leagues/games/meetings. On exchanges: significant spreads + no one willing to take the other side of your trades. In parimutuel pools: pool sizes too small to allow for appropriate sizing [your bets move the odds]. </p></li></ul></li><li><p><strong>Multi Accounting</strong> is a popular technique to avoid limits/restrictions. You pay someone a fraction of the net profits/a lump sum to use their bookie/s account/s [win-win] &amp; repeat this process ad infinitum. -EV accounts with high volume are optimal purchases, such accounts can be worth tons of money. Even new accounts can be made somewhat valuable if you artificially make them look -EV by placing a bunch of dummy bets before going full &#8216;tism. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CHuL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CHuL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 424w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 848w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 1272w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CHuL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png" width="368" height="271.328125" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:755,&quot;width&quot;:1024,&quot;resizeWidth&quot;:368,&quot;bytes&quot;:95647,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CHuL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 424w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 848w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 1272w, https://substackcdn.com/image/fetch/$s_!CHuL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3fd4c39e-fbd5-409c-af6a-da8038dedbcd_1024x755.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><p></p></li><li><p>Another plausible solution is <strong>Staking</strong>. Not staking in the sense of staking ETH lol. Instead: <em><strong>you&#8217;re a gambler with an edge in the NHL prop market. Meanwhile, your autist fren is an expert in the corners market for soccer games. Both of you are using a bookmaker that employs equal limits for everyone &amp; both of you consider this limit [e.g. $ 500] too low</strong></em>. To avoid this problem you agree on sending all your bets to your gambling fren which places/<strong>stakes</strong> them on your behalf [effectively doubling your size]. As part of the deal you do the same when he finds something worth pursuing. Notes: </p><ul><li><p>Be clever. There&#8217;s a reason for the limits being there in the first place and if you abuse them to a great extent there&#8217;s a risk of *all the accounts* being closed down due to &#8216;syndicate betting&#8217;. Don&#8217;t bet an outcome from multiple accounts at the same exact moment.</p></li><li><p>Requires trust between the people involved. </p></li><li><p>There are many versions/varieties of the deal described above. E.g. could be that your wanted size is $700 and so the guy places $200 on your behalf and keeps the other $300 of the bet for himself. Countless ways to come up with reasonable terms for the partnership.</p></li></ul></li><li><p><strong>Parlays</strong> can often be a clever trick to get more size down. In some cases it can be as simple as betting max limit on bet A, max limit on bet B, and finally combining them into a third bet, a double, to increase your stakes even more. In other cases: due to the nature of parlays [<em>occasional, huge wins</em>] bookies often allow higher max net profits from a parlay than they do for a single. For instance, let&#8217;s say that max return for singles are capped at $2K while it&#8217;s $10K for parlays. You have found a great bet at an odds of 4.00. </p><ul><li><p><strong>Alternative 1</strong>: Bet $500 at it.</p></li><li><p><strong>Alternative 2</strong>: Pick a high RTP two-way market, say <strong>A: 1.96 - B: 1.96</strong>. Bet $1 275 on parlay A which is your 4.00 bet &amp; outcome A, and $1 275 on parlay B [your 4.00 bet &amp; outcome B]. Instead of $500 at 4.00 you now have $2 550 deployed at 3.92.</p></li><li><p><strong>Alternative 3</strong>: Parlay it with a 1.01 outcome [what&#8217;s known as a &#8216;sure thing&#8217; ;)] and bet ~$2.5K. </p></li></ul></li></ul><div><hr></div><h3>Information advantage</h3><p>Betting is in large part an information game. If you&#8217;re a winning bettor you either: </p><ol><li><p>Have access to better/more information.</p></li><li><p>Possess a stronger ability to learn from available information. </p></li></ol><p>No matter which of it it is, getting the information streams set up correctly to strengthen your information advantage is crucial for a successful day-to-day operation.</p><ul><li><p>Running <strong>automated sportsbook comparisons</strong> &amp; therefore always knowing where to find the best prices without having to spend 15 minutes comparing them is extremely helpful. For main markets in top leagues there are more often than not tons of sites/services that help you do this, but for smaller/special markets you may need to build out the infrastructure yourself [<em>lots of content on this here at BowTiedBettor</em>]. Saves you time, earns you dollars. A necessity. </p></li><li><p>Receiving notifications when odds are released/limits are increased is another must-have. At odds release it&#8217;s *you against the bookie*. The bookie must put up a price for *all* outcomes. Meanwhile, all that&#8217;s required from you is to find *one* error. 20 minutes later a decent amount of gamblers have had a look at the offered odds already and almost surely corrected the most obvious mispricings [<em>money you&#8217;re leaving at the table due to laziness &amp; poor infrastructure</em>]. </p><p><strong>&amp; it&#8217;s of course much easier to beat *one counterparty* compared to a whole army of gamblers. Choose your battles wisely.</strong></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!llyk!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!llyk!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 424w, https://substackcdn.com/image/fetch/$s_!llyk!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 848w, https://substackcdn.com/image/fetch/$s_!llyk!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 1272w, https://substackcdn.com/image/fetch/$s_!llyk!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!llyk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png" width="324" height="171" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/be36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:171,&quot;width&quot;:324,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:47517,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!llyk!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 424w, https://substackcdn.com/image/fetch/$s_!llyk!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 848w, https://substackcdn.com/image/fetch/$s_!llyk!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 1272w, https://substackcdn.com/image/fetch/$s_!llyk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbe36e8f0-4de2-4671-ad1f-f8d090c0386f_324x171.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Again, have a look at our coding content and our <a href="https://github.com/BowTiedBettor/unibet">Unibet scraper</a> for inspiration on how to build this. If you don&#8217;t know how to do it yourself, hire someone to do it for you. Take action.</p></li><li><p>A third thing we do *all the time*. <strong>Observe the market action</strong>. What are other bettors doing? Where are prices moving? When did the moves take place? Why did they happen? Who&#8217;s behind the move? Did all the bookies react [appropriately] to the new information? Was the information even informative, or nothing but noise?</p><p>Setting up clever software systems to monitor the markets is an obvious way to get ahead. Common examples: </p><ul><li><p>A horse drops from 10.00 to 7.50 over a span of 4 minutes. We have a second look at the horse and find that we&#8217;ve missed a change in equipment. <strong>Result: increased precision in our probability estimates</strong>.</p></li><li><p>30 minutes into our preparations for a specific race we have a clear picture of how a certain race will evolve. However, after taking a really deep dive into the race we discover something that turns our previous beliefs upside down. The premarket action may now serve as a proxy for how sharp the competition is for the given day. </p><p></p><p>In many cases the market sticks to the naive scenario, confirming that our competitors don&#8217;t *really* know what they&#8217;re doing. <strong>We understand what they&#8217;re doing but we don&#8217;t agree. An optimal situation. </strong></p><p></p><p>In other cases we are confused by what&#8217;s happening &#8594; often a sign of us lagging [<em>knowledge-wise</em>] the bettors behind the moves.</p></li><li><p>Perhaps the most obvious reason: Use what&#8217;s happening at bookie/exchange A to beat bookie/exchange B. </p><p><strong>Example</strong>: Scan the Betfair price action for UK horse racing and whenever you observe a price move that Bet365/Unibet etc. haven&#8217;t reacted to, bet the horse at those sites [<em>you&#8217;re of course free to use any bookie and/or *arb* against the exchange if you prefer</em>]. How can you do this? Well, we&#8217;ve already built it for you. Check out the <strong><a href="https://betpicks.bowtiedbettor.com">BowTied BetPicks Website</a></strong> &amp; join the <a href="https://t.me/+yv8XF4pdA3RiZmFk">Telegram Channel</a>! Full launch later this summer. Stay toon&#8217;d!</p></li></ul></li></ul><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BI9T!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BI9T!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 424w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 848w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 1272w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BI9T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png" width="394" height="233.61061946902655" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:402,&quot;width&quot;:678,&quot;resizeWidth&quot;:394,&quot;bytes&quot;:71464,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!BI9T!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 424w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 848w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 1272w, https://substackcdn.com/image/fetch/$s_!BI9T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ac0830c-5ebb-41d1-8e32-aa7960c84e15_678x402.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div><hr></div><h3>Betting</h3><p>General points on betting.</p><ul><li><p><strong>Understanding the price discovery process</strong> of the markets in which you&#8217;re operating is important. At the surface level it indeed seems like a difficult proposition to beat tens of independent bookies using their advanced AI/ML models to come up with perfect prices &amp; identify hidden patterns in their customers&#8217; action. Well, sounds cool, until you actually enter the markets. And see the reality. *<strong>One* bookie/exchange with a dozen of active sharps. The rest of them copy pasting this &#8220;source of truth&#8221;</strong>. It&#8217;s not you versus the masters you&#8217;re fearing. It&#8217;s you versus a confused dude at the bookie&#8217;s office [<strong>indeed must be confused if working at a sportsbook, even if we couldn&#8217;t beat them would never join them</strong>] and a couple of other gamblers that are more or less copies of yourself [sadly most likely read the same books &#8594; have the same ideas, yes that&#8217;s how boring we are]. </p><ul><li><p>Identify these &#8220;sources of truth&#8221;. Could be Betfair, could be Pinnacle, could be a local bookie allowing volume due to well developed systems for domestic leagues/games/races.</p></li><li><p>Identify the copy pasta machines, i.e. the bookies [marketing companies] that have given up already &amp; simply reposts the prices observed at the price discovery bookie. </p></li><li><p>Learn what&#8217;s required to move prices at different places. Should you trust the price action at a bookie that moves an odds 20 % due to a $200 bet? A $2 000 bet? </p><p>If $700 is all that&#8217;s required to manipulate the &#8220;source of truth&#8221;-odds &amp; get thousands of dollars down at other places, is the &#8220;source of truth&#8221; perhaps a &#8220;source of manipulation&#8221;? Think hard about such things &amp; <strong>Plan Accordingly</strong>.</p></li><li><p>Would you include the opinions of/price action at a bookie whose sole profitability derives from restricting &amp; banning sharp customers in your &#8220;averages&#8221;? </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!n9rM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!n9rM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 424w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 848w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 1272w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!n9rM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png" width="601" height="613" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:613,&quot;width&quot;:601,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:73484,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!n9rM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 424w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 848w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 1272w, https://substackcdn.com/image/fetch/$s_!n9rM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F33d633d2-b988-4dc4-8c4f-b13230b4aef0_601x613.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>If the &#8220;source of truth&#8221; is a parimutuel pool then there&#8217;s not really much price discovery taking place until the very last minute. Zero incentives for a knowledgeable bettor to correct any mispricings prior to the last few ticks. </p></li></ul></li><li><p><strong>Odds/prices are not fixed through time</strong>. They are in constant motion until kick-off/post time. Yes, part of the job is the ability to answer whether the odds posted on a certain object is too high. A more sophisticated part of it is to further strengthen this ability by developing the skill to predict the future price path. <strong>Not the same thing</strong>.</p><ul><li><p>If you&#8217;re interested in obtaining a given position you&#8217;d of course always prefer to maximize your average odds. Thus, even if what you observe right now is +EV, the correct decision may be to wait.</p></li><li><p>Exchanges allow you to trade in and out of your positions. If you&#8217;re good at predicting price movement this is an excellent opportunity to convert this knowledge into dollars. [<em>&amp; if you&#8217;re less of a trader but still find some of these obvious mispricings from time to time, load up a huge position and sell it at the exchange closer to kick-off. Can be hard to execute in practice due to limits/large transactions but once in a while it may make a ton of sense.</em>]</p></li><li><p>The art of predicting price paths is not about advanced mathematics but rather about learning &amp; understanding how other market participants are acting/what they&#8217;re valuing. <strong>Read what others are doing</strong>. As mentioned before there are situations where *I understand why a price is likely to move in a certain direction*, but don&#8217;t agree with the theory backing it up. <strong>The trade is +EV, keeping the position is not</strong>. CLV is not all there is to it, after all.</p></li></ul></li><li><p><strong>Who&#8217;s on the other side of your trade?</strong> Betting is an information game. In a bet/trade, there are two persons/entities involved &amp; the person possessing the more precise probability estimates is destined to take the less sophisticated one out of business over the long term. Therefore: make sure not to be the NGMI-dude. More on this in a heavily autistic post coming up at the Substack.</p></li><li><p>An obvious one: <strong>keep a record of your bets</strong>. If you&#8217;re not running some kind of performance analytics once in a while you&#8217;re 100 % missing out on profits. All edges/angles can be refined/perfected. Log all your bets in a detailed manner in order to create a sufficient dataset that may provide an insight or two later on. Literally takes ~10 seconds to log a bet <br>*manually* so it being a &#8216;time consuming&#8217; process is pure cope. </p><p></p><p><strong>Then use the theory in the below two posts to analyze &amp; learn from the record.</strong></p></li></ul><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;9e591ce7-1e74-4008-8bdc-a8cff9c67bb5&quot;,&quot;caption&quot;:&quot;Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win! Welcome Degen Gambler! Suppose that you&#8217;ve managed to develop a promising betting model. The basic backtests have been looking good and by now you believe the time has come to test it live. You&#8217;d however prefer to have gained some insight regarding the sequence of bets that you and your model are about to generate prior to launching it. Questions such as the following arise:&quot;,&quot;cta&quot;:null,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;lg&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Bet sequences, an analysis&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:97522817,&quot;name&quot;:&quot;BowTiedBettor&quot;,&quot;bio&quot;:&quot;Beat the bookies. \n\nEqual Opportunity, Unequal Results.\n\nInspired by @BowTiedBull.&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8971b7a4-1e40-4700-9fa7-5a9513d9b35e_1416x1234.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2023-02-26T01:03:46.483Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://bowtiedbettor.substack.com/p/bet-sequences-an-analysis&quot;,&quot;section_name&quot;:null,&quot;video_upload_id&quot;:null,&quot;id&quot;:104103700,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:6,&quot;comment_count&quot;:0,&quot;publication_id&quot;:null,&quot;publication_name&quot;:&quot;BowTiedBettor&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F796c5fbc-1f4e-4a25-ab55-f917e5966f4d_1234x1234.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><div class="digest-post-embed" data-attrs="{&quot;nodeId&quot;:&quot;a83432d9-69b8-41d0-bfe9-28820400da30&quot;,&quot;caption&quot;:&quot;Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win! Welcome Degen Gambler! Bayes Craze! It&#8217;s time for the second part of our Bayesian series, a series which aims to introduce you to the world of Bayesian learning &amp; put you in a Bayesian state of mind, or dare we say, a correct state of mind.&quot;,&quot;cta&quot;:null,&quot;showBylines&quot;:true,&quot;size&quot;:&quot;lg&quot;,&quot;isEditorNode&quot;:true,&quot;title&quot;:&quot;Bayesian thinking &amp; inference, part 2&quot;,&quot;publishedBylines&quot;:[{&quot;id&quot;:97522817,&quot;name&quot;:&quot;BowTiedBettor&quot;,&quot;bio&quot;:&quot;Beat the bookies. \n\nEqual Opportunity, Unequal Results.\n\nInspired by @BowTiedBull.&quot;,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8971b7a4-1e40-4700-9fa7-5a9513d9b35e_1416x1234.png&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:null}],&quot;post_date&quot;:&quot;2023-05-11T18:44:07.267Z&quot;,&quot;cover_image&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png&quot;,&quot;cover_image_alt&quot;:null,&quot;canonical_url&quot;:&quot;https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part-473&quot;,&quot;section_name&quot;:null,&quot;video_upload_id&quot;:null,&quot;id&quot;:117619012,&quot;type&quot;:&quot;newsletter&quot;,&quot;reaction_count&quot;:0,&quot;comment_count&quot;:0,&quot;publication_id&quot;:null,&quot;publication_name&quot;:&quot;BowTiedBettor&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F796c5fbc-1f4e-4a25-ab55-f917e5966f4d_1234x1234.png&quot;,&quot;belowTheFold&quot;:true,&quot;youtube_url&quot;:null,&quot;show_links&quot;:null,&quot;feed_url&quot;:null}"></div><div><hr></div><h3>The Ultimate Setup</h3><p>A combination of the above ideas together with a fair bit of Banking/Data [<em>the relationship between a bettor and his bank, KYC, Source of Wealth &amp; Affordability Checks, data collection, data storage, data analysis and so on&#8230; [coming up at the Substack]</em>] magic yields <strong>The Ultimate Betting Setup</strong>. And, as you might have noticed, there&#8217;s a reason we call it a betting *operation*. This is not something you get done by spending 1-2 hours a week for a short period of time after falling victim to a random &#8216;betting is cool&#8217; thought.</p><p>&amp; we&#8217;re of course *not* saying this is something the average reader should get to work on, though we hope he/she may have found the read interesting anyway. </p><p>If you&#8217;re one of the serious ones, a great deal of the information you need is now out there.<strong> </strong>&#8220;The rest is up to you&#8221;. </p><p><strong>Until next time&#8230;</strong> </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[Bayesian thinking & inference, part 2]]></title><description><![CDATA[Level &#8734; - BILL BETTOR]]></description><link>https://www.blog.bowtiedbettor.com/p/bayesian-thinking-and-inference-part-473</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/bayesian-thinking-and-inference-part-473</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Thu, 11 May 2023 18:44:07 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler! </p><p>Bayes Craze! It&#8217;s time for the second part of our Bayesian series, a series which aims to introduce you to the world of Bayesian learning &amp; put you in a Bayesian state of mind, or dare we say, a correct state of mind. </p><p>If you haven&#8217;t read part 1 yet, begin <a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part">there</a>. </p><p><em>The concepts presented in this series are relatively tough to grasp and unless you have had a proper amount of training with thinking in conditionals, there&#8217;ll be a lot of hidden insights that you simply won&#8217;t *see* at first glance. Therefore, take your time with the material. Read. Think. Read again. Or, equivalently: Have a belief. Read. Update your belief. </em></p><div><hr></div><h3>NHL-learning</h3><p>In the conclusion of Part 1, two problems were posed. The first, the investigation of a backtest/sequence of bets, was handled in a comprehensive manner in &#8220;<a href="https://bowtiedbettor.substack.com/p/bet-sequences-an-analysis">Bet Sequences, an analysis</a>&#8221;. Today we&#8217;ll have a deep look at the second problem: </p><blockquote><p><em><strong>After having read our posts on web scraping, you have just scraped and stored all the NHL data from the previous season. You are now interested in learning as much as possible about it. For example, since you find live odds intriguing, you wonder what the probability of a team winning a game, conditional on taking a lead into the third period, is.</strong></em></p></blockquote><p>We&#8217;ll examine this question on multiple levels. </p><p>First, we&#8217;ll do the most basic thing: collect data on prior NHL games, look at the subset of games where one team has taken a lead into the third period and from there determine how often those teams have been able to maintain their lead. This will provide us with a simple, fundamental fraction to keep in mind while e.g. betting same game parlays in the NHL. </p><p>As soon as we&#8217;re done with this initial step, we&#8217;ll advance the analysis with an alternative perspective, a Bayesian perspective. By approaching the problem from these two angles, the deficiency &amp; NGMI-level of the former will become apparent. As we&#8217;ll see, there can be huge differences between &#8220;learning&#8221; and *<strong>learning</strong>*.</p><p>Throughout the post we&#8217;ll do our best to discuss details to consider when running similar statistical analyses *in real life*. Remember, we&#8217;re not here to write papers, we&#8217;re here to back our beliefs with real world money. Thus, we cannot afford to overlook or misinterpret important features related to the management &amp; understanding of data.  </p><div><hr></div><h3>A trivial conditional measure</h3><p>Let&#8217;s begin with the basics. We&#8217;ve fetched the regular season data for the NHL 2022/2023 from what we believe is <a href="https://statsapi.web.nhl.com/api/v1/">the official NHL API</a> [<strong><a href="https://statsapi.web.nhl.com/api/v1/game/2022020001/feed/live">EXAMPLE</a></strong> <strong>of full game data for the first 2022-2023 game</strong>]. Relevant data for our purposes has been stored in the file below. </p><div class="file-embed-wrapper" data-component-name="FileToDOM"><div class="file-embed-container-reader"><div class="file-embed-container-top"><image class="file-embed-thumbnail-default" src="https://substackcdn.com/image/fetch/$s_!0Cy0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Fattachment_icon.svg"></image><div class="file-embed-details"><div class="file-embed-details-h1">Nhldata</div><div class="file-embed-details-h2">44.2KB &#8729; XLSX file</div></div><a class="file-embed-button wide" href="https://www.blog.bowtiedbettor.com/api/v1/file/58218363-f982-425c-8ee4-93cf84a4013b.xlsx"><span class="file-embed-button-text">Download</span></a></div><a class="file-embed-button narrow" href="https://www.blog.bowtiedbettor.com/api/v1/file/58218363-f982-425c-8ee4-93cf84a4013b.xlsx"><span class="file-embed-button-text">Download</span></a></div></div><p><em>Python code for this post can be found <a href="https://github.com/BowTiedBettor/RandomSubstackMaterial/tree/main/BayesNHL">in this folder</a> in our RandomSubstackMaterial repo on Github.</em></p><p>Collecting the data and performing a quick check for the fraction we&#8217;re interested in yields a value of 82.94 % [<em>1 312 games in total, 1 008 of those had one of the teams in front after two periods, 836/1 008 kept the lead &amp; won the game</em>]. Conclusion: absent better information, the probability of a team ending up as winners in a game *given a lead after two periods* is ~ 83 %. </p><div><hr></div><p>Before we continue, let&#8217;s have a look at the different problems with the above approach. </p><ul><li><p>All we&#8217;re left with is a number. The world is far too uncertain to reduce all our knowledge into simple numbers. </p><blockquote><p><em>Numbers give you a false sense of security. Behind every number there's a probability distribution.</em></p></blockquote><p>One of the beauties with Bayes is that it allows us to quantify <strong>our levels of uncertainty</strong>, i.e. helps us determine how sure we can be that our numbers [or intervals] are correct or at least approximately so. </p></li><li><p>What we obtain using this method is a very, very general measure/average. In practice, this won&#8217;t help much unless we are able to split our dataset into more specific subsets, with each such subset being a collection of teams/setups possessing similar features. </p><p><strong>A huge underdog tak</strong>ing a lead into the third period is *less likely* to win the game than a favourite in the same position. Priors matter. In reality we&#8217;d like to condition on more than &#8220;team in the lead after first two periods&#8221; to actually learn useful stuff.</p><div><hr></div><p>This leads us to an interesting truth concerning data. </p><p><strong>YOU NEVER HAVE BIG DATA. </strong>Why? Cause if you do, you should immediately dive deeper into your dataset, find clusters within it [observations with similar features] &amp; repeat your analysis on each one of those clusters. Effectively, in practice you&#8217;ll always have to ask yourself &#8220;small data questions&#8221; or you&#8217;re likely doing things wrong. </p><p>Bayes comes in handy here since Bayesian inference is more or less made for &#8220;small data problems&#8221;. And, since all data problems should, if possible, be reduced into small data problems, Bayes must be the way to go!</p><div><hr></div><p><em>Note: The amount of data increases the rate at which you&#8217;re learning in at least two ways: </em></p><ol><li><p><em>More data yields more certainty [variance goes down with more observations] in the &#8220;population&#8221; estimations [full dataset averages, medians etc.].</em></p></li><li><p><em>More data creates better opportunities to condition on multiple factors at once [understand how the values of quantities differ between subsets/clusters].</em> </p></li></ol></li></ul><p>Now that we&#8217;ve hinted at there being a better way of observing the world, let&#8217;s actually try to analyze the data from this somewhat more sophisticated viewpoint. At the end, it will be clear that the results yield superior answers to our inquiries.</p><div><hr></div><h3>The Bayesian perspective</h3><p>Time for a truly Bayesian interpretation of the problem! Recall from <a href="https://bowtiedbettor.substack.com/i/91017487/why-bayesian">this part</a> of <strong>Bayesian thinking &amp; inference, part 1</strong> that Bayes Theorem is the mathematical formula that allows us to move from a <em>prior</em> belief to a <em>posterior</em> one [updated beliefs after observing the data], hence the term &#8220;Bayesian&#8221;. </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BmYB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BmYB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 424w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 848w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 1272w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BmYB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png" width="1234" height="300" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:300,&quot;width&quot;:1234,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:218898,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!BmYB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 424w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 848w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 1272w, https://substackcdn.com/image/fetch/$s_!BmYB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f5e43b6-6131-4c23-be7c-b6fa8b5ab303_1234x300.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>The image below illustrates a simplified version of the typical Bayesian workflow. As we progress through this process for our particular NHL-question, we will elaborate on each step and emphasize the key points to keep in mind.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gura!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gura!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 424w, https://substackcdn.com/image/fetch/$s_!gura!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 848w, https://substackcdn.com/image/fetch/$s_!gura!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 1272w, https://substackcdn.com/image/fetch/$s_!gura!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gura!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png" width="836" height="609" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:609,&quot;width&quot;:836,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:54983,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gura!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 424w, https://substackcdn.com/image/fetch/$s_!gura!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 848w, https://substackcdn.com/image/fetch/$s_!gura!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 1272w, https://substackcdn.com/image/fetch/$s_!gura!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F899203ae-334c-4267-b1b7-a86e8fdce0a7_836x609.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">A simplified Bayesian workflow</figcaption></figure></div><p><em>Note: Like for any practical learning or modelling process, numerous aspects need to be considered at each step of the Bayesian workflow. However, since our main goal with this post is to present the core &amp; power of Bayesian methods rather than overwhelm you with details, such issues will be left out of this piece.</em></p><div><hr></div><h3>Bayes, step 1</h3><p>Step 1 in the Bayesian workflow is to assign our variable/s of interest a prior distribution. This probability distribution should include the *prior information* we have regarding the variable/parameter. Different people choose different priors, and since priors are an important part of determining our posterior distribution [prior updated with new data], it&#8217;s important to get them right. Precision in the prior translates into precision in the posterior [our updated beliefs]. </p><p><em>Absent domain knowledge it&#8217;s common to assign an uninformative/flat prior to problems one hasn&#8217;t investigated before. This has two effects: </em></p><ul><li><p><em>Less precision in the output unless you have *a lot* of data. </em></p></li><li><p><em>Decreased risk of obtaining heavily biased estimates due to poor prior beliefs.</em></p></li></ul><p>For simplicity we&#8217;ll be using an uninformative/flat prior, i.e. assume all probabilities between 0 and 1 are equally likely [<em>*obviously* false but the idea of this post isn&#8217;t to construct a clever model, it&#8217;s to push our readers in the right direction to come up with one themselves</em>]. In reality, a more natural way of approaching the problem would be to run an equivalent model on earlier seasons, a process that would have yielded an &#8220;aggregated posterior&#8221;. This distribution would then be tweaked with domain specific knowledge [such as beliefs regarding changes to the game that is expected to have an effect on the probability of a team winning a game, conditional on taking a lead into the third period] and subsequently used as a prior for the analysis of the latest season. </p><div><hr></div><p><em>Note I: Read a [for some reason popular] terrible take on Twitter last week:</em></p><blockquote><p><em><strong>Gambling ads are the absolute worst. It&#8217;s far from the only harmful product, but unlike alcohol cigarettes fast food etc, these ads&#8217; purpose is to mind fuck you into believing something that&#8217;s false: that you can use your sports knowledge to win money.</strong></em></p></blockquote><p><em>Couldn&#8217;t agree less. <strong>Sports knowledge is what perfects your predictive ability</strong>. It is exactly the &#8220;tweak&#8221; mentioned at the end of the above paragraph that makes the difference between reality and what every data nerd sees. We&#8217;re not saying everyone in the markets is doing this fancy &#8220;tweak the prior&#8221;-Bayes stuff we&#8217;re trying to explain here. However, if you have a deep enough look at it &amp; allow for some creativity you&#8217;ll realise that what we&#8217;re really trying to do with these Bayesian models is to approximate the thought processes we constantly perform in everyday life. A prior belief. New data. An updated belief. Thus, in this language &#8220;better sports knowledge&#8221; can be translated into &#8220;more precise priors&#8221;, which of course will have a positive effect on the quality of your/our predictions.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rTxu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rTxu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 424w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 848w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 1272w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rTxu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png" width="762" height="327" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:327,&quot;width&quot;:762,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:227222,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rTxu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 424w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 848w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 1272w, https://substackcdn.com/image/fetch/$s_!rTxu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F541beff8-b46a-4a1d-8fd6-e30d9a67429e_762x327.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Sports knowledge is +EV</figcaption></figure></div><p><em>Note II: Sample sizes are a big thing in standard statistics. In Bayes World they don&#8217;t matter as much. Why? As you let data hit your Bayesian model, it will perfectly incorporate two things: in which direction the evidence points <strong>AND</strong> the amount of information/certainty that have been gained from it. If your dataset is small, the posterior will be widely spread [estimates are *uncertain*]. As your dataset grows large, the posterior distribution will converge/put all mass on the true value [estimates become *certain*]. Thus, there&#8217;s no point in obsessing about sample sizes since they&#8217;ll be naturally embodied in the shape of the posteriors.</em> </p><div><hr></div><h3>Bayes, step 2</h3><p>Step 2 is to use preexisting mathematical models to approximate the data generating process as well as possible. The data you&#8217;re looking at has been generated in some way, right? The mission for you is to find, understand &amp; specify this process! </p><p>In our case this is fairly easy since we have an excellent mathematical model for the problem at hand, namely the Binomial model. Each data point is determined in the following way: if, after two periods, one of the teams is in front, we assign the data point the value &#8220;TRUE&#8221; [or 1] if that team goes on to win the game. Otherwise, it&#8217;s assigned &#8220;FALSE&#8221; [or 0]. The event &#8220;TRUE&#8221; [1] is assumed to occur with probability <em><strong>p </strong></em>[this is the parameter we&#8217;re trying to estimate] while the complement, the team being up at 2/3 of the game yet losing it, occurs with probability <em><strong>1-p. </strong></em></p><p>Note that if there&#8217;s a tie in the game after two periods, we exclude it from our research.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!hiYH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!hiYH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 424w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 848w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 1272w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!hiYH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png" width="440" height="328.43304843304844" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:524,&quot;width&quot;:702,&quot;resizeWidth&quot;:440,&quot;bytes&quot;:115376,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!hiYH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 424w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 848w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 1272w, https://substackcdn.com/image/fetch/$s_!hiYH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F11fc7419-1f8a-429d-afd6-b14d8198c116_702x524.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Therefore, after N such games, the number of 1&#8217;s is distributed according to a <em><strong>Bin(N, p)</strong></em>, a binomial probability model with <em>N = number of games with one team in front after two periods</em> &amp; p = <em>probability of a team winning *given* in front after 2/3. </em>Equivalently, since a Binomial is a sum of Bernoullis, our problem could of course be modeled as a sum of N <em><strong>Bernoulli(p)</strong></em> random variables as well.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JnFk!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JnFk!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 424w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 848w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 1272w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JnFk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png" width="622" height="414.1483333333333" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:799,&quot;width&quot;:1200,&quot;resizeWidth&quot;:622,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Binomial distribution - Wikipedia&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Binomial distribution - Wikipedia" title="Binomial distribution - Wikipedia" srcset="https://substackcdn.com/image/fetch/$s_!JnFk!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 424w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 848w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 1272w, https://substackcdn.com/image/fetch/$s_!JnFk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5b00af-ffb9-4629-8807-0b79b9bee607_1200x799.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Binomial Distributions for different p&#8217;s and N&#8217;s [<a href="https://en.wikipedia.org/wiki/Binomial_distribution#/media/File:Binomial_distribution_pmf.svg">Wikipedia</a>]</figcaption></figure></div><div><hr></div><h3>Bayes, step 3</h3><p>In step 3 our mission is to code up a Bayesian algorithm that has the ability to learn from the data we&#8217;re feeding it. To do this, we&#8217;ll be using PyMC, a probabilistic programming language in Python. </p><blockquote><p><em><a href="https://www.pymc.io/projects/docs/en/stable/index.html">PyMC</a> is a probabilistic programming library for Python that allows users to build Bayesian models with a simple Python API and fit them using Markov chain Monte Carlo (MCMC) methods.</em></p></blockquote><p><em>For now, don&#8217;t worry about the intricacies of PyMC [<strong>autism overload</strong>]. Bayesian models become mathematically intractable *extremely* fast [they&#8217;re terrible to work with using &#8220;pen &amp; paper&#8221;-methods] &amp; MCMC is simply a class of clever algorithms that despite this helps us find [more specifically: efficiently sample from] the posterior distributions.</em></p><p>A simple </p><pre><code>pip install pymc</code></pre><p>will install the library &amp; its dependencies.</p><p>Next, we initiate a Python program where our modelling will take place by importing PyMC &amp; arviz [visualization library for Bayesian models]. </p><pre><code>import pymc as pm
import arviz as az</code></pre><p>After loading the data, </p><pre><code># load the data, code assumes NHLData.xlsx exists in the same directory
nhldata_df = pd.read_excel("NHLData.xlsx")
case_data_uncleaned = nhldata_df.Case.to_numpy()
case_data = case_data_uncleaned[~np.isnan(case_data_uncleaned)]
number_of_ones = int(sum(case_data))
number_of_games = len(case_data)</code></pre><p>it&#8217;s time to create our model of how the data was generated.</p><ol><li><p>Create a PyMC model object. </p><pre><code>nhl_bayes_model = pm.Model()</code></pre></li><li><p>Within the context of the model, define priors [in our case only one, a uniform for <strong>p</strong> [<em>recall, <strong>p</strong> is the probability of a team winning, *given* in front after 2/3]</em> where we assume each value between 0 and 1 to be equally likely] and construct a representation of the data generating process. </p><pre><code># prior for p
p = pm.Uniform(name = "p", lower = 0, upper = 1)


# given values of p &amp; N, what's the probability of seeing K games satisfying our criterion? this is the data generating process
likelihood = pm.Binomial(name = "likelihood", p = p, n = number_of_games)</code></pre></li><li><p>Tell PyMC that we&#8217;ve observed data for the Binomial random variable [<em>the number of games where the team in front kept the lead &amp; won the game</em>] by adding an extra parameter [<strong>observed = number_of_ones</strong>] to the &#8220;likelihood&#8221; variable above. </p><pre><code><code>likelihood = pm.Binomial(name = "likelihood", p = p, n = number_of_games, observed = number_of_ones)</code></code></pre></li></ol><p>Using this code, PyMC will now understand that it should run comparisons for all possible <strong>p</strong>'s between 0 and 1 to try to understand which one of those values is most likely [or, more specifically, exactly how likely each such <strong>p</strong> is] to have generated 836 successes in 1 008 datapoints [our observed value]. </p><div class="pullquote"><p><em>As you feed a Bayesian model data, it will learn by updating/reweighting the current, prior distribution according to what&#8217;s most likely to have generated the observed data.</em></p></div><p>Well documented code for this example is available <strong><a href="https://github.com/BowTiedBettor/RandomSubstackMaterial/blob/main/BayesNHL/nhlbayesmodel.py">here</a></strong>. </p><div><hr></div><h3>Bayes, step 4</h3><p>Finally, it&#8217;s time to run our model &amp; let PyMC help us update the prior distribution by incorporating the new data. This is generally the point at which the Markov Chain Monte Carlo stuff comes into play. For now we&#8217;ll simply consider this a black box thing and instead focus on <br>*the output*, <strong>a close approximation of the posterior distribution</strong>, i.e. the prior beliefs updated with whatever information was gained from the observed data.</p><p>To actually run the code that produces this posterior distribution we&#8217;ll have to add an extra line within the PyMC model context. </p><pre><code>inference_data = pm.sample()</code></pre><p>This tells PyMC to sample from the posterior distribution [1 000 samples by default] and generate an <a href="https://python.arviz.org/en/stable/api/generated/arviz.InferenceData.html">InferenceData</a> object with the output. The InferenceData object offers multiple methods that allow for further analysis.</p><p>Running it yields the below output. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fTJ_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fTJ_!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 424w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 848w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 1272w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fTJ_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png" width="1456" height="991" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:991,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fTJ_!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 424w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 848w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 1272w, https://substackcdn.com/image/fetch/$s_!fTJ_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3028d14c-6e48-41ab-8c10-db6a93495507_1622x1104.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">&#8216;Tism</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MT0V!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MT0V!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 424w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 848w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 1272w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!MT0V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png" width="48" height="45.41414141414141" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1124,&quot;width&quot;:1188,&quot;resizeWidth&quot;:48,&quot;bytes&quot;:469732,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MT0V!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 424w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 848w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 1272w, https://substackcdn.com/image/fetch/$s_!MT0V!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2590c87a-4ce8-41d9-928c-0a1a725e46d5_1188x1124.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div><hr></div><h3>Bayes, step 5</h3><p>Time to analyze what Bayes has taught us! Our output is currently stored in the <em><strong>inference_data</strong></em> variable/object which contains a ton of information. However, since: </p><ol><li><p>We&#8217;re primarily interested in a basic level understanding of what the data says, </p></li><li><p>A plot is worth a thousand words,</p></li></ol><p>we&#8217;ll limit ourselves to plotting the posterior distribution &amp; investigate and draw conclusions from it from a visual point of view. </p><p>This can be done using</p><pre><code>pm.plot_posterior(inference_data, show = True)</code></pre><p>Result below. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6Li7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6Li7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6Li7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!6Li7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!6Li7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3d508a56-6dae-4bd8-929d-3dd4ddda6282_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Posterior distribution for the probability of a team winning a game, conditional on taking a lead into the third period</figcaption></figure></div><h3>Interpretations, comparisons, remarks</h3><ul><li><p>The posterior distribution puts most of the probability around ~0.83 which makes sense since this coincides with the observed fraction in our dataset. Note however that there are no claims whatsoever of this being &#8220;the correct&#8221; fraction. Instead, it presents a clear picture of the remaining uncertainty by providing *a distribution* of plausible values of <strong>p</strong>.</p></li><li><p><strong>Given our uniform prior &amp; that our data generating process is a fair represenation of reality</strong>, we can be almost certain that the true probability of a team winning a game, conditional on taking a lead into the third period, lies somewhere in the range [0.80, 0.86]. Thus we&#8217;ve managed to answer our original question. </p></li><li><p>With another prior, we&#8217;d have seen a different posterior. For instance, if we play around a little bit and assume the true probability to in fact be 0.82 [and be stable over different NHL seasons], we&#8217;d expect to see more certainty [narrower distribution] as well as a horizontal shift towards 0.82 if we were to repeat this analysis after the upcoming season, with *this* posterior used as that season&#8217;s prior.</p></li><li><p>Remark: Now that we&#8217;ve learnt a lot about the average, most generic probability for this kind of question, we&#8217;d perhaps like to condition on some factors to nail down more specific probabilities. For example, what about an underdog against a favourite being up exactly one goal after the first two periods?</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xFEx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xFEx!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 424w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 848w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 1272w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xFEx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png" width="134" height="115.46485260770974" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:760,&quot;width&quot;:882,&quot;resizeWidth&quot;:134,&quot;bytes&quot;:323775,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xFEx!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 424w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 848w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 1272w, https://substackcdn.com/image/fetch/$s_!xFEx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe80d9957-bfdd-4c1b-b842-d02b3eafa0be_882x760.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><strong>Remember</strong>: subcases like this offer less data. Therefore, if you&#8217;ve been inspired by this post and are planning to continue your betting journey by analyzing similar subcases on your own, you better sharpen your priors. If you&#8217;re not willing to go several levels down the &#8216;trees&#8217; [splitting datasets on multiple variables &amp; constantly re-performing the analysis on those mini-problems], then you&#8217;ll for sure miss out on the truly interesting aspects of your dataset. <strong>All problems are small data problems. Or, perhaps more accurately, all the GMI ones are.</strong></p></li></ul><div><hr></div><h3>Conclusion</h3><p>This was a rather lengthy post with a fair bit of advanced content to digest &amp; process. As mentioned earlier, take your time with the material. Read. Think. Read again. Or, similarly: Have a belief. Read. Update your belief. </p><p><strong>Next up on the BowTiedBettor Substack is a Q&amp;A.</strong> </p><div><hr></div><p><em>On another note: currently in the midst of a BowTiedBettor project that will launch later this year. How about a real time data feed containing every single one of the latest *informative* odds drops?</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!pY5E!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!pY5E!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 424w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 848w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 1272w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!pY5E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png" width="1456" height="367" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:367,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:109427,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!pY5E!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 424w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 848w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 1272w, https://substackcdn.com/image/fetch/$s_!pY5E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F34b475a7-3964-4d34-9d11-f834ad1edcf5_2438x614.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Stay toon&#8217;d!</em></p><p>Until next time&#8230; </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[The art of pricing uncertainty]]></title><description><![CDATA[Level &#8734; - BILL BETTOR]]></description><link>https://www.blog.bowtiedbettor.com/p/the-art-of-pricing-uncertainty</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/the-art-of-pricing-uncertainty</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Thu, 06 Apr 2023 02:03:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Avatar! <br><br>Today we&#8217;ll have a look at a concept we&#8217;ve made a lot of money from during our time in the betting markets, namely how uncertainty/variance in a horse&#8217;s performance [<em>this thinking can be translated to *any* game/market</em>] affects its probabilities in different markets [win, place, show, H2H etc.]. <br>It&#8217;s a beautiful example of how the amount of uncertainty acts as one of the fundamental pieces of the pricing process.</p><div><hr></div><p><em>Before we begin: a quick poll, please answer it if [and only if] you&#8217;re a frequent reader:</em></p><div class="poll-embed" data-attrs="{&quot;id&quot;:61600}" data-component-name="PollToDOM"></div><p><em>Have received some interesting questions lately &#8594; a new Q&amp;A coming up soon. If you have any questions you&#8217;d like to have answered, now is the time to ask them!</em></p><div><hr></div><h3>A simplified model of a horse race</h3><p>Our initial mission is to construct a basic model [that we&#8217;ll be able to generate probabilities from] of a horse race. This will help us prove and clarify the main results of today&#8217;s text.</p><p>Modelling a horse race isn&#8217;t the most trivial thing one can think of.</p><ul><li><p>Which parameters are you going to include? What&#8217;s your assumptions regarding the dependencies between the parameters? <br><em>Note: God does probably use an infinite amount of parameters &amp; parameter-interactions in his models. However, since we&#8217;re not gods, we must decide on a finite set of variables that approximates his outputs as well as possible.</em></p></li><li><p>*What* are you even modelling? You&#8217;ll probably be interested in devising some function that&#8217;ll take your N parameters and map them into a response variable, but what is this response variable going to be? </p><ul><li><p>The final position in the race [<em>discrete</em>]? </p></li><li><p>The probability of the horse winning [<em>continuous in [0,1]. </em></p><p><em>Example: generalized linear regression models [logit, probit etc.]</em>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!X0UY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!X0UY!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 424w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 848w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!X0UY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg" width="470" height="356.69642857142856" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1105,&quot;width&quot;:1456,&quot;resizeWidth&quot;:470,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!X0UY!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 424w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 848w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!X0UY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2b7faaa9-c4ea-4a81-8c6f-e72ddaef083d_1456x1105.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div></li><li><p>*The* finish time [<em>continuous</em>] for the horse? </p></li><li><p>A probability distribution over possible finish times? </p></li><li><p>A rescaled probability distribution over an arbitrary &#8220;index/rank variable&#8221;? </p></li></ul></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fBGK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fBGK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 424w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 848w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 1272w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fBGK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png" width="562" height="421.87667560321717" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:560,&quot;width&quot;:746,&quot;resizeWidth&quot;:562,&quot;bytes&quot;:201583,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fBGK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 424w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 848w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 1272w, https://substackcdn.com/image/fetch/$s_!fBGK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7ff9c115-6554-4c85-b70a-44d0a70adecc_746x560.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In the end, we can probably agree on the fact that you, whatever you choose, must somehow define a method to map your model outputs into probabilities. *Which path* to take towards those probabilities is far from obvious though. </p><p><strong>Suppose you go with finish time</strong>, i.e. how long it takes for a given horse to finish the race. Will your model output be a given number or a probability distribution of &#8216;plausible&#8217; times? </p><p>If it&#8217;s a number [the finish time], how do you translate this into probabilities? <br>[<em>Well, you could of course say that horse A [likely the favourite] will win with certainty &amp; enjoy staying poor.]</em></p><p>If it&#8217;s a probability distribution [of plausible times], how do you proceed? Do you let simulations generate the final probabilities? </p><p><em>You simulate a value for each horse, sort this list, let that be the result/order of the simulated race [what are the assumptions here?], and repeat this process for a large enough number of &#8220;races&#8221; [read: simulations].</em></p><p>As you can see, there are many tricky questions to consider and analyze if you decide to embark on the journey of trying to come up with a great &amp; useful model for horse racing. However, since those questions/problems aren&#8217;t the main subject of today&#8217;s discussion, we&#8217;ll refrain from spending too much time trying to come up with plausible [and complex] answers to them. </p><p>Instead we&#8217;ll assume a heavily simplified but, for our purposes, informative model:</p><div><hr></div><p><em><strong>Model</strong>: </em></p><ul><li><p><em>A model of <strong>finish times</strong> has been constructed, which is capable of generating</em> a<em> normalized probability measure/distribution for each participating horse&#8217;s finish time *with perfection*. The normalization is such that the finish time is defined as <strong>deviation from average finish time for the race [with the sign flipped to make large number = good number]</strong>. </em></p><p><em>Comment: Normalizing stuff can often be a nice thing.</em></p></li><li><p><em>Horses are assumed to run independently, i.e. knowing something about horse A&#8217;s performance tells you *zero* about horse B&#8217;s. <br>Comment: Probably not way off for standard horse racing, however less reasonable for harness racing. The reason for the assumption: it lets us avoid having to deal with joint probability distributions [if horse A&#8217;s performance told you *anything* about horse B&#8217;s, then you&#8217;d have to take this fact into effect while running simulations, something we&#8217;d prefer to avoid].</em></p></li><li><p><em>The probability distribution for the finish time of each horse is assumed to be normal</em>.</p><p><em>Comment:</em> <em>False but the normal distribution is the only one 95 % of you have seen + there&#8217;s no cost in keeping at least some parts simple here. </em></p></li></ul><p><em>When the probability distributions have been generated, the win probabilities are generated as follows: a value is simulated from each horse&#8217;s probability distribution &amp; the horse behind the largest value is assumed to be the winner of the race. This step is repeated 10 000 times. The win probability for a given horse is then defined as the number of wins divided by 10 000.</em> </p><div><hr></div><h3>Horse race with 5 participants</h3><p>We have a race with 5 horses and want to apply the above model. </p><p>Let the probability distribution of horse A be the below [N(0,1) in case you&#8217;re interested]. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!m-1p!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!m-1p!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!m-1p!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png" width="478" height="358.5" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:478,&quot;bytes&quot;:11810,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!m-1p!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!m-1p!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa03e8ee0-2a6e-497e-9430-1965ea0f380f_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Next we add in the remaining four horses, all with varying means and variances. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!M1Su!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!M1Su!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 424w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 848w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 1272w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!M1Su!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png" width="548" height="418.3538767395626" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1006,&quot;resizeWidth&quot;:548,&quot;bytes&quot;:254024,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!M1Su!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 424w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 848w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 1272w, https://substackcdn.com/image/fetch/$s_!M1Su!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb7ec3ba0-4c65-4903-ac46-68ee599b62d0_1006x768.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now let&#8217;s run the [10 000] simulations and check what the correct odds for the different horses in the race should be! </p><p><strong>Before we look at the result, try to answer the below three questions. Write down your answers on a piece of paper:</strong> </p><ul><li><p>Which horse is most/least likely to win the race? </p></li><li><p>Which horse is most likely to finish in the top 3? </p></li><li><p>In a H2H between horse 3 [green] and horse 5 [purple], which one of them should be the favourite? </p></li></ul><p>Done? </p><p>Let&#8217;s check the results! </p><div><hr></div><p><em>As usual, you find the code for our examples on Github [<a href="https://github.com/BowTiedBettor/RandomSubstackMaterial/blob/main/pricinguncertainty.py">LINK</a>]. </em></p><div><hr></div><h3>Simulation results</h3><p>The result of the 10 000 &#8220;races&#8221;:</p><p><em>Horse 1 won 8 % of the races. </em></p><p><em>Horse 2 won 31 % of the races. </em></p><p><em>Horse 3 won 33 % of the races. </em></p><p><em>Horse 4 won 9 % of the races. </em></p><p><em>Horse 5 won 19 % of the races.</em> </p><p><em><strong>Conclusion</strong>: Horse 3 [green] is most likely to win the race. Horse 1 [blue] is least likely to win the race.</em> </p><div><hr></div><p>Thus the correct <strong>win</strong> <strong>odds</strong> are as follows: </p><p><em>Horse 1 - 12.50</em></p><p><em>Horse 2 - 3.23</em></p><p><em>Horse 3 - 3.13</em></p><p><em>Horse 4 - 11.11 </em></p><p><em>Horse 5 - 5.26</em></p><div><hr></div><p>Doing the same thing for the top 3 positions yields the following correct set of <strong>show odds</strong>:</p><p><em>Horse 1 - 1.60</em></p><p><em>Horse 2 - 1.57</em></p><p><em>Horse 3 - 1.81</em></p><p><em>Horse 4 - 3.45</em></p><p><em>Horse 5 - 1.12</em></p><p><em><strong>Conclusion</strong>: Horse 5 [purple] is most likely to finish in the top 3, with a probability of ~ 89 %. </em></p><div><hr></div><p>Let us now have a look at the final question of the little quiz, the H2H between horse 3 [green] and horse 5 [purple]. Recall that horse 3 was almost twice as likely to win the race.  </p><p><strong>H2H-probabilities</strong>: </p><p>Horse 3 [green] - 43 % </p><p>Horse 5 [purple] - 57 %. </p><p><em><strong>Conclusion: Even though horse 3 has a significantly higher win probability, it still fails to beat horse 5 on a H2H-basis. </strong></em></p><div><hr></div><p>Indeed very interdasting results! Or, perhaps you&#8217;re not as amazed as we are? </p><p>Well, let us explain and make sense of what we&#8217;re talking about by really diving into those results now! </p><ul><li><p>Before we begin our analysis, note that in reality *you never get to see* the true, underlying probability distributions of each horse, *you only know that they exist*. However, what you *do see* is the odds board for the different available markets, win, place, show, exacta, trifecta, H2H odds and so on and so forth.</p><div><hr></div><p><strong>A DIALOGUE: </strong><em>[not that we do this in practice lol, but it&#8217;s an interesting concept]:</em> </p><p></p><p><em><strong>BILL BETTOR</strong>: Assume a model. Do some magic to generate the correct probability distributions for each horse in the race. Voila, you can now produce the true odds of any possible bet that may be offered, right?</em></p><p></p><p><em><strong>Degen Gambler</strong>: Sounds cool, but what&#8217;s this magic about and how am I supposed to find the &#8220;correct&#8221; probability distributions?</em></p><p></p><p><em><strong>BILL BETTOR</strong>: You&#8217;re not! </em></p><p></p><p><em><strong>Degen Gambler</strong>: What do you mean?</em> </p><p></p><p><em><strong>BILL BETTOR</strong>: Are you constantly shown odds of almost any possible bet that may be offered? </em></p><p></p><p><em><strong>Degen Gambler</strong>: Yes, the number of different markets to bet on is just crazy. </em></p><p></p><p><em><strong>BILL BETTOR</strong>: Good. If someone showed you his distributions, would you be able to say</em> <em>whether they were perfect or not?</em></p><p></p><p><em><strong>Degen Gambler</strong></em>: <em>Yes, probably, no one&#8217;s perfect though, right? And it&#8217;s definitely easier to find errors than to generate truth.</em></p><p></p><p><em><strong>BILL BETTOR</strong></em>: <em>Indeed it is.</em> <em>However</em>, <em>some do in fact claim that this guy is perfect. Perhaps they&#8217;re right.</em> </p><p></p><p><em><strong>Degen Gambler</strong></em>: <em>Who? I&#8217;m confused. </em></p><p></p><p><em><strong>BILL BETTOR</strong></em>: <em>Look deeper. Someone&#8217;s showing you his distributions.</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NnN0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NnN0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 424w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 848w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 1272w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NnN0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png" width="274" height="238.2969696969697" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/479a6779-8716-482f-8059-e8d93f301700_660x574.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:574,&quot;width&quot;:660,&quot;resizeWidth&quot;:274,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Pepe thinking | Pepe the Frog | Know Your Meme&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Pepe thinking | Pepe the Frog | Know Your Meme" title="Pepe thinking | Pepe the Frog | Know Your Meme" srcset="https://substackcdn.com/image/fetch/$s_!NnN0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 424w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 848w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 1272w, https://substackcdn.com/image/fetch/$s_!NnN0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F479a6779-8716-482f-8059-e8d93f301700_660x574.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div></li><li><p>Back to the results. </p><p>Something very interesting: <em><strong>Purple</strong></em> clearly beats <em><strong>Green</strong></em> in the H2H, but <em><strong>Green</strong></em> is much more likely to actually win the race! In fact, since <em><strong>Purple </strong></em>has the *highest mean performance* of all 5 horses, no matter who we match it up against, it *must* be the favourite in the corresponding H2H [<em>for the turbos this is obvious since normal distributions are closed under addition and <strong>Purple</strong>&#8217;s mean is the largest one in our race</em>]. </p><p>Thus, against any horse it is the most likely H2H-winner, yet it does only have a winning probability of 19 % [two participants have significantly higher win probs]!</p><p></p><p>This is because <em><strong>Purple</strong></em> always delivers approximately the same performance, while the performances of his opponents come <strong>with greater variability</strong>. Against *a single* opponent he&#8217;s the favourite, but as more and more horses [with greater variance] are added it becomes increasingly more likely that *at least one* of the remaining horses will put up a great race, which is enough for <em><strong>Purple</strong></em> to fail to win. Add in another 10 horses and <em><strong>Purple</strong></em> is *down bad*! <br><br>Uncertainty matters! </p><div class="pullquote"><p>In a big field, the consistent, &#8220;average&#8221; horse is without chance. </p></div></li><li><p>Continuing our comparison between <em><strong>Green</strong></em> and <em><strong>Purple</strong></em> we note that <em><strong>Purple</strong></em> has a much higher probability of finishing within the top 3 positions [89 % vs 55 %]. In such a small field, the consistency in <em><strong>Purple</strong></em>&#8217;s performances makes it almost certain for the horse to show. <em><strong>Green</strong></em> however is a much more complicated animal, either he puts up an excellent race and wins, or he&#8217;s simply not having it and finishes at the back of the field. And this is not a good thing for the place &amp; show markets! Conclusion: the relationship between the win, place and show markets are severely different for the two participants. </p></li></ul><div class="pullquote"><p>When betting the win markets, fall in love with horses with extreme variability in their performances.<br><br>When betting the remaining markets, beware uncertainty.</p></div><ul><li><p>Finally: here&#8217;s the main point of this post. Win markets are easy objects. It&#8217;s the one thing everyone spends their time on. </p><p>Where is the intuition, the beauty, the fun in 1 200 trifecta permutations? Right, there is none! In win markets all you need is to find the best horse! What a beautiful game. 10 horses racing side by side, fighting to cross the finish line first. Of course you love it. <br>And indeed you&#8217;re not alone.</p><div><hr></div><p><br>So everyone invests a lot of time and resources into this part of the game. And soon they for sure become pretty good at finding the winner. In some cases, even extremely good. </p><p><br><strong>BUT WHAT DO THEY DO NEXT?</strong> </p><p></p><p>They notice the rest of the markets. And having obtained great estimates of the win probabilities, they of course do the obvious thing. <br>They simply map their win probabilities into place, show, H2H, exacta, trifecta and even more complex probabilities.</p><p>&amp; they spend tremendous amounts of time looking for the &#8220;perfect link&#8221; [<em>the holy grail</em>] between the win probability and the remaining probabilities. [<em>Go ahead and Google &#8220;Harville Formula&#8221; [psyop] &amp; all its variations</em>]</p><p><strong>&amp; bookies even include those maps in their algos [think long &amp; deep here ser].</strong> </p><p>And somehow [<em>what a surprise</em>] those maps have a tendency to map favourites into favourites, and underdogs into underdogs, *across all markets*. <br>Which our dumb little model of normal distributions has just shown can be so incredibly wrong! </p></li></ul><div><hr></div><p>Remember: </p><ol><li><p><em>It&#8217;s easier to find errors than to generate truth.</em></p></li></ol><ol start="2"><li><p><em>If you bet multiple [connected] markets, *always* separate them out when analyzing your P&amp;L. </em></p></li><li><p><em>Completely random fact but whatever: when you read something online on betting, always assume it&#8217;s psyop. Especially when it comes to betting software. &#8220;Why am I offered *this* set of functions? What am I *not* offered?&#8221; should be your first questions.</em></p></li></ol><div><hr></div><p>That&#8217;s all for today. <br></p><p>Next time there&#8217;ll be less autism. <br>Until then&#8230; </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:&quot;&quot;,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[A gentle introduction to the Betfair API]]></title><description><![CDATA[Level 3 - WAGMI]]></description><link>https://www.blog.bowtiedbettor.com/p/a-gentle-introduction-to-the-betfair</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/a-gentle-introduction-to-the-betfair</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sat, 18 Mar 2023 13:01:59 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome Degen Gambler!</p><p>Betfair is a British gambling company which operates the world's largest online betting exchange. Betting exchanges are important factors in the betting industry since they&#8217;re offering more serious actors/bettors a way to participate in betting markets without having to deal with the ordinary, in many cases absolutely terrible, bookmaker model which restricts/limits any sharp action [in fact, standard bookmakers are probably closer to &#8220;marketing companies&#8221; than they are to &#8220;betting companies&#8221;]. Owing to this, the exchanges attract a great amount of clever customers which in turn generates liquid order books and significant betting volume. </p><p>With a satisfactory share of sharp volume these platforms have evolved into some of the most efficient and informative ones currently available, hence providing an excellent opportunity for aspiring bettors to learn the fundamentals [and more] of how to price uncertainty.</p><p><em><strong>To understand the basics of the betting exchange model, <a href="https://bowtiedbettor.substack.com/i/63917125/betting-exchanges">consult our Betting 101</a>.</strong></em></p><p>Note: &#8220;Liquid order books and significant betting volume&#8221; depends on the specific markets you&#8217;re looking at as well as who you&#8217;re asking. The point: mostly it&#8217;s much better than what&#8217;s offered with standard bookies. </p><p><em>Note: There is often hidden liquidity [iceberg orders, see e.g. <a href="https://www.econstor.eu/bitstream/10419/43194/1/606199241.pdf">The impact of hidden liquidity in limit order books, Frey, Sand&#229;s</a>] on the exchanges [<strong>market books convey information &#8594; information affects prices &#8594; market participants prefer hiding their intentions and present incomplete information to others &#8594; participants send partial orders programmatically instead of huge orders at once</strong>] which means you&#8217;ll only observe parts of the *real* order book.</em></p><p>Today we&#8217;ll familiarize ourselves with the basics of the Betfair API, an API that allows us to retrieve both historical and current betting data in order to learn from and analyze one of the most efficient betting markets, the Betfair Exchange, out there. Furthermore, the API offers all the necessary tools to create and automate betting strategies, i.e. build and launch betting bots.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!izal!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!izal!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 424w, https://substackcdn.com/image/fetch/$s_!izal!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 848w, https://substackcdn.com/image/fetch/$s_!izal!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 1272w, https://substackcdn.com/image/fetch/$s_!izal!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!izal!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png" width="586" height="314.33104395604397" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:781,&quot;width&quot;:1456,&quot;resizeWidth&quot;:586,&quot;bytes&quot;:1131967,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!izal!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 424w, https://substackcdn.com/image/fetch/$s_!izal!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 848w, https://substackcdn.com/image/fetch/$s_!izal!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 1272w, https://substackcdn.com/image/fetch/$s_!izal!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F124e7269-ef3d-4f90-9b76-c1b2136c642d_2114x1134.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Access to the Betfair API is restricted to Betfair customers only. For full access [ability to place bets etc.] you&#8217;ll therefore have to be a resident in one of the many EU countries in which Betfair is operating. <strong>However, we&#8217;ve figured out a way for our US subscribers to get partial access [retrieve odds, analyze historical betting data, &#8230;] by setting up &#8220;dummy accounts&#8221; and we believe that should be good enough for 99 % of our subscribers at this point in time.</strong> </p><p>Let&#8217;s go! </p><div><hr></div><p><em><strong>Note: Our coding/programming material assumes that you have some familiarity with Python. If you do not, please get started today. Learning Python is definitely one of the most +EV decisions you can make if you are interested in earning WIFI-money. Combine <a href="https://www.youtube.com/watch?v=YYXdXT2l-Gg&amp;list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7">Corey Schafer</a> and <a href="https://automatetheboringstuff.com">Automate the Boring Stuff</a> and you will soon be an excellent herpetologist.</strong></em></p><div><hr></div><h3>Create a Betfair account</h3><p>If you&#8217;re in the <strong>US</strong>, follow the account setup guide below. </p><p>If you&#8217;re in the <strong>EU</strong> and Betfair *<strong>does not</strong>* operate in your country, follow the account setup guide below. </p><p>If you&#8217;re in the <strong>EU</strong> and Betfair *<strong>does</strong>* operate in your country, you simply sign up with them the ordinary way. This is the best case since it will allow for full access to the API.</p><h4><strong>Guide for US subscribers [and EU unless Betfair is accessible in your country]</strong></h4><p><strong>Step 1</strong>: Use a VPN and connect to a UK server. [<em>Any VPN will do, we use Mullvad since they&#8217;re crypto &amp; privacy friendly + a great bunch of autists like them</em>].</p><p><strong>Step 2</strong>: Visit https://www.betfair.com. Click &#8220;Join Now&#8221;. </p><p><strong>Step 3</strong>: Fill in the form, just go with dummy details [<em>example in picture below</em>]. However, make sure to remember/write down the email address and the password since you&#8217;ll need them to access the Betfair account. Moreover, you may at some point have to verify the email address &#8594; use one you&#8217;re able to access. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!w_wz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!w_wz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 424w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 848w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 1272w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!w_wz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png" width="1392" height="1096" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1096,&quot;width&quot;:1392,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:485468,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!w_wz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 424w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 848w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 1272w, https://substackcdn.com/image/fetch/$s_!w_wz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd111c04c-4d09-499a-9bb3-cb0369b6bc24_1392x1096.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Betfair sign-up</figcaption></figure></div><p><strong>Step 4</strong>: After finalizing the previous step, you&#8217;ll now arrive at an &#8220;automatic check&#8221; where Betfair is trying to verify your details. This process will of course fail and you&#8217;ll instead be redirected to a new page. Click &#8220;All details are correct&#8221;. Again you&#8217;ll be redirected to another verification page asking you to upload supporting documents to verify your identity. However, at this point we&#8217;re already done since the account has been created which is all we need. Close the pop-up window and return to https://www.betfair.com [<em>you should be logged in by default</em>].</p><div><hr></div><h3>Generate an API key</h3><p>Time to get an API key! </p><p>To do this, you&#8217;ll want to head over to <a href="https://docs.developer.betfair.com/visualisers/api-ng-account-operations/">this website</a>, at which you should be presented with the below view. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bptC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bptC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 424w, https://substackcdn.com/image/fetch/$s_!bptC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 848w, https://substackcdn.com/image/fetch/$s_!bptC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 1272w, https://substackcdn.com/image/fetch/$s_!bptC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bptC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png" width="1338" height="588" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:588,&quot;width&quot;:1338,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:314670,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bptC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 424w, https://substackcdn.com/image/fetch/$s_!bptC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 848w, https://substackcdn.com/image/fetch/$s_!bptC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 1272w, https://substackcdn.com/image/fetch/$s_!bptC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F19ac1ee1-1830-4429-9828-17bc3da98c9b_1338x588.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Note that you need a <em>Session Token (ssoid). </em>You can find this token by heading back to the <a href="https://www.betfair.com/exchange/plus/">Betfair Exchange landing page</a> [<em>if you&#8217;re getting more &#8220;you need to verify your account&#8221; messages, just ignore them</em>] &#8594; right click &#8594; &#8220;Inspect&#8221; &#8594; &#8220;Storage&#8221; &#8594; &#8220;Cookies&#8221; &#8594; locate the one marked &#8216;ssoid&#8217;. Finally, copy pasta this session token into the box, then click on createDeveloperAppKeys &#8594; fill in an [<em>arbitrary</em>] &#8220;Application Name&#8221; &#8594; click on &#8220;Execute&#8221; at the bottom of the page. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fDcT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fDcT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 424w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 848w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 1272w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fDcT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png" width="1456" height="959" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:959,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:843516,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fDcT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 424w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 848w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 1272w, https://substackcdn.com/image/fetch/$s_!fDcT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63350049-a301-4634-ad9f-49629924dfe4_2070x1364.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When you&#8217;ve completed the above steps your &#8220;Application&#8221; should show up on the right hand side as in the above picture. Click on it and copy the application key corresponding to the one with version &#8220;1.0-DELAY&#8221;. <strong>Save this key at a place where it&#8217;s easily accessible [</strong><em><strong>notes or whatever</strong></em><strong>], it&#8217;ll be used every time we write code that calls the API.</strong> </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EEOG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EEOG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 424w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 848w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 1272w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EEOG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png" width="1228" height="678" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:678,&quot;width&quot;:1228,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:268321,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EEOG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 424w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 848w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 1272w, https://substackcdn.com/image/fetch/$s_!EEOG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7cfeb2f7-348e-428c-af76-0d6eb54d9a85_1228x678.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Copy the Application Key for the delayed version</figcaption></figure></div><p><em>Notes: </em></p><ul><li><p><em>The&nbsp;Delayed App Key&nbsp;operates on the live (production) Betfair Exchange and not a testbed/sandbox environment.</em></p></li><li><p><em>The Delayed App Key should be used for development purposes and any functional testing. The key provides&nbsp;delayed Betfair price data.&nbsp;The delay is variable between 1-180 second snapshots.</em></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!vVQB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!vVQB!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 424w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 848w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 1272w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!vVQB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png" width="604" height="436.6265060240964" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:960,&quot;width&quot;:1328,&quot;resizeWidth&quot;:604,&quot;bytes&quot;:462384,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!vVQB!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 424w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 848w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 1272w, https://substackcdn.com/image/fetch/$s_!vVQB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F77b9b494-ab79-4483-a3f0-ce8ff99f38a1_1328x960.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><em>Note: If you&#8217;re finding this interesting/useful, please consider reading Betfair&#8217;s own <a href="https://developer.betfair.com/en/get-started/#exchange-api">API documentation</a> as well.</em></p><div><hr></div><h3>betfairlightweight</h3><p>Since we&#8217;re coding in Python, we&#8217;ll be using a [excellent] Python wrapper,  <strong>betfairlightweight,</strong> for all our Betfair API material. This library/package allows for all the available API operations and simplifies the stuff we&#8217;ll be interested in doing tremendously. Instead of having to spend an enormous amount of time coding up a bunch of classes [<em>with terrible performance, zero security &amp; thousands of bugs</em>] that sends &amp; handles requests &amp; responses, we take advantage of the fact that a bunch of turbo autists have done this exact thing for us already. </p><p>Begin with running</p><pre><code>pip install betfairlightweight</code></pre><p>to install the library. </p><div><hr></div><h3>Basic operations, set up and close a session</h3><p>Nothing teaches coding as well as sample code. Hence, let&#8217;s jump straight into it and perform a couple of trivial operations in order to get some basic experience with <strong>betfairlightweight</strong>.</p><p><em><strong>Below we&#8217;ll learn how to set up and close a session with the Betfair API.</strong></em> </p><p>To begin with, we have to define three variables that are required to establish a connection, <em><strong>username</strong></em> [<em>use the email address you registered</em>], <em><strong>password</strong></em> and <em><strong>API_key</strong></em>. As soon as they have been defined we set up an <a href="https://github.com/betcode-org/betfair/blob/4d7c38bd8b75183fbc46637abcabb8954ef00593/betfairlightweight/apiclient.py#L9">APIClient object</a> [<em>frequently named &#8220;trading&#8221; in the betfairlightweight documentation so we&#8217;ll go with that here as well</em>] taking those variables as parameters. </p><p>Code below. </p><pre><code>import betfairlightweight

username = "INPUT EMAIL ADRESS"
password = "INPUT PASSWORD"
API_key = "INPUT API KEY"

trading = betfairlightweight.APIClient(username, password, app_key = API_key)</code></pre><p>Now, calling</p><pre><code>trading.login_interactive()</code></pre><p>establishes a connection/session with the Betfair API. To check whether this connection is up and running you can do</p><pre><code>trading.session_expired</code></pre><p>which returns False &#8594; our session is live. </p><p><em>Note: When the connection is established an automatic timeout of 12 hours is applied</em>.</p><p>Doing </p><pre><code>trading.logout() </code></pre><p>terminates the session which can be verified by another</p><pre><code>trading.session_expired</code></pre><p>now returning True. </p><div><hr></div><p>A couple of useful links below. </p><p><strong><a href="https://github.com/betcode-org/betfair">Github repository</a> </strong>[<em>many</em> <em>hours have to be spent analyzing the code to &#8220;fully understand&#8221; how everything&#8217;s connected</em>]</p><p><strong><a href="https://betcode-org.github.io/betfair/">Documentation</a> </strong>[<em>not too much material but at least a couple of brief examples</em>]</p><p><strong><a href="https://join.slack.com/t/betcode-org/shared_invite/zt-h0ato238-PPbfU_T7Ji0ORjz0ESIJkg">Slack group</a> </strong></p><div><hr></div><h3>Summary</h3><p>Since more fruitful examples require a deeper understanding [<em>of <strong>betfairlightweight</strong> &amp; the <strong>Betfair API</strong></em><strong>]</strong> and this is supposed to be a *gentle* introduction, i.e. a brief presentation with a concise set-up guide, we&#8217;ll reserve the practical &amp; therefore more interesting content for future posts. </p><div><hr></div><p>Nevertheless, if you&#8217;re curious and would prefer to delve deeper ASAP, we&#8217;d recommend checking out our <a href="https://github.com/BowTiedBettor/APIUsage/tree/main/betfair_api/BR">Github Betfair API material</a>, which e.g. contains full support for automation of the hedging process for <a href="https://bowtiedbettor.substack.com/p/bonus-rugging-10-collect-your-first">bonus rugging</a>. </p><p><em>The idea is the following: instead of wasting precious time recruiting &amp; speaking to new BR-prospects 24/7, you hire someone to do this. This person is then responsible for both the communication and the placement of bets on *their* sportsbook accounts. Every evening, he sends you an Excel file [predefined template] with all the new [unhedged] bets &#8594; you run the script which reads the Excel file and hedges the bets, one by one, at Betfair. Efficient, right? </em></p><p><em>[Now repeat this process by hiring a second person ;)]</em></p><div><hr></div><p>Expect more interesting Betfair API material to pop up at a regular basis. In the next post on this subject we&#8217;ll probably have a look at <a href="https://historicdata.betfair.com/#/home">historical data</a> and how you can utilize the <strong>betfairlightweight</strong> library to parse the relatively unfriendly files Betfair provides you with.</p><p><em>Closing note: We fetch and use odds data from the Betfair API multiple times a week to beat less efficient markets [&#8220;pick the winner in 7-15 games&#8221; and similar multi-game bets are very popular in some parts of the world]. <strong>betfairlightweight</strong> + <strong>itertools</strong>, IYKYK. </em></p><p>Until next time&#8230; </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p><p></p><p> </p><p></p><p></p><p><em> </em></p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Bet sequences, an analysis]]></title><description><![CDATA[Level &#8734; - BILL BETTOR]]></description><link>https://www.blog.bowtiedbettor.com/p/bet-sequences-an-analysis</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/bet-sequences-an-analysis</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sun, 26 Feb 2023 01:03:46 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler! <br><br>Suppose that you&#8217;ve managed to develop a promising betting model. The basic backtests have been looking good and by now you believe the time has come to test it live. You&#8217;d however prefer to have gained some insight regarding the sequence of bets that you and your model are about to generate prior to launching it. Questions such as the following arise: </p><ul><li><p>What&#8217;s there to &#8220;expect&#8221; from the bet sequence/process? Which paths are <em>possible</em>, which are <em>plausible</em>? </p></li><li><p>What&#8217;s the probability of losing money over, say, 420 bets despite having an average EV of, say, 10 %? </p></li><li><p>What&#8217;s the necessary amount of settled bets to reach any kind of conclusion regarding the efficiency of the model? </p></li></ul><p><em>Note: <strong>Efficiency of a betting model = does it make money or not?</strong> Everyone can hit +80 % during a NHL season [bet all the &lt; 1.20 and you should be good], this number alone tells you absolutely nothing. Probabilities don&#8217;t put food on the table, <strong>payoffs</strong> do.</em></p><p>Today, we will make an effort to provide solutions to such inquiries. We will conduct a comprehensive examination, utilizing both classical probability theory and modern simulation techniques, of the cumulative P&amp;L (profit and loss) and ROI (return on investment) - two random sequences/processes created by placing numerous bets within a certain time frame.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Vw1u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Vw1u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 424w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 848w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 1272w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Vw1u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png" width="516" height="255.21382289416846" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:458,&quot;width&quot;:926,&quot;resizeWidth&quot;:516,&quot;bytes&quot;:644258,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Vw1u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 424w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 848w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 1272w, https://substackcdn.com/image/fetch/$s_!Vw1u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00cf9e33-414c-4d1f-bff7-73566ae47572_926x458.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">One plus one is greater than two.</figcaption></figure></div><div><hr></div><h3>A mathematical perspective</h3><p>When faced with a theoretical problem, one of the most powerful approaches is to break the problem into small pieces, gain insight about those, then reconstruct and give the initial problem a second try, now equipped with the newly attained knowledge and a greater understanding of the matter. </p><p>A betting sequence/process is, as the name suggests, a sequence of bets, with bets arriving one at a time. Therefore, by way of the above approach, we begin by breaking the analysis of the full sequence into a smaller subproblem, in this case an examination of a single bet, or perhaps more relevant for our ambitions, the P&amp;L of a single bet.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!lDPn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!lDPn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 424w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 848w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 1272w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!lDPn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png" width="1410" height="172" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:172,&quot;width&quot;:1410,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:132780,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!lDPn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 424w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 848w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 1272w, https://substackcdn.com/image/fetch/$s_!lDPn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F330ef933-916e-4f2c-80d7-860cee2af054_1410x172.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><em>Note: One could throw away either one of odds, expected value or probability from the above definition without any loss of information (why?). For clarity we&#8217;ve nevertheless chosen to include all of them. </em></p><p>What&#8217;s a random variable, one might ask? Easy! A measurable function from a probability measure space to a measurable space. <strong>WTF? Yep, just kidding.</strong></p><p>For our purposes a random variable is a variable that can take a finite amount of values, each with a certain probability and such that the probabilities add up to one. </p><p><em><strong>Example: X, a variable that holds information about the result of a flip of a coin, is known to always evaluate to either 0 or 1. With probability 0.5 [heads] it&#8217;s 0 and with the remaining 0.5 [tails] it&#8217;s 1. Thus, X is a *random* variable since it depends on the outcome of the coin flip [a *random* experiment]. </strong></em></p><p>To proceed in a similar fashion as in the example above, we&#8217;d like to come up with a precise &#8220;random variable-definition&#8221; of the P&amp;L of a bet. Since we want it to possess complete information regarding the result of the bet, we&#8217;ll let it take two possible values.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!fLdj!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!fLdj!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 424w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 848w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 1272w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!fLdj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png" width="620" height="154.7535771065183" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:314,&quot;width&quot;:1258,&quot;resizeWidth&quot;:620,&quot;bytes&quot;:125071,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!fLdj!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 424w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 848w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 1272w, https://substackcdn.com/image/fetch/$s_!fLdj!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb4f26497-b78b-4850-9e58-1e0b59582836_1258x314.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Recall that S = stake and O = odds. In other words the P&amp;L random variable keeps, as the name suggests, track of the net profit/loss obtained from the bet. If the bet wins, it evaluates to the net profit [stake x net odds = net profit]. On the other hand, if the bet loses, the full stake is lost and so the P&amp;L becomes negative the stake [-stake = net loss].</p><p>Indeed, this definition seems reasonable. </p><p>Having solved this subproblem, we now return to the original mission. To analyze the full cumulative P&amp;L process we&#8217;ll have to take all the <em><strong>n</strong></em> bets into account, not only one of them. But this is easy, right? We simply repeat the above procedure for each and every bet in our sequence. Then, when this has been done, we sum them all up to generate the cumulative P&amp;L.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!bEiX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!bEiX!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 424w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 848w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 1272w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!bEiX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png" width="1190" height="314" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:314,&quot;width&quot;:1190,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:140520,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!bEiX!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 424w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 848w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 1272w, https://substackcdn.com/image/fetch/$s_!bEiX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa7ed8b2d-7fb7-4cba-8234-9bdec2139b0f_1190x314.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Furthermore, let&#8217;s do a slight adjustment and see if anything of interest may appear: we divide the cumulative P&amp;L by the total turnover [sum of all stakes] during the period,</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_pgN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_pgN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 424w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 848w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 1272w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_pgN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png" width="1190" height="538" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:538,&quot;width&quot;:1190,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:272768,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_pgN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 424w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 848w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 1272w, https://substackcdn.com/image/fetch/$s_!_pgN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F630f2fab-ff1c-4f23-8129-0083c357564a_1190x538.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Interesting!</p><p>At this point we&#8217;ve managed to construct formal random models [<em>random since they both depend on the outcomes of the games the bettor is placing bets on</em>] for two crucial betting processes, the cumulative P&amp;L and the ROI. Thus we are in a good position to further deepen our exploration of them and analyze their different properties:</p><ul><li><p>Distributional properties. Perhaps we&#8217;re interested in the full probability distribution of the ROI after the first 200 bets. Is this possible to obtain? </p></li><li><p>Convergence properties. Do the measures converge, and if so, how fast? As mentioned in <a href="https://bowtiedbettor.substack.com/i/63917125/return-on-investment-roi">Betting 101</a>, we somehow &#8216;feel&#8217; that the ROI should converge to the true, underlying EV as the number of bets increases. Meanwhile, it seems unlikely that the cumulative P&amp;L will converge to anything. If we&#8217;re betting +EV games it&#8217;ll drift upwards, else it&#8217;ll drift downwards, right? </p><p><em>Autist challenge: can you come up with examples where the cumulative P&amp;L in fact does converge?</em></p></li></ul><div><hr></div><h3>Cumulative P&amp;L </h3><p>As already mentioned we don&#8217;t expect interesting things concerning convergence to pop up here. </p><p>What about its distributional properties?</p><p>In general, with zero restrictions/constraints on the behaviour of the individual bets we cannot say much. Well, we may note some trivialities, </p><ul><li><p>Being a sum of a collection of discrete random variables, the cumulative P&amp;L must itself be discrete. </p></li><li><p>Expectations behave like &#8220;expected&#8221;. </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!lrbO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!lrbO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 424w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 848w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 1272w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!lrbO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png" width="672" height="239.90786948176583" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:372,&quot;width&quot;:1042,&quot;resizeWidth&quot;:672,&quot;bytes&quot;:173973,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!lrbO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 424w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 848w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 1272w, https://substackcdn.com/image/fetch/$s_!lrbO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa8586f64-f397-4fc5-8779-2b4e0d497a32_1042x372.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div></li><li><p>Assuming independence between bets we discover that the variance increases with increasing <strong>n</strong>. This agrees with our intuition and is a consequence of the fact that the cumulative P&amp;L is an unnormalized measure. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ggCe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ggCe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 424w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 848w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 1272w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ggCe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png" width="1230" height="330" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:330,&quot;width&quot;:1230,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:161551,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ggCe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 424w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 848w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 1272w, https://substackcdn.com/image/fetch/$s_!ggCe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4d2b3085-7202-41b9-80fd-5bfc9d7aceaa_1230x330.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Note: The assumption of independence between bets could be invalid for many reasons. An example: several bets in one horse race. Another: a degen gambler increasing size with drawdowns to &#8216;win it all back&#8217;.</em> </p></li></ul><p>but to obtain general information regarding the resulting probability distribution we&#8217;ll have to resort to Monte Carlo methods. </p><p><em>Monte Carlo methods are a class of computational techniques that use random sampling to estimate numerical solutions to problems that may be difficult or impossible to solve using &#8216;standard&#8217; methods. With zero structure [as in this case with varying stakes, odds &amp; probabilities], the generation process of the cumulative P&amp;L becomes an excellent example of such a problem. </em></p><div><hr></div><h3>ROI</h3><p>In our <a href="https://bowtiedbettor.substack.com/p/betting-101">Betting 101</a>, the following was stated,  </p><blockquote><p>There is an interesting connection between the expected value and the ROI measure. If one views the expected value as an abstract concept handling &#8220;true&#8221; probabilities, the ROI measure is its practical counterpart, only taking a finite, often small, sample into consideration. However, as the number of bets increases one may expect the ROI to converge to the true EV of the betting sequence, making them both more or less equivalent. A more detailed discussion on this is coming!&nbsp;</p></blockquote><p>Expecting &amp; believing something is one thing. Actually proving it is another. Moreover, during the course of testing a hypothesis, it is common to uncover significant flaws in your current understanding and gain valuable insights that had not been previously considered.</p><p>Therefore, let&#8217;s try to prove our hypothesis: that the ROI does in fact converge to the true EV as the number of bets grows large.</p><div><hr></div><h4><strong>ROI - Trial #1 [zero assumptions, full generality]:</strong> </h4><p>Recall the ROI measure: </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!1qyd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!1qyd!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 424w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 848w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 1272w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!1qyd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png" width="520" height="120" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/13670def-81e2-42ad-a6ca-705167e860c5_676x156.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:156,&quot;width&quot;:676,&quot;resizeWidth&quot;:520,&quot;bytes&quot;:57175,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!1qyd!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 424w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 848w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 1272w, https://substackcdn.com/image/fetch/$s_!1qyd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F13670def-81e2-42ad-a6ca-705167e860c5_676x156.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>To prove that a random variable [in this case the ROI measure] converges to a given real number, one has to show that by picking a large enough number of bets, one is &#8220;guaranteed&#8221; to come &#8220;arbitrarily&#8221; close to the given value. </p><p><em>Autist note: Unfortunately the notion of probabilistic convergence is far from straightforward, making it difficult for us to be 100 % precise here. There are four different kinds of convergence [conv. in distribution, conv. in probability, conv. almost everywhere, conv. in p&#8217;th mean], all suitable for different occasions. To simplify matters we&#8217;ll restrict ourselves to convergence in probability which translates into the following: you give me *any* probability [say 0.05] as well as *any* small number [say 0.005]. Then, if I&#8217;m able to provide you with a large enough number of bets [say 12 000] such that the true probability of the ROI being outside the &#8220;small number-distance&#8221; [0.005 here] of the EV is *at most* the provided probability [in this case 0.05], the ROI is said to <strong>converge in probability</strong> to the EV. </em></p><p>With zero assumptions, the statement &#8216;the ROI converges to the EV&#8217; will however be a very, very difficult proposition to prove. Why? Because it&#8217;s simply not true. Without restrictions on the stakes, probabilities and odds, there are a myriad of counterexamples that make any kind of convergence impossible. </p><p><em><strong>Example of a counterexample</strong>: A bettor has taken the notion of &#8216;bet more&#8217; literally and triples his average bet size at every 100&#8217;th bet. Thus, his ROI will at all times be heavily dependent on the ~ last 100 bets no matter how far into the future we go, ascertaining that the ROI measure will keep jumping around and refuse to &#8216;stick&#8217; anywhere.</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nEWL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nEWL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 424w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 848w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 1272w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nEWL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png" width="290" height="224.54861111111111" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:446,&quot;width&quot;:576,&quot;resizeWidth&quot;:290,&quot;bytes&quot;:376781,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nEWL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 424w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 848w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 1272w, https://substackcdn.com/image/fetch/$s_!nEWL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1be19678-6b58-416b-9211-ebefa8f215d8_576x446.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!l4GC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!l4GC!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!l4GC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:33429,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!l4GC!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!l4GC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb53c5fd7-a786-4485-bc62-27752a3ce025_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The bettor keeps sizing up &amp; therefore disallows the law of large numbers to have its effect on his sequence of bets</figcaption></figure></div><p>We conclude that we in fact *have to* introduce constraints if we hope to find any interesting properties. </p><p><em>Note: The code for all examples &amp; simulations throughout this discussion lives <a href="https://github.com/BowTiedBettor/Bet-Sequences/blob/main/betseq.py">here</a>.</em></p><div><hr></div><h4><strong>ROI - Trial #2 [perfect assumptions, independent, equivalent bets]</strong>: </h4><p>If we instead look at the other extreme, where we assume independence and equivalence of all bets throughout the betting process, we hope to see neat convergence results. If not, well, then we won&#8217;t see convergence anywhere, right?</p><p><em><strong>Example</strong>: A bettor is betting $1 on 2.00 outcomes, each with a probability of 0.55, over and over again.</em> </p><p>Since the EV in the above example is 10 %, we expect the ROI to converge to this value [0.10]. </p><p><em>In probability theory, one of many laws of large numbers states the following:</em></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!JF4u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!JF4u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 424w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 848w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 1272w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!JF4u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png" width="1172" height="206" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/facbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:206,&quot;width&quot;:1172,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:111950,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!JF4u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 424w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 848w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 1272w, https://substackcdn.com/image/fetch/$s_!JF4u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffacbda4c-e2a3-44c4-b726-e579e0b17032_1172x206.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>In our case we may identify the <em><strong>S_n</strong></em> variable in the theorem above as the cumulative P&amp;L, and <em><strong>S_n/n</strong></em> the ROI after <em><strong>n</strong></em> bets. Since E[<strong>X</strong>] equals 0.10, with <strong>X</strong> being any one of the independent &amp; identical bets of $1 on 2.00 outcomes [having 0.10 EV], the theorem guarantees that the ROI does indeed converge to the expected value. Great news! </p><p>The next question: how fast is the convergence? To gain some intuition on this, we&#8217;ll look at a couple of simulations prior to delving deep into the theory.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UNHS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UNHS!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UNHS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:71149,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UNHS!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!UNHS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F87d2693e-efb1-4025-baba-cc26e005d2ec_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>100 simulations of a bettor placing 10 000 identical $1 bets on 2.00 outcomes, each with a probability of 0.55</em></figcaption></figure></div><p>Cool, you think, after glancing at the graph for half a second. <strong>INSPECT IT FOR A WHILE, THINK HARD &amp; LEARN INSTEAD</strong>! As you can see, it takes time, probably far more than you&#8217;d guess, to reach (or at least approximate) &#8216;truth&#8217;. </p><h4>&#8220;Perfect world&#8220; [independent, identical bets] ROI, theory</h4><p>It&#8217;s time to continue our analysis of the ROI and its speed of convergence by going full math &#8216;tism, i.e. we&#8217;ll now examine the question from a purely theoretical viewpoint. To begin with, we&#8217;ll have a look at the ROI&#8217;s distributional properties. In fact, once the complete probability distribution of the process is derived, determining the process's position at various points in time becomes straightforward. This, in turn, makes it relatively easy to determine characteristics such as the rate of convergence.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8qOH!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8qOH!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 424w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 848w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 1272w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8qOH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png" width="1040" height="1132" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1132,&quot;width&quot;:1040,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:721092,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8qOH!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 424w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 848w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 1272w, https://substackcdn.com/image/fetch/$s_!8qOH!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F95853c02-28bf-43d1-a6c0-0224cf4c0b20_1040x1132.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9tDa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9tDa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 424w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 848w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 1272w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9tDa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png" width="1032" height="1076" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1076,&quot;width&quot;:1032,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:519996,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9tDa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 424w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 848w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 1272w, https://substackcdn.com/image/fetch/$s_!9tDa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2be864ba-e952-428d-98b5-3c3bdee96611_1032x1076.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kddL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kddL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 424w, https://substackcdn.com/image/fetch/$s_!kddL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 848w, https://substackcdn.com/image/fetch/$s_!kddL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 1272w, https://substackcdn.com/image/fetch/$s_!kddL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kddL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png" width="1032" height="448" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:448,&quot;width&quot;:1032,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:229317,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kddL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 424w, https://substackcdn.com/image/fetch/$s_!kddL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 848w, https://substackcdn.com/image/fetch/$s_!kddL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 1272w, https://substackcdn.com/image/fetch/$s_!kddL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4f991d27-cb27-4e10-8ddd-7b3e6d7b04ec_1032x448.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Finally, we conclude this section with plots of the probability distributions [pictures tell more than thousands of equations] of the ROI for different N. Code as before on Github [<strong><a href="https://github.com/BowTiedBettor/Bet-Sequences/blob/main/betseq.py">LINK</a></strong>].</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!55J7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!55J7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!55J7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!55J7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!55J7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!55J7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:12781,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!55J7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!55J7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!55J7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!55J7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa30b3c94-26fd-4c8d-9fd8-5e679e1915b9_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Lots of randomness after only 100 bets</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!dk2q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!dk2q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!dk2q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:12875,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!dk2q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!dk2q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5536f06a-ed7d-4d42-9a9c-9170a2b91ebc_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Negative results unlikely at 500 bets</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!LPh2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!LPh2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!LPh2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:12853,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!LPh2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!LPh2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0423efa2-e8fa-4fdd-8988-b9e39941c58c_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Our bettor&#8217;s probability distribution after 1 000 bets</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Y6TZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:12865,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!Y6TZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc71c105d-3b1a-4449-9c26-be68c87d9ac2_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">10 000 bets, the convergence is showing</figcaption></figure></div><div><hr></div><h3>Welcome to Monte Carlo!</h3><p>Now that we&#8217;ve analyzed the two edge cases, <em>zero constraints</em> and <em>a maximum amount of constraints</em>, we&#8217;d like to see what share of the assumptions we can drop while still retaining the nice convergence properties [<em>since all bettors love to shout about the law of large numbers, it would be sad if it didn&#8217;t even apply to their betting, wouldn&#8217;t it?</em>]. </p><p>A non-triviality arises quite quickly though. As we begin dropping off assumptions, the theoretical parts, which by the way are on a quite sophisticated level already, will soon become more or less impossible to handle. Consequently Monte Carlo simulations will be the only reasonable way forward and therefore we&#8217;ll at this moment make a full transition into analyzing bet sequences purely on the basis of simulation techniques. </p><p><em>Autist note: If you&#8217;ve come this far &amp; actually want to understand [using maths, not code] the precise assumptions one may drop without removing ROI &#8594; EV, we&#8217;re happy to discuss this further either in DM&#8217;s or in our <a href="https://discord.gg/hqEVVMjgRA">Discord server</a>. </em></p><pre><code><em>Playing around with and meditating on simplified Monte Carlo simulations, or "alternative histories", is the best way to figure things out.</em></code></pre><div><hr></div><h3>Simulating alternative realities</h3><p>To make matters more interesting, we&#8217;ll have a look at a real data set containing actual betting data. </p><p><em><strong>Somewhere in the world there&#8217;s a bettor applying a specific horse racing model on a daily basis. Earlier this week he placed his 500&#8217;th bet for the year with this model and after pondering the result for a while he&#8217;s curious to learn how much of an outlier the latest 500 bets have been. From earlier investigations he&#8217;s almost certain that the true EV for the model is ~ 0.15. Furthermore, he&#8217;s also interested in discovering the likelihood of the ROI conditional on an EV of -0.15, the default margin applied by the bookmakers in the markets he&#8217;s operating in.</strong></em></p><p>He&#8217;s been kind enough to provide us with an Excel file containing the data for the 500 bets. </p><div class="file-embed-wrapper" data-component-name="FileToDOM"><div class="file-embed-container-reader"><div class="file-embed-container-top"><image class="file-embed-thumbnail-default" src="https://substackcdn.com/image/fetch/$s_!0Cy0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Fattachment_icon.svg"></image><div class="file-embed-details"><div class="file-embed-details-h1">Bettingdata</div><div class="file-embed-details-h2">80.3KB &#8729; XLSX file</div></div><a class="file-embed-button wide" href="https://www.blog.bowtiedbettor.com/api/v1/file/3158b534-9c14-4111-a05d-b380349901cc.xlsx"><span class="file-embed-button-text">Download</span></a></div><a class="file-embed-button narrow" href="https://www.blog.bowtiedbettor.com/api/v1/file/3158b534-9c14-4111-a05d-b380349901cc.xlsx"><span class="file-embed-button-text">Download</span></a></div></div><p>Okay, let&#8217;s help the bettor!</p><p>We&#8217;ll run two experiments. In the first case we&#8217;ll assume that the EV is constant at 0.15/bet, in case 2 the assumption will be an EV of -0.15/bet. By using the odds [<em>from the data file</em>], the probability of a given bet winning is easily calculated as: </p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;PROBABILITY = \\frac{1}{ODDS} \\cdot (1+EV)&quot;,&quot;id&quot;:&quot;MATIXZHHJC&quot;}" data-component-name="LatexBlockToDOM"></div><p>For each case we&#8217;ll then run 10 000 simulations for the cumulative P&amp;L and 10 000 simulations for the ROI to learn a bit about which paths are <em>possible</em> and which are <em>plausible</em>.</p><div><hr></div><p><em><strong>Note I: For simplicity we&#8217;ll restrict today&#8217;s analysis to a sequence of 500 bets, i.e. the exact length of the historical data file. If one would like to investigate the matter on a longer time-frame [e.g. 1 000 or 10 000 bets] and/or begin with a smaller data set, we&#8217;d recommend using bootstrapping techniques to generate a sequence of wanted length.</strong></em></p><p><em>Bootstrapping is a statistical method that involves resampling from the original dataset to create new samples that are used to estimate statistical properties of the population. The idea is to simulate the process of randomly drawing new samples from the same population to better understand the uncertainty associated with our estimates. Bootstrapping is useful because it allows us to simulate random processes and estimate the variability of our estimates without having to make assumptions about the underlying distribution of the population.</em></p><p><em><strong>Note II: The assumption of a constant EV throughout a bet sequence is *always* invalid in practice, and even more so in cases where the gambler doesn&#8217;t operate within a certain odds range [as in our case, take a look at the data]. To illustrate why, suppose there&#8217;s a 1.04 bet included in the data. Then this bet automatically disqualifies all the other ones from an EV of above 4 %, which of course is nothing but stupid. However, to incorporate this into what we&#8217;re doing we&#8217;d have to include both randomness as well as an odds-dependence in the modelling of the EV, a procedure that is better left for the real turbos to perform on their own.</strong> </em></p><div><hr></div><p>We proceed by creating two new columns with the assumed probabilities for each game. Next we load the updated dataset into Python. After that we&#8217;ll simply run the 10 000 simulations and see what happens. Additionally, the total stakes [which is a necessary metric to calculate the ROI] during the bet sequence was $112 768, a number we&#8217;ll simply hard-code into the Python program. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!I5mz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!I5mz!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 424w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 848w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 1272w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!I5mz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png" width="1456" height="668" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:668,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:548119,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!I5mz!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 424w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 848w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 1272w, https://substackcdn.com/image/fetch/$s_!I5mz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa500ebf2-8ab2-4f2d-8a88-78c3413aa302_1586x728.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Adjusted Excel spreadsheet&#8230;</figcaption></figure></div><h4>Case 1: +15 % EV</h4><p>Results of the simulations below. Note that the actual ROI for our bettor was ~ 33 %. According to the simulations and assuming a 15 % EV, obtaining either this or an even higher ROI has a probability of ~ 7 %. Moreover, it should be observed that the probability of losing money over this 500 bet sequence, despite the +15 % edge, is about 10 %. </p><p><em>Statistical note: You may recognize this 7 % value from the statistical literature as the p-value [if you&#8217;re a p-value guy &#8594; definitely NGMI, 100 % a measure made for &#8216;tards] for the test of &#8220;EV is 15 % or less&#8221;. </em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!U8Px!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!U8Px!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!U8Px!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:20247,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!U8Px!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!U8Px!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F12eabbac-f78a-46a3-920e-9cdd9cef5ec9_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Alternative realities for a sharp horse racing punter placing 500 bets at varying odds with a constant EV of +15 %</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!UMsy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!UMsy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!UMsy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:16808,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!UMsy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!UMsy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fca8fbb44-51c1-4277-bc70-b5b9845db779_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">ROI&#8217;s for the same simulation study [a normalized version of the P&amp;L histogram]</figcaption></figure></div><h4>Case 2: -15 % EV [default margin, i.e. betting randomly]</h4><p>Again results below. This time the probability of obtaining at least such a ROI [33 %] has dropped severely to ~ 1/1000 [good news for our friend!], while the probability of losing money has increased to  ~ 92 %.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ThXP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ThXP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ThXP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:20256,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ThXP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!ThXP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd95c3937-1786-443a-bd43-ae3a91e9b73e_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Alternative realities for the average horse racing gambler, betting at an EV of -15 % [the bookmaker&#8217;s take]</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oAA8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oAA8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oAA8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:17498,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oAA8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!oAA8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8341c4ba-1a24-48c9-9aec-9f75d3503f89_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Probability distribution for the ROI measure for an average horse racing gambler</figcaption></figure></div><div><hr></div><h3>Inverting the process &amp; learning the truth the Bayesian way</h3><p>Up until this point we&#8217;ve, perhaps without you even noticing, restricted our analysis to a certain perspective. Throughout the exploration we&#8217;ve *conditioned* on a specified EV and, *given* this EV, investigated possible real-world realizations. Indeed, if you&#8217;re fairly certain about your EV, this is an informative way of learning what the future may have in store for you. However, this is rarely the case in reality, right? In the real world no one really knows their true EV. Therefore, a more realistic and hence more interesting question is the converse: *given* a certain P&amp;L, what conclusions can you draw about your EV?</p><p>Having read both our <a href="https://bowtiedbettor.substack.com/p/conditional-probability-and-bayes">introduction to conditional probability &amp; Bayes Theore</a>m as well as <a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part">part 1 in the Bayesian thinking &amp; inference-series</a>, the inverted thinking in the above paragraph should remind you of something. Indeed, Bayes! </p><p>So far, we&#8217;ve been working with the following probability,</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot; \\mathbb{P}\\left.(ROI  \\right| EV) &quot;,&quot;id&quot;:&quot;KVIPVDBFBD&quot;}" data-component-name="LatexBlockToDOM"></div><p>however in practice we&#8217;re primarily concerned with the converse, </p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot; \\mathbb{P}\\left.(EV  \\right| ROI) &quot;,&quot;id&quot;:&quot;MAGGZJIPDH&quot;}" data-component-name="LatexBlockToDOM"></div><p>since after observing a ROI for our real world betting, we&#8217;d like to learn about the underlying EV to conclude whether our model is any good or not. </p><p>Using Bayes Theorem, we have, </p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\mathbb{P}\\left.(EV \\right|ROI) = \\frac{\\mathbb{P}\\left.(\\textit{ROI }\\right|EV) \\cdot \\mathbb{P}(EV)}{\\mathbb{P}(\\textit{ROI})} =  \\frac{\\mathbb{P}\\left.(\\textit{ROI }\\right|EV) \\cdot \\mathbb{P}(EV)}{\\int_{EV_{range}}^{} \\mathbb{P}\\left.(\\textit{ROI }\\right|t) \\mathbb{P}(t) dt} &quot;,&quot;id&quot;:&quot;TDINNXPTCN&quot;}" data-component-name="LatexBlockToDOM"></div><p>with <em>P(EV)</em> the prior probability of the EV [which incorporates our initial beliefs of the quality of the model/bettor] and <em>EV_range</em> the range of possible values the EV might take. In plain english, what we&#8217;re doing is the following, </p><div class="pullquote"><p>Initially, we construct a model where we claim that the EV might take on a certain range of values [for example everything between -0.5 to 0.5]. For every such value, we compute the conditional probability of observing the real-world sequence of bets [as in earlier sections]. If this probability is *high*, then the data indicates a certain plausibility of this EV. On the contrary, if the real world bet sequence is extremely unlikely to have been observed for the said EV, then, by actually observing it, we must of course respect the newly discovered information and deem that hypothesis less likely than before. </p><p>Example: You&#8217;re on a vacation in Brazil &amp; there&#8217;s this guy offering everyone an odds of 2.50 on heads on the next coin flip. Since you&#8217;ve been brainwashed into thinking a coin flip is 50/50, that&#8217;s your initial belief. However, after observing 2 heads and 8 tails over the next 10 flips, you begin to seriously question whether the coin is loaded or not - you&#8217;re assigning larger and larger probabilities to heads as long as the data keeps pointing in that direction.</p><p><br>The beauty of Bayes is that it provides a perfect recipe for the conversion of this intuitive thinking into formulas!  </p></div><p>To illustrate the method, we&#8217;ll in fact do exactly as in the above description and assume the EV to, with probability one, be in the interval [-0.5, 0.5]. Furthermore, to simplify things we&#8217;ll assume a <em>uniform</em> <em>prior</em> over this interval [i.e. our initial belief is that any EV between -50 % and +50 % is just as likely]. Then, we&#8217;ll *learn from the data* and update the probability of different EV&#8217;s accordingly. As more data arrive we continually adjust our distributions and beliefs. </p><p><em>Note: You&#8217;ll never agree with anyone on the choice of prior, but who the f*ck cares. We&#8217;re not here to write papers and engage in pointless discussions, but instead to learn betting &amp; make money off that knowledge. If your priors are bad you&#8217;ll lose money. If they are good you&#8217;ll make money. Easy as that. If you&#8217;re investigating a newly launched bet picking service and you believe the founder of it to be extremely talented, of course you&#8217;ll want to incorporate that belief into your prior model and probably invest in him at an early stage. On the other hand, if you deem him stupid, you&#8217;ll give the negative EV&#8217;s greater weight &amp; require him to perform on point for much longer until you&#8217;re convinced he knows what he&#8217;s doing. Makes sense, doesn&#8217;t it? </em></p><p>Output from the Bayesian analysis of the historical bets made by the horse racing bettor below. <a href="https://github.com/BowTiedBettor/Bet-Sequences/blob/main/betseq.py">Inspect our code</a> if you&#8217;re curious about the computational aspects [<em>highly recommended, you&#8217;ll learn a lot by thinking about the logic of a Bayesian inference tool, in this case a very basic one</em>].</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rc8-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rc8-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rc8-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:14249,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rc8-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!rc8-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa42469d7-bddb-4ead-93ba-9306698b68b8_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!2B2n!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!2B2n!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!2B2n!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:27019,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!2B2n!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!2B2n!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F844500f0-4b21-40b9-81f4-790d0d5d4fbf_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Lots of uncertainty remaining after a mere 100 bets</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!SNGb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!SNGb!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!SNGb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/af017521-8d27-4617-9e64-6b13df6207d3_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:23308,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!SNGb!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!SNGb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faf017521-8d27-4617-9e64-6b13df6207d3_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The information gained from 250 bets at a ROI of 32 %</figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ztCF!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ztCF!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ztCF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png" width="640" height="480" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:640,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:22689,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ztCF!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 424w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 848w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 1272w, https://substackcdn.com/image/fetch/$s_!ztCF!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb185ad2f-3766-4f37-a2b7-f527fb695e34_640x480.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">500 bets, yet far away from any certainty&#8230; However, we&#8217;re at this point fairly convinced that our bettor is a long-term winner</figcaption></figure></div><p>Learning from data is sloooooooow&#8230; probably much slower than you&#8217;d think before seeing those graphs. </p><p><em>*Note that all the results rely on the <strong>constant prior</strong> assumption.</em> </p><div><hr></div><h3>Conclusion</h3><p><em>If you&#8217;ve made it this far you&#8217;re a certified autist so congratulations on that!</em></p><p>Concluding remark:<strong> what was to be said, has been said</strong>. We hope you&#8217;ve picked up a decent chunk of knowledge on the development of a bet sequence through time, and wish you best luck with *yours*!</p><div class="twitter-embed" data-attrs="{&quot;url&quot;:&quot;https://twitter.com/BowTiedBettorII/status/1625540934078283792&quot;,&quot;full_text&quot;:&quot;Tweaked conditions [EV, odds, stakes] will of course yield different processes &amp;amp; paths. \n\nPick *your* path wisely, anon. \n\nN = 1.&quot;,&quot;username&quot;:&quot;BowTiedBettorII&quot;,&quot;name&quot;:&quot;BowTiedBettor | Autist Gambler&quot;,&quot;profile_image_url&quot;:&quot;&quot;,&quot;date&quot;:&quot;Tue Feb 14 17:02:14 +0000 2023&quot;,&quot;photos&quot;:[],&quot;quoted_tweet&quot;:{},&quot;reply_count&quot;:0,&quot;retweet_count&quot;:0,&quot;like_count&quot;:0,&quot;impression_count&quot;:0,&quot;expanded_url&quot;:{},&quot;video_url&quot;:null,&quot;belowTheFold&quot;:true}" data-component-name="Twitter2ToDOM"></div><p>Stay toon&#8217;d for more interesting betting material. </p><p>Until next time&#8230; </p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!m9W6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!m9W6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!m9W6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg" width="448" height="379.38461538461536" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:448,&quot;bytes&quot;:341869,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!m9W6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!m9W6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c98fd10-9a1e-4565-91e5-89b6a0e9234a_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&amp;gift=true&quot;,&quot;text&quot;:&quot;Give a gift subscription&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?&amp;gift=true"><span>Give a gift subscription</span></a></p><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p><p></p>]]></content:encoded></item><item><title><![CDATA[New to BowTiedBettor? ***START HERE!***]]></title><description><![CDATA[An overview of the BowTiedBettor Substack]]></description><link>https://www.blog.bowtiedbettor.com/p/new-to-bowtiedbettor-start-here</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/new-to-bowtiedbettor-start-here</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sat, 11 Feb 2023 21:13:16 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8971b7a4-1e40-4700-9fa7-5a9513d9b35e_1416x1234.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>This is the official &#8220;directory&#8221; of the BowTiedBettor Substack.</p><p>The purpose of this is to provide you with a logical way/order to read the articles.</p><p>This page will be updated periodically to keep some type of continuity as we jump into more advanced concepts [this will become increasingly important as you&#8217;ll at some point, in some cases already, need to read certain posts before reading the newer ones].</p><p>The content has been subdivided into three segments. </p><ul><li><p>&#8220;<strong>Start here!</strong>&#8221;, beginner material. Recommended for everyone but in particular for novices.</p></li><li><p>&#8220;<strong>More involved betting concepts</strong>&#8221;. General betting material. Requires familiarity with basic betting concepts in order to be properly understood.</p></li><li><p>&#8220;<strong>Coding</strong>&#8221;. Coding/programming is becoming increasingly important for bettors and this segment covers all things code. Requires basic Python knowledge.</p></li></ul><p>Depending on whether you&#8217;re new to betting or have been in the game for a while, there are different recommended paths for you to take.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption"><em>Betting is widely regarded as a thing reserved for retards since &#8220;the house always wins&#8221;. As for all 100 IQ statements, there is of course much more to it. A necessary ability of a true BILL BETTOR is to master the art of smiling, nodding and agreeing with that assertion.</em></p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div><hr></div><h3>New to betting? </h3><p>Welcome!</p><p>Begin by reading the &#8220;<strong>Start here!</strong>&#8221; stuff thoroughly. If your goal is to actually understand betting, it&#8217;s extremely important to build from first principles.</p><p>After doing the above, you&#8217;re now standing on firm ground. Continue your adventure by delving deep into the &#8220;<strong>More involved betting concepts</strong>&#8221;-jungle. </p><p>And, if you&#8217;re intrigued by coding, complement the &#8220;<strong>More involved betting concepts</strong>&#8221; with the &#8220;<strong>Coding</strong>&#8221;-segment. </p><div><hr></div><h3>Experienced bettor?</h3><p>Welcome!</p><p>Head straight to &#8220;<strong>More involved betting concepts</strong>&#8221; and begin there. </p><p>As for the novices, if you&#8217;re intrigued by coding, complement the &#8220;<strong>More involved betting concepts</strong>&#8221; with the &#8220;<strong>Coding</strong>&#8221;-segment. </p><div><hr></div><h3>Start here! </h3><p><em><strong><a href="https://bowtiedbettor.substack.com/p/coming-soon">Welcome to the BowTiedBettor Substack!</a></strong></em> - [Level 1 - NGMI] - Our first post. </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/betting-101">Betting 101</a></strong></em> - [Level 1 - NGMI] - This post explains the basics of betting and provides solid information on many important betting terms. Odds, probability, implied probability, EV, ROI, variance, RTP&#8230; </p><div><hr></div><h3>More involved betting concepts</h3><p><em><strong><a href="https://bowtiedbettor.substack.com/p/conditional-probability-and-bayes">Conditional probability &amp; Bayes Theorem</a></strong></em> - [Level 2 - DEEP DIVER] - The art of conditional thinking is most definitely a hack, not only in betting. This post presents the basics of it.</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/practical-aspects-of-betting">Practical aspects of betting</a></strong></em> - [Level 2 - DEEP DIVER] - What&#8217;s required to run a successful betting operation? A discussion of day-to-day stuff such as limits, multi accounting, price discovery &amp; much more.</p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/adverse-selection-in-betting-markets">Adverse Selection in Betting Markets</a> -</strong></em> [Level 2 - DEEP DIVER] - Start thinking about your counterparties, how they&#8217;re reasoning &amp; what they&#8217;re doing, or keep getting picked off&#8230;</p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/learning-from-odds-moves">Learning from Odds Moves</a> </strong></em>- [Level 3 - WAGMI] - Is your source a good source? Who&#8217;s behind the weird orders in the UK dogs market? Just. Track. It.</p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/a-thought-or-two">A Thought Or Two</a></strong></em> - [Level 4 - WAGMI 2.0] - A thoughtful treatment of market efficiency via a development of a precise distributional framework. Contains the true reason for why the Cartoon Horse keeps shilling Bayes! </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part">Bayesian thinking &amp; inference, part 1</a></strong></em> - [Level 4 - WAGMI 2.0] - Learn how to learn from data, the bayesian way.  </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part-473">Bayesian thinking &amp; inference, part 2</a></strong></em> - [Level &#8734; - BILL BETTOR] - What&#8217;s the probability of a NHL team winning a game, conditional on taking a lead into the third period? This post offers a Bayesian perspective on this fairly trivial question. Includes probabilistic programming in PyMC, an overview of the Bayesian workflow &amp; some deep insights regarding data.</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/an-initial-look-on-the-kelly-criterion">An initial look on the Kelly Criterion</a></strong></em> - [Level 4 - WAGMI 2.0] - Kelly is our favourite betting concept &amp; it&#8217;s so much more than the stupid simple formula everyone refers to. Here&#8217;s an introduction to it.</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/the-generalized-kelly-criterion">The generalized Kelly Criterion</a></strong></em> - [Level 5 - SHARP] - A second look at the basics of the Kelly Criterion, now from a multidimensional point of view. </p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/the-power-of-simulations">The Power Of Simulations</a></strong></em> - [Level 5 - SHARP] - Bootstrapping in Monte Carlo? Magic! Get to know one of the most *powerful* frameworks a bettor might equip himself with...</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/bet-sequences-an-analysis">Bet sequences, an analysis</a></strong></em> - [Level &#8734; - BILL BETTOR] - A comprehensive examination of bet sequences - the random sequences/processes that arise when a bettor places numerous bets within a certain time frame. P&amp;L&#8217;s, ROI&#8217;s, Monte Carlo methods &amp; Bayesian inference. </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/the-art-of-pricing-uncertainty">The art of pricing uncertainty</a></strong></em> - [Level &#8734; - BILL BETTOR] - Discusses how the amount of uncertainty naturally acts as one of the fundamental pieces of the pricing process, as well as how it at times can yield unintuitive results.&nbsp;</p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/building-and-deploying-a-betfair">Building &amp; Deploying a Betfair Bot</a></strong></em> - [Level &#8734; - BILL BETTOR] - <strong>Option Number One</strong>: stay at the desk 24/7, scan the markets manually to look for opportunities where you could run The Trade, &amp; then run it if certain conditions/requirements are satisfied. <strong>Option Number Two</strong>: map your thoughts/conditions into code &amp; let your computer perform the tasks for you.</p><div><hr></div><h3>Coding</h3><p><em>Note: Our coding material assumes that you have some familiarity with Python.</em></p><p><em><strong><a href="https://www.blog.bowtiedbettor.com/p/betting-meets-automation">Betting meets automation</a></strong></em> - [Level 2 - DEEP DIVER] - A brief discussion of what automation can bring to the betting table, combined with a note or two regarding when it does &amp; when it doesn&#8217;t make sense to convert ideas into code.</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/a-gentle-introduction-to-the-betfair">A gentle introduction to the Betfair API</a></strong></em> - [Level 3 - WAGMI] - Introducing <strong>betfairlightweight</strong> &amp; the <strong>Betfair API</strong>. Learn how to set up a Betfair account, generate an API-key and perform some basic operations. </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/build-your-first-odds-scraper">Build your first odds scraper</a></strong></em> - [Level 5 - SHARP] - This post lets you acquaint yourself with Selenium, a browser automation tool suitable for scraping sports betting websites. Here, we utilize it to fetch NHL data from Unibet. </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/scraping-time-selenium-too-slow">Scraping time&#8230; Selenium too slow!</a></strong></em> - [Level 5 - SHARP] - The most efficient way to gather online data is to mimic the behaviour of your web browser. Learn how in this post, where we again construct a simple Unibet NHL web scraper, however this time using more straightforward and considerably faster methods.</p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/draftkings-scraping-project-part">DraftKings scraping project, part 1/3</a></strong></em> - [Level 5 - SHARP] - Nothing teaches you web scraping like a real web scraping project. Follow along as we initialize the creation of a complete DraftKings scraper. </p><p><em><strong><a href="https://bowtiedbettor.substack.com/p/draftkings-scraping-project-part-f4e">DraftKings scraping project, part 2/3</a></strong></em> - [Level 5 - SHARP] - Part 2 of our DraftKings series. As we transition into live odds scraping/streaming, the autism intensifies. For instance, you get to know the basics of the two Python libraries <em><strong>websockets</strong></em> &amp; <em><strong>asyncio</strong></em>.</p><div><hr></div><h3>Levels</h3><p>As you&#8217;ve probably noticed above, the posts within each segment have been assigned a certain level. Level 1 &amp; 2 is meant to offer a simple and straightforward view of the world of betting and will stay FREE to offer insight for possible prospects. 3 &amp; 4 are of medium difficulty while higher levels are intended to be *hard* in order to keep all the turbo autists satisfied.</p><p>Level &#8734; - BILL BETTOR - Automated betting, exchange-API usage, advanced money management, model building, advanced Bayesian thinking. </p><p>Level 5 - SHARP - Exchange trading, web scraping, Bayesian models. </p><p>Level 4 - WAGMI 2.0 - Money management, optimizing portfolio growth. </p><p>Level 3 - WAGMI - Get started, collect your first 5 000 USTT. </p><p>Level 2 - DEEP DIVER - Delving deeper into the world of betting. </p><p>Level 1 - NGMI - Explaining the basics. </p><p><em>Note: If you prefer to proceed by level of difficulty, visit the <a href="https://www.bowtiedbettor.com/archive">BowTiedBettor website archive</a> to have our posts sorted according to levels.</em></p><div><hr></div><p>Finally: Hope you&#8217;ll enjoy the content!</p><p>Until next time&#8230;</p><div><hr></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!26JL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg" width="450" height="381.0782967032967" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1233,&quot;width&quot;:1456,&quot;resizeWidth&quot;:450,&quot;bytes&quot;:341869,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!26JL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 424w, https://substackcdn.com/image/fetch/$s_!26JL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 848w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!26JL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c7acb8c-6c92-440b-9292-8cef858f2839_2048x1735.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><p><strong>Disclaimer:</strong>&nbsp;None of this is to be deemed legal or financial advice of any kind. These are&nbsp;<strong>*opinions* </strong>written by an anonymous group of mathematicians who moved into betting.</p>]]></content:encoded></item><item><title><![CDATA[DraftKings web scraping project - Part 2/3 ]]></title><description><![CDATA[Level 5 - SHARP]]></description><link>https://www.blog.bowtiedbettor.com/p/draftkings-scraping-project-part-f4e</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/draftkings-scraping-project-part-f4e</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sun, 05 Feb 2023 14:57:21 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!8i9Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Avatar! </p><p>Today we are back with the second part of the DraftKings web scraping project. In case you haven&#8217;t read part 1 yet, head straight to <a href="https://bowtiedbettor.substack.com/p/draftkings-scraping-project-part">DraftKings web scraping project - Part 1/3</a> and begin there. </p><div><hr></div><p>First, we begin by recalling what was done in part 1: </p><ul><li><p>A DraftKings class was constructed for the purpose of holding all our useful scraping methods. </p></li><li><p>Two scraping methods were created, the rather lengthy <em>get_pregame_odds</em> [which is used for scraping pregame markets] and the more concise <em>store_as_json</em> which allows us to dump any scraped pregame content into a local file. </p></li><li><p>Basic tests for the pregame scraper were performed and everything looked good [unless there&#8217;s money on the line, only the virgins care about proper testing procedures]. </p></li></ul><p>Since the above three bullet points sum up and confirm the completion of the first part of the project, the pregame scraper, it&#8217;s time to take up the next mission, the live odds scraping/streaming.</p><div><hr></div><h3>Background information</h3><p>A warning: from here on the autism intensifies quite a bit. If you at times feel discouraged while digesting the content and the explanations, you&#8217;re definitely not alone. Keep going! </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!8i9Q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!8i9Q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 424w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 848w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 1272w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!8i9Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp" width="616" height="697.2307692307693" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1648,&quot;width&quot;:1456,&quot;resizeWidth&quot;:616,&quot;bytes&quot;:1038758,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!8i9Q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 424w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 848w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 1272w, https://substackcdn.com/image/fetch/$s_!8i9Q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F52564f98-40b7-4ef3-b749-baa287095cc0_1892x2142.webp 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>A natural start is to discuss and install the necessary dependencies. DraftKings uses the WebSocket protocol for their live odds data and in order for us to interact with it we&#8217;ll need two Python libraries, <em>websockets</em> and <em>asyncio</em>. <em>websockets</em> is built on top of <em>asyncio</em>, hence the need for the latter.</p><div><hr></div><p><em><strong>WebSocket</strong> is a communication protocol that allows two-way, realtime communication between clients and servers over the internet. WebSocket communication works by establishing a persistent connection (as opposed to the HTTP request-response structure) between a client and a server, allowing for seamless data transmission in both directions. This makes the protocol ideal for applications that require fast and efficient communication, such as live betting.</em></p><p>What&#8217;s the advantage of using the WebSocket protocol to handle live odds updates instead of the standard http response &amp; request framework? It&#8217;s, as always, best described by an example! </p><p>Suppose BowTiedBettor wants to begin selling bet picks to his 500 subscribers and that there are two different &#8220;betting floor architectures&#8221; for him to choose between. </p><p>Alternative number one is for him to sit inside a small office. Each time one of his subscribers wonders about new bets, they open the door and enter the office [<em>set up a connection</em>]. Then, they get to ask him &#8220;hey, do you have any new bets to share?&#8221; [<em>send a request</em>], which he answers with either &#8220;yes, bet X on X&#8221;, or &#8220;no, not currently&#8221; [<em>receive a response</em>]. The moment they&#8217;ve received the response, they exit the office [<em>close the connection</em>]. <strong>This is the HTTP protocol</strong>.</p><p>Alternative number two is for him to buy a huge &#8220;betting floor&#8221;, allowing *all* of his subscribers, after a quick verification [<em>WS &#8220;handshake&#8221;, set up a connection</em>], in at once. Now, instead of they having to ask him the same questions over and over again [in many cases for no reason since zero new bet opportunities have arisen], they instead stay silent and *await* his information. The second BowTiedBettor locates a +EV opportunity, he stands up and shouts &#8220;<strong>BET X ON X, KELLY SAYS 0.9 % OF YOUR PORTFOLIO</strong>&#8221;. All 500 subscribers receive the information immediately and hit the bookies in tandem. Two weeks later the bookies are zeros. <strong>This is the WebSockets protocol</strong>.</p><p>More formally: </p><ul><li><p><em><strong>Reduced latency</strong></em>: With websockets, there is only one connection established between the client and the server. This reduces the latency compared to HTTP, where a new connection needs to be established for each request-response cycle. </p><p><em><strong>Less overhead</strong></em>: In websockets, the overhead is reduced as the connection remains open, while in HTTP, the overhead increases with each request-response cycle.</p><p>[<strong>Subscribers already in the same room, and staying there in between new events</strong>]</p></li><li><p><em><strong>Efficient use of resources</strong></em>: With websockets, the server can push data to the client at any time, making it an efficient use of server resources compared to HTTP, where the server only responds to client requests. </p><p>[<strong>Subscribers receive the information as soon as BowTiedBettor shouts, don&#8217;t have to enter his office and ask]</strong></p></li></ul><div><hr></div><p>A brief description of the <em>asyncio</em> library as well below. For our purposes it&#8217;ll be enough to know *the absolute basics* here [trust us on this, we know more or less nothing about it].</p><p><em><strong>asyncio</strong></em> <em>is a library in Python for writing asynchronous, non-blocking code. It provides an efficient way to run multiple tasks simultaneously and handle network and I/O-bound programs, making it a popular choice for developing high-performance and concurrent applications. This helps to prevent your program from getting stuck while waiting for a task to complete, allowing you to maximize the use of system resources.</em></p><p>Want to know more about <em>asyncio</em> &amp; <em>websockets</em>? See <a href="https://degencode.substack.com/p/asynchronous-websocket-listeners">this post</a> by <span class="mention-wrap" data-attrs="{&quot;name&quot;:&quot;BowTiedDevil&quot;,&quot;id&quot;:33970100,&quot;type&quot;:&quot;user&quot;,&quot;url&quot;:null,&quot;photo_url&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/55abe25f-1bc7-46e5-94d4-7d109d5d3a3d_1620x1620.png&quot;,&quot;uuid&quot;:&quot;759e62b3-6326-438c-bd90-3afaa4ee80b7&quot;}" data-component-name="MentionToDOM"></span> and combine it with <a href="https://realpython.com/async-io-python/">this walkthrough</a> of <em>asyncio</em>.</p><p><em>Note: We&#8217;ll be using Firefox throughout this project and recommend you do the same. The reason: its built-in JSON-parser &amp; great web dev tools simplifies the scraping process tremendously.</em></p><p>The installations of the required packages are easily performed by running</p><pre><code>pip install websockets asyncio</code></pre><p>in your terminal.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h3>Live odds scraping </h3><p>Okay, let&#8217;s get to it! </p><p><em>Note: Integrating code with Substack posts hasn&#8217;t really been optimized yet. If you prefer, you could visit our <a href="https://github.com/BowTiedBettor/DraftKings">DraftKings repo</a> and follow along by having the code open in another tab instead (*<strong>definitely</strong>* <strong>recommended</strong>).</em></p><p>Step 1 is of course to visit DraftKings and more particularly, their <a href="https://sportsbook.draftkings.com/live">live odds page</a>. </p><p><em>As of the time of this writing, there are two ongoing NBA games, WAS Wizards @ BKN Nets and LA Lakers @ NO Pelicans.</em> <em>Thus we&#8217;ll be scraping the NBA today</em>.</p><p>As before, right click &#8594; inspect to arrive at the Firefox web dev tools. Visit the &#8216;<strong>Network</strong>&#8217; tab. To find the relevant websocket, sort on &#8216;<strong>Status</strong>&#8217; and click on one of the 101 ones. Click on &#8216;<strong>Response</strong>&#8217; on your right and if you&#8217;ve found the right one you should see a constantly updating stream of messages going back and forth between you [your web browser is sending and collecting all the messages on your behalf] and the DraftKings server. </p><p><em>Green arrow: message from you to the server.</em></p><p><em>Red arrow: message from the server to you.</em></p><p><em>The HTTP </em><code>101 Switching Protocols</code><em> response code indicates a protocol to which the server switches. The protocol is specified in the </em><code>Upgrade</code><em> request header received from a client.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0wHs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0wHs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 424w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 848w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 1272w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0wHs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png" width="1137" height="675" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a5469241-cc78-4223-912b-758aaa8254c4_1137x675.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:675,&quot;width&quot;:1137,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:266518,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0wHs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 424w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 848w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 1272w, https://substackcdn.com/image/fetch/$s_!0wHs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa5469241-cc78-4223-912b-758aaa8254c4_1137x675.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The red arrows represent new messages in the server &#8594; you direction. As you can see, the absolute majority of them are &#8220;offer-updated&#8221; events</figcaption></figure></div><p>Scroll to the top to find the first message sent by your web browser to the server. This is an important message, since it&#8217;s the one we&#8217;ll try to imitate. It should be something like the below. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!KXtU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!KXtU!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 424w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 848w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 1272w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!KXtU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png" width="1176" height="924" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:924,&quot;width&quot;:1176,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:138319,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!KXtU!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 424w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 848w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 1272w, https://substackcdn.com/image/fetch/$s_!KXtU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F31d86037-fa2a-46d6-b399-44e517fa1357_1176x924.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The first message is sent by the web browser to the DraftKings server and contains information on the type of data subscription we want to initiate</figcaption></figure></div><p>In the message, the browser tells the server that we want to subscribe to all information updates related to the games with eventGroupId 42648, which, as we know from before [<em>part 1 discussed <a href="https://bowtiedbettor.substack.com/i/82874737/visit-draftkings-locate-the-data">how to find the eventGroupId</a> for a specific league</em>], is the id for the NBA.</p><p>Click &#8216;<strong>Raw</strong>&#8217; on the right and copy the JSON-content.</p><p>Now, to establish a similar connection with the server ourselves, we create a new Python file [<em>draftkings_stream.py</em>] and define a function that will connect, subscribe and await new messages. Since we&#8217;re using the <em><strong>websockets</strong></em> library [built on top of asyncio] our function has to be asynchronous, a fact we inform Python about by using the keyword <em><strong>async</strong></em> in the construction of the function. A basic code block that defines a function which sets up the connection, awaits the first message and prints it, then closes the connection again, below. </p><pre><code>import asyncio
import websockets
import json
from traceback import print_exc

async def stream(uri: str, league_id: str):
    """
    uri is the one you see in the web dev tools
    league_id is e.g. 42648 for the NBA
    """
    try:
        # connects to the server
        ws = await websockets.connect(uri)

        # sends a subscription message with info regarding the odds data we want to receive updates on
        await ws.send(
            json.dumps({"event": "pusher:subscribe", "data": {"auth": "", "channel": f"nj_ent-eventgroupv2-{league_id}"}}
                       )
        )

        new_message = await ws.recv()
        print(new_message)
        
        # closes the connection with the server        
        await ws.close()

    except:
        print_exc()</code></pre><p>Running it seems to work just fine with both the connection and the subscription functioning as intended. </p><p>To allow for a continuous stream of messages and to handle each and every one of them properly, we expand the functionality of our code by adding a decent chunk of new properties to our function. Code below or on <a href="https://github.com/BowTiedBettor/DraftKings/blob/main/draftkings_stream.py">Github</a>. A full description of the function is provided immediately after the code block. </p><pre><code>import asyncio
import websockets
import json
from traceback import print_exc


async def stream(uri: str, league_id: str, event_ids: list, markets: list):
    """
    Sets up a connection with the server which is pushing new odds to the DraftKings website.
    Awaits further updates. As soon as updated odds information arrives it prints all the relevant
    information regarding the specific odds update.

    The function is meant to be called from the live_odds_stream method inside the DraftKings class

    :param uri str: URI for the web server
    :param league_id str: Id for the league
    :param timeout int: Number of seconds for the stream to keep on going
    :param event_id list: If a list of event_ids is specified [else it's None], the stream/listener considers updates
                          only if they're updates for those particular games
    :param markets list: If a list of markets is specified [else markets == None], the stream/listener considers updates
                         only if they're updates for those particular markets
                         Hint: If uncertain about market names, run it for a minute for all markets and collect the correct
                         names of the markets this way

    :rtype: Returns nothing, continues collecting and presenting new odds info until stopped
    """
    try:
        # connects to the web server
        ws = await websockets.connect(uri)

        # sends a subscription message to the server with info regarding the odds data we want to receive updates on
        await ws.send(
            json.dumps({"event": "pusher:subscribe", "data": {"auth": "", "channel": f"nj_ent-eventgroupv2-{league_id}"}}
                       )
        )

        while True:
            try:
                new_message = await ws.recv()
                message_json = json.loads(new_message)

                event = message_json['event']
                if not event == "offer-updated":
                    if event == 'pusher:connection_established':
                        print("Connection established!")
                        continue
                    elif event == 'pusher_internal:subscription_succeeded':
                        print("Subscription succeeded, awaits new odds updates...")
                        continue
                    else:
                        # print(f"Update received but for the wrong WS event type: {event}")
                        continue

                content = json.loads(message_json['data'])
                event_id = content['data'][0]['eventId']
                if event_ids:
                    # if a list of event_ids is provided, this checks whether
                    # the update is relevant or not
                    if not event_id in event_ids:
                        # print(f"Update received but for the wrong event_id: {event_id}")
                        continue

                market = content['data'][0]['label']
                if markets:
                    # if a list of wanted markets is provided, this checks whether
                    # the update is relevant or not
                    if not market in markets:
                        # print(f"Update received but for the wrong market: {market}")
                        continue

                # if the WS event type is correct [offer-updated], the event_id is
                # for one of the games of interest &amp; finally the market is included in the list of
                # wanted markets, then the below section is executed
                outcomes = content['data'][0]['outcomes']
                print(f"New odds update for '{market}'")
                for outcome in outcomes:
                    print("Line:", outcome['line'])
                    print("Outcome:", outcome['label'])
                    print("Price:", outcome['oddsDecimal'])
                    if not outcome == outcomes[-1]:
                        print()
                print("Awaits more updates...")
                print()

            except websockets.WebSocketException:
                # if there's a problem with the connection it breaks the while loop
                # and closes the connection [could easily be adjusted to reconnect instead]
                print_exc()
                break

            except Exception:
                print_exc()

        await ws.close()

    except:
        print_exc()</code></pre><div><hr></div><p><strong>Description of the above </strong><em><strong>stream</strong></em><strong> function:</strong> </p><ol><li><p>The function takes four parameters. </p><ul><li><p>URI for the web server. Easily found in the web dev tools, double click the right websocket in the Networks tab and copy pasta the address.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!r18K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!r18K!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 424w, https://substackcdn.com/image/fetch/$s_!r18K!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 848w, https://substackcdn.com/image/fetch/$s_!r18K!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 1272w, https://substackcdn.com/image/fetch/$s_!r18K!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!r18K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png" width="580" height="305.5357142857143" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:767,&quot;width&quot;:1456,&quot;resizeWidth&quot;:580,&quot;bytes&quot;:512959,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!r18K!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 424w, https://substackcdn.com/image/fetch/$s_!r18K!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 848w, https://substackcdn.com/image/fetch/$s_!r18K!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 1272w, https://substackcdn.com/image/fetch/$s_!r18K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4c713ccb-af5b-4eb5-abf5-825426305bde_2108x1110.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Copy pasta the server URI</figcaption></figure></div></li><li><p>league_id. We&#8217;ve collected a couple of league_ids in our dictionary in <em>draftkings_class.py</em>, if you&#8217;d like to add in more leagues, well, just do it. </p></li><li><p>event_ids. A list of event ids for the games you&#8217;re interested in. To simplify the process of finding those, we&#8217;ve added a <em>get_event_ids</em> [<em>code below</em>] method to the <a href="https://github.com/BowTiedBettor/DraftKings/blob/main/draftkings_class.py">DraftKings class</a> which returns both the games and their event ids.</p><pre><code>import requests

    def get_event_ids(self) -&gt; dict:
        """
        Finds all the games &amp; their event_ids for the given league
        :rtype: dict
        """
        event_ids = {}
        response = requests.get(self.pregame_url).json()
        for event in response['eventGroup']['events']:
            event_ids[event['name']] = event['eventId']
        return event_ids</code></pre></li><li><p>markets. A list containing the markets of relevancy, e.g. [&#8216;Moneyline&#8217;, &#8216;Total&#8217;]. </p></li></ul></li><li><p>As soon as the function is called, it sets up a connection [<em>the initial WS &#8220;handshake&#8221;</em>] with the DraftKings server and feeds it the necessary subscription information, exactly as before. </p></li><li><p>To allow for a &#8220;never-ending&#8221; stream of new bet offer updates, an infinite <strong>while</strong> <strong>loop</strong> is utilized. At each iteration it awaits a new message and the moment it arrives it proceeds by processing the content. When it&#8217;s finished, it continues the wait for new messages.</p><p><em>Note: Ctrl + C terminates a running Python script. &#8216;Twas unfortunately learnt the hard way. </em></p></li><li><p>Okay, a new message has arrived and needs to be handled: </p><ul><li><p>Check #1 is to confirm that it&#8217;s an updated offer since that&#8217;s the only messages we care about. If not, more or less: ignore the message, continue the while loop, i.e. await new, more informative messages. </p></li><li><p>Check #2: examine whether the <em>event_id</em> is included in the list of <em>event_ids</em>. If not, again ignore the message and await new ones instead. </p></li><li><p>Check #3: make sure the odds data is for one of the markets we&#8217;re interested in, else skip the message and, just like before, stay toon&#8217;d for new ones.</p></li><li><p>If *all three checks* are successful it means that the message is an odds update for an <em>event_id</em> in our <em>event_ids</em> list and a <em>market</em> in our <em>markets</em> list. Hence in this case we&#8217;d like to have the function print the details of the update, which it indeed does. </p></li></ul><p>If an unexpected problem arise during execution, the except blocks inform about  it and end the program.</p></li></ol><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h3>Practical usage</h3><p>To call our freshly built <em>stream</em> function from inside our DraftKings class [remember, we want to keep all the available methods for our scraper at one place for improved usability], we add a <em>live_odds_stream</em> method to it. All it does is more or less to import and call the <em>stream</em> function from our <em>draftkings_stream.py</em> file with the correct parameters. </p><pre><code>from draftkings_stream import stream

    def live_odds_stream(self, event_ids=None, markets=None):
        """
        Sets up the live odds stream by calling the async stream function with given parameters
        :param event_id list: If a list of event_ids is specified [else it's None], the stream/listener considers updates
                              only if they're updates for those particular games
        :param markets list: If a list of markets is specified [else markets == None], the stream/listener considers updates
                             only if they're updates for those particular markets
                             Hint: If uncertain about market names, run it for a minute for all markets and collect the correct
                             names of the markets this way
        """
        asyncio.run(stream(
            uri=self.uri, league_id=id_dict[self.league], event_ids=event_ids, markets=markets))</code></pre><p>Well, at this point it&#8217;s indeed getting exciting. </p><ul><li><p>The <em>get_event_ids</em> function is working as intended. </p></li><li><p>The tough one, the <em>stream</em> function, is complete. </p></li><li><p>The DraftKings class has been made compatible with the <em>stream</em> function. </p></li></ul><p>Thus, testing time! </p><p>Opening the <em>draftkings_script.py</em>, made for *usage* of our code, and feeding and running it with the below lines of code should print all the event ids for the NBA games currently listed at DraftKings. </p><pre><code>from draftkings_class import DraftKings

"""
Create a DraftKings class object
"""
dk = DraftKings(league="NBA")

"""
Find all games &amp; their event_ids
"""
game_ids = dk.get_event_ids()
for game, event_id in game_ids.items():
    print(game, event_id)</code></pre><p>Great success! Output below. </p><pre><code>WAS Wizards @ BKN Nets 28353246
LA Lakers @ NO Pelicans 28353247
LA Clippers @ NY Knicks 28353252
PHO Suns @ DET Pistons 28353250
MIA Heat @ MIL Bucks 28353255
HOU Rockets @ OKC Thunder 28353253
POR Trail Blazers @ CHI Bulls 28353260
DAL Mavericks @ GS Warriors 28353869
ATL Hawks @ DEN Nuggets 28353262
ORL Magic @ CHA Hornets 28360285
CLE Cavaliers @ IND Pacers 28360286</code></pre><p>This was the easy one though. </p><p>Onto the real test, the test for the live odds scraper! </p><p>Let&#8217;s restrict ourselves to the Moneyline markets for the two live NBA games [both currently in the 4th quarter] and try to set up a stream containing all the updates for those two events. Complementing the <em>draftkings_script.py</em> script with two more lines of code, </p><pre><code>"""
Set up a stream awaiting odds updates for the Moneyline market
"""
dk.live_odds_stream(
    event_ids=["28353246", "28353247"], markets=['Moneyline'])</code></pre><p>solves this for us. </p><p><strong>Runtime!</strong> </p><p>Indeed, executing the code sets up the connection &#8594; subscribes to the DraftKings live odds feed &#8594; awaits new messages &#8594; filters out the information we&#8217;re interested in &#8594; handles it &#8594; prints the processed result in the console. </p><p>And the most important part: everything is working as expected.</p><p>Beautiful! </p><p>The output during the first 45 seconds below. </p><pre><code>Connection established!
Subscription succeeded, awaits new odds updates...
New odds update for 'Moneyline'
Line: None
Outcome: LA Lakers
Price: 2.4

Line: None
Outcome: NO Pelicans
Price: 1.57142858
Awaits more updates...

New odds update for 'Moneyline'
Line: None
Outcome: WAS Wizards
Price: 1.74074075

Line: None
Outcome: BKN Nets
Price: 2.05
Awaits more updates...

New odds update for 'Moneyline'
Line: None
Outcome: WAS Wizards
Price: 1.71428572

Line: None
Outcome: BKN Nets
Price: 2.1
Awaits more updates...

New odds update for 'Moneyline'
Line: None
Outcome: WAS Wizards
Price: 1.68965518

Line: None
Outcome: BKN Nets
Price: 2.15
Awaits more updates...

New odds update for 'Moneyline'
Line: None
Outcome: WAS Wizards
Price: 1.95238096

Line: None
Outcome: BKN Nets
Price: 1.8
Awaits more updates...</code></pre><div><hr></div><h3>Use the scraper</h3><p>A fully functioning, properly built DraftKings scraper available within 45 seconds? Yep! </p><div id="youtube2-UbndUuRI6aI" class="youtube-wrap" data-attrs="{&quot;videoId&quot;:&quot;UbndUuRI6aI&quot;,&quot;startTime&quot;:null,&quot;endTime&quot;:null}" data-component-name="Youtube2ToDOM"><div class="youtube-inner"><iframe src="https://www.youtube-nocookie.com/embed/UbndUuRI6aI?rel=0&amp;autoplay=0&amp;showinfo=0&amp;enablejsapi=0" frameborder="0" loading="lazy" gesture="media" allow="autoplay; fullscreen" allowautoplay="true" allowfullscreen="true" width="728" height="409"></iframe></div></div><p>Clone it into your directory with</p><pre><code><code> git clone https://github.com/BowTiedBettor/DraftKings.git</code></code></pre><p>then simply head over to the <em>draftkings_script.py</em> file and do your thing.</p><div><hr></div><h3>Conclusion</h3><p>The toughest part of the project, by far, has now been completed. Since the methods responsible for pulling and handling data for both pregame- and live markets have been finished, what remains is to add in some extra methods that are of high practical value, such as sending email notifications and dumping content into Excel files. As soon as this last step has been completed, the scraper will be finished and the project finalized. See you in part 3!</p><p>Finally, we close off today&#8217;s post with a BR-reminder and a tweet regarding the Betfair API. </p><div><hr></div><p><em>BR-reminder: As a reader of this Substack you should have completed <a href="https://bowtiedbettor.substack.com/p/bonus-rugging-10-collect-your-first">BR</a> at least once [your own identity] at this point or you are falling behind. &gt;$5 000 to earn by clicking some buttons and you are still sleeping on it?</em></p><div><hr></div><div class="twitter-embed" data-attrs="{&quot;url&quot;:&quot;https://twitter.com/BowTiedBettorII/status/1620976592712531968&quot;,&quot;full_text&quot;:&quot;Excellent, have figured out a way for our US subscribers to get access to the Betfair API.\n\nStay toon'd!&quot;,&quot;username&quot;:&quot;BowTiedBettorII&quot;,&quot;name&quot;:&quot;BowTiedBettor | Autist Gambler&quot;,&quot;profile_image_url&quot;:&quot;&quot;,&quot;date&quot;:&quot;Thu Feb 02 02:45:10 +0000 2023&quot;,&quot;photos&quot;:[],&quot;quoted_tweet&quot;:{},&quot;reply_count&quot;:0,&quot;retweet_count&quot;:0,&quot;like_count&quot;:2,&quot;impression_count&quot;:0,&quot;expanded_url&quot;:{},&quot;video_url&quot;:null,&quot;belowTheFold&quot;:true}" data-component-name="Twitter2ToDOM"></div><div><hr></div><p>Until next time&#8230;</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Interested in more scraping material? Subscribe and stay toon&#8217;d!</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p>]]></content:encoded></item><item><title><![CDATA[DraftKings web scraping project - Part 1/3]]></title><description><![CDATA[Level 5 - SHARP]]></description><link>https://www.blog.bowtiedbettor.com/p/draftkings-scraping-project-part</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/draftkings-scraping-project-part</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Thu, 19 Jan 2023 19:15:45 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F575a0342-1f67-47e7-a6cf-6ab4ff7a58ab_1512x1370.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Avatar! </p><p>As you&#8217;re aware of by now, accurate data is central in the construction and implementation of profitable betting models. In betting, there are two sets of data that are of primary interest: </p><ul><li><p><strong>Historical data</strong> - Foundational for learning about the games/teams/markets and thence figuring out the effect certain variables have on outcomes. </p></li><li><p><strong>Executional data</strong> - Necessary to optimize the actual betting process [when, where and how to place your bets]. </p></li></ul><p>So far, we haven&#8217;t really handled much of the historical data part on our blog/Substack. Well, an introduction to the concept was provided in <a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part">Bayesian thinking &amp; inference, part 1</a>, but we&#8217;ve still got lots and lots of grounds to cover.</p><p>Regarding executional data, we&#8217;ve mainly been focusing on the collection of it rather than its applications. By familiarizing ourselves with some common web scraping techniques, we&#8217;ve so far learnt how to scrape sports betting websites using both <a href="https://bowtiedbettor.substack.com/p/build-your-first-odds-scraper">browser automation</a> and <a href="https://bowtiedbettor.substack.com/p/scraping-time-selenium-too-slow">http request/response</a> procedures. </p><p>Today, the idea is to build on our existing knowledge and take up an even deeper dive on the collection of executional data. This will be done by the launch of a new scraping project, namely to construct an odds scraper (compatible with both pregame &amp; live odds + increased functionality to simplify any practical tasks) for DraftKings. </p><p>The DraftKings scraping project will be divided into three main segments. In the first one (today) we&#8217;ll build a pregame scraper [<em>primarily</em> <em>for the NHL but easily adjusted to include more leagues</em>] which will allow us send one-time requests to the DraftKings servers and thus collect odds throughout the days leading up to the games (<em>in fact it&#8217;ll work fine for live odds as well if one-time-requests is all you want</em>).  During the second part we will take care of a slighly more involved subject, the mid-game scraping/streaming, and in part three we&#8217;ll complement our scraper with methods that are of high practical value, such as sending email notifications and dumping content into Excel files. </p><p>Through the completion of this project, we will further deepen our web scraping knowledge, not only with continued <em>http request/response</em> training but also with guidance on a new, more advanced technique, <em>WebSocket </em>scraping. By familiarizing ourselves with the <em>WebSocket protocol </em>(in part 2, next week), we will gain the last piece of knowledge one needs to have a solid understanding of the art of *collecting* data. Thus, after having finalized this project, we&#8217;ll finally be ready for a fully practical perspective, focusing on possible applications and use cases for the data.</p><p><em><strong>WebSocket</strong> is a communication protocol that allows two-way, realtime communication between clients and servers over the internet. WebSocket communication works by establishing a persistent connection (as opposed to the HTTP request-response structure) between a client and a server, allowing for seamless data transmission in both directions. This makes the protocol ideal for applications that require fast and efficient communication, such as live betting. </em></p><p><em><strong>Note: Our scraping material assumes that you have some familiarity with Python. If you do not, please get started today. Learning Python is definitely one of the most +EV decisions you can make if you are even remotely interested in earning WIFI-money. Combine <a href="https://www.youtube.com/watch?v=YYXdXT2l-Gg&amp;list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7">Corey Schafer</a> and <a href="https://automatetheboringstuff.com">Automate the Boring Stuff</a> and you will soon be an excellent herpetologist.</strong></em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h3>Pregame scraping [and live, but no updating stream]</h3><p>Okay, let&#8217;s begin with segment number one, the pregame scraping. A necessary package to follow this guide is <em><strong>requests</strong></em> (<em>a simple &amp; elegant HTTP library) </em>and to install it in your current environment you simply run </p><pre><code>pip install requests</code></pre><p>in the terminal.</p><p><em>Note: We&#8217;ll be using Firefox throughout this project and recommend you do the same. The reason: its built-in JSON-parser &amp; great web dev tools simplifies the scraping process tremendously.  </em></p><h4>Visit DraftKings, locate the data</h4><p>Step one is to visit DraftKings and locate the NHL odds. A quick exploration leads to <a href="https://sportsbook.draftkings.com/leagues/hockey/nhl">this url</a>. To check from where they&#8217;re fetching the data that&#8217;s presented to the end user, head into web tools and visit the <em><strong>Networks</strong></em> tab. Sort on <em><strong>Type</strong></em> and scroll down to the <em><strong>json</strong></em> objects. The below picture describes the view you should be presented with. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NOV6!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NOV6!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 424w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 848w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 1272w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NOV6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png" width="1456" height="398" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:398,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:330852,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NOV6!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 424w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 848w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 1272w, https://substackcdn.com/image/fetch/$s_!NOV6!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7a1c2766-bea9-4c3b-b0d2-eeba8594b01b_2586x706.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Click on the requests and inspect them, manually, one by one, until you find the one with the correct NHL data response. Doing this shows that the one named <em><strong>42133?format=json</strong></em> is the one we&#8217;re after, with 42133, the eventGroupId, appearing to be a value/index reserved for NHL content. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NhoD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NhoD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 424w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 848w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NhoD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png" width="1456" height="584" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:584,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:597961,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NhoD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 424w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 848w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!NhoD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb02095d5-cfdd-456b-ae34-fa8055093805_2862x1148.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Double clicking the request takes us to <a href="https://sportsbook.draftkings.com//sites/US-SB/api/v5/eventgroups/42133?format=json">this url</a>, which indeed holds all the information we&#8217;re interested in. Picture below. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rV2E!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rV2E!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 424w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 848w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 1272w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rV2E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png" width="1456" height="1040" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1040,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:578620,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rV2E!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 424w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 848w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 1272w, https://substackcdn.com/image/fetch/$s_!rV2E!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fed3a15c0-4467-4e3c-86c7-8556f9765b49_1672x1194.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Manually inspecting this JSON [<em>this is where the Firefox JSON-parser comes into play</em>], we find that the odds content for the different games are stored under eventGroup &#8594; offerCategories &#8594; list object at position 0 &#8594; offerSubcategoryDescriptors &#8594; list object at position 0 &#8594; offerSubcategory &#8594; offers. For each object [an object holds all the information for a specific game] in this list of &#8216;offers&#8217;, there are three different elements. One contains the Puck Line, one the Totals and the third one the Moneyline market. Thus, it seems reasonable to loop through those three elements, extract all the information of interest and finally store that information in a clever way.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qoWh!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qoWh!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 424w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 848w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 1272w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qoWh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png" width="1456" height="902" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:902,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:584517,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qoWh!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 424w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 848w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 1272w, https://substackcdn.com/image/fetch/$s_!qoWh!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6a89993a-dbba-4672-a1df-bc6745159b52_1914x1186.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The excellent Firefox JSON-parser makes it easy to locate the content you&#8217;re after&#8230;</figcaption></figure></div><p>Time to build! </p><p><em>Note [I]: Since the game plan is to begin betting the NHL at some point, there&#8217;s actually more to the creation of both this and future scrapers than purely educational/inspirational material.</em></p><p><em>Note [II]: Integrating code with Substack posts hasn&#8217;t really been optimized yet. If you prefer, you could visit our <a href="https://github.com/BowTiedBettor/DraftKings">DraftKings repo</a> and follow along by having the code open in another tab instead (<strong>recommended</strong>). </em></p><p>To be slightly more sophisticated and structured than we&#8217;ve been in earlier scraping posts (and since we intend to actually use this stuff at some point), we&#8217;ll build a DraftKings class and then, as we proceed, continuously add new methods to it in order to solve the different subprojects that&#8217;ll naturally arise. Accordingly, we create a Python file (<em>draftkings_class.py) </em>and begin building<em>.</em> </p><p>The code below defines the DraftKings class and stores the pregame url [will always stay the same] for the given league as an object attribute (<em>an object attribute is basically a variable/element that&#8217;s stored together with the object).</em></p><pre><code>import requests

id_dict = {"NHL": "42133", "NFL": "88808", "NBA": "42648"}

class DraftKings:
    def __init__(self, league = "NHL"):
        """
        Initializes a class object
        Include more leagues simply by adding the league with its ID to id_dict above

        :league str: Name of the league, NHL by default
        """
        self.pregame_url = f"https://sportsbook.draftkings.com//sites/US-SB/api/v5/eventgroups/{id_dict[league]}?format=json"</code></pre><p>Now, to begin coding the actual scraper, we create our first class method, a <em>get_pregame_odds</em> which will send a get request to the url above, parse the JSON, collect the sought information/data for all the available pregame markets and return the result. Code with comments below, or if you prefer, on <a href="https://github.com/BowTiedBettor/DraftKings/blob/main/draftkings_class.py">Github</a>. </p><pre><code>import requests
from traceback import print_exc

    def get_pregame_odds(self) -&gt; list:
        """
        Collects the market odds for the main markets [the ones listed at the league's main url] for the league

        E.g. for the NHL, those are Puck Line, Total and Moneyline

        Returns a list with one object for each game

        :rtype: list
        """
        # List that will contain dicts [one for each game]
        games_list = []

        # Requests the content from DK's API, loops through the different games &amp; collects all the material deemed relevant
        response = requests.get(self.pregame_url).json()
        games = response['eventGroup']['offerCategories'][0]['offerSubcategoryDescriptors'][0]['offerSubcategory']['offers']
        for game in games:
            # List that will contain dicts [one for each market]
            market_list = []
            for market in game:
                try:
                    market_name = market['label']
                    if market_name == "Moneyline":
                        home_team = market['outcomes'][0]['label']
                        away_team = market['outcomes'][1]['label']
                    # List that will contain dicts [one for each outcome]
                    outcome_list = []
                    for outcome in market['outcomes']:
                        try:
                            # if there's a line it should be included in the outcome description
                            line = outcome['line']
                            outcome_label = outcome['label'] + " " + str(line)
                        except:
                            outcome_label = outcome['label']
                        outcome_odds = outcome['oddsDecimal']
                        outcome_list.append({"label": outcome_label, "odds": outcome_odds})
                    market_list.append({"marketName": market_name, "outcomes": outcome_list})
                except:
                    # if there was a problem with a specific market, continue with the next one...
                    # for example odds for totals not available as early as the other markets for NBA
                    # games a few days away
                    print_exc()
                    print()
                    continue
            games_list.append({"game": f"{home_team} v {away_team}", "markets": market_list})

        return games_list</code></pre><p>Concisely: the above method collects all the odds data and returns it as a list (with objects following standard JSON-practice). In order not only to check that the scraper functions as intended but also to prepare for future use cases, we continue by constructing a second method, a <em>store_as_json</em>, which has the sole job of dumping the content into a local JSON-file. </p><p>Code for the method: </p><pre><code>import json

    def store_as_json(self, games_list, file_path: str = None):
        """
        Dumps the scraped content into a JSON-file in the same directory

        :rtype: None, simply creates the file and prints a confirmation
        """
        if file_path:
            with open(file_path, 'w') as file:
                json.dump(games_list, file)
            print(f"Content successfully dumped into '{file_path}'")
        else:
            with open('NHL.json', 'w') as file:
                json.dump(games_list, file)
            print("Content successfully dumped into 'NHL.json'")</code></pre><p>Having the two methods <em>get_pregame_odds</em> and <em>store_as_json </em>coded and completed, we&#8217;re now in a good position to actually run the scraper and verify that everything works as expected. </p><p>Creating a second Python file, <em>draftkings_script.py</em> [a scripting file for usage of the class we&#8217;re building in <em>draftkings_class.py</em>], and running the following few lines of code should scrape the available NHL markets and dump all of it into a new file named &#8216;NHL.json&#8217;. </p><pre><code>from draftkings_class import DraftKings

dk = DraftKings(league = "NHL")
games = dk.get_pregame_odds()
dk.store_as_json(games)</code></pre><p>First, running the script seems to work out fine. </p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XW0d!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XW0d!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 424w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 848w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 1272w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XW0d!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png" width="872" height="136" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:136,&quot;width&quot;:872,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:73155,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XW0d!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 424w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 848w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 1272w, https://substackcdn.com/image/fetch/$s_!XW0d!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5e6276a5-b65d-4a29-a9e4-7e52e9fb4bfb_872x136.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Now, the real check is of course performed by heading over to the JSON-file and examining it carefully. </p><p>Indeed, as you can see in the picture, the NHL content appears to have been both collected and saved correctly. Great success! </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!x402!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!x402!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 424w, https://substackcdn.com/image/fetch/$s_!x402!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 848w, https://substackcdn.com/image/fetch/$s_!x402!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 1272w, https://substackcdn.com/image/fetch/$s_!x402!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!x402!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png" width="1456" height="1319" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1319,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:577380,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!x402!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 424w, https://substackcdn.com/image/fetch/$s_!x402!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 848w, https://substackcdn.com/image/fetch/$s_!x402!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 1272w, https://substackcdn.com/image/fetch/$s_!x402!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4ead3660-77ff-479e-af83-4b85922cc4b3_1512x1370.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Conclusion</h3><p>Thanks to the successful test, the pregame part of this project is now complete. We strongly suggest you try the current version of the scraper out! </p><p>Questions? Feel free to ask them in the comments section below.</p><div><hr></div><p><em>BR-reminder: As a reader of this Substack you should have completed <a href="https://bowtiedbettor.substack.com/p/bonus-rugging-10-collect-your-first">BR</a> at least once [your own identity] at this point or you are falling behind. &gt;$5 000 to earn by clicking some buttons and you are still sleeping on it?</em> </p><div><hr></div><p>Next week we&#8217;ll be back with more web scraping material, mainly focusing on the live odds scraping/streaming. </p><p><strong>Update: Part 2 is out. You can find it <a href="https://bowtiedbettor.substack.com/p/draftkings-scraping-project-part-f4e">here</a>!</strong></p><p>Until next time&#8230; </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Interested in more scraping material? Subscribe and stay toon&#8217;d!</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p><br><br></p>]]></content:encoded></item><item><title><![CDATA[Bayesian thinking & inference, part 1]]></title><description><![CDATA[Level 4 - WAGMI 2.0]]></description><link>https://www.blog.bowtiedbettor.com/p/bayesian-thinking-and-inference-part</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/bayesian-thinking-and-inference-part</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Wed, 21 Dec 2022 03:01:39 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!W0Zu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to earn some risk-free money? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler! <br><br>Previously we have covered two concepts which at first glance do not seem related in any way, <a href="https://bowtiedbettor.substack.com/p/scraping-time-selenium-too-slow">web scraping</a> and <a href="https://bowtiedbettor.substack.com/p/conditional-probability-and-bayes">conditional probability</a>. </p><p>Having learnt about the two ideas, one may do the following observations: </p><ul><li><p>Web scraping is useless unless the data you collect is supposed to serve some purpose. </p></li><li><p>Mathematical formulas (in this case Bayes Theorem) cannot be expected to produce any valuable output without relevant input.</p></li></ul><p>Therefore, since both web scraping and mathematics are insufficient on their own, one might instead hope to *combine them* in a way that generates something of value. Indeed, as we will see in this and the coming posts of this series, by cleverly tying the data collection and the mathematics together, it is possible to construct an excellent framework for <strong>learning from data/information</strong>, something that is known as <strong>bayesian inference*</strong>. </p><p><em>Note: In math, 1+1 = 2. In life, 1+1 is often greater than 2. This is an (somewhat autistic) example. </em></p><p><em><strong>*Inference = learning from data.</strong> Geeks would probably involve esoteric terminology to explain the word, we prefer understandable explanations.</em></p><p>Since there is a lot to digest here, the introduction to the subject will be split into (at least) two posts. Today we will begin by gaining some intuition (probably confusion/brain damage as well, probability theory is *hard*) for bayesian thinking and then we will be back with practical applications of the theory to real world data in part 2. </p><div><hr></div><h3>Lack of information</h3><p>Well, to fully appreciate the beauty of bayesian inference one must first be in a creative, bayesian mood. Therefore we&#8217;ll begin with an interesting horse racing example to introduce the bayesian way of viewing the world. </p><p><strong>Suppose</strong> that there is a race on New Year&#8217;s Eve and that your mission is to figure out the win probabilities for all the competing horses. Furthermore, assume that at this point in time you have no information whatsoever regarding the race. Basically, all you know is that there *is* a race. Now, the question is, what is your initial set of probabilities for the race? </p><p>Indeed a very strange question, but if we make an attempt at answering it, we can probably begin by agreeing on the following very obvious fact: for a race to take place, at least one horse has to participate. Therefore, let&#8217;s zoom in on one (possibly the only one) of the participating horses. If we can estimate the probability for *this* horse winning the race, then, after having done so, we may simply repeat the same procedure with the rest of the horses and thereby find the full set of win probabilities. </p><p>Now, we immediately encounter a problem. Since we do not even know the number of competing horses, it&#8217;s obviously impossible to narrow our win probability (for the given horse) down to a *single* number. The reason is simple, we lack severe amounts of information.<strong> </strong></p><p>Nevertheless, let&#8217;s continue analyzing the situation. By one of the fundamental axioms of probability we know that the probability must lie between 0 and 1. Furthermore, since horse races commonly contain 8-15 horses we somehow feel that the most plausible values should lie in the range [0.08, 0.12]. However, as mentioned above, we most definitely cannot state *with certainty* that the probability of the horse winning the race is, say, 0.13. Thus, even though we &#8216;feel like&#8217; we know a little bit about it, we clearly don&#8217;t know enough. <strong>The lack of enough information makes *the probability itself* uncertain</strong>. And this uncertainty that we are now observing in the win probability is the whole point of this opening discussion. </p><div class="pullquote"><p><strong>In a world without complete information, probabilities themselves are uncertain</strong> </p><p>- BowTiedBettor </p></div><h3>Bayesian thinking</h3><p>Enter bayesian thinking. Instead of either considering the problem &#8216;stupid&#8217; or forcing ourselves to agree on some arbitrary number, why not incorporate the uncertainty we are observing into some kind of model? Normally, when we are uncertain about things, we consult probability theory and model the uncertainty using the tools it offers us. Why wouldn&#8217;t we do the same in this case?</p><p>Accordingly, we describe the uncertainty using a probability distribution over all possible values (the interval [0, 1]) of <strong>p</strong>, where <strong>p</strong> is the probability of the horse winning the race. <em><strong>We construct a probability of the probability</strong></em>. Integrating the knowledge mentioned previously (&#8230; <em>horse races commonly contain 8-15 horses we somehow feel that, given no other information, that the most plausible values should lie in the range [0.08, 0.12]</em>) into our model, a reasonable representation of our initial distribution of the probability looks something like below. </p><p><em>Autist note: Turbos will recognize this process as the design of <strong>a prior.</strong> For now this detail is not of much importance to us.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!W0Zu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!W0Zu!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 424w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 848w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 1272w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!W0Zu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png" width="536" height="416.8888888888889" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:868,&quot;width&quot;:1116,&quot;resizeWidth&quot;:536,&quot;bytes&quot;:255200,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!W0Zu!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 424w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 848w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 1272w, https://substackcdn.com/image/fetch/$s_!W0Zu!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F852449f4-eb2a-44e7-bd57-cd8b2cd3cc3c_1116x868.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Note: The function representing how the probability is distributed (the blue graph in the picture) is called a <strong>probability density function [PDF]</strong> in probability theory. </em></p><p>Having built this foundation, we can now continue with this approach to move closer to and hopefully approach reality (after all, in practice we will not make much money modeling races we know nothing about). Taking the above graph as the representation of our initial belief, we now await more data, and as soon as we receive new bits of information, we simply update our current probability distribution (of the win probability) according to what the new information tells us. For example, if later this week the entries are revealed and we&#8217;re examining the (<em>now known to be</em>) best horse in the field, then naturally the distribution should be shifted towards higher values of <strong>p </strong>(why?).</p><p><em>Note: As new information emerges, P(p) must be mapped to P(p|new information). </em></p><p>What however is more subtle is the other thing that should happen to the distribution: <strong>the &#8216;spread&#8217; of it should *decrease*</strong>. Why? Remember that the distribution/graph is a measure of how much we know about the probability of the horse winning the race. If for some reason we were certain (think of a coin toss where we *know* that the coin is unbiased) that the probability was 0.5, we would basically put all the mass at that point. And since we&#8217;ve just obtained <strong>more information</strong>, which by assumption is <strong>valuable information</strong>, we now <strong>know</strong> <strong>more</strong> <strong>about the race</strong> and should therefore be able to estimate the probability with increased accuracy. </p><p>If we continue iterating this process until post time, we&#8217;ll continually update our distribution of the probability, hopefully with increased precision for each new piece of information. Simultaneously, since we at each step *learn more* of the underlying process (the race), the distribution/graph should concentrate around a smaller and smaller subset (<em>unless there is inherent randomness, as in a coin flip example we&#8217;ll soon familiarize ourselves with</em>) of the [0, 1] interval, providing us with increasingly sophisticated estimations of what the correct probability (and odds) is. In particular, and this is important, new information will have less impact on our estimates, which is similar to saying that we&#8217;ve already been able to come pretty close to the truth.</p><p><em>An example of the evolution of the process in the pictures below.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!OT41!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!OT41!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 424w, https://substackcdn.com/image/fetch/$s_!OT41!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 848w, https://substackcdn.com/image/fetch/$s_!OT41!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 1272w, https://substackcdn.com/image/fetch/$s_!OT41!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!OT41!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png" width="494" height="394.15817223198593" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:908,&quot;width&quot;:1138,&quot;resizeWidth&quot;:494,&quot;bytes&quot;:287993,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!OT41!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 424w, https://substackcdn.com/image/fetch/$s_!OT41!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 848w, https://substackcdn.com/image/fetch/$s_!OT41!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 1272w, https://substackcdn.com/image/fetch/$s_!OT41!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F4caaa36a-a14d-4138-8bcc-76989e5cc514_1138x908.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0wii!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0wii!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 424w, https://substackcdn.com/image/fetch/$s_!0wii!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 848w, https://substackcdn.com/image/fetch/$s_!0wii!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 1272w, https://substackcdn.com/image/fetch/$s_!0wii!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0wii!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png" width="514" height="406.21143847487" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/dd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:912,&quot;width&quot;:1154,&quot;resizeWidth&quot;:514,&quot;bytes&quot;:277959,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0wii!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 424w, https://substackcdn.com/image/fetch/$s_!0wii!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 848w, https://substackcdn.com/image/fetch/$s_!0wii!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 1272w, https://substackcdn.com/image/fetch/$s_!0wii!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fdd5fd5f3-4b0c-4ea9-a62b-fb338be9b9b5_1154x912.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gqH0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gqH0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 424w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 848w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 1272w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gqH0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png" width="496" height="402.88808664259926" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:900,&quot;width&quot;:1108,&quot;resizeWidth&quot;:496,&quot;bytes&quot;:278053,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gqH0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 424w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 848w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 1272w, https://substackcdn.com/image/fetch/$s_!gqH0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5f80819b-0ee4-41c3-a099-63d3039925b9_1108x900.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Note: &#8216;Information&#8217; is a very broad term. For instance, as in the example in the graphs above, the way other bettors price a race could most definitely be used to sharpen your predictions. This agrees with the common sense that if a bookie/bettor possesses more information than you do, their actions should be considered <strong>valuable information</strong> and therefore make you update your current estimations of the probabilities *prior to* placing any bets. On the other hand, when you&#8217;ve reached a high degree of certainty in your modeling and a not-so-sharp bookie [doesn&#8217;t force you to update anything since their information is not information (your size is not size etc&#8230;) + you&#8217;re already fairly certain about your estimates] comes along and offers a +EV bet, you hit it without even thinking.</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://www.blog.bowtiedbettor.com/subscribe?"><span>Subscribe now</span></a></p><div><hr></div><h3>The perfect world, the real world</h3><p>In a perfect world where we would reach complete (<em>probability-wise, not in the sense of knowing the result in advance, we&#8217;re not gods</em>) information at post-time, the whole distribution would contract/converge to a single point, and there would be no remaining uncertainty regarding the probability of the horse winning the race. In fact, even if there was some kind of <strong>maximum information</strong> (as in the example below) one could extract from the process, and we managed to describe the remaining <strong>randomness</strong> flawlessly, this would still suffice to compute the correct win probabilities (<em>proof + intuition below</em>) of the participants. </p><p><em>Example: If you have a bag with two coins, one biased (75-25) and one unbiased (50-50), and pick a coin at random, you may compute the probability of heads by considering the probability distribution [p = 0.75 with prob 0.5, p = 0.5 with prob 0.5] of this probability. In some sense you know everything there is to know (can calculate correct probabilities/odds for a bet on heads), even though you cannot state for certain what the true probability is when the coinflip takes place.</em></p><p>In practice, we never reach neither complete nor maximum information, so we&#8217;re always left with some kind of probability density function describing the remaining amount of information and/or randomness. If we assume that the density is a fairly good approximation of reality, then a simple mathematical theorem, which in fact have been used already (<em>in the coin flip case</em>), lets us compute *our estimate* of the true probability.</p><p>Observe that we by assumption have complete knowledge of: </p><ul><li><p>The probability that the <em><strong>horse&#8217;s winning probability</strong></em> attains some specific value (e.g. 0.14). </p></li><li><p>The probability that the horse in fact wins the race, given a certain winning probability (<em>of course equal to the given winning probability</em>).</p></li></ul><p>Therefore, to compute the true/real world win probability, we can loop over all possible values of <strong>p</strong> and weigh these <strong>p</strong>&#8217;s with the probability that they are attained, which is completely described by our density/graph/distribution. An experienced observer will quickly conjecture that this operation is equivalent to computing the expected value [EV] of <strong>p </strong>over its specified probability distribution<strong>. Indeed (verified by the below math) this is true. </strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gn1u!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gn1u!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 424w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 848w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 1272w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gn1u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png" width="1456" height="542" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:542,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:313337,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gn1u!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 424w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 848w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 1272w, https://substackcdn.com/image/fetch/$s_!gn1u!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0e19da20-9078-4864-8369-4e0e0527ced5_1462x544.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!H-xt!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!H-xt!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 424w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 848w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 1272w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!H-xt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png" width="1450" height="556" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:556,&quot;width&quot;:1450,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:319495,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!H-xt!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 424w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 848w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 1272w, https://substackcdn.com/image/fetch/$s_!H-xt!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1387d2c6-9d1f-44f8-93a0-cec0cd51c275_1450x556.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>This method of looping over all potential values of p (0.75 and 0.5) was exactly the method used to find the probability of heads in the earlier <strong>bag + coin flip example</strong>. In that case the two possible values of p was 0.75 and 0.5, and the probabilities of seeing them 0.5 and 0.5 respectively. Therefore, it immediately followed that the probability of heads was determined by 0.5*0.75 + 0.5*0.5 = 0.625. </em></p><div><hr></div><h3>Why &#8216;bayesian&#8217;? </h3><p>The necessary building blocks of bayesian thinking have now been presented and consequently we are ready to go full autism by delving deep into bayesian <strong>inference</strong>. However, to clear come confusion, what is this <em>&#8216;bayesian&#8217; </em>thing<em> </em>that keeps popping up? You&#8217;ve heard of <a href="https://bowtiedbettor.substack.com/p/conditional-probability-and-bayes">Bayes &amp; Bayes Theorem</a>, but so far&#8230; no sight of him! Why is the stuff called &#8216;bayesian&#8217;?</p><p>Well, in the above quite abstract discussion there was a very fundamental notion that was left more or less untouched. How are we supposed to actually move from the <strong>prior</strong> distribution (pre-information) to the <strong>posterior</strong> distribution (post-information)? Our current extremely naive method of guessing and drawing some graphs does not take us far, and there is no doubt that a better procedure must be developed.</p><p><strong>BAYES! </strong></p><p>Bayes formula is, as you should know at this point, an equation which offers the possibility to calculate a conditional probability of <em>something</em> given <em>something else</em>. Handy, isn&#8217;t it, since our whole mission is to compute the probability of <strong>something </strong>(e.g. the probability of a horse winning a race), given <strong>data/information</strong>. Thus, if we combine the earlier reasoning with <strong>Bayes</strong> formula, we naturally arrive at <strong>bayesian </strong>inference<strong>. </strong></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!EH9y!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!EH9y!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 424w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 848w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 1272w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!EH9y!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png" width="1442" height="440" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:440,&quot;width&quot;:1442,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:256868,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!EH9y!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 424w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 848w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 1272w, https://substackcdn.com/image/fetch/$s_!EH9y!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7c5a6173-10fa-479d-95e6-dd4735457089_1442x440.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>Conclusion</h3><p>This post is already pretty dense at this point so to save you some brains for the rest of the night we will save the practical applications for the next post in this <strong>bayesian series</strong>. Nevertheless, to give you a hint of what is coming we wrap up today&#8217;s post by stating two interesting problems that can be handled perfectly by the reasoning we have just developed: </p><ul><li><p>You have data on your last 473 bets (<em>e.g. testing a strategy/tailing another bettor</em>) and would like to examine whether you/they have an edge or not. <em><strong>Update:</strong></em> <em><strong>This problem was handled in <a href="https://bowtiedbettor.substack.com/p/bet-sequences-an-analysis">Bet sequences, an analysis</a>.</strong></em></p></li><li><p>After having read our posts on web scraping, you have just scraped and stored all the NHL data from the previous season. You are now interested in learning as much as possible about it. For example, since you find live odds intriguing, you wonder what the probability of a team winning a game, conditional on taking a lead into the third period, is.</p></li></ul><p><em><strong>Try to figure out how one could answer the above questions, anon.</strong></em> </p><p><em><strong>Then, continue with <a href="https://bowtiedbettor.substack.com/p/bayesian-thinking-and-inference-part-473">part two</a> of this Bayesian series!</strong></em></p><p>Until next time&#8230;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nDhO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nDhO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 424w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 848w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 1272w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nDhO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png" width="424" height="317.7858585858586" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:742,&quot;width&quot;:990,&quot;resizeWidth&quot;:424,&quot;bytes&quot;:1550530,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!nDhO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 424w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 848w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 1272w, https://substackcdn.com/image/fetch/$s_!nDhO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1821b361-f40f-4ba8-b7e5-2cb26879e5e4_990x742.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.blog.bowtiedbettor.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">If you strive for a successful betting career, you either become a paid subscriber or you do not. Regardless of your choice, we are thankful for your contribution in the financing of our operation.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[Scraping time... Selenium too slow! ]]></title><description><![CDATA[Level 5 - SHARP]]></description><link>https://www.blog.bowtiedbettor.com/p/scraping-time-selenium-too-slow</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/scraping-time-selenium-too-slow</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Wed, 02 Nov 2022 17:02:53 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!1wIP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:&quot;button-wrapper&quot;}" data-component-name="ButtonCreateButton"><a class="button primary button-wrapper" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p><div><hr></div><p>Welcome Degen Gambler!<br><br>Today we will extend our current web scraping knowledge by discussing new ways of gathering online information. In our first scraping post &#8220;Build your first odds scraper&#8221; we consulted Selenium to solve our problems, an open source umbrella project for a range of tools and libraries aimed at supporting browser automation. However, there two major disadvantages with Selenium: </p><ol><li><p>It is slow. </p></li><li><p>It is unintuitive. You&#8217;re basically extracting data from arbitrary HTML sections containing elements with more or less &#8216;random&#8217; names. This makes error checking/updating code unnecessarily difficult. Example below. </p></li></ol><pre><code>today_object = driver.find_element(By.CLASS_NAME, "_79bb0")
games = today_object.find_elements(By.CLASS_NAME, "f9aec._0c119.bd9c6")
for game in games:
    team_names = game.find_elements(By.CLASS_NAME, "_6548b")
    ...</code></pre><p>What if instead we could find a way to get around this Selenium stuff, and do something more similar to what the website itself is doing? After all, the website is getting their data from somewhere, right? Rarely do things just magically appear. </p><div><hr></div><h3>Background</h3><p>When you browse the web using a web browser, there&#8217;s quite a lot going on in the background. You click a button and the site is (hopefully) updated. That doesn&#8217;t happen out of nowhere. In fact, your click executes code with a set of different rules that ensure that what should happen does indeed happen. Someone has built an &#8220;on-click&#8221; function/method, which, as soon as it receives your click, sends a &#8216;message&#8217; somewhere. This &#8216;message&#8217; is then interpreted and handled by new chunks of code that when finished returns a new &#8216;message&#8217; for the website to handle. Lastly, the returned &#8216;message&#8217; is used to present the relevant information to the user. </p><p>To restrict the above very abstract/general setting into something more practical, we now consider what happens when you visit a sports betting website. Okay, so you&#8217;re betting the NHL and so you enter https:// unibet.com/sports/#sports-hub/ice_hockey/nhl into your address bar and hit enter. At this point a huge number of different &#8216;messages&#8217; are sent and received across the World Wide Web in order to, for example, collect and manipulate information Unibet wants to display to the user. The result: the site loads and all the content (e.g. the odds for the upcoming games) becomes visible. Now here comes the interesting part, what if we could mimic this behaviour of the website and perform the same operations/communications to get access to exactly the content we are looking for?</p><div><hr></div><h3>Web Communication Protocols</h3><p>Enter web communication protocols. Web communication protocols are a set of technologies used to communicate with web servers and transfer information across the internet. The degree to which users can interact with this information depends on the specific protocol being used. Some protocols are more interactive than others, allowing users to manipulate and customize the information they receive in various ways. </p><p>For sports betting purposes, there are two relevant protocols to be aware of, HTTP and WebSocket. </p><p><em>The HTTP protocol is a system used to transfer data over the internet. It consists of a client-server architecture, where requests are sent from a client to a server, and responses are returned in response to these requests. The protocol includes several components that work together to allow this data transfer to happen, including request messages, status codes, headers, and content types.</em></p><p><em>WebSocket is a communication protocol that allows two-way, realtime communication between clients and servers over the internet. WebSocket communication works by establishing a persistent connection (as opposed to the HTTP request-response structure) between a client and a server, allowing for seamless data transmission in both directions. This makes the protocol ideal for applications that require fast and efficient communication, such as live betting. </em></p><p>Basically, the bookmaker stores its odds/betting information on a server and when you are visiting and interacting with the website your browser sends HTTP requests and/or establishes WS connections to/with this server, then awaits responses containing the requested information and finally presents the data to the user. Hence, if we could learn the *basics* (no wizardry needed) of these communication protocols, we should be able to copypasta the requests/calls/messages and hopefully obtain the same data as the one we&#8217;re seeing on the website. </p><p><em>Note: We&#8217;re by no means any web scraping experts so if you&#8217;re reading this and find that something should be added/rephrased, please share your correction/clarification with the rest of our readers in the comments.  </em></p><div><hr></div><h3>Let&#8217;s go! </h3><p>Enough background information. Let&#8217;s scrape some odds! </p><p><br>As you could probably guess from the above section, we&#8217;ll be scraping the Unibet NHL odds. A quick check reveals that Unibet is utilizing the standard HTTP-protocol to transfer odds information, therefore we&#8217;ll go down the HTTP requests-response route today and return with WebSocket (slightly harder) material later down the line.</p><p><em>Our scraping material assumes you have some familiarity with Python. If you don&#8217;t, please get started <strong>today</strong>. Learning Python is definitely one of the most +EV decisions you can make if you&#8217;re even remotely interested in earning some WIFI-money. Combine <a href="https://www.youtube.com/watch?v=YYXdXT2l-Gg&amp;list=PL-osiE80TeTskrapNbzXhwoFUiLCjGgY7">Corey Schafer</a> and <a href="https://automatetheboringstuff.com">Automate the Boring Stuff</a> and you&#8217;ll soon be an excellent herpetologist.</em></p><p></p><p>We begin by installing the requests module in our environment by running</p><pre><code>pip3 install requests </code></pre><p>in the terminal. </p><p>Next, head over to the site you want to scrape, in our case it&#8217;s https:// unibet.com/sports/#sports-hub/ice_hockey/nhl. Right-click, click inspect elements and head over to the &#8216;Networks&#8217; tab in the web dev tools. Reload the page. Click &#8216;type&#8217; in the menu and scroll down to <strong>json (</strong>a lightweight data-interchange format, easy for humans to read and write, easy for machines to parse and generate).  </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!1wIP!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!1wIP!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 424w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 848w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 1272w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!1wIP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png" width="1456" height="924" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:924,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:525477,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!1wIP!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 424w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 848w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 1272w, https://substackcdn.com/image/fetch/$s_!1wIP!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F246d2ff7-7618-4e54-8d0f-84aef1827609_1834x1164.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>As you can see there are a lot of different objects here. We can either just go through them manually (doesn&#8217;t take too much time when you&#8217;ve done it a couple of times) or try to nail down the range somewhat by searching for terms such as &#8220;hockey&#8221;, &#8220;odds&#8221;, &#8220;api&#8221; in the manual &#8220;Filter URLs&#8221; bar. A search for &#8216;hockey&#8217; yields </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!38RM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!38RM!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 424w, https://substackcdn.com/image/fetch/$s_!38RM!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 848w, https://substackcdn.com/image/fetch/$s_!38RM!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!38RM!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!38RM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png" width="1456" height="580" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:580,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:1513684,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!38RM!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 424w, https://substackcdn.com/image/fetch/$s_!38RM!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 848w, https://substackcdn.com/image/fetch/$s_!38RM!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 1272w, https://substackcdn.com/image/fetch/$s_!38RM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F1ea7b344-b761-41c4-9f42-2134e89bbba7_2880x1148.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><p>and clicking on response out at the right on one of the &#8220;eu-offering.kam&#8230;&#8221; requests, we note that this response seems to contain the information we are looking for. Use Firefox (Firefox has an excellent JSON-parser built into the browser) and go to the url [<em>https:// eu-offering.kambicdn.org/offering/v2018/ubusnj/listView/ice_hockey/nhl/all/all/matches.json?lang=en_US&amp;market=US-NJ&amp;client_id=2&amp;channel_id=1&amp;ncid=1667115444478&amp;useCombined=true&amp;useCombinedLive=true</em>] containing the JSON-response and click <em>collapse all</em> on the upper left. The games and the odds info for them are likely listed under &#8216;events&#8217;, so we click events and investigate one of the elements to see if we can find anything of interest. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IR60!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IR60!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 424w, https://substackcdn.com/image/fetch/$s_!IR60!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 848w, https://substackcdn.com/image/fetch/$s_!IR60!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 1272w, https://substackcdn.com/image/fetch/$s_!IR60!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IR60!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png" width="1122" height="932" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:932,&quot;width&quot;:1122,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:358324,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IR60!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 424w, https://substackcdn.com/image/fetch/$s_!IR60!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 848w, https://substackcdn.com/image/fetch/$s_!IR60!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 1272w, https://substackcdn.com/image/fetch/$s_!IR60!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F6b331033-02ce-4243-9c53-ed3e860aa1e9_1122x932.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Indeed, for each event there appears to be three objects, &#8216;event&#8217; that contains more general information regarding the game, &#8216;betOffers&#8217; which holds the odds for the different available markets and &#8216;liveData&#8217; which is updated with the latest information as the game progresses. Inspecting &#8216;betOffers&#8217; we see that there are three markets offered for every game, "Puck Line - Inc. OT and Shootout", "Moneyline - Inc. OT and Shootout" and "Total Goals - Inc. OT and Shootout&#8221;. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!i4F5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!i4F5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 424w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 848w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 1272w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!i4F5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png" width="1456" height="972" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:972,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:659498,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!i4F5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 424w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 848w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 1272w, https://substackcdn.com/image/fetch/$s_!i4F5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F5a9d10d7-962b-42f0-bc18-a62ff2785079_1840x1228.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Now that we&#8217;ve analyzed the existing content, we&#8217;d like to extract a subset of it and save it locally to our computer for further use. </p><p>Suppose for simplicity we are interested only in the moneyline market odds and would prefer to exclude the games which have already begun. How do we proceed?</p><p>Since we&#8217;ve found the exact location (the URL above) for all the data related to Unibet&#8217;s NHL-odds, we can use the Python library <strong>requests </strong>and send a get request to this URL. This will return a Python <a href="https://www.w3schools.com/python/ref_requests_response.asp">requests.Response object</a> containing all the information we&#8217;re interested in and by applying some relevant methods to this object we&#8217;ll hopefully be able to get job done. The below code sends the request and stores the response object in a variable we&#8217;ve chosen to name <em>unibet_response</em>.</p><pre><code>import requests

unibet_response = requests.get("https://eu-offering.kambicdn.org/offering/v2018/ubusnj/listView/ice_hockey/nhl/all/all/matches.json?lang=en_US&amp;market=US-NJ&amp;client_id=2&amp;channel_id=1&amp;ncid=1667115444478&amp;useCombined=true&amp;useCombinedLive=true")</code></pre><p><em>Autist note: Sometimes authorization and/or more is required for a request to be successful. In this case you&#8217;ll want to check *exactly* which headers (a request header is a HTTP header that can be used in an HTTP request to provide information about the request context, so that the server can tailor the response</em>)<em> was sent in the get-request and then make sure to include those in the get request you&#8217;ll be sending in your Python script. Tools like Postman/Insomnia simplifies this process *a lot* by constructing correct requests for you.</em></p><p>If we now run the above code and do a print(unibet_response) and a print(unibet_response.text) we note that the request was successful and that the data we&#8217;ve obtained and stored in <em>unibet_response</em> appears to be the right one. </p><pre><code>&lt;Response [200]&gt;

{"events":[{"event":{"id":1018816193,"name":"DET Red Wings @ BUF Sabres","nameDelimiter":"@","englishName":"Buffalo Sabres - Detroit Red Wings","homeName":"BUF Sabres","awayName":"DET Red Wings","start":"2022-10-31T23:00:00Z","group":"NHL","groupId":1000093657,"path":[{"id":1000093191,"name":"Hockey","englishName":"Ice Hockey","termKey":"ice_hockey"},{"id":1000093657,"name":"NHL","englishName":"NHL" ...</code></pre><p>Owing to the fact that the content we&#8217;re requesting is in JSON format, we may now use the json()-method on our <em>unibet_response</em> object to generate a Python dictionary containing all the information. Since we&#8217;re used to working with dictionaries this will simplify the remainder of the scraping process. </p><pre><code>import requests

unibet_response = requests.get(
    "https://eu-offering.kambicdn.org/offering/v2018/ubusnj/listView/ice_hockey/nhl/all/all/matches.json?lang=en_US&amp;market=US-NJ&amp;client_id=2&amp;channel_id=1&amp;ncid=1667115444478&amp;useCombined=true&amp;useCombinedLive=true")

unibet_dict = unibet_response.json()</code></pre><p>At this point we have everything we need contained in <em>unibet_dict</em>. Furthermore, it is a Python dictionary (which we know how to handle) following the exact same structure as the JSON data we&#8217;ve already spent some time analyzing. Therefore, we know quite a lot about how the information is stored and where to find the odds we're searching for. </p><p><em><strong>To clarify: When you&#8217;re extracting the relevant data you&#8217;ll want to use a JSON-parser (for example the one built into Firefox) to efficiently be able to find the location of what you&#8217;re looking for. A </strong></em></p><p>For example, if we&#8217;d like to print all the names of the games we can store the list of games in a variable named games and then loop through this list and print the name of the game at each iteration. The below code helps us out with this exact thing. </p><pre><code>import requests

unibet_response = requests.get(
    "https://eu-offering.kambicdn.org/offering/v2018/ubusnj/listView/ice_hockey/nhl/all/all/matches.json?lang=en_US&amp;market=US-NJ&amp;client_id=2&amp;channel_id=1&amp;ncid=1667115444478&amp;useCombined=true&amp;useCombinedLive=true")

unibet_dict = unibet_response.json()

games = unibet_dict['events']

for game in games:
    print(game['event']['name'])</code></pre><p>It returns</p><pre><code>LA Kings @ STL Blues
VGS Golden Knights @ WSH Capitals
OTT Senators @ TB Lightning
PHI Flyers @ NY Rangers
BOS Bruins @ PIT Penguins
MTL Canadiens @ MIN Wild
NY Islanders @ CHI Blackhawks
LA Kings @ DAL Stars
NSH Predators @ EDM Oilers
SEA Kraken @ CGY Flames
NJ Devils @ VAN Canucks
FLA Panthers @ ARI Coyotes
ANA Ducks @ SJ Sharks</code></pre><p>which seems correct. </p><p></p><p></p>]]></content:encoded></item><item><title><![CDATA[The generalized Kelly Criterion]]></title><description><![CDATA[LEVEL 5 - SHARP]]></description><link>https://www.blog.bowtiedbettor.com/p/the-generalized-kelly-criterion</link><guid isPermaLink="false">https://www.blog.bowtiedbettor.com/p/the-generalized-kelly-criterion</guid><dc:creator><![CDATA[BowTiedBettor]]></dc:creator><pubDate>Sun, 09 Oct 2022 16:12:08 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/h_600,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Welcome Avatar! <br></p><p>In our previous <a href="https://bowtiedbettor.substack.com/p/an-initial-look-on-the-kelly-criterion">introduction to the Kelly Criterion</a>, we considered the importance of sizing your bets correctly via a discussion of the concept of expected growth and a presentation of the basics of the theory of bet sizing/portfolio optimization. The main question was whether there for any plausible betting proposition was possible to find a &#8216;perfect&#8217; bet fraction, one that is optimal in the sense of always outperforming any other fraction. If the bettor&#8217;s objective is optimization of long-term growth, both existence and uniqueness (under some mild conditions) of such a fraction was proven.</p><p>Now, the realisation of the fact that a solution to the above problem of finding the &#8216;perfect&#8217; fraction when offered a *single* bet exists, naturally gives rise to another engaging question. Could the same idea hold true in a more general, multidimensional case, where instead of a unique opportunity a full *set* of betting propositions are taken under consideration? <br><br>The theme of this post is to answer this question by discussing whether or not a construction of such an extension is achievable. </p><div><hr></div><p><em>Quick note: Now that the necessary BR-material has been handled, we have a couple of more general betting subjects coming up on the Substack. After running the below poll earlier this week, </em></p><div class="twitter-embed" data-attrs="{&quot;url&quot;:&quot;https://twitter.com/BowTiedBettor/status/1577023707783929856&quot;,&quot;full_text&quot;:&quot;What would you prefer to read about?&quot;,&quot;username&quot;:&quot;BowTiedBettor&quot;,&quot;name&quot;:&quot;BowTiedBettor&quot;,&quot;profile_image_url&quot;:&quot;&quot;,&quot;date&quot;:&quot;Mon Oct 03 19:52:06 +0000 2022&quot;,&quot;photos&quot;:[],&quot;quoted_tweet&quot;:{},&quot;reply_count&quot;:0,&quot;retweet_count&quot;:1,&quot;like_count&quot;:3,&quot;impression_count&quot;:0,&quot;expanded_url&quot;:{},&quot;video_url&quot;:null,&quot;belowTheFold&quot;:false}" data-component-name="Twitter2ToDOM"></div><p><em>we decided that the release of this mathematical piece should be prioritized to quench the thirst of all the autists in our following.  </em></p><div><hr></div><h3>An updated version of the problem</h3><p><em>Note that this text assumes that you have read and understood the one-dimensional case and feel comfortable with increasing the level of abstraction. Since the <a href="https://bowtiedbettor.substack.com/i/65327240/is-kelly-an-exact-formula-or-a-mental-framework">closing notes</a> in the 1D Kelly intro (which discussed the theory&#8217;s practical applications) are as relevant for the n-dimensional case, we recommend you (instead of repeating ourselves) to reread those thoroughly after completing the rest of this treatment. The remainings of this post will consequently be restricted to the mathematical details of the problem.</em></p><p>First, we begin by recalling the situation leading up to the one-dimensional case. </p><blockquote><p><em>You find yourself in a position with a +EV betting opportunity and realise that you should probably execute a trade, one way or another. This immediately gives rise to a very interesting question, how much should you bet? </em></p><p><em>If your goal is to simply maximize the expected value in dollar terms, then the correct strategy is to bet as much as possible, i.e. your full portfolio. It does not require much thinking though to realise that this is an extremely unintelligent approach, within only a couple of bets there is a great chance you will have gone bust already and, in fact, with probability one you will go broke sooner or later if you continue indefinitely. It suffices to say we should be able to do better.</em></p><p><em>At the other extreme, you do not want to completely waste the opportunity, if there is positive expected value offered, you somehow want to collect at least a bit of it.</em></p><p><em>This leaves us with an intriguing situation, perhaps best summarized in three main objectives:</em></p><ul><li><p><em>+EV opportunity &#8594; want to bet more than 0 $.</em></p></li><li><p><em>Uncertain event &#8594; cannot risk full portfolio.</em></p></li><li><p><em>Want, for self-explanatory reasons, to introduce some dependence on portfolio size &#8594; bet a *fraction* of total bankroll.</em></p></li></ul></blockquote><p>Translating this thinking into our new setting, what differs is that we are now faced with a *multiple* of favorable betting opportunities, and are aiming to find a &#8216;perfect combination of fractions&#8217; to wager on the different events such that our long term portfolio growth is maximized. The question is, how do we solve this fairly technical optimization problem? </p><p>A naive approach would be to consult the existing 1D Kelly formula repeatedly by feeding it the information for one bet at a time, looping through the bets until the full set of <em>n</em> solutions have been computed. It is however not hard to see why this procedure would fail and an excellent way to understand the intricacies of our extension is to try to come up with counterexamples (there are many) for which this strategy becomes dangerously flawed. </p><div><hr></div><h3>A treatment for the sonic autist </h3><p>As seen is the previous paragraph, hoping to solve this extended problem by applying our current knowledge does not take us far. Accordingly, we are forced to invent new techniques to handle these kinds of more generalized/less restrictive situations and this is exactly what is done below. </p><p><em>Substack is unfortunately not LaTeX-compatible and since more advanced mathematics more or less requires LaTeX for readability purposes, this part of the post, handling the mathematical statement and solution of the problem, has been attached using images. If preferred, a PDF available for download has been included as well. </em></p><div class="file-embed-wrapper" data-component-name="FileToDOM"><div class="file-embed-container-reader"><div class="file-embed-container-top"><image class="file-embed-thumbnail-default" src="https://substackcdn.com/image/fetch/$s_!0Cy0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack.com%2Fimg%2Fattachment_icon.svg"></image><div class="file-embed-details"><div class="file-embed-details-h1">Kelly In R^n</div><div class="file-embed-details-h2">165KB &#8729; PDF file</div></div><a class="file-embed-button wide" href="https://bowtiedbettor.substack.com/api/v1/file/9d8b1ea9-6a9d-483e-ac57-346056ad1461.pdf"><span class="file-embed-button-text">Download</span></a></div><a class="file-embed-button narrow" href="https://bowtiedbettor.substack.com/api/v1/file/9d8b1ea9-6a9d-483e-ac57-346056ad1461.pdf"><span class="file-embed-button-text">Download</span></a></div></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!rfGi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!rfGi!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 424w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 848w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 1272w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!rfGi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png" width="924" height="1312" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1312,&quot;width&quot;:924,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:193979,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!rfGi!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 424w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 848w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 1272w, https://substackcdn.com/image/fetch/$s_!rfGi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F7177a30a-9537-49b4-ae15-adf09a499abb_924x1312.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!cMU1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!cMU1!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 424w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 848w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 1272w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!cMU1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png" width="894" height="1378" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1378,&quot;width&quot;:894,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:237073,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!cMU1!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 424w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 848w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 1272w, https://substackcdn.com/image/fetch/$s_!cMU1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc347ee64-376e-4dbf-a8df-7c76cbe08965_894x1378.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9HvL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9HvL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 424w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 848w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 1272w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9HvL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png" width="964" height="878" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/c80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:878,&quot;width&quot;:964,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:234735,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9HvL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 424w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 848w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 1272w, https://substackcdn.com/image/fetch/$s_!9HvL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Fc80c1a7a-3cc9-4fec-9717-50e562e4cdb1_964x878.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong><a href="https://www.researchgate.net/publication/268615950_An_explicit_solution_to_the_problem_of_optimizing_the_allocations_of_a_bettor's_wealth_when_wagering_on_horse_races">LINK TO RESEARCH PAPER</a></strong></p><div><hr></div><h3>Two examples</h3><p>After having delved deep into the mathematics, we will now reduce the complexity somewhat by analyzing two fairly simple examples for the purpose of practical insight. </p><p><strong>Example 1</strong>: You are offered to bet on two independent coin tosses that are to take place at the same point in time. Both coins are loaded, and they have a 60 % probability of coming up heads and a remaining 40 % chance of tails. However, 2.00 is the odds offered by your bookie on all available outcomes and consequently it is clearly in your interest to have a portion of your money invested. The question is, how much should you wager on each coin toss? </p><p>By setting up the equations correctly and letting Maple do its job, we obtain the following Kelly surface describing the dependency between the portfolio growth and the different combinations (f_1, f_2), with a maximum attained at (0.16, 0.16). We conclude that both opportunities deserve an equal investment of 16 % of your portfolio. </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!BqHs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!BqHs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 424w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 848w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 1272w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!BqHs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png" width="728" height="602.142372881356" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:976,&quot;width&quot;:1180,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:716618,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!BqHs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 424w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 848w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 1272w, https://substackcdn.com/image/fetch/$s_!BqHs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F9efe4fc6-cbbd-48ae-af74-73b08dd1ddf8_1180x976.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><strong>Example 2: </strong>You find that two horses competing in the same race are incorrectly priced by the market. One is available at 3.00 with a 40 % win probability while the other one is offered at 6.00 with a 20 % chance of winning. Both bets are definitely +EV, but what is the optimal set of wagers? According to Kelly, a wager of 13.3 % on the 3.00 horse and one of 6.7 % on the 6.00 option!</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ghFQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ghFQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 424w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 848w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 1272w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ghFQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png" width="728" height="582.871961102107" data-attrs="{&quot;src&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/aecdb214-57da-4848-b899-54febea3b623_1234x988.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:false,&quot;imageSize&quot;:&quot;normal&quot;,&quot;height&quot;:988,&quot;width&quot;:1234,&quot;resizeWidth&quot;:728,&quot;bytes&quot;:739521,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ghFQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 424w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 848w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 1272w, https://substackcdn.com/image/fetch/$s_!ghFQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2Faecdb214-57da-4848-b899-54febea3b623_1234x988.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div><hr></div><h3>What is to come? </h3><p>Now that we are all Kelly gurus and know how to make optimal use of +EV openings, we are prepared to launch into less abstract/more practical territory in the coming weeks. A few hints on what is to come on our Substack:  </p><ul><li><p>An introduction to the Betfair Exchange API. Why bet manually when you can do it programmatically? The bots are coming! </p></li><li><p>Penalty shootout models. World Cup 2022 is not far away and it will be interdasting to see the Jungle move the shootout lines in the playoffs. </p></li><li><p>More practical BR-material, specifically guides on the most common offers. </p></li><li><p>Web scraping resources, a review of different tools and approaches combined with helpful examples of finalized scripts.    </p></li><li><p>An outline of the NHL project. </p></li></ul><div class="twitter-embed" data-attrs="{&quot;url&quot;:&quot;https://twitter.com/BowTiedBettor/status/1577381037163696129?s=20&amp;t=ZPwEwmyqwdmiUUeK1SflrQ&quot;,&quot;full_text&quot;:&quot;Out of the possible US options, we have decided to go with the NHL as our BowTiedBettor betting project. \n\nThe aim with the project is to offer insights to our readers on how to approach a betting market, starting from zero. How, why, where, when?\n\nWe'll learn a lot together.&quot;,&quot;username&quot;:&quot;BowTiedBettor&quot;,&quot;name&quot;:&quot;BowTiedBettor&quot;,&quot;profile_image_url&quot;:&quot;&quot;,&quot;date&quot;:&quot;Tue Oct 04 19:32:00 +0000 2022&quot;,&quot;photos&quot;:[],&quot;quoted_tweet&quot;:{},&quot;reply_count&quot;:0,&quot;retweet_count&quot;:1,&quot;like_count&quot;:18,&quot;impression_count&quot;:0,&quot;expanded_url&quot;:{},&quot;video_url&quot;:null,&quot;belowTheFold&quot;:true}" data-component-name="Twitter2ToDOM"></div><div><hr></div><p>That is all we have got for today!</p><p>Until next time&#8230; </p><div><hr></div><p><em>Do you have a friend who likes betting and would like to sharpen his/her action? Help them on their path by sharing the BowTiedBettor Substack. Win and help win!</em></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share&quot;,&quot;text&quot;:&quot;Share BowTiedBettor&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://bowtiedbettor.substack.com/?utm_source=substack&amp;utm_medium=email&amp;utm_content=share&amp;action=share"><span>Share BowTiedBettor</span></a></p>]]></content:encoded></item></channel></rss>