<?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 Tyler Adams on Medium]]></title>
        <description><![CDATA[Stories by Tyler Adams on Medium]]></description>
        <link>https://medium.com/@tylereadams?source=rss-fbda745d37ad------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Tyler Adams on Medium</title>
            <link>https://medium.com/@tylereadams?source=rss-fbda745d37ad------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:46:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tylereadams/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 Hurricane Landfall]]></title>
            <link>https://medium.com/@tylereadams/predicting-hurricane-landfall-783dc1ec03e9?source=rss-fbda745d37ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/783dc1ec03e9</guid>
            <category><![CDATA[florida]]></category>
            <category><![CDATA[hurricane]]></category>
            <category><![CDATA[logistic-regression]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Tyler Adams]]></dc:creator>
            <pubDate>Fri, 13 Mar 2020 21:45:13 GMT</pubDate>
            <atom:updated>2020-03-16T17:48:58.877Z</atom:updated>
            <content:encoded><![CDATA[<p>A predictor to provide a 4–8 hour warning along with a level of certainty that a hurricane will be making landfall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*DbSZfp-aDTrbvtnF.JPG" /></figure><p>Over the past decade there has been an up-tick in the amount of damage that hurricanes have dealt, correlated to the increase in the number of tropical systems. Hailing from the South myself, it has been all-too-clear, even without the data to prove it. Having a model to help predict landfall could yield a lot in the way of short-term damage mitigation as well as reducing social impacts, yielding a faster recovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*TR8WF300srrjwaJC" /><figcaption>Count of Tropical Hurricanes per Year, Colored by Making Landfall (orange)</figcaption></figure><p>So what how did I make that predictor? To gather data, I got Atlantic Ocean data* from the National Oceanic and Atmospheric Administration (NOAA) site (<a href="https://www.nhc.noaa.gov/data/hurdat/hurdat2-1851-2018-120319.txt">here</a>) and then structure that data according to the corresponding NOAA guidelines (<a href="https://www.nhc.noaa.gov/data/hurdat/hurdat2-format-atlantic.pdf">here</a>). Then, after structuring, the data was stored in a Postgres database on an Amazon Web Server (AWS) instance. To get a better sense of the data I made a <a href="https://public.tableau.com/views/Hurricane_15815547911770/Dashboard1?:display_count=y&amp;publish=yes&amp;:origin=viz_share_link">Tableau Dashboard</a> that connects to that AWS instance. Lastly, I fit my model and iteratively performed some feature development. The main features, using PyGeodesy, calculated each Tropical System’s bearing and speed of movement (this was my favorite part).</p><p>*Pacific Ocean data is also available, but was not included for this model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*U_PYT733HjQsQI-EtFkd6w.png" /><figcaption>The Process</figcaption></figure><h4>Looking at this dashboard was such a treat</h4><p>Referring to the image below: Each data point is where a tropical storm was tracked on a 4-hours basis. On the left we can see how the heat coming off of the Sahara Desert, meeting the Atlantic Ocean, spins up Tropical systems year-over-year. This image is filtered for September. And on the right we can track the full path that hurricane Ivan took before making its landfall in September 2004.</p><p>For some reason, the plot on the left was so pleasing to see; observing and validating the year-over-year relation between the Sahara and hurricanes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jrDO88OSiCtZ_zX6" /><figcaption>(Left) All tracking points for September for all years. (Right) Paths of each system for September in 2004.</figcaption></figure><p>Armed with this Sahara-Hurricane insight we can validate that the model accurately picked up on a little trend. Here’s a picture of the model’s feature importance (which features had the most impact).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iMFSRrCwPSSG-NZi" /><figcaption>Hurricane Making Landfall Feature Importance</figcaption></figure><h3>Hurricane location matters. The lower it is, the more likely it is to make landfall.</h3><p>Second, Latitude also matters. As it moves further and further west there is an increased chance of landfall. And as mentioned in the beginning, time (year) is a factor, with increased Tropical activity over the past years. These may be obvious to you and I, but knowing that the model picked up the trend as well is valuable.</p><p>So the model picked up on some correlation — cool! How did the predictions actually perform? I ran a few different models and plotted all the <strong><em>wrong </em></strong>predictions.</p><p>Why check the errors? Informing citizens that a hurricane is going to make landfall has a cost: <em>money, time, </em>and <em>trust</em>. Not everyone can afford to up-and-leave without incurring substantial loss. And if you ‘cry wolf’ too many times folks simply lose trust in the predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fcRQJb-TNvd9mU_4BoNQPQ.png" /><figcaption>False Positives and False Negatives for Each Model</figcaption></figure><p>In the case of the <strong>Logistic Regression</strong> Model (top, center) the inaccuracies are too great. It is making predictions of landfall both too early and too late; the tropical systems are too far in the water and over land. But looking at <strong>Extra Trees</strong>, even when it is wrong, citizens would still likely get some rain; the tropical systems are close to the shore. As such, this was the model I went with. And here’s how it performed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/935/1*E0nk63EyzAN4_nGxVoieqg.png" /><figcaption>Predictions: 0 — “No Landfall within 8 hours”, 1 — “Landfall within 8 hours”</figcaption></figure><p>The main goal is to reduce False Negatives (the orange box). Claiming everyone will be safe when they are not is the fastest way to lose trust. The model did this fairly well, accurately predicting 78% of all actual landfall (aka, Recall).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*o6ubfTC35yHp-wtnMmZuQA.png" /></figure><p>The secondary goal is to reduce False Positives (again, orange box). As mentioned before, ‘crying wolf’ will lose trust over time, just like making False Negative claims. While it is slightly less harmful in the short-term, reducing these is an essential step in the long-run. The model did so-so on this front scoring a Precision of 59%, meaning of all the affirmative predictions made they were 59% trustworthy. Or, 40% of the time it was ‘crying wolf’.</p><p>And those are all the results!</p><p>In the future, some additions I would like to make are:</p><ol><li>Add Pacific Ocean Data (maybe a separate model)</li><li>Increase Lead Time (more than 8 hours)</li><li>Ensembling of Models (to improve False Negative)</li><li>Add More Features:</li></ol><ul><li>Distance from Shore Given Bearing</li><li>Ocean Temperature</li><li>Wind Temperature and Speed</li><li>Oceanic Humidity</li></ul><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=783dc1ec03e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Presenting Machine Learning Failure]]></title>
            <link>https://medium.com/@tylereadams/presenting-machine-learning-failure-c1137fb6973d?source=rss-fbda745d37ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1137fb6973d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[tips]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[presentations]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Tyler Adams]]></dc:creator>
            <pubDate>Thu, 13 Feb 2020 22:47:45 GMT</pubDate>
            <atom:updated>2020-02-13T22:47:45.390Z</atom:updated>
            <content:encoded><![CDATA[<p>This is a story about a model for predicting IndieGoGo campaign dollars-raised that doesn’t predict anything… and how I presented its value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Uaf-3QeBJZ9vLUxZBaSwjw.png" /></figure><p>For this project, I used:</p><ul><li><strong>Python </strong>as the backbone of all programming</li><li><strong>Selenium</strong> to scroll down the IndieGoGo page, click the “Load More” button, and get the URL for each campaign</li><li><strong>BeautifulSoup </strong>to loop through each URL and parse the HTML</li><li><strong>Pandas </strong>to structure the data from BeautifulSoup</li><li><strong>SKLearn </strong>to fit a linear model</li><li><strong>Matplotlib</strong> to visualize the output from SKLearn</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RA2cKgFU_edsNjqIUnuaFQ.png" /><figcaption>A slide from my in-class presentation</figcaption></figure><p>What a wonderful process! It worked beautifully. Except the predicting bit.</p><p>The R² scored was about 0%, meaning that it was just as good as guessing the average value every time, and the P-Value was low enough to know that these results were not random. My model was not useful and I had the numbers to be certain of that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*ONlfcqmngzJq3k4HrXyVuw.png" /></figure><blockquote>Still, there is always light in the darkness, you need only look. Feature Correlation shone through and from this I could build a story; and stories are how we perceive value.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*1ZnF6rGCKSN7mc_D_qdjSQ.png" /><figcaption>High Correlation in Amount:Backers:Percent of Goal</figcaption></figure><p>I can imagine every reader struggling to read those tiny numbers. Just focus on the white-ish square at the top left.</p><p>From this I can deduce, for certain, at least one thing: there is a correlation in the Amount Raised (my target value), Count of Backers, and Percent of Goal. Even if the model doesn’t know how to turn these few features into a distinct value prediction, I can talk about the things I know, and I believe that is the main point to take away…</p><h3>Never dwell on that which you know is bad. Mention it, sure. But then move on. Talk about what you know and tell a story about how what you know is valuable.</h3><p>So for my case the story was that there is a correlation between amount raised and backers. This is obvious at first, but the story here means that <strong>friction matters</strong>. Flat-out getting more people to visit your page matters. Putting in the work to be an “Editor’s Pick” or otherwise be on the main landing page will be a huge help.</p><p>There it is. Short and sweet.</p><p>The model might not tell you anything, but the model isn’t what’s valuable: you are. Make an assessment and go tell your story, statistical model or no.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1137fb6973d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New York MTA Analysis]]></title>
            <link>https://medium.com/@tylereadams/new-york-mta-analysis-3cf34838b8b8?source=rss-fbda745d37ad------2</link>
            <guid isPermaLink="false">https://medium.com/p/3cf34838b8b8</guid>
            <category><![CDATA[time]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science-training]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Tyler Adams]]></dc:creator>
            <pubDate>Wed, 22 Jan 2020 23:49:46 GMT</pubDate>
            <atom:updated>2020-01-22T23:49:46.694Z</atom:updated>
            <content:encoded><![CDATA[<p>Once more, with feeling!</p><p>My aspiration toward data science has been years in the making. In the Fall of 2016 the GRE and I were getting acquainted and I was submitting applications to study for a Masters in Data Science from Berkeley or University of San Francisco. To no avail.</p><p>Now January 2020, my first project at the Metis Data Science Bootcamp is complete.</p><p>A simple analysis of New York Metro turnstile data. Enjoy!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*KJ-AIPtegg9KebXux8BIaw.jpeg" /><figcaption>Oculus, Westfield World Trade Center</figcaption></figure><p><em>All work performed in Python and Python modules</em></p><p>Two classmates and myself set out to advise a[n imaginary] young, growing non-profit, WomenTechWomenYes (WTWY), on how best to <strong>fill up their annual gala </strong>as well as <strong>improve awareness</strong>. With few resources, they need to work efficiently and effectively, and their preferred/historical method of outreach is boots-on-the-ground talking with folks at the subway. Fortunately New York’s Municipal Transportation Authority (MTA) has a [real] API where anyone with the know-how can extract hourly turnstile data. In this way we can target <strong>which stations </strong>and <strong>what time of day </strong>is best.</p><p>Some assumptions we made: <strong>(1) </strong>Targeting exits rather than entries is better as Entries traffic is likely trying to catch a train [and does not want to talk], <strong>(2)</strong> Tech companies’ employees are the best people to target, <strong>(3)</strong> More traffic is better given that brand awareness is also a goal, and <strong>(4)</strong> The gala occurs somewhere in early- to mid-July, exact details read “beginning of the summer”, so we looked at data for the month of June; we assumed here that 4–6 weeks the ideal time for asking folks to consider attending an event.</p><p>Let us first consider traffic. For Exits we found that the top 30 stations, out of 472 total stations, see 95% of the traffic. So picking the right station will do wonders for brand awareness! But how to target Tech employees?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*R4L9AQYGrvdKy5FizzjcAA.jpeg" /><figcaption>Bonjour, Manhattan!</figcaption></figure><p>In our research we came to learn the term “Silicon Alley”. A quick Google search revealed a number of maps showing the swarm of tech companies that fill the Manhattan area south of 59th. In order to target both <strong>high-traffic stations</strong> <em>and </em><strong>Tech company hubs</strong>, we filtered our top-30 list by those that are also in Manhattan. Et Voilà!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*1Cu8eh3bsL-_CFsh" /></figure><p>Phew! That’s a long map. The red dots on this map highlight our potential target stations. (Apologies to my color-blind brother; we will pick a better color scheme next time.) But which station to go to first? Where will WTWY get the most exposure?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wnbuoj7yM_CptDEW" /></figure><p>The top 3 stations here are 34th St-Penn, 23rd St, and Fulton St. For tech companies that’s Amazon, Buzzfeed, and Spotify respectively. And 14th and Time Square have Google and Salesforce, respectively. Maybe some good donors for a Gala ;)</p><p>Great! So that’s the <em>where</em> — how about the <em>when.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M8Se93ApPXOZ_s_P" /></figure><p>As you might expect, there is heightened traffic during rush hour. But that little bit of blue shading in the morning means there is some downward-variance in the volume of traffic on Mondays; you may also notice some upward-variance on Tuesdays. We think avoiding Mondays and Fridays is probably a good idea. While going during rush hour might initially sound like a bad idea, it does increase the likelihood of interacting with locals; most likely a necessary prerequisite for attending an event that is still a month away.</p><p>So there you have it! In short:</p><h4>Manhattan, Rush Hour, Tues/Wed/Thur.</h4><p>Thank you for your time and thank you to my team for working together through this project.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3cf34838b8b8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>