<?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 Ben Jacobson on Medium]]></title>
        <description><![CDATA[Stories by Ben Jacobson on Medium]]></description>
        <link>https://medium.com/@bjacobso?source=rss-5a288c8119f3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*coG4hF5WhkRy6lhF.jpg</url>
            <title>Stories by Ben Jacobson on Medium</title>
            <link>https://medium.com/@bjacobso?source=rss-5a288c8119f3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:04:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bjacobso/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[Building software to manage the complexities of background checks]]></title>
            <link>https://medium.com/checkr/building-software-to-manage-the-complexities-of-background-checks-35ab83bf6e75?source=rss-5a288c8119f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/35ab83bf6e75</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[rules-engine]]></category>
            <category><![CDATA[workflow]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Ben Jacobson]]></dc:creator>
            <pubDate>Thu, 23 May 2019 19:17:41 GMT</pubDate>
            <atom:updated>2021-10-27T21:05:47.381Z</atom:updated>
            <content:encoded><![CDATA[<p>At <a href="https://checkr.com/">Checkr</a> we are building software to help companies hire at scale, and our background checks are a big part of what makes that possible. On the surface a background check seems straightforward — you might think it’s as simple as looking up records in a database and returning some data, but in practice it’s messy and slow.</p><p>At a very high level, a background check falls into two phases:</p><ol><li>Getting Data</li><li>Reporting Data</li></ol><p>The goal of this blog post is to help reveal a little about how Checkr builds software to manage this complexity and help modernize background checks for our customers and people in search of work.</p><h4>Getting Data</h4><p>Getting data might seem like a simple thing to do. A couple API calls, parse some JSON, some for-loops, and we got a background check going. And at a <em>very</em> high level you’d be right, however, it’s far from being that clean or that simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ckUzs1v00q-7hhPwyfmXg.png" /></figure><p>There are national databases that haphazardly aggregate records from state and county reporting agencies. They include XML documents which contain tags<em> which themselves</em> contain base64 encoded XML documents 🤯. There is no standard for how to describe this data — we have to normalize it into something our system, customers, and applicants can understand.</p><p>&quot;Nolle Prosequi&quot;? Yeah… that’s literally latin for “case dismissed” and is still used today in modern courts! And, it is sometimes (aka often) misspelled!</p><p>There are 54 DMVs (Yes 54! Don’t forget Puerto Rico, Guam, American Samoa, and Washington DC) that all handle records differently. There are 100s of municipalities and state databases. There are roughly ~3,000 counties in the US, and they all have unique laws and regulations governing how we can report data.</p><p>Let’s focus on counties because they represent our largest surface area for data. We can think of counties breaking down into 2 groups — counties with electronic records (fast 👏) and counties with physical records (slow 😨).</p><pre><strong>SELECT court_access_method, SUM(population)<br>FROM counties<br>GROUP BY court_access_method;</strong></pre><pre><strong>&gt;&gt;<br>court_access_method</strong>            <strong>population</strong><br>electronic_records_available   160,259,716<br>in_court_researcher            87,369,080<br>clerk_assisted_county          61,125,939</pre><p>The above is a query of one of our proprietary internal databases managing metadata around counties. It’s based on a variety of sources, including census data, voting records, postal data, and various government lists. It shows us that <strong>48% of the US population <em>currently</em> lives in a county that lacks electronic records. </strong>(I’m looking at you California… 😅)</p><p>Lacking electronic records means we need to physically send someone into the courthouse, wait in line, talk to the court clerk, go into the basement, open a filing cabinet, pull out a physical piece of paper, avoid paper cuts, read the records, type them into their phone, and finally submit the records back us.</p><p>Let’s say for a given applicant we search 5 counties and 3 of them are offline. Our system will split the work for each county into long lived asynchronous jobs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4nwxLVARewpUZr0YVixRHA.png" /></figure><ul><li>Some might complete in seconds and some others might be days if they are offline.</li><li>Some might try an online source and fallback to an offline source if our quality bar isn’t met.</li><li>Some might result in pointer or transferred cases which means we need to start another county search elsewhere.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AThMV8mDxqirpVBXBvqqNg.png" /></figure><p>We use <a href="https://medium.com/checkr/a-kafka-epic-how-checkr-built-a-more-reliable-and-performant-background-check-platform-by-75f00e05c3ca">Kafka to manage these asynchronous tasks</a> so that different services and teams can work on reliably implementing each search type. We are working on more explicit workflow frameworks, tooling, and visualizations to help manage these jobs in production.</p><p>Once all of the jobs are done and we have a final list of results we begin the next phase…</p><h4>Reporting Data</h4><p>Federal, state and county laws affect how background checks operate and different government agencies are tasked with enforcing those laws. <strong>They generally do this for a very good reason— to protect consumers. </strong>Just because someone made a mistake some years ago doesn’t always mean that should adversely impact their job opportunities. To do this we need to analyze every result to make sure it is compliant. Our software is responsible for helping protect consumers and conforming to these laws.</p><p>There are even laws that affect how certain <em>types</em> of employers use the results uncovered in the background investigation. For example, doctors, nurses, financial advisors, home care providers, and transportation companies are often required by law to disqualify individuals with certain offenses. And, these laws can even contradict each other!</p><p>So, Checkr needs a system to apply these rules and correctly determine which data we can and can’t report.</p><p>Here’s an example rule:</p><pre>if (record.arrest? || record.dismissed? || <br>    record.alternative_adjudication?) &amp;&amp; <br>    record.date &lt;= 7.years.ago<br>  record.display = false <br>  record.save!<br>end</pre><p>This describes how we should treat records that have been dismissed over 7 years ago. <strong>record.display = false</strong> — we shouldn’t report them.</p><p>This type of system has worked well but there have been some growing pains over the years.</p><p>In the above example the rule only exists in code. There is no ability for non-engineers to dissect this result and understand what happened and why. If someone from our quality team is investigating a record we wouldn’t have a way to provide them context. “Why is this record hidden?” they might ask. We could maybe extend it like this:</p><pre>record.display = false<br>record.reason = &quot;Hide arrest/dismiss/alt that are older than 7yrs&quot;<br>record.save!</pre><p>This is an improvement, we at least have some reasons associated with the outcome now. However, it’s still tightly coupled with the record model.</p><ul><li>There are side effects because it updates data on the record.</li><li>The compliance logic is hardcoded (which engineers aren’t an expert in) and thus in a place which is inaccessible by our legal team (who are the experts).</li><li>There is a subtle dependency on the current time (what if we want to rerun this rule later? or project what the outcome would be in 6 months?).</li></ul><p>How can we solve this?</p><h4>Rules Engine</h4><p>A rules engine offers a simple contract and allows us to split apart the rules, data, results and code.</p><pre>results = engine(rules, data)</pre><p>Here’s the same rule represented as JSON for input to our rules engine:</p><pre>{<br>    &quot;event&quot;: {<br>      &quot;params&quot;: {<br>        &quot;display&quot;: false,<br>        &quot;message&quot;: <br>          &quot;Hide arrest/dismissed/alternative that are 7+ years old&quot;,<br>      }<br>    },<br>    &quot;conditions&quot;: {<br>      &quot;all&quot;: [<br>        {<br>          &quot;fact&quot;: &quot;applied_filter&quot;,<br>          &quot;operator&quot;: &quot;in&quot;<br>          &quot;value&quot;: [<br>            &quot;arrest_filter&quot;,<br>            &quot;dismissed_filter&quot;,<br>            &quot;alternative_adjudication_filter&quot;<br>          ]<br>        },<br>        {<br>          &quot;fact&quot;: &quot;years_since_context_date&quot;,<br>          &quot;operator&quot;: &quot;greaterThanInclusive&quot;<br>          &quot;value&quot;: 7<br>        }<br>      ]<br>    }<br>}</pre><p>Why is the rule represented in JSON?</p><ul><li>If you have very complex rules (e.g. based around geography of the candidate, account settings, existence of other rules, etc..) then if/else statements become hard to manage.</li><li>We can now render these rules in a UI or PDF that we can provide our legal team and regulators in way they can understand.</li><li>We can snapshot the rules and run multiple rules sets against the same data. For example: when we make a change we might want to run the change against previous production results and compare the difference (we call this backtesting internally).</li></ul><p>Here is a rule being rendered for our legal team:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7iFdRsptYXxSmTlQKoFM-A.png" /></figure><p>And here is a more complex rule with a custom UI and test harness:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uOYxq9XAW_UYAWe09VUwjQ.png" /><figcaption>Complex rule with a WIP UI / test harness</figcaption></figure><p>The above is proof of concept but represents the direction we are moving in — we still have a long way to go. But, ultimately it will allow us to move faster and more confidently when laws change because we can easily test and reproduce results.</p><p>Every step in the background check process is messy, error prone, hard to reason about, scary for job seekers, and governed by a long list of different entities. At Checkr, our goal is to make this process fair for our applicants — and that starts with simple and intuitive interfaces into this complex problem.</p><p><strong>If any of this sounds interesting we are hiring! There are a lot more problems still to solve!</strong></p><p><strong>Send me an email at ben@checkr.com</strong></p><p><a href="https://checkr.com/careers/">Careers * Checkr</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35ab83bf6e75" width="1" height="1" alt=""><hr><p><a href="https://medium.com/checkr/building-software-to-manage-the-complexities-of-background-checks-35ab83bf6e75">Building software to manage the complexities of background checks</a> was originally published in <a href="https://medium.com/checkr">Checkr Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Birthday Quine]]></title>
            <link>https://medium.com/@bjacobso/a-birthday-quine-651c2e34e296?source=rss-5a288c8119f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/651c2e34e296</guid>
            <category><![CDATA[art]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[processing]]></category>
            <category><![CDATA[digital-media]]></category>
            <category><![CDATA[birthday]]></category>
            <dc:creator><![CDATA[Ben Jacobson]]></dc:creator>
            <pubDate>Thu, 14 Dec 2017 17:34:00 GMT</pubDate>
            <atom:updated>2017-12-15T18:41:42.158Z</atom:updated>
            <content:encoded><![CDATA[<h3>Our story begins with a machine</h3><p>My brother and I bought an <a href="https://shop.evilmadscientist.com/productsmenu/846">Axidraw v3</a> a few months ago. Axidraw is a modern day pen plotter – a machine that will move a pen or marker or pencil or crayon around on a piece of paper and precisely draw lines sent by a computer program.</p><p>The first plotters appeared in the 1950s and 60s and quickly died out with the rise of inkjet printers. However, according to wikipedia: “in the mid-to-late 2000s artists and hackers began to rediscover pen plotters as quirky, customizable output devices.”</p><p><strong>Indeed we did, wikipedia. Indeed we did.</strong></p><p>My brother and I used a programming language called <a href="https://processing.org/">Processing</a> to make some very weird, very cool¹, very abstract art. Hanging these prints quickly made our apartment dope AF- assuming you like very weird, very cool¹, very abstract art.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/1*ZoD5iGnTfig9apls7zpUsA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*kPJGqHKy7-YlEW5gZLE8Aw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZiV8wMAczujgdRoOeDYOpQ.jpeg" /><figcaption>From left to right: some squiggles, squiggles in action, portrait of our dog in the form of squiggles</figcaption></figure><blockquote>Processing is a flexible software sketchbook and a language for learning how to code within the context of the visual arts.</blockquote><h3><strong>Fast forward a couple months</strong></h3><p>For a friend’s birthday I thought it would be cool¹ to print her a birthday card using our new Axidraw. There is even an <a href="https://github.com/evil-mad/axidraw/blob/master/examples/basic%20demos/HappyBirthday.svg">example</a> included in their documentation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WRzudwrI282iRJXYye9EmQ.png" /></figure><p>While on one hand it was cool¹ that her card would be drawn by a robot on the other hand it just seemed kinda lame and impersonal. So I thought: “Hey, it would be <em>really cool¹ </em>if I created a custom design in Processing!” 🤔</p><p>So I fired up my code editor and got to work. I eventually landed on a simple (one might even say brutalist) design:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aSlELmsXkbYiKxQ27V8LPg.png" /><figcaption>Kind of like digital needlepoint</figcaption></figure><p>After reviewing the design I thought it would also be nice to include a copy of the code I had written to produce the image…</p><p><strong>And then it hit me:</strong></p><blockquote><strong>It would be super badass² if the design actually <em>included</em> the source code into itself!</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*n38kj1LIw7mn4gvEWSeoug.gif" /><figcaption>Video footage of me at that exact moment. “Woah”</figcaption></figure><h3>WTF is a Quine?</h3><p>It turns out this type of program actually has a name: <strong>Quine</strong>. A quine is type of program that when run produces output that when run produces output that when run produces output… JK.</p><p>The fine folks at <a href="https://en.wikipedia.org/wiki/Quine_(computing)">wikipedia</a> can describe it better than me:</p><blockquote>A <strong>quine</strong> is a non-empty <a href="https://en.wikipedia.org/wiki/Computer_program">computer program</a> which takes no input and produces a copy of its own <a href="https://en.wikipedia.org/wiki/Source_code">source code</a> as its only output. The standard terms for these programs in the <a href="https://en.wikipedia.org/wiki/Computability_theory">computability theory</a> and <a href="https://en.wikipedia.org/wiki/Computer_science">computer science</a> literature are “self-replicating programs”.</blockquote><p>If you are unfamiliar with programming or recursion, trust me, its kinda trippy to think about. Add some processing, a pen plotter, and a happy birthday on top of that and, baby, you got a stew going.</p><h3>The final output (and input 😂)</h3><p>Before continuing I’d like to take a moment and make sure you understand the joke in the title above — I am very proud of it!</p><p>The final design used the code as the background and the message was set in negative space:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*dZPOPkGZtFPdngiQYMBluA.png" /><figcaption>The final design</figcaption></figure><p>Now we are almost ready to print! Next step is to figure out ink and paper.</p><p>We could go with the classic black ink on white paper? Boring.</p><p>How about silver ink gel pen on black paper? Badass².</p><h3>YOLO</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OwvFi9hkRQk7dxIkimwcAA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7aMMej_OcLKOHOLWnFPtKg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oMu79G5N3U4lL6eW7581cA.jpeg" /><figcaption>Quite possibly the nerdiest birthday card ever.</figcaption></figure><p><strong>Happy Birthday Melissa!</strong></p><p>Source code: <a href="https://gist.github.com/bjacobso/4395e1f2d8e0394baa9bc2388f102b2a">https://gist.github.com/bjacobso/4395e1f2d8e0394baa9bc2388f102b2a</a></p><p>[1] By cool I mean nerdy</p><p>[2] By badass I mean badass</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=651c2e34e296" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is it brunch time?]]></title>
            <link>https://medium.com/swlh/is-it-brunch-time-ffe3adf485d8?source=rss-5a288c8119f3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffe3adf485d8</guid>
            <category><![CDATA[twitter]]></category>
            <category><![CDATA[brunch]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Ben Jacobson]]></dc:creator>
            <pubDate>Fri, 24 Jun 2016 17:23:15 GMT</pubDate>
            <atom:updated>2016-06-29T16:13:30.724Z</atom:updated>
            <content:encoded><![CDATA[<h4>Background</h4><p>I created <a href="http://isitbrunchtimeyet.com/">isitbrunchtimeyet.com</a> a few years ago as a joke[1]. It has since been used mostly as a funny and/or slightly passive aggressive way to ask people to brunch. When I created it I arbitrarily set the brunch time to be 10:15am to 11:45am. It is that decision which leads us here — I want to do better than arbitrary.</p><h4>Hypothesis</h4><p>Twitter is a platform that allows users to “get real-time updates about what matters to you.”[2] If we assume people generally tweet about things while they are doing those things then we can assume tweets containing “brunch” are generally happening while that person is actually having brunch. Therefore, if we collect enough tweets over a long enough period of time and analyze the time at which they were tweeted we could infer the specific time range in which brunch falls.</p><h4><strong>The Data</strong></h4><p>We begin by using the Twitter Streaming API. This API allows us to subscribe to search terms, for example “brunch”, and get any tweet matching that term sent to our program in real-time. Not only did we collected “brunch” tweets but we also collected tweets containing “breakfast”, “lunch”, and “dinner” to use as controls (which we will review later). We allowed the program run from 2015–06–01 to 2016–05–31 which yielded 100M+ tweets for analysis. Twitter is global platform, so we have to do some additional work to understand the time of day a specific tweet is occurring. At the time of tweet we analyzed the timezone of the person tweeting and any attached geolocation data (when available). Using this data we then made an informed estimate of the localized hour for each tweet.</p><p>As a result, we are able to break down a count of tweets by localized hour:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkBnlVAQERMvABqTfHZ01Q.png" /><figcaption>Tweets containing the term brunch with the hour localized based on inferred timezone of the tweeter</figcaption></figure><h4><strong>Solution 1: The Naive Solution</strong></h4><p>Simply looking at the histogram above one will quickly notice that 11am is the most popular hour to tweet about brunch — which therefore means 11am to 12pm must be brunch time, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gau39iG7jUPfqqK_4xADFw.png" /></figure><p>Well, that is a perfectly reasonable conclusion to draw. However, we think there is room for improvement. First, this solution lacks any real fidelity. It would seem unlikely that brunch starts exactly at 11am and ends exactly at 12pm. Second, if we look at the histogram again you can see that activity in 12pm is very close to 11am. This informs us that a lot of brunch activity takes place in the hours following 11am that this solution doesn’t take into account.</p><h4>Solution 2: Probability Density Function</h4><p>Since we are visualizing a histogram it is logical for us to jump to a distribution function for further analysis. And since our data has a positive skew we will look to a probability density function (PDF). To start, we calculate the lognormal distribution[5] PDF (the red line below) and locate the maximum point of that function (the mode). We chose the lognormal over the normal distribution because it appeared to fit the data better. We then identify the range in which a large portion, let’s say 1/4 (25%), of all tweets occur centered around that maximum:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4gI2h4_XSXQACFCytxtcgA.png" /></figure><p>This strategy gives us a brunch time of 9:25am to 12:24pm. However, this strategy has a few drawbacks. First, the 25% occurrence is an arbitrary value. It’s no better than 30% or 20% or any other number. Second, the lognormal PDF heavily depends on how we think about the x-axis. In this example we start at 3am, which we only chose because it generally had the lowest tweet count of our data set (otherwise it would like slightly bimodal). If we instead started the x-axis at, say 12am, we would get a different curve. Third, looking at the graph it <em>feels</em> like it has a similar issue with our first solution in that it isn’t really capturing the long tail of activity in the early afternoon. Each of these arbitrary assumptions are unacceptable tradeoffs in our quest for an objective answer.</p><h4>Solution 3: Spline Interpolation</h4><p>Splines allow us to create a smooth curve through many different points. Let’s make a curve through each hour and graph it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jzHEkocl1oDvLZ8Pj4cNWQ.png" /></figure><p>If we look at this curve we can see the maximum aligns very nicely with where we would intuitively assume brunch is occurring based on the histogram. Let’s give this maximum a name, how about Brunch Point? Brunch Point can be defined as: the exact time of day in which brunch maximally occurs. Based on our data that time is 11:56am.</p><blockquote>Brunch Point — the exact time of day in which brunch maximally occurs</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oLeWaPLxw3edw8HjtxNBGQ.png" /></figure><p>Now, that appears to be an excellent answer! However, we are looking for a <em>time range</em>, not just a point in time. So how can we calculate a range from the spline? Remember calculus from high school? This is the real life use case for calculus that was promised by your professors! Let’s look at the derivative:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2LQqscRjRSUSCY4_N9kwDQ.png" /></figure><p>Don’t have your calculus books handy? What is a derivative? The derivative of a function will give us the rate of change (a.k.a. the slope, a.k.a. the <em>m</em> in y = <em>m</em>x + b) of a function at any given point in time.[4] It helps us understand the acceleration of a function. Let’s find the tangent lines with the highest and lowest slope:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rwmqVWR-iSyvWY4BOo8QpA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j72n7X8s5AOmVTdi807clg.png" /></figure><p>At that maximum slope, the number of brunch tweets is experiencing its highest positive rate of change: people are speeding up their tweets about brunch <em>— pushing hardest on the gas pedal. </em>At the minimum slope, the number of brunch tweets is experiencing its highest negative rate of change: people are slowing down their tweets<em> — pushing hardest on the brake pedal. </em>Using these two points we get a brunch time of: 10:01am to 1:40pm.</p><p>We like this method the most for several reasons:</p><ul><li>It appears to capture the “gut feeling” we had in our first solution — it <em>feels</em> correct when you visualize it.</li><li>It uses a spline which will remain very consistent even if the x-axis is translated.</li><li>It is based on concepts that we are very familiar with — acceleration and deceleration</li></ul><p>But how do we know if it’s correct? Let’s apply the solution to other terms and observe how it performs.</p><h4>Comparing Data</h4><p>For comparison let’s look at the splines for “breakfast” and “lunch” tweets:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vq5tYkfxfQxr0zT5Z3cokg.png" /></figure><p>Since “breakfast” and “lunch” are more popular terms on twitter than “brunch” let’s modify these curves to be based on frequency — which makes it easier to see the distinctions between them. Then let’s also apply the solution above to get a sense of how they compare:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i28wpk-UQQFYwaG3m_XPug.png" /></figure><p>Finally, we have some results:</p><ul><li>Breakfast: 7:50am to 11:55am</li><li>Brunch: 10:01am to 1:40pm</li><li>Lunch: 11:40am to 2:25pm</li></ul><p>So that’s it — Brunch is officially from 10:01am to 1:40pm. It is interesting that the end of breakfast and the beginning of lunch are within 15 minutes of each other. It’s also interesting that Brunch Point falls in that same time frame as well. Both of which give this solution at least a little bit of affirmation.</p><p>Now go <a href="http://www.yelp.com/search?find_desc=brunch">eat some brunch!</a></p><p><strong>tl;dr — Brunch is officially from 10:01am to 1:40pm, based on 100M+ tweets and analysis.</strong></p><p>All analysis and charts were done in python using pandas/matplotlib</p><p>Source: <a href="https://github.com/bjacobso/brunch">https://github.com/bjacobso/brunch</a></p><p>[1] Very much inspired by <a href="https://isitchristmas.com/">isitchristmas.com</a> and <a href="http://isitlunchtimeyet.com/">isitlunchtimeyet.com</a></p><p>[2] <a href="https://about.twitter.com/">https://about.twitter.com/</a></p><p>[3] <a href="https://en.wikipedia.org/wiki/Spline_interpolation">https://en.wikipedia.org/wiki/Spline_interpolation</a></p><p>[4] <a href="https://en.wikipedia.org/wiki/Derivative">https://en.wikipedia.org/wiki/Derivative</a></p><p>[5] <a href="https://www.reddit.com/r/dataisbeautiful/comments/4q4c1n/is_it_brunch_time_analyzing_tweets_to_get_an/d4q7k5g">Excellent feedback from Reddit</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffe3adf485d8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/is-it-brunch-time-ffe3adf485d8">Is it brunch time?</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>