<?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 Andrew Van Benschoten on Medium]]></title>
        <description><![CDATA[Stories by Andrew Van Benschoten on Medium]]></description>
        <link>https://medium.com/@andrewhvbs?source=rss-f21579a0e1b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*-H3y9fq7-PmldUzUiyMu3A.jpeg</url>
            <title>Stories by Andrew Van Benschoten on Medium</title>
            <link>https://medium.com/@andrewhvbs?source=rss-f21579a0e1b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 19:43:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrewhvbs/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[How To Read The Internet]]></title>
            <link>https://medium.com/data-science/how-to-read-the-internet-85f93b663cd7?source=rss-f21579a0e1b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/85f93b663cd7</guid>
            <category><![CDATA[data-science-education]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[learning]]></category>
            <dc:creator><![CDATA[Andrew Van Benschoten]]></dc:creator>
            <pubDate>Fri, 11 Dec 2020 20:40:14 GMT</pubDate>
            <atom:updated>2020-12-11T20:40:14.371Z</atom:updated>
            <content:encoded><![CDATA[<h4>Stay on the cutting edge of data science with just a few minutes each day</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zUqsJmJ4XpCr7cRNce0jmg.jpeg" /><figcaption>Image Credit: AltumCode on <a href="https://unsplash.com/photos/XMFZqrGyV-Q">Unsplash</a></figcaption></figure><p>The broad scope of data science is a double-edged sword. Our professional lives span multiple fields, each containing decades of valuable discoveries with new insights added every day. How can data scientists stay afloat in this vast knowledge lake? Failure to utilize the right tool or approach can be costly for projects as well as careers. How do we avoid remaining in our comfortable tech bubbles, ultimately risking obsolescence?</p><p>Thankfully, we can solve this problem the same way we solve our programming questions: the internet. The advance of blogs, open-access publications and Massive Open Online Courses (MOOCs) have created a wealth of perpetually updated information, more than we could hope to process in a lifetime. Many of us are already familiar with this content and use it to some extent. Depending on my daily availability, I might flip through <a href="https://news.ycombinator.com/">Hacker News</a>, read a technical blog post about Principal Component Analysis, then surf my LinkedIn profile for inspirational quotes. But if my schedule is busy, I could go several days without reading anything.</p><p>This scattershot approach has several issues:</p><ol><li>Occasional skimming (or cramming, as the case may be) is a far inferior approach to <a href="https://journals.sagepub.com/doi/abs/10.1177/1529100612453266">learning a little bit each day</a>.</li><li>Many important articles may fall through the cracks. If I only check my favorite machine learning blog on Fridays, I might have missed a super-relevant overview of a <a href="https://towardsdatascience.com/how-to-painlessly-analyze-your-time-series-f52dab7ea80d">new implementation of the Matrix Profile</a> that was posted at the beginning of the week.</li><li>Without a process for determining what topics are important, my reading may be extremely inefficient. (<em>Was it worth spending three hours yesterday on that blockchain primer?</em>)</li></ol><h3><strong>Search, Collect, Process</strong></h3><p>All of these issues can be solved by using what I call the “Search-Collect-Process” method (SCP). With just 30 minutes per day, I can review hundreds of articles and only focus on the ones that matter, while making sure that few important posts slip through the cracks.</p><h4>Step 1: Search</h4><p>The first step is to identify sources of relevant content. I try to remain a “generalist” data scientist and hence follow a range of different publications, but if you’re an ML researcher there may only be a handful of academic journals that you‘ll focus on. Below are some good starting sources that I’ve found during my career:</p><p><strong>1. Company blogs</strong></p><p>Many tech organizations run blogs (Medium or otherwise) that highlight interesting work, new technologies in the field or just fun tutorials for beginning data scientists. Some of my favorites are <a href="https://medium.com/airbnb-engineering">Airbnb Engineering &amp; Data Science</a>, <a href="https://medium.com/netflix-techblog">The Netflix Tech Blog</a>, Kaggle’s <a href="http://blog.kaggle.com/">No Free Hunch</a> and Stitch Fix’s <a href="https://multithreaded.stitchfix.com/blog/">Multithreaded</a>. I’ll also make a shameless plug for my alma mater, <a href="https://blog.insightdatascience.com/">Insight Data Science</a>.</p><p><strong>2. Data science/analytics platforms</strong></p><p>There are several sources that serve as content platforms for individuals, academic organizations and companies that don’t already have their own blog sites. Three great examples are Towards Data Science (but you knew that already), <a href="https://www.kdnuggets.com/">KDnuggets</a> and <a href="https://www.datatau.com/">DataTau</a>. I also love following <a href="https://news.ycombinator.com/">Hacker News</a>, although the quantity of stories can get overwhelming at times.</p><p><strong>3. Individual blogs and everything else</strong></p><p><a href="https://machinelearningmastery.com/">Machine Learning Mastery</a>, <a href="https://robjhyndman.com/hyndsight/">Hyndsight</a> and <a href="https://andrewgelman.com/">AndrewGelman.com</a> are all written by experts in their respective fields.</p><p><strong>4. Twitter/LinkedIn</strong></p><p>I’ll admit that I don’t personally use these sources as much, but it can be helpful way to get the latest thoughts from leaders in AI, data science and analytics. <a href="https://twitter.com/_brohrer_?lang=en">Brandon Rohrer</a>, <a href="https://twitter.com/mrogati?lang=en">Monica Rogati</a>, <a href="https://twitter.com/hmason">Hilary Mason</a> and <a href="https://twitter.com/benhamner">Ben Hamner</a> have all provided valuable insight to me at various points in my career.</p><h4>Step 2: Collect</h4><p>Once we’ve identified our sources, the next step is to collect all of our new content for review, preferably in a single location. RSS (Really Simple Syndication) is a fantastic invention: by subscribing to a website’s RSS feed, I’m notified every time a new article is released. News aggregators like <a href="https://feedly.com/">Feedly</a> allow me to add and capture content in a single place. This is much easier than visiting every website on my list and scrolling through every headline; news aggregators also allow you to “save” articles across multiple days. Find what works for you, but I highly recommend <a href="https://feedly.com/">Feedly </a>— it even lets you follow Twitter accounts!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2DsEJrqnsaRhlS6pQvcAWw.jpeg" /><figcaption>All my articles in one clean location (source: author).</figcaption></figure><h4>Step 3: Process</h4><p>Now that you’ve completed the first two steps, odds are that you’ll have anywhere from 20–200 articles to review per day. (Side note: Go easy on the number of sources when starting out and build over time.)</p><p>There are three levels of understanding when it comes to reading articles. They are:</p><ol><li><em>Title</em></li><li><em>Synopsis</em></li><li><em>Details</em></li></ol><p>For example, we can break down this <a href="https://tech.target.com/chatbot%20framework/2018/10/01/flottbot.html">article</a> using the above schema:</p><ol><li>“Flottbot-Creating Simple Chatbots in Seconds, Not Days”</li><li>Flottbot is a chatbot framework abstracted away from a specific programming language. You only need to understand YAML.</li><li>The technical inspiration for Flottbot, specific capabilities of the framework, basic “Hello World!” code example, etc.</li></ol><p>Why are these distinctions important? It’s because my ideal level of understanding depends on my role and active project(s). Currently, I focus on time-series anomaly detection applications, so spending an hour going through every little detail of this chatbot article may not be the best use of my time. However, by simply engaging at the<em> “Title”</em> level, I now know that there’s an easy chatbot implementation available should I ever need it. To put it another way, this kind of “dictionary knowledge” can serve as a personal Wikipedia that can be used to help guide future work.</p><p>In contrast, when I worked with a team at Target that wanted to automatically answer questions in their customer chat room, understanding that Flottbot is language-agnostic would have been a huge time saver (one team member knew Ruby, another knew Python, another knew C++.,…). In that case, understanding at the <em>“Synopsis”</em> level would have been more appropriate. If our team ultimately decided that we wanted to evaluate Flottbot as a potential solution, I could then go back to the <em>“Details”</em> level and dive into the actual implementation.</p><h3><strong>Filter, filter, filter!</strong></h3><p>The key to the SCP process is to filter judiciously. Each level should remove roughly 90 percent of the content passed through. That is, only 10 percent of all article titles are interesting enough for me to form a synopsis. Of those articles, only 10 percent are relevant enough for me to read the full details. Finally, of those articles, 10 percent will be so good that I’ll save or bookmark them for long-term reference. Thus, I’ll read 100 article titles, skim 10 articles for their synopsis, and only read one(ish) article per day, which is much more manageable. Your percentages may vary, but the idea remains the same: filter, filter, filter!</p><h3>Parting Thoughts</h3><p>Remember, this should be fun and you should be learning! If you find yourself getting swamped by too many articles, cut down on the number of publications you follow. Source XYZ hasn’t published anything useful in weeks? Get rid of it! Remember, the idea is to consistently put in a small amount of time throughout your career. Good luck!</p><p>Have other great content recommendations? Put them in the chat below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85f93b663cd7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-to-read-the-internet-85f93b663cd7">How To Read The Internet</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How To Painlessly Analyze Your Time Series]]></title>
            <link>https://medium.com/data-science/how-to-painlessly-analyze-your-time-series-f52dab7ea80d?source=rss-f21579a0e1b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f52dab7ea80d</guid>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[towards-data-science]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[time-series-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Andrew Van Benschoten]]></dc:creator>
            <pubDate>Sat, 29 Feb 2020 14:57:28 GMT</pubDate>
            <atom:updated>2020-03-01T18:14:57.930Z</atom:updated>
            <content:encoded><![CDATA[<h4>An introduction to MPA: the Matrix Profile API</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*HXvwGLxLNGLCUmIn9Y_yjQ.jpeg" /><figcaption>Image Source: <a href="https://www.needpix.com/photo/1069812/stock-market-charts-graphs-finance-money-stocks-macbook-computer-laptop">Needpix</a></figcaption></figure><p>We’re surrounded by time series data. From finance to IoT to marketing, many organizations produce thousands of these metrics and mine them to uncover business-critical insights. A Site Reliability Engineer might monitor hundreds of thousands of time series streams from a server farm, in the hopes of detecting anomalous events and preventing catastrophic failure. Alternatively, a brick and mortar retailer might care about identifying patterns of customer foot traffic and leveraging them to guide inventory decisions.</p><p>Identifying anomalous events (or “discords”) and repeated patterns (“motifs”) are two fundamental time series tasks. But how does one get started? There are dozens of approaches to both questions, each with unique positives and drawbacks.</p><p>Furthermore, time series data is notoriously hard to analyze, and the explosive growth of the data science community has led to a need for more “black-box” automated solutions that can be leveraged by developers with a wide range of technical backgrounds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*nif0nUTZQtKla8dNZKYSNQ.png" /><figcaption>How to analyze your time series in a single picture (Image Source: Matrix Profile Foundation)</figcaption></figure><p>We at the <a href="https://matrixprofile.org/">Matrix Profile Foundation</a> believe there’s an easy answer. While it’s true that there’s no such thing as a free lunch, the Matrix Profile (a data structure &amp; set of associated algorithms developed by the<a href="https://www.cs.ucr.edu/~eamonn/MatrixProfile.html"> Keogh research group</a> at UC-Riverside) is a powerful tool to help solve this dual problem of anomaly detection and motif discovery. Matrix Profile is robust, scalable, and largely parameter-free: we’ve seen it work for a wide range of metrics including website user data, order volume and other business-critical applications.</p><p>As we will detail below, the Matrix Profile Foundation has implemented the Matrix Profile across three of the most common data science languages (Python, R and Golang) as an easy-to-use API that’s relevant for time series novices and experts alike.</p><h3>So what is the Matrix Profile?</h3><p>The basics of Matrix Profile are simple: If I take a snippet of my data and slide it along the rest of the time series, how well does it overlap at each new position? More specifically, we can evaluate the Euclidean distance between a subsequence and every possible time series segment of the same length, building up what’s known as the snippet’s “Distance Profile.”</p><p>If the subsequence repeats itself in the data, there will be at least one perfect match and the minimum Euclidean distance will be zero (or close to zero in the presence of noise). In contrast, if the subsequence is highly unique (say it contains a significant outlier), matches will be poor and all overlap scores will be high. Note that the type of data is irrelevant: We’re only looking at general pattern conservation.</p><p>We then slide every possible snippet across the time series, building up a collection of Distance Profiles. By taking the minimum value for each time step across all distance profiles, we can build the final Matrix Profile. Notice that both ends of the Matrix Profile value spectrum are useful. High values indicate uncommon patterns or anomalous events; in contrast, low values highlight repeatable motifs and provide valuable insight into your time series of interest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CXUKGdqGbWDJNwIv" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><p>For those interested, <a href="https://towardsdatascience.com/introduction-to-matrix-profiles-5568f3375d90">this post by one of our co-founders</a> provides a more in-depth discussion of the Matrix Profile.</p><p>Although the Matrix Profile can be a game-changer for time series analysis, leveraging it to produce insights is a multi-step computational process, where each step requires some level of domain experience. However, we believe that the most powerful breakthroughs in data science occur when the complex is made accessible. When it comes to the Matrix Profile, there are three facets to accessibility: “out-of-the-box” working implementations, gentle introductions to core concepts that can naturally lead into deeper exploration, and multi-language accessibility.</p><p>Today, we’re proud to unveil the Matrix Profile API (MPA), a common codebase written in R, Python and Golang that achieves all three of these goals.</p><h3><strong>MPA: how it works</strong></h3><p>Using the Matrix Profile consists of three steps.</p><p>First, you <em>Compute </em>the Matrix Profile itself. However, this is not the end: you need to <em>Discover </em>something by leveraging the Matrix Profile that you’ve created. Do you want to find repeated patterns? Or perhaps uncover anomalous events? Finally, it’s critical that you <em>Visualize</em> your findings, as time series analysis greatly benefits from some level of visual inspection.</p><p>Normally, you’d need to read through pages of documentation (both academic and technical) to figure out how to execute each of these three steps. This may not be a challenge if you’re an expert with prior knowledge of the Matrix Profile, but we’ve seen that many users simply want to <em>Analyze </em>their data by breaking through the methodology to get to a basic starting point. Can the code simply leverage some reasonable defaults to produce a <em>reasonable</em> output?</p><p>To parallel this natural computational flow, MPA consists of three core components:</p><p>1. <em>Compute</em> (computing the Matrix Profile)</p><p><em>2. Discover </em>(evaluate the MP for motifs, discords, etc)</p><p>3. <em>Visualize </em>(display results through basic plots)</p><p>These three capabilities are wrapped up into a high-level capability called<em> Analyze</em>. This is a user-friendly interface that enables people who know nothing about the inner workings of Matrix Profile to quickly leverage it for their own data. And as users gain more experience and intuition with MPA, they can easily dive deeper into any of the three core components to make further functional gains.</p><h3><strong>MPA: a toy example</strong></h3><p>As an example, we’ll use the <a href="https://github.com/matrix-profile-foundation/matrixprofile">Python flavor of MPA</a> to analyze the synthetic time series shown below:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/788740fd4854dbd821c85ba4eef00843/href">https://medium.com/media/788740fd4854dbd821c85ba4eef00843/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pb4TODFcBMu5Wa7Y" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><p>Visual inspection reveals that there are both patterns and discords present. However, one immediate problem is that your choice of subsequence length will change both the number and location of your motifs! Are there only two sinusoidal motifs present between indices 0–500, or is each cycle an instance of the pattern? Let’s see how MPA handles this challenge:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/df2568502418a50567d7e926f970c2ec/href">https://medium.com/media/df2568502418a50567d7e926f970c2ec/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*nif0nUTZQtKla8dNZKYSNQ.png" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><p>Because we haven’t specified any information regarding our subsequence length, `analyze` begins by leveraging a powerful calculation known as the pan-matrix profile (or PMP) to generate insights that will help us evaluate different subsequence lengths. We’ll discuss the details of PMP in a later post (or you can read the associated paper), but in a nutshell, it is a global calculation of <em>all possible subsequence lengths</em> condensed into a single visual summary. The X-axis is the index of the matrix profile, and the Y-axis is the corresponding subsequence length. The darker the shade, the lower the Euclidean distance at that point. We can use the “peaks” of the triangles to find the 6 “big” motifs visually present in the synthetic time series.</p><p>The PMP is all well and good, but we promised a <em>simple</em> way of understanding your time series. To facilitate this, `analyze` will combine PMP with an under the hood algorithm to choose sensible motifs and discords from across all possible window sizes. The additional graphs created by `analyze` show the top three motifs and top three discords, along with the corresponding window size and position within the Matrix Profile (and, by extension, your time series).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tFGq6AAmpC3_xMhR" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XuzpBT67M6BiYmeX" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wrIrh-kamp8XkR-q" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*f6rR9OfkX7h0cQEK" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BWngfzHO6hR3ksSc" /><figcaption>Image Source: Matrix Profile Foundation</figcaption></figure><p>Not surprisingly, this is a <em>lot</em> of information coming out of the default setting. Our goal is that this core function call can serve as a jumping-off point for many of your future analyses. For example, the PMP indicates that there is a conserved motif of length ~175 within our time series. Try calling `analyze` on that subsequence length and see what happens!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/44d8684367aebe1f6145c9cd39e1b841/href">https://medium.com/media/44d8684367aebe1f6145c9cd39e1b841/href</a></iframe><h3><strong>Wrapping Up</strong></h3><p>We hope that MPA enables you to more painlessly analyze your time series! For further information, visit our <a href="https://matrixprofile.org/">website</a>, <a href="https://github.com/matrix-profile-foundation">GitHub repos</a>, or follow us on <a href="https://twitter.com/matrixprofile">Twitter</a>. Please star our GitHub repos if you find the code useful! MPF also operates a Discord channel where you can engage with fellow users of the Matrix Profile and ask questions. Happy time series hunting!</p><h3><strong>Acknowledgements</strong></h3><p>Thank you to Tyler Marrs, Frankie Cancino, Francisco Bischoff, Austin Ouyang and Jack Green for reviewing this article and assisting in its creation. And above all, thank you to Eamonn Keogh, Abdullah Mueen and their numerous graduate students for creating the Matrix Profile and continuing to drive its development.</p><h3><strong>Supplemental</strong></h3><p>1. Matrix Profile research papers can be found on Eamonn Keogh’s UCR web page:</p><p><a href="https://www.cs.ucr.edu/~eamonn/MatrixProfile.html">https://www.cs.ucr.edu/~eamonn/MatrixProfile.html</a></p><p>2. The Python implementation of Matrix Profile algorithms can be found here:</p><p><a href="https://github.com/matrix-profile-foundation/matrixprofile">https://github.com/matrix-profile-foundation/matrixprofile</a></p><p>3. The R implementation of Matrix Profile algorithms can be found here:</p><p><a href="https://github.com/matrix-profile-foundation/tsmp">https://github.com/matrix-profile-foundation/tsmp</a></p><p>4. The Golang implementation of Matrix Profile algorithms can be found here:</p><p><a href="https://github.com/matrix-profile-foundation/go-matrixprofile">https://github.com/matrix-profile-foundation/go-matrixprofile</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f52dab7ea80d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/how-to-painlessly-analyze-your-time-series-f52dab7ea80d">How To Painlessly Analyze Your Time Series</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>