<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Tamzid Ullah on Medium]]></title>
        <description><![CDATA[Stories by Tamzid Ullah on Medium]]></description>
        <link>https://medium.com/@tammywammy_97624?source=rss-cfc65b13b58f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*GgzMNLUkcarACN6wsYYhQw@2x.jpeg</url>
            <title>Stories by Tamzid Ullah on Medium</title>
            <link>https://medium.com/@tammywammy_97624?source=rss-cfc65b13b58f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:12:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tammywammy_97624/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Predicting Ball Games: A Shallow Deep Learning Network]]></title>
            <link>https://medium.com/@tammywammy_97624/predicting-ball-games-a-deep-learning-approach-eaa4e350a388?source=rss-cfc65b13b58f------2</link>
            <guid isPermaLink="false">https://medium.com/p/eaa4e350a388</guid>
            <category><![CDATA[sports-predictions]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[algorithmic-game-theory]]></category>
            <category><![CDATA[sports-betting]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Tamzid Ullah]]></dc:creator>
            <pubDate>Thu, 22 Jun 2023 22:42:15 GMT</pubDate>
            <atom:updated>2023-09-15T06:04:19.582Z</atom:updated>
            <content:encoded><![CDATA[<p>In the ever-evolving landscape of sports analytics, the quest to accurately predict the outcomes of ball games has captivated enthusiasts and experts alike. Harnessing the power of cutting-edge technology, we introduce “Predicting Ball Games: A Deep Learning Approach.” Powered by advanced machine learning techniques, this innovative algorithm revolutionizes the way we forecast and anticipate the results of different ball games.</p><p>Gone are the days of relying solely on intuition or historical trends. With our deep learning approach, we dive into the intricate nuances of the game, extracting valuable insights from vast amounts of data. By analyzing player statistics, team dynamics, gameplay strategies, and numerous other factors, our approach goes beyond traditional approaches, uncovering patterns and correlations that were previously unseen.</p><p>The core of our algorithm lies in its ability to adapt and learn. With each new data point and game outcome, the algorithm continuously evolves, fine-tuning its predictions to become increasingly accurate over time. It adapts to the changing dynamics of the sport, incorporating real-time updates and adjustments, resulting in forecasts that reflect the latest developments on the field.</p><p>But what sets our deep learning algorithm apart is its inherent ability to understand the underlying complexities of ball games. By leveraging neural networks and sophisticated abstract classes, it comprehends the intricate interplay between various variables, identifying subtle trends and factors that significantly influence the outcome of a game.</p><h3>A Quick Overview of Basketball — Scoring Rules &amp; Time</h3><p>We will go over our <strong>1st Abstract Points Class</strong>, which includes <strong>all possible types of point(s)</strong> that can be made during the game:</p><ul><li><strong>3-Point Line</strong> → Introduced in 1979, is worth 3 points (<strong>+3</strong>) and 22 feet from the basket</li><li><strong>Field Goals </strong>→ worth 2 points (<strong>+2</strong>), under 22 feet from the basket</li><li><strong>Free Throw</strong> → worth 1 point (<strong>+1</strong>), 15 feet from the basket</li><li><strong>Shot Clock</strong> → 24 secs, introduced in 1954</li><li><strong>Possible Points in the System</strong> → <strong>z</strong> = <strong>[+1, +2, +3] (1st Abstract Points Class)</strong></li><li><strong>Time Allocated → </strong>12 min * 4 quarters or<strong> 48 min</strong></li><li><strong>Overtime → 5 min increments, until a winner is decided</strong></li></ul><p>Our algorithm is designed to be accessible and user-friendly. We have developed an intuitive interface that allows users to effortlessly navigate through the predictions, gain insights, and explore various scenarios. Whether you’re a sports enthusiast, a seasoned bettor, or a coach seeking a competitive edge, our deep learning algorithm provides a powerful tool to enhance decision-making, foster strategic planning, and unlock new perspectives.</p><p>With “Predicting Ball Games: A Deep Learning Algorithm,” we invite you to embark on an exciting journey of unlocking the potential of sports analytics. Join us as we redefine the way we predict ball games, pushing the boundaries of data-driven insights and unleashing a new era of informed decision-making in the world of sports.</p><h3>Calculating Point Differentials — Data Collection</h3><p>Here we take each iteration of points scored during a Basketball game and store it in a <strong>2D array</strong>. The first element in each array is the score for the Away Team. The second element is the score for the Home Team. With each iteration, we will store the point differentials for each team in two of their respective data frames. Each data frame will include how many points they made and how many points they gave away to the opposing team.</p><ul><li>In <strong>calculateDiff(s,t)</strong>, <strong>s</strong> is a placeholder for <strong>each point(s) made on either team.</strong></li><li>In <strong>calculateDiff(s,t)</strong>, <strong>t</strong> is a placeholder for either the <strong>Away Team (t = 0)</strong> or the <strong>Home Team (t = 1)</strong></li><li>In <strong>calculateDiff(s,t)</strong>, <strong>scoreDiff</strong> represents <strong>a data structure</strong> in memory with the <strong>point differentials</strong> on every transition between the teams<strong>(scoreDiff.diff)</strong> and <strong>points led (scoreDiff.delta)</strong>.</li><li><strong>The Big O Notation</strong> for calculation point differentials <strong>is O(n)</strong>.</li></ul><h3>Source Code Snippet (differentials.js):</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7b6b9c6aa98adc20be5fed4bfbd1d0f0/href">https://medium.com/media/7b6b9c6aa98adc20be5fed4bfbd1d0f0/href</a></iframe><h3>Meaningful, Pivotal Plays — 1st DeepLearning Layer</h3><p>We will apply our first DeepLearning Layer, otherwise known as a <a href="https://machinelearningmastery.com/rectified-linear-activation-function-for-deep-learning-neural-networks/">ReLu</a>. This will produce a new data structure with either the Away Team or the Home Team, the quarter, and time, the time converted to seconds played and the point lead.</p><p>The data structure only activates if a team proceeds to produce one of the <strong>9 pivotal patterns</strong> during the game. These pivotal point differential patterns are: <strong>[-x, +2, +3], [-x, +3, +3], [-x, +2, +2, +2], [-x, (+2, +1), +2, +3], [-x, +1, +2, 3], [-x, (+1, +1), +2, +2], [-x, +2, (+1, +1), +2], [-x, +2, +2, (+1, +1)]</strong>, <strong>[+1, +2, +2]</strong>, where -x represents points given away to the opposing team.</p><p><strong>Each pivotal data structure (2nd Abstract Class) includes</strong> subtle portions of the game such as <strong>steals, blocks, turnovers, misses, rebounds, and timeouts.</strong></p><p>Below is the description of the function call signals(n, s):</p><ul><li>In<strong> signals(n, s)</strong>, <strong>n</strong> represents either the Away Team <strong>point differentials</strong> or Home Team point differentials from our previous function.</li><li>In<strong> signals(n, s)</strong>, <strong>s</strong> represents <strong>a string</strong> for which team is playing, <strong>either the Home or the Away Team</strong>.</li><li><strong>The Big O Notation</strong> for this function is <strong>O(n)</strong>.</li><li><strong>Time is insignificant.</strong></li></ul><h3>Source Code Snippet (pivot.js):</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/789cdd11e4d74c861ac2678b882ad9c6/href">https://medium.com/media/789cdd11e4d74c861ac2678b882ad9c6/href</a></iframe><h3>Pivot.js — Data Visualization</h3><p>This is a <strong>visual representation</strong> of <strong>one of our 2nd Abstract Points Class objects ([-x, +2, +3])</strong> that includes two points made by Team B followed by a two &amp; a three-pointer made by Team A. <strong>This object represents rebounds, misses, turnovers, points made, and/or timeouts.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*r3tcQ0mdQDlVYyO3WI1c-A.png" /></figure><h3>Determining Winner — Ranking and Final DeepLearning Layer</h3><p>Below we take our two arrays, point differentials for the Away Team and point differentials for the Home Team. We will wait until either team has respectively beaten their previous difference in how many points they are leading the game from the previous pivot.</p><p>If a team has earned more points, respectively, than at their previous two in-game pivots <strong>(</strong><a href="https://machinelearningmastery.com/rectified-linear-activation-function-for-deep-learning-neural-networks/"><strong>Relu</strong></a><strong>, 2nd DeepLearning Layer or d3 ≥ d2 ≥ d1)</strong> and the probability of winning the game has not plateaued <strong>(</strong><a href="https://deepai.org/machine-learning-glossary-and-terms/softmax-layer"><strong>Softmax</strong></a><strong>, 3rd DeepLearning Layer)</strong>, then the ball team has more upward mobility and is certainly going to win towards the end of the game.</p><p>Below is the function call <strong>determineWinner</strong>(<strong>a</strong>, <strong>h</strong>) and its description:</p><ul><li>In <strong>determineWinner</strong>(<strong>a</strong>, <strong>h</strong>), <strong>a</strong> represents the <strong>Away Team’s point differentials</strong> and <strong>h</strong>, represents <strong>Home Team’s point differentials</strong> from our previous function.</li><li>In <strong>determineWinner</strong>(<strong>a</strong>, <strong>h</strong>), the <strong>softmax represents the probability of the team winning</strong> from the most recent pivotal structure, out of the last 3. This is determined by calculating the softmax by taking the point lead from each of the pivotal structures.</li><li>The point lead for each respective pivotal structure must be greater than the previous. <strong>The softmax has a threshold under 0.85</strong>. This is to ensure the profitability of your bet, <strong>it would weigh little if the team’s win probability has greater than 85% chance of winning</strong> during the middle of the game.</li><li><strong>The</strong> B<strong>ig O Notation</strong> for this function is <strong>O(n)</strong>.</li></ul><p><strong>NOTE:</strong> <strong>Pivotal structures are our 2nd Abstract Points Class</strong>, which means this algorithm is a multi-class logistic regression. Hence the use of our softmax function.</p><h3>Source Code Snippet (predicted_winner.js):</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/62e177b12b08488bdb5dd7358ad6b3d7/href">https://medium.com/media/62e177b12b08488bdb5dd7358ad6b3d7/href</a></iframe><h3>Final Thoughts</h3><p>Although this article is <strong>just a skeleton</strong> from a fully automated sports betting system, these steps will <strong>ensure that you can create a statistically significant algorithm on your own</strong> journey to financial and algorithmic prosperity.</p><p>You would need to collect information on live games either with a <strong>3rd-party API</strong> or collect it yourself by <strong>scraping ESPN</strong>. <strong>Implementing our three functions</strong> and incorporating sports book <strong>(ie FanDuel) automation.</strong> If you want to read more about the journey into <strong>predictive sports algorithms</strong>, please <a href="https://www.linkedin.com/in/tamzid-ullah-8a50a2234/"><strong>follow me on LinkedIn</strong></a><strong> for personal updates</strong> and subscribe for more future content on financial and algorithmic prosperity.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eaa4e350a388" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>