<?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 Minding The Data on Medium]]></title>
        <description><![CDATA[Stories by Minding The Data on Medium]]></description>
        <link>https://medium.com/@mindingthedata?source=rss-4b6ef18b446------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oa5L68tmCqrubcp8B1Px2A.png</url>
            <title>Stories by Minding The Data on Medium</title>
            <link>https://medium.com/@mindingthedata?source=rss-4b6ef18b446------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:10:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mindingthedata/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[3 Ways to Make Money Sports Betting]]></title>
            <link>https://mindingthedata.medium.com/3-ways-to-make-money-sports-betting-819df506996c?source=rss-4b6ef18b446------2</link>
            <guid isPermaLink="false">https://medium.com/p/819df506996c</guid>
            <category><![CDATA[sports-betting]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[gambling]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[sports]]></category>
            <dc:creator><![CDATA[Minding The Data]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 04:31:00 GMT</pubDate>
            <atom:updated>2022-03-31T07:06:42.324Z</atom:updated>
            <content:encoded><![CDATA[<h4>How I Made $400+ Gambling on Sports and How You Can Do it Too</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5iydHkAKglbK0I30.jpeg" /></figure><h3>Introduction</h3><p>Betting on organized sports has been around for over a century, but over the past couple of years it has exploded in popularity. In just the first 10 months of 2021, betting on sports generated over <a href="https://www.newsnationnow.com/morninginamerica/sports-betting-generating-billions-in-tax-revenue-across-us/">$3 billion</a> in revenue.</p><p>With sportsbooks bringing in such large sums of money, you may be wondering how it‘s possible to beat these oddsmakers and bring in some revenue of your own. In this article, I’ll go over three ways that you can identify the best picks while betting on sports.</p><h3>My Sportsbetting Trip</h3><p>Although regulations have become a bit more lenient recently, there are still many states that do not allow certain (or all) forms of sports betting. Unfortuantely for me, I live in a state that is colored red in the map below, so I do not have easy access to legal sportsbooks.</p><p>However for the first two weeks of March, I took a trip to Tennessee where sportsbetting is legal and widely participated in. There were billboards on the side of the highways promoting sportsbooks and convincing new users to sign up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UioRbBdeGxih_zg_.png" /></figure><p>During these two weeks, I placed and recorded a total of 189 bets which added up to over $8,000 placed on wagers. From these 189 bets, I ended up with a profit of $414.15. I learned a lot in this short two week time period in terms of which strategies were effective and which strategies were not worth the time and effort, and I’m confident that I could do even better if I were to do it again.</p><p>I am writing this article to share my learnings with you all so that you can better pick out the most successful strategies from all of the possible options out there.</p><h3>How to Read Sportsbetting Odds</h3><p>For those of you that are unfamiliar with sportsbetting, the odds can be confusing at first. Here’s a quick and simple explanation of how they work.</p><p>Odds will either have a plus(+) or minus(-) sign in front of them.</p><p>If there is a plus sign in front of the odds, this is how much you will profit for every $100 that you bet. For example, if you place a $100 bet with +500 odds and win, you would get your $100 “stake” back, and you would also win $500 in additional profit.</p><p>If there is a minus sign in front of the odds, this is how much you have to bet in order to win $100. For example, if you place $110 on a bet with -110 odds, you would get your $110 “stake” back, and you would also win $100 in additional profit.</p><p>We’ll go over odds more later, so don’t worry if they don’t fully make sense right now.</p><h3>Strategy #1: Sportsbook Promotions</h3><p>When I first got to Tennessee, I signed up for the top 6 sportsbooks that I was able to find. Here is a list of the sportsbooks that I used on my trip:</p><ul><li>Fanduel</li><li>DraftKings</li><li>BetMGM</li><li>WynnBet</li><li>Caesar’s</li><li>Barstool Sportsbook</li></ul><p>While creating accounts on all of these sites, I noticed that they offered some appealing sign up bonuses. For example, WynnBet had the offer shown below, where you receive $200 in free bets after betting just $10.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/0*A20R8tOXSR4uR8VF.jpeg" /></figure><p>I placed a $10 bet on college basketball, won $200 worth of free bets, and then I also won the $10 bet, which gave me an extra $9.80 of profit. Now to clarify, $200 worth of free bets isn’t necessarily $200 cash.</p><p>Normally, if you place a $100 bet at +100 odds and win, you would get your initial $100 “stake” back, plus an extra $100 for winning the bet. However if you place a $100 free bet and win, you would only get to keep the $100 from winning the bet, but not the $100 “stake”. After placing the free bet, any winnings that you receive are converted into cash in your account, and you can then withdraw the money if you’d like.</p><p>The craziest free bet offer that I got was through Caesar’s sportsbook. As shown below, they gave me a free bet that was worth the same value as my first deposit, up to $1,500. I wanted to take full advantage of this offer, so I deposited $1,500 into my account and they gave me a $1,500 free bet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/0*iAVdSe9TafgNz4bK.png" /></figure><p>I decided to use this bet on the Warriors and Mavericks game, and I bet that there would be over 218 total points that were scored. As shown on the bet slip below, I would win $1,363.64 if more than 218 points were scored, and I would lose nothing if less than or equal to 218 points were scored.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*D4e4BoSIiI0s8sFD.png" /></figure><p>Unfortuantely, as shown below, this bet didn’t go my way and the two teams only ended up scoring a total of 208 points. But it was still fun to basically have a risk free chance at over $1,300. And I was able to take my $1,500 deposit out immediately after I lost this bet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c2YRVLTD0l8IQhZK.png" /></figure><p>After losing two more of these risk free bets, I learned of a way to cash them out for the majority of their value, and guarantee yourself profit. For example, let’s say that I have a $50 free bet on Fanduel Sportsbook and I want to guarantee myself as much money as I can from this bet.</p><p>I used a tool called the <a href="https://oddsjam.com/betting-tools/free-bet-converter?via=mtd">Free Bet Converter</a> from the sportsbook data provider called <a href="https://oddsjam.com/?via=mtd">OddsJam</a>. What this tool does is tell me which wager I should place my free bet on, and then how I can hedge the other side of the bet on another sportsbook to guarantee myself profit.</p><p>For example, it looks like the highest conversion I can get from a free bet on Fanduel is 80.77% at the time that I checked, but these odds are changing constantly. We can see below that we want to use our free bet on the Point Spread bet in the Mavericks vs Hornets game. Fanduel gives us +420 odds on the Hornets -11.5 bet. This means that we win if the Hornets win by more than 11.5 points. Barstool Sports and Twinspires give us -420 odds on the Mavericks +11.5 bet. This means that we win if the Mavericks lose by less than 11.5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t8nBTouHTjKKRnyj.png" /></figure><p>When we click on the calculator, and enter our free bet value of $50, we can see that after placing the $50 free bet on Hornets -11.5 bet on Fanduel, we should place a $169.62 bet on the Hornets -11.5 bet on Barstool or Twinspires.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QP4vMHBXPFBAdSw6.png" /></figure><p>Because we are betting on two opposite sides of the same bet, we are certain that we will win at least one of them. We can see that no matter which side of this bet wins, we are guaranteed to profit $40.38. For example, if we win our $50 free bet for the Hornets -11.5 at +420 odds, we win $210.00, and we lost our $169.62 hedge bet, which comes out to a total profit of $40.38.</p><p>In the other scenario, where we win the Mavericks +11.5 bet, we lose our $50 free bet (which we received at no cost to us, so we lost $0), and we won our $169.62 hedge bet at -420 odds, so we profit $40.38 as well. In this case, we were able to cash out our free bets for 80.77% of their value.</p><p>I ended up using this method to cash out my free bets, since I wanted to guarantee my profits, rather than leave it up to random chance.</p><p>Many sportsbooks offer promotions for free bets every week, so I made sure to take advantage of each one that I could find. For example, Fanduel offered me the promotion below where I could place a $10 same game parlay on any soccer game, and I could receive a $10 free bet back if it lost. A <strong>parlay</strong> is just when you combine multiple bets together, and you get an even bigger payout if they all win.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/0*tn6ZKF3EDuBRRRz_.jpeg" /></figure><p>I placed a $10 3-leg parlay on the Bayern Munich vs Salzburg game at +516 odds, so I would profit $51.60 if it won. Unfortunately, one leg of the parlay lost, but I received a $10 free bet, which I was able to cash out for $8 (80% of its value) using the <a href="https://oddsjam.com/betting-tools/free-bet-converter?via=mtd">Free Bet Converter</a> shown above, so I only lost $2 and my potential upside was over $50!</p><p>After adding up all of the profit that I was able to make from these sign up bonuses and Sportsbook promotions, I ended up making <strong>$173.10</strong>.</p><h3>Strategy #2: Positive Expected Value Bets</h3><p>The second strategy I used to make money while sportsbetting was finding positive expected value bets. A positive expected value bet means that the odds that you’re getting on a wager are mathematically pofitable.</p><p>The vast majority of bets on sportsbooks have a negative expected value. For example, let’s take one of the few sports bets where we actually know the true odds of winning it: the Super Bowl coin toss (50%/50%). Sportsbooks will usually give you around -105 odds on a bet like this. This means that you’ll win $95.24 if you win this bet, but you’ll lose $100 if you guess wrong.</p><p>Let’s calculate the expected value of this bet:</p><p>(50% * + $95.24) + (50% * -$100) = -$2.38 (2.38%)</p><p>Now obviously if we only take this bet once, we either win $95.24 or lose $100, but an expected value of -$2.38 means that if we were to place this bet thousands of times, we would expect to lose $2.38 on average. This is not the type of bet that we’re looking for. We want a bet where we’re expected to make money in the long run.</p><p>Now unfortunately, we won’t be able to know the exact odds of winning each bet, but there is a way to estimate this percentage. One sportsbook in particular is known for being the sharpest, meaning that they have the most accurate odds. This sportsbook is <strong>Pinnacle</strong>.<strong> </strong>We can use Pinnacle’s odds to estimate the true probability of winning. Then we can compare this win probability to all of the other odds offered by sportsbooks in order to see if there are any positive expected value bets.</p><p>Let’s look at an example on the <a href="https://old.oddsjam.com/positive-ev/?via=mtd">Positive Expected Value</a> page on <a href="https://oddsjam.com/?via=mtd">OddsJam</a>:</p><p>Here we can see that in the Chelsea vs Brentford game, Pinnacle is offering -326 odds on the Over 1.5 Goals bet, and +242 odds on the Under 1.5 Goals bet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cP-_jZi46FhIgXxo.png" /></figure><p>Using OddsJam’s <a href="https://old.oddsjam.com/no-vig-fair-odds-calculator/?via=mtd">No-Vig Fair Odds Calculator</a>, we can find the estimated probability of each side of the bet winning by taking the midpoint of Pinnacle’s odds. As shown below, this turns out to be a 72.35% chance of winning the Over 1.5 Goals bet, and 27.65% chance of winning the Under 1.5 Goals bet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IXyhb9yFJEQPKx5l.png" /></figure><p>We can also see that Fanduel is currently offering +320 odds on the Under 1.5 Goals bet. Let’s calculate the expected value assuming that we can get +320 odds on a $100 bet that wins 27.65% of the time.</p><p>(27.65% win probability * + $320 profit) + (72.35% loss probability* -$100) = +$16.13 (16.13%)</p><p>We can see that we no longer have a negative expected value, but now are making $16.13 on average on a $100 bet. And there are constant opportunities like this that are listed on <a href="https://oddsjam.com/?via=mtd">OddsJam</a>.</p><p>Here’s an example of a positive expected value bet that I took advantage of. FanDuel was offering a promotion that gave +150 odds on Duke, Kansas, and Kentucky to all win their college basketball games on March 11th.</p><p>I used OddsJam to estimate each of the team’s probabilities of winning and I calculated that:</p><ul><li>Duke had a 77.72% chance of winning their game</li><li>Kansas had a 75.08% chance of winning their game</li><li>Kentucky had a 83.51% chance of winning their game.</li></ul><p>Multiplying these probabilities together, we calculate that there is a 48.73% chance that all three of these teams win their respective games, and therefore we win the overall bet.</p><p>Let’s calculate the expected value of this $50 bet with +150 odds:</p><p>(48.73% win probability * + $75 profit) + (51.27% loss probability* -$50) = +$10.91 (21.82%)</p><p>I am happy to take any opportunity that has an expected value of over 20%, and luckily this one worked out in my favor, and I was able to profit $75.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*ljgi_O8u7148SAyD.png" /></figure><p>Overall from these positive expected value bets, I was able to make a profit of <strong>$61.38</strong>. These were extremely variable bets, and every win or loss changed my profit/loss a large amount, so I wanted a way to lower the variance in my balance, which we’ll go over in the third and final strategy.</p><h3>Strategy #3: Arbitrage Bets</h3><p>This last type of bet was my favorite, and this is because there was no luck involved at all. Arbitrage bets allow you to take opposite sides of a bet on two different sportsbooks in order to guarantee a profit before the game even happens.</p><p>It doesn’t sound realistic that sportsbooks have odds that are so different that you can guarantee yourself a profit, but there are constantly dozens of opportunities available and being tracked on OddsJams <a href="https://old.oddsjam.com/arbitrage/?via=mtd">Arbitrage Bets</a> page.</p><p>Here’s example of an arbitrage opportunity listed on their site. We can see that Fanduel is offering -106 Odds on the Beijing Ducks +6.5 Point Spread, while DraftKings is offering +115 odds on the -6.5 Point Spread for the opposite team. There’s actually a way that we can place bets on both of these sides in order to guarantee some profit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5beuyeA-NOFWzvQC.png" /></figure><p>When we click the purple calculator, we can figure out how much to bet on each side to guarantee us a profit. We can see that if we bet $100 on the Beijing +6.5 Point Spread on Fanduel, and we bet $90.39 on the Shandong -6.5 Point Spread on DraftKings, we can guarantee ourselves $3.95 (2.03%)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5mkixAHCohPitefr.png" /></figure><p>Now these lower arbitrage opportunities around 2–3% were normally available for long periods of time, but I would consistently refresh the <a href="https://old.oddsjam.com/arbitrage/?via=mtd">Arbitrage Bets</a> page and look for even bigger opportunities that I would have to take advantage of quickly. Here was one of the ones that I was most excited about.</p><p>I was able to get a $420 bet on Trey Lyles Under 1.5 Assists on Caesar’s Sportsbook for -160 odds. Then I was able to get a $200 bet on Trey Lyles Over 1.5 Assists on Fanduel for +240 odds.</p><p>Let’s look at the two possibilities that can happen here:</p><ul><li>Trey Lyles has Under 1.5 Assists: Win $262.50 on Caesar’s but lose $200 on Fanduel for an overall profit of $62.50</li><li>Trey Lyles has Over 1.5 Assists: Win $480 on Fanduel but lose $420 on Caesar’s for an overall profit of $60.00</li></ul><p>As you can see below, Trey Lyles ended up getting Under 1.5 Assists, so I made a profit of $62.50 on a total of $620 in bets (10.08%).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*qMRQZqtPOmHhRQ4u.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/0*pA3RelJDkmAR7HLf.jpeg" /></figure><p>These arbitrage bets were my favorite type of bet by far, but I didn’t start using this strategy until the last few days of my trip, so I only made <strong>$179.67</strong> from them. If I were able to sportsbet again, I would definitely prioritize these bets over the first two strategies.</p><h3>Using OddsJam</h3><p>If you haven’t noticed yet, <a href="https://oddsjam.com/?via=mtd">OddsJam</a> was essential in making profit on these sports bets. They scrape millions of sportsbook’s odds every day to find opportunities like the ones listed in this article. These include strategies that match your risk tolerance level, whether that’s going for <a href="https://old.oddsjam.com/positive-ev/?via=mtd">Positive Expected Value Bets</a>, or guaranteeing profit with <a href="https://old.oddsjam.com/arbitrage/?via=mtd">Arbitrage Bets</a>. They also show multiple of each type of opportunity for free, so be sure to check it out here: <a href="https://oddsjam.com/?via=mtd">https://oddsjam.com/?via=mtd</a></p><p>If you’re interested in any of their paid plans, be sure to use my code <strong>MTD </strong>for 25% off your first month.</p><h3>Conclusion</h3><p>Thanks so much for making it through this article. Please leave any questions that you may have in the comments, or feel free to reach out to me at MindingTheData@gmail.com.</p><p>I’m also hoping to turn this article into a YouTube video, so be sure to keep a look out on my <a href="https://www.youtube.com/channel/UCo6_BnDBy59l1C1Vu0UxnXA">channel</a>.</p><p><em>*This article is not financial advice and is meant for educational purposes only</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=819df506996c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How Much I Made From My First Year on YouTube]]></title>
            <link>https://mindingthedata.medium.com/how-much-i-made-from-my-first-year-on-youtube-b014036cc2c1?source=rss-4b6ef18b446------2</link>
            <guid isPermaLink="false">https://medium.com/p/b014036cc2c1</guid>
            <category><![CDATA[youtube]]></category>
            <category><![CDATA[content-creation]]></category>
            <category><![CDATA[side-hustle]]></category>
            <category><![CDATA[money]]></category>
            <category><![CDATA[passive-income]]></category>
            <dc:creator><![CDATA[Minding The Data]]></dc:creator>
            <pubDate>Sat, 11 Sep 2021 06:48:35 GMT</pubDate>
            <atom:updated>2021-09-11T06:48:35.922Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2zQY4Jqb6cEVUcY3MLbXvQ.png" /></figure><h4><strong>Starting My YouTube Channel</strong></h4><p>During the summer of 2020, right before my senior year of college, I decided to start a YouTube channel. I was majoring in Statistics and Data Science and was working on a bunch of side projects to help practice the skills we had been learning, but I had no one to share these projects with. I figured that YouTube would be the perfect place to find people that would be interested in the work that I was doing.</p><p>This is how <a href="https://www.youtube.com/channel/UCo6_BnDBy59l1C1Vu0UxnXA">Minding The Data</a> began. The goal of my channel was to take an in-depth look at the mathematics behind anything from the stock market to cryptocurrency gambling websites.</p><p>My <a href="https://www.youtube.com/watch?v=F1HA7e3acSI">first video</a> was all about the math behind a cryptocurrency casino game called Crash. Here’s how the video did in it’s first 5 weeks of being on YouTube.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*vMqjLWi10nibdajfRG_K9Q.png" /></figure><p>During the first two weeks, I posted my video anywhere I thought people may be interested. I shared it on Reddit, Twitter, and even gambled the $10 minimum that was required to join an online casino’s chatroom in order to get some views from there. From the graph above, we can see that this strategy was working, but only for about 20–40 viewers a day on average.</p><p>My theory was that YouTube would find users that shared similar interests to the ones that I was personally directing to my video. The hope was that YouTube would start to take over the recommendation process because I was spending way too long advertising my channel for only a couple dozen views a day.</p><p>And it worked! Right around Week 3 I began to see views rolling in when I wasn’t even advertising my video anywhere. YouTube was showing the video on other user’s homepages, and at a much larger scale than I was able to do. I started getting a few hundred organic views a day, which then jumped into the thousands, and by the 5th week of my first YouTube video going live, I was receiving over <strong>7,000</strong> views on the video in a single day!</p><h4><strong>Monetizing My YouTube Channel</strong></h4><p>Unfortunately these views were not earning me any advertising revenue, as I had to have a minimum of 1,000 subscribers and 4,000 hours of watch time on my videos to join YouTube’s Partner Program. Fortunately, on August 27th 2020, just 6 weeks after starting my YouTube channel, I was approved for monetization and was able to start earning money from my videos.</p><p>On my first full day of earning revenue from my videos, I made <strong>$21.53</strong>. This absolutely blew my mind. I was earning this money with only a couple of videos on my channel and I didn&#39;t even have to do any work to keep the revenue coming in. The chart below shows the rest of the ad revenue for 2020.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hvktF6z7ekjkFmpl2wamgw.png" /></figure><p>Over the next 4 months, I ended 2020 making just under <strong>$1,500</strong> from my YouTube videos (13 cents short to be exact). My videos had been viewed <strong>315,000</strong> times, and once I was approved for advertising, I was earning about <strong>$4.76</strong> for every 1,000 views.</p><h4>Full First Year Results</h4><p>Now let’s include the revenue from 2021 to see the results of the entire first year. In 2021 I was a lot busier with school and other projects, so I’ve only been able to complete 2 videos in this time. However the channel is still getting a decent amount of views. Here are the results from the start of the channel to right now, a total of just about 1 year and 2 months.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*og7kLfr1fbvGqBma3BWRDQ.png" /></figure><p><strong>1,500,000 </strong>Views. <strong>38,400</strong> Subscribers. <strong>94,500</strong> hours of Watch Time. and <strong>$5,550</strong> in Revenue.</p><p>This channel grew so much larger than I had ever imagined to be possible. People have spent <strong>10.79 </strong>years watching my videos in just a year’s time. This was a niche that I thought only appealed to a small proportion of people, and my expectations have been blown away. It has been so exciting to see other people interested in a topic that you are passionate about.</p><p>August 2nd, 2021 has been my most profitable day so far. Around this time, I had a less popular video from August 2020 begin to gain views almost out of nowhere. <a href="https://youtu.be/LY-YZBygu1k">This video</a> covered the math behind a lottery game which MIT students made millions off of after discovering a loophole in the game structure. It had soon expanded outside of the range of users who were interested in mathematical topics, and began spread to all sorts of users, helping to reach my largest revenue day ever at <strong>$178.58</strong>.</p><p><strong>Conclusion</strong></p><p>The decision to start turning my projects into YouTube videos that can be shared with others was one of the best decisions I have ever made. The extra income is great but the truly amazing part is seeing a community of users form and gain interest in the information that you’re sharing. Everyone out there has something that they’re passionate about or something that they would love to share with others.</p><p>So what are you waiting for? Maybe you’re afraid that the production won’t be good enough or there’s just not enough people interested in your topic. My best performing video is the one that I made on iMovie using my computer’s audio to record myself talking. You don’t need the latest editing software or a $200 microphone to get started. There’s such a satisfying feeling of accomplishment that comes with posting a video to the point where you’ll consider it a success no matter how many people it actually reaches.</p><p>I hope that taking a look at my journey has inspired you to look into the possibility of starting one of your own :) I can’t wait to see what you create!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b014036cc2c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should You Buy Stock Market Dips?]]></title>
            <link>https://mindingthedata.medium.com/should-you-buy-stock-market-dips-66e9f88e1e19?source=rss-4b6ef18b446------2</link>
            <guid isPermaLink="false">https://medium.com/p/66e9f88e1e19</guid>
            <category><![CDATA[day-trading]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[stock-market]]></category>
            <category><![CDATA[stocks]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Minding The Data]]></dc:creator>
            <pubDate>Sun, 18 Oct 2020 07:30:34 GMT</pubDate>
            <atom:updated>2020-10-18T07:30:34.102Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*ZkhwmQJyI9VpGmDE" /></figure><p>One of the most common pieces of advice heard in the world of investing and the stock market is the phrase “buy low, sell high”, and many people believe that buying the dips in the market trends is how you can complete step one: buying low.</p><p>I recently came across this post by the Instagram page ChartRDaily which shows how well the market has done on days after drops of 2% or greater.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/0*dMdSdk9QV8gu-2QA" /></figure><p>We can see from the chart that the stock market tends to have a higher probability of a positive return at 53.8%. I wanted to look deeper into this notion of “buying the dip”, and see if there were any other patterns that I could find rather than just looking at days after a drop of 2% or greater.</p><p>First, I had to gather the data. According to the chart, the data was collected from the S&amp;P 500 since 1969. Yahoo Finance has daily returns of the S&amp;P 500 going back to 1928 so I was able to download this data and load it into a pandas data frame.</p><p>Here is what the distribution of daily returns looks like:</p><p>*Note: The return is calculated as (Close — Open) / Open, so only movements during market hours are counted and any movements pre-market or during after market hours are not included.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/0*81YQEElUzTOvB56g" /></figure><p>The mean return of all days turns out to be .03%. This graph is zoomed in to get a better idea of the shape of the distribution, but the true distribution ranges from a -20.5% return on October 19, 1987, also known as Black Monday, and goes as high as 10.8% on October 28, 2008 during the global financial crisis.</p><p>When I tried to replicate the results shown in the chart, I got some slightly different results. My results showed that on days after a drop of 2% or greater, there were 172 positive days and 144 days, which means that 54.4% were positive. I reached out to ChartR to try to figure out why our data differed, but have not heard back as of yet.</p><p>It would be helpful to compare these percentages to the overall percent of market returns that are positive, which turns out to be 52.6%.</p><p>Now what about drops of different sizes than 2%? This graph shows the proportion of positive days that follow returns less than given amounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/0*Xhmq70Vk9fAGjXk2" /></figure><p>It looks like there tend to be positive returns on days after large drops (such as returns less than -4%). Something interesting to notice is that the return actually becomes more likely to be negative at a certain point (when the previous day had a return less than ~ -1.6%).</p><p>But what about the returns on days after a big gain? Is there an opposite effect?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/0*4qxD1rycB4Y5It8K" /></figure><p>It looks like days after extreme gains seem to be less likely to be positive on the next day. However, looking at the days after gains larger than 2%, we can see that about 56.3% of days were positive, which is even larger than we saw after a drop of the same size.</p><p>Proportions don’t give us all of the information that we need, so it would be nice to look at the averages as well. Remember we said the overall average return was .03%. After days with a return less than -2%, the average return turned out to be .19%, and after days with a return greater than 2%, the average return was .12%, which are both significantly higher than the overall average.</p><p>There was one last pattern I wanted to look for in this daily S&amp;P 500 data. We have seen how events such as the spin of a roulette roll are independent, where the odds of a certain number or color appearing are just as likely no matter which results came before. I wanted to know if this was the same for the stock market.</p><p>I looked at the proportion of positive days after x negative days in a row and here’s what I found.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/0*V9KTKZOZIfIHTwXM" /></figure><p>It looks like days after 0 negative days in a row seem to be more likely to be a positive day at 53.8%, while days after 1 or 2 negative days in a row seem to stick with the trend and and also seem to be more likely than usual to be a negative day.</p><p>Here’s what the average returns look like for the same situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/0*CrSJblfzp-X9TvSp" /></figure><p>Once again we can see that the average seems to be higher after 0 negative days in a row, and actually has been negative after 1 and 2 negative days in a row. After 5 negative days in a row, the average return has been 0.2%, but also has the overall average return within its 95% confidence interval.</p><p>Now let’s look at streaks of positive days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*ar-x0CKu8qww7sg9" /></figure><p>It looks like we’re seeing the opposite patterns as the streaks of negative days. After 0 positive days in a row, there seems to be a lower chance of seeing a positive day, and a higher chance after 1 and 2 positive days in a row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/0*Vw01L8gY1c-q3WrN" /></figure><p>These patterns seem to stay consistent when looking at the averages as well. The average return is right around 0% after 0 positive days in a row, but shoots up to .07% and .08% after 1 and 2 positive days in a row.</p><p>If you’d like to look into some other patterns in these daily returns, I’ve made a GitHub repo of the code and data that you can check out here: <a href="https://github.com/MindingTheData/BuyTheDip">https://github.com/MindingTheData/BuyTheDip</a></p><p>Thanks for reading and be sure to check out some of my other posts!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66e9f88e1e19" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does Your Data Follow Benford’s Law?]]></title>
            <link>https://mindingthedata.medium.com/does-your-data-follow-benfords-law-dac872bfd60f?source=rss-4b6ef18b446------2</link>
            <guid isPermaLink="false">https://medium.com/p/dac872bfd60f</guid>
            <category><![CDATA[benfords-law]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Minding The Data]]></dc:creator>
            <pubDate>Wed, 09 Sep 2020 19:41:38 GMT</pubDate>
            <atom:updated>2020-09-09T20:06:04.340Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nkwZAfTRRkVi7S6q" /></figure><p>Benford’s Law is a mathematical phenomenon which has shown that numbers are much more likely to start with smaller digits, such as a 1 or a 2, compared to larger digits such as an 8 or a 9. This pattern has shown up all over the place, from social media websites to stock market data and has even been used to detect fraud or manipulated tax returns. If you’d like to see a further breakdown and analysis of these real life examples of Benford’s Law, you can check out my YouTube video here.</p><p>In this project, we will be taking a dataset and testing to see if a given variable follows the distribution laid out by Benford’s Law. I will show all the code required to test your variable, but you will need to use Python and Jupyter notebooks, so if you are unfamiliar with these tools you can learn more by watching this tutorial <a href="https://youtu.be/CwFq3YDU6_Y">here</a>.</p><p>The libraries that we will be needing for this project are pandas, matplotlib, and seaborn so be sure to import those with the following code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f25a5d171c010217635b53a1dc83fbe9/href">https://medium.com/media/f25a5d171c010217635b53a1dc83fbe9/href</a></iframe><p>Next we will need to import the data that we want to compare to Benford’s Law. You will first need this data in a csv file and can load in the data frame with pandas. Then you can use the .head() function to see the first couple rows of your data frame as shown in the example below. For my example, I will be using the <a href="https://www.kaggle.com/justinas/nba-players-data">Trending YouTube Video Dataset</a> available on Kaggle.com. Kaggle is a great source for data to practice with, so be sure to check out their site if you’d like to use your own variable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a35409de9a30b220323dcf10b83b82a6/href">https://medium.com/media/a35409de9a30b220323dcf10b83b82a6/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1015/1*gG_T6q7pfOmZiZhrGUzIWQ.png" /></figure><p>Now that you have your table all set, you will need to select the variable you would like from your data frame and remove any missing data. We will also need to ensure that this variable is treated as a string rather than a number so that we will be able to extract the first digit from each one. Lastly we will get the counts of each digit, and set the parameter normalize=True in .value_counts() to get the proportion of times that each digit occurs. In my example, I want to compare Benford’s Law to the distribution of beginning digits of the number of <strong>views</strong> on Trending Videos. If you’re following along with another dataset, simple replace “views” with the name of your variable.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2392b4101f53dd0bac79ca3543f43968/href">https://medium.com/media/2392b4101f53dd0bac79ca3543f43968/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*qkBNPhkMckjrHdJP_o3wYg.png" /></figure><p>We can see from the data above that this example already looks like it will turn out to follow Benford’s Law! But let’s graph the results and see how they compare side by side. Replace my_variable_name with the description of your variable and get a direct comparison of your leading digits to Benford’s Law.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7edd8cde8ad9669b0ae39f6835114937/href">https://medium.com/media/7edd8cde8ad9669b0ae39f6835114937/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/0*D2URgauX5QWa16NH" /></figure><p>We can see that our variable turns out to match Benford’s Law nearly identically! Hopefully you were able to make it through this tutorial successfully and found a variable that also aligns with the Benford’s Law pattern. I’d love to see what you were able to find, so feel free to share your findings with me on the <a href="https://mindingthedata.com/contact/">Contact</a> page!</p><p>If you’d like to access the Jupyter notebook with all of the above code cells, check it out on my GitHub <a href="https://github.com/MindingTheData/Befords-Law-Walkthrough">here</a>.</p><p>Thanks for making it all the way through and please check out some other <a href="https://mindingthedata.com/coding-projects/">Coding Projects</a> or check out some of the videos that I’ve created on my <a href="https://www.youtube.com/channel/UCo6_BnDBy59l1C1Vu0UxnXA">YouTube</a> channel.</p><p><em>Originally published at </em><a href="https://mindingthedata.com/2020/09/09/does-your-data-follow-benfords-law/"><em>http://mindingthedata.com</em></a><em> on September 9, 2020.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dac872bfd60f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simulating Roulette Betting Strategies with Python]]></title>
            <link>https://mindingthedata.medium.com/simulating-roulette-betting-strategies-with-python-61bf40fc4a1c?source=rss-4b6ef18b446------2</link>
            <guid isPermaLink="false">https://medium.com/p/61bf40fc4a1c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[gambling]]></category>
            <category><![CDATA[simulation]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Minding The Data]]></dc:creator>
            <pubDate>Sun, 30 Aug 2020 23:19:18 GMT</pubDate>
            <atom:updated>2020-09-07T17:16:49.469Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*IcZvbDqqd5o8mAM_AnJSFg.jpeg" /></figure><p>In this article, we’re going to be looking at the popular casino game of roulette and debunking various betting strategies designed to increase your odds of walking away a profitable gambler. We will go over how to simulate each of these methods in Python, while also pointing out the key differences between their effects on your bankroll over time.</p><p>So let’s dive in! In American Roulette, there are 18 red pockets, 18 black pockets, and 2 green pockets that the ball can fall into after spinning around the wheel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jMjXG_IJZeqZQbR-HSXMhg.jpeg" /></figure><p>If you win on a red or black bet, you get paid 1:1 odds, which means you win $1 for every $1 that you bet. However, if you bet on a single number, the payout improves to 35:1, so you will profit $35 for every $1 bet since there is a much lower chance of winning in this case. In this project, we are going to learn how to simulate random processes such as roulette spins and view the results of simple betting strategies on our bankroll.</p><h3><strong>Strategy #1: Always Red</strong></h3><p>Let’s keep this first strategy simple and say that we are going to bet $1 on red every time. Because 18 out of the 38 pockets are red, we have a 18/38 chance of winning $1, and a 20/38 chance that we lose our $1 bet.</p><p>Let’s look at how we can simulate this strategy in Python:</p><p>We are going to set our bankroll at $100, and then create a list of possible outcomes by making a list with 18 reds, 18 blacks, and 2 greens. Next we are going to use the <strong><em>random</em></strong><em> </em>library to pick a random item from this list simulating a roulette spin, and if it is red we win $1, but if it is black or green we lose $1. As we go along we will keep track of our bankroll after each spin until we eventually hit $0.</p><pre>import random<br><br>def always_red(bankroll):  <br>    bankroll = 100<br>    pockets = [&quot;Red&quot;] * 18 + [&quot;Black&quot;] * 18 + [&quot;Green&quot;] * 2<br>    bankroll_history = []<br>    while bankroll &gt; 0:<br>        roll = random.choice(pockets)<br>        if roll == &quot;Red&quot;:<br>            bankroll += 1<br>        else:<br>            bankroll -= 1<br>        bankroll_history.append(bankroll)<br>    return bankroll_history</pre><p>Now let’s simulate this strategy a few times and make a plot of our bankrolls over time.</p><pre>import seaborn as sns<br>import matplotlib.pyplot as plt<br>sns.set(rc={&#39;figure.figsize&#39;:(11.7,8.27)})</pre><pre>for i in range(4):<br>    plt.plot(always_red(bankroll=100), linewidth=2)<br>    <br>plt.xlabel(&quot;Number of Games&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.ylabel(&quot;Bankroll&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.xticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.yticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.title(&quot;Bankroll Over Time&quot;, fontsize=22, fontweight=&quot;bold&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/0*Ru_OANGqQ52sZyBH" /></figure><p>We can see that each of our 4 simulations goes bankrupt after enough time, but the quickest lasted around 1,000 games while slowest lasted nearly 4,000 games.</p><h3><strong>Strategy #2: Martingale</strong></h3><p>Now let’s look at a more complex strategy known as the Martingale. In this strategy, we will start with betting only $0.01, but each time we lose, we will continue to double our bet until we eventually get a win. For example, if we lose the first $0.01 bet, we will bet $0.02 on the next bet trying to make up for the previous loss. If we lose that bet, we will then bet $0.04 and so on until we finally get a win and reset to our initial bet of $0.01.</p><p>In the code below, we can see that we are resetting the bet to $0.01 if we win, and multiplying the bet by 2 if we lose. If our bet is ever larger than our bankroll, we set the bet to be equal to our bankroll so that we are not betting more than we have.</p><pre>def martingale(bankroll):<br>    bet = .01<br>    pockets = [&quot;Red&quot;] * 18 + [&quot;Black&quot;] * 18 + [&quot;Green&quot;] * 2<br>    bankroll_history = []<br>    while bankroll &gt; 0:<br>        if bet &gt; bankroll:<br>            bet = bankroll<br>        roll = random.choice(pockets)<br>        if roll == &quot;Red&quot;:<br>            bankroll += bet<br>            bet = .01<br>        else:<br>            bankroll -= bet<br>            bet *=2<br>        bankroll_history.append(bankroll)<br>    return bankroll_history<br>    <br>martingale(bankroll=100)</pre><p>Let’s simulate this strategy a few times and see how it turns out.</p><pre>for i in range(4):<br>    plt.plot(martingale(bankroll=100), linewidth=2)<br>    <br>plt.xlabel(&quot;Number of Games&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.ylabel(&quot;Bankroll&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.xticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.yticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.title(&quot;Bankroll Over Time&quot;, fontsize=22, fontweight=&quot;bold&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/0*Dri5uBTPmZh5VYVE" /></figure><p>We can already see that this looks much different than our “Always Red” strategy. With the Martingale strategy, you make slow and steady profits, until you hit a string of losses which eventually causes you to go bankrupt because your bets are increasing exponentially. From the graph above, we can see that one simulation made it all the way to 30,000 games, while another only lasted a few hundred rounds.</p><h3><strong>Strategy #3: Fibonacci</strong></h3><p>The Fibonacci sequence is the sequence of numbers defined by:</p><p>X1 = 1, X2 = 1, and Xn = Xn-1 + Xn-2</p><p>Which means the first 10 Fibonacci numbers are 1, 1, 2, 3, 5, 8, 13, 21, 34, 55.</p><p>In the Fibonacci strategy, we are going to start by betting $0.01, and then if we lose we will move 1 step up the chain of Fibonacci numbers. However if we win, we will move 2 steps down the sequence (or continue betting 1 if we are already there). For example, let’s say we lose the first 5 bets of $0.01, $0.01, $0.02, $0.03, and $0.05, but we win the bet of $0.08. We would then move two steps down the chain and bet $0.03.</p><p>Let’s look at how we would code this in Python:</p><p>First we define a function which gets us the nth Fibonacci number. Then we multiply whichever Fibonacci number we’re at by $0.01 to get our bet. If we win our bet, we decrease our Fibonacci number by 2, but make sure not to decrease it less than 1. If we lose the bet then we increase the Fibonacci number by 1.</p><pre>def fibonacci(n):<br>    if n == 1 or n == 2:<br>        return 1<br>    else:<br>        return fibonacci(n-1) + fibonacci(n-2)</pre><pre>def fibonacci_strategy(bankroll):<br>    fibonacci_number = 1<br>    pockets = [&quot;Red&quot;] * 18 + [&quot;Black&quot;] * 18 + [&quot;Green&quot;] * 2<br>    bankroll_history = []<br>    while bankroll &gt; 0:<br>        bet = fibonacci(fibonacci_number) * .01<br>        if bet &gt; bankroll:<br>            bet = bankroll<br>        roll = random.choice(pockets)<br>        if roll == &quot;Red&quot;:<br>            bankroll += bet<br>            fibonacci_number = max(fibonacci_number - 2, 1)<br>        else:<br>            bankroll -= bet<br>            fibonacci_number += 1<br>        bankroll_history.append(bankroll)<br>    return bankroll_history</pre><p>Let’s see how these simulations turned out.</p><pre>for i in range(4):<br>    plt.plot(fibonacci_strategy(bankroll=100), linewidth=2)<br>    <br>plt.xlabel(&quot;Number of Games&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.ylabel(&quot;Bankroll&quot;, fontsize=18, fontweight=&quot;bold&quot;)<br>plt.xticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.yticks(fontsize=16, fontweight=&quot;bold&quot;)<br>plt.title(&quot;Bankroll Over Time&quot;, fontsize=22, fontweight=&quot;bold&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/0*pqODP_2YYqzCW0tP" /></figure><p>These simulations look very similar to the Martingale strategy, but it does look like they last longer since they are increasing their bet at a slower rate. After simulating both 100 times, the Martingale strategy lasted an average of 17,800 rounds, while the Fibonacci strategy lasted an average of 21,200 rounds.</p><p><strong>Conclusion</strong></p><p>We’ve tested multiple strategies and have seen that it is not going to be possible to beat roulette in the long term, but it is possible to extend the time that you’re able to play.</p><p>Hopefully you are now able to test any other strategies that you are interested in, and feel free to contact me on the <a href="https://mindingthedata.com/contact/">Contact</a> page for any questions / comments!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61bf40fc4a1c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>