<?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 Austin Robinson on Medium]]></title>
        <description><![CDATA[Stories by Austin Robinson on Medium]]></description>
        <link>https://medium.com/@austinziech?source=rss-59aa1df823f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*5B49TX2T5iTuy4vcRWFBLA.jpeg</url>
            <title>Stories by Austin Robinson on Medium</title>
            <link>https://medium.com/@austinziech?source=rss-59aa1df823f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 00:13:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@austinziech/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[Term Frequency Text Summarization]]></title>
            <link>https://medium.com/analytics-vidhya/term-frequency-text-summarization-cc4e6381254c?source=rss-59aa1df823f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc4e6381254c</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[interview]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Austin Robinson]]></dc:creator>
            <pubDate>Thu, 06 Aug 2020 21:58:53 GMT</pubDate>
            <atom:updated>2020-08-07T06:05:41.101Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BL8lvrwEHWuQ4boXqhfMRw.jpeg" /></figure><h4>Interview Hacking via NLP: The Basics</h4><p>I was recently doing interview prep for a series of interviews for a position with <a href="https://collectivehealth.com/">Collective Health</a>, a San Francisco-based healthcare technology start-up.</p><p>They run a series on their blog titled “Meet The Collective,” consisting of interviews with a broad cross-section of their employees. I was interested in knowing what the common threads are for employees; why did they come to CH? What do they enjoy about it? What are those employees unifying experiences?</p><p>Reading a dozen lengthy interviews wasn’t the most attractive proposition though. I decided to implement a very simple approach to Text Summarization to pare down the interviews into the most important bits; Weighted Frequency of Occurrence. In short, we find the frequency that each word occurs in the text, weight every sentence by the frequency of the words it contains, and return only the <em>n </em>highest-weighted sentences. In this article, I’m going to walk you through that process.</p><h4>Imports</h4><p>We’ll be using <a href="https://requests.readthedocs.io/en/master/#">Requests</a> to pull the information we want from the <a href="https://blog.collectivehealth.com/@CollectiveHealth">blog</a>; <a href="https://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a> and <a href="https://docs.python.org/3/library/re.html">regex</a> to clean the text; <a href="https://www.nltk.org/">NLTK</a> to process the text; <a href="https://github.com/amueller/word_cloud">WordCloud</a> and <a href="https://matplotlib.org/">MatPlotLib</a> to visualize; and <a href="https://docs.python.org/3.0/library/heapq.html">heapq</a> to help parse our NLTK results.</p><p>Since the focus here is on the NLP, not the web scraping, we’ll be iterating over some links I’ve already gathered; a collection of “Meet The Collective” articles.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5ca04fdc10ffc14c86ba3d871d472b4/href">https://medium.com/media/e5ca04fdc10ffc14c86ba3d871d472b4/href</a></iframe><h4>Preprocessing</h4><p>For every link:</p><ul><li>We use BeautifulSoup and requests to pull only the actual text of the interview (contained within a certain layer of HTML &lt;p&gt; tags) out of the webpage.</li><li>We use regex to fix and unify some erroneous punctuation; this helps prevent sentences from bleeding into each other later.</li><li>We add the text from that link to our list of text.</li></ul><p>Finally, we join our list of article texts into a single body of text.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f66ff9e151faf5c20787ee401a48a78/href">https://medium.com/media/3f66ff9e151faf5c20787ee401a48a78/href</a></iframe><h3>NLP!</h3><p>Now that our corpus is prepared, we can begin in earnest.</p><h4>Tokenizing</h4><p>Here we’re using NLTK to <a href="https://en.wikipedia.org/wiki/Lexical_analysis">tokenize</a> our text in two different ways; by word, and by sentence.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7328aeae5fff9c7bc05f670aa3d8e7ed/href">https://medium.com/media/7328aeae5fff9c7bc05f670aa3d8e7ed/href</a></iframe><h4>Weighted Frequency</h4><p>NLTK allows us to easily count the number of times that each word occurs in our text with nltk.FreqDist(); by dividing the number of times a given word occurs by the total number of words in our text, we can find the weighted frequency that each word occurs.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/330e5d2f447713de6b6e50b18570ae26/href">https://medium.com/media/330e5d2f447713de6b6e50b18570ae26/href</a></iframe><h3>Scoring and Summarization</h3><p>This is where the magic really happens!<br>For every sentence:</p><ul><li>Only consider the sentence if it has less than 30 words (we’re summarizing, keep it snappy!);</li><li>Tokenize every word in that sentence;</li><li>Sum the weighted frequencies of every tokenized word in the sentence.</li></ul><p>Once that’s done, we’re using heapq to pull the sentences with the largest scores. In this case, the first fourteen highest-scored sentences happen to be the questions CH asks in every “Meet The Collective” interview, so we’re pulling the top twenty-nine sentences; the common questions, and a fifteen-sentence summary of the interviews.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bf7d47ed86a699fa3fbbb24712963a0/href">https://medium.com/media/0bf7d47ed86a699fa3fbbb24712963a0/href</a></iframe><h3>Success!</h3><p>We can now see what we’ve learned; specifically, we can see what questions CH asks in every employee interview, and a summary of what those employees tend to say. I’ve put a selection of both below; the full results are available in my <a href="https://github.com/austiezr/CollectiveHealth_NLP/blob/master/CH_NLP.ipynb">notebook here</a>.</p><h4>Questions</h4><pre>As a kid, what did you want to be when you grew up and how does that inform what you do today.<br><br>What’s one of the most important lessons you’ve learned in your career.<br><br>What happened in your career that led you to Collective Health.<br><br>How would you explain what you do to a 5-year-old.<br><br>What excites you most about where Collective Health is going.</pre><h4>Summary</h4><pre>Employees’ minds tend to go to the perks of a company, but culture shows up in the minutiae of the day to day.<br><br>The fact that we can’t live up to that is pretty sad, so I love the idea of working for a company that’s going to make it better.<br><br>Coming from one of the most valued and impactful companies in the world, I wanted to work on something that I felt was destined to make a mark.<br><br>Some of the things that attracted me were the people I met during my interview process and the mission of the company.<br><br>I think it’s really important to get into the practice of taking time for yourself so that you can bring your best self to work and do great work.</pre><h3>Bonus: Visualizing!</h3><p>Here’s a quick, neat little visualization of our word frequencies.</p><p>We’re using NLTK to help filter our words and find the frequencies, and heapq to pull the forty most-common words; these get fed into WordCloud to generate our image.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c4dcfcbda1144be156c81fb0c4e6d6a/href">https://medium.com/media/8c4dcfcbda1144be156c81fb0c4e6d6a/href</a></iframe><p>Which gives us…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BPMLBbbHo0FpgVUhMAg4g.png" /></figure><p>This visualization, together with our summary, gives us quick and valuable insight into what employees at Collective Health are saying about the company and what brought them there; people, culture, mission, and impact.</p><p>Thanks for reading! If you’d like to explore my work further, the notebook for this project can be found <a href="https://github.com/austiezr/CollectiveHealth_NLP/blob/master/CH_NLP.ipynb">here</a>, and my GitHub is <a href="https://github.com/austiezr">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc4e6381254c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/term-frequency-text-summarization-cc4e6381254c">Term Frequency Text Summarization</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DBSCAN From Scratch (Almost)]]></title>
            <link>https://medium.com/analytics-vidhya/dbscan-from-scratch-almost-b02096600c14?source=rss-59aa1df823f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b02096600c14</guid>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Austin Robinson]]></dc:creator>
            <pubDate>Fri, 31 Jul 2020 15:19:00 GMT</pubDate>
            <atom:updated>2023-05-08T21:24:56.485Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h92Jnvx25jeihrdDtwl4kg.png" /><figcaption><a href="https://scikit-learn.org/0.15/auto_examples/cluster/plot_cluster_comparison.html">Scikit-Learn — Clustering Comparison</a>s</figcaption></figure><h4>What? Why? How?</h4><h3>Part One: What?</h3><p>DBSCAN (Density-Based Spatial Clustering of Applications with Noise) is a data-clustering algorithm originally proposed by <a href="https://www.aaai.org/Papers/KDD/1996/KDD96-037.pdf">Ester et al</a> in 1996.</p><h4>Definitions</h4><ul><li>ε (epsilon): the radius of a neighborhood centered on a given point</li><li>Core Point: a given point is considered a Core Point if there are at least <em>minPts</em> points within its ε neighborhood, including itself</li><li>Border Point: a given point is considered a Border Point if there are fewer than <em>minPts </em>points within its ε neighborhood, including itself</li><li>Noise: any point that is not a Core Point or Border Point</li><li>Directly Density Reachable: a given point is Directly Density Reachable (ε Reachable) from another point if the second point is a core point, and the first point lies within the ε neighborhood of the second point</li><li>Density Reachable: a given point is Density Reachable from another point if there is a chain of points, Directly Density Reachable from each other, that connects them</li><li>Density Connected: A given point is Density Connected from another point if there is a third point from which both are Density Reachable — These points are said to be Connected Components</li></ul><h4>Method</h4><p>Given a set of points <em>P</em>, the radius of a neighborhood ε, and a minimum number of points <em>minPts:</em></p><ol><li>Find all points within the ε neighborhood of each point;</li><li>Identify Core Points with at least <em>minPts</em> neighbors;</li><li>Find all Connected Components of each core point — This Density Connected grouping of points is a cluster</li><li>Each Border Point is assigned to a cluster if that cluster is Density Reachable, otherwise Border Point is considered Noise</li></ol><p>Any given point may initially be considered noise and later revised to belong to a cluster, but once assigned to a cluster a point will never be reassigned.</p><h3>Part Two: Why?</h3><p>Martin et al give the following reasons for using DBSCAN:</p><ul><li>“<em>Minimal requirements of domain knowledge</em>”</li><li><em>“Discovery of clusters with arbitrary shape”</em></li><li><em>“Good efficiency on large databases”</em></li></ul><p>To expand on this:</p><ul><li>DBSCAN discovers clusters during execution; a number of desired clusters is not arbitrarily specified and applied</li><li>DBSCAN accounts for Noise</li><li>DBSCAN benefits from use with databases that can accelerate region queries</li></ul><p>These have made DBSCAN one of the most commonly used clustering algorithms, as well as one of the most commonly cited in scientific literature.</p><h3>Part Three: How?</h3><p>In this section, I will give a brief overview of a simple implementation of DBSCAN in Python, along with a side-by-side comparison of my results with those from <a href="https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html">scikit-learn</a>.</p><p>First, imports! I’m using the <a href="https://docs.scipy.org/doc/scipy/reference/spatial.distance.html">scipy.spatial.distance</a> submodule to handle distance calculations, <a href="https://pandas.pydata.org/">Pandas</a> for dealing with my dataset, and <a href="https://seaborn.pydata.org/">Seaborn</a> and <a href="https://matplotlib.org/">MatPlotLib</a> for visualizations. I’ve also grabbed the <a href="https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html">StandardScaler</a> for preprocessing, <a href="https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html">t-distributed Stochastic Neighbor Embedding</a> to help with visualizations, and <a href="https://scikit-learn.org/stable/modules/generated/sklearn.cluster.DBSCAN.html">DBSCAN</a> for comparison, all from scikit-learn.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bb57b8a7c74d5c2a661d4b042d428be3/href">https://medium.com/media/bb57b8a7c74d5c2a661d4b042d428be3/href</a></iframe><p>And now, the code. First we have the driver for this algorithm:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3a4f68236cf8749020cd45a777ffd070/href">https://medium.com/media/3a4f68236cf8749020cd45a777ffd070/href</a></iframe><p>Within that, we have a couple of functions to explore further. First, the function to generate the neighborhood graph for every point:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42fe2e88c8077e7ccf17161d2db584bd/href">https://medium.com/media/42fe2e88c8077e7ccf17161d2db584bd/href</a></iframe><p>This is where the first step from above happens; we’re finding every point within the ε neighborhood of a given point. The driver then uses that information to determine if this point is considered Noise or not; if not, then we move on to the next function:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ae5b0c41868918217fef48c9fb6d3183/href">https://medium.com/media/ae5b0c41868918217fef48c9fb6d3183/href</a></iframe><p>Here we are expanding out from our original point, finding its neighbors neighbors, then its neighbors neighbors neighbors, etc., until we reach the boundaries of the neighborhood; the boundary at which we run out of Core Points, and Border Points give way to Noise.</p><p>This process repeats until every point not assigned to a cluster or as Noise has been labeled. Finally, we can wrap this all in a Class and start testing it!</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6372445a0199947754caa7872525047a/href">https://medium.com/media/6372445a0199947754caa7872525047a/href</a></iframe><p>For this example, I’m using a subset of a dataset <a href="https://www.kaggle.com/julianjose/minute-weather">sourced from Kaggle</a>.<br>It contains minute-level weather data as reported by a weather station in San Diego, CA over a period of three years. I’ll instantiate the class with the following arbitrary parameters: ε = 0.3, <em>minPts</em> = 30, and the default euclidean distance metric. I’ve also included a short function to help us compare results.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e68326cd5972487108e473ea5ae07a31/href">https://medium.com/media/e68326cd5972487108e473ea5ae07a31/href</a></iframe><h4>Results!</h4><p>For this first test, we’re running DBSCAN on just two features of the dataset; air temperature and air pressure. After scaling the data, we call .fit_predict() on the dataset, and do the same for the scikit-learn implementation (note: I chose to start labeling clusters at 1, where sk-learn starts at 0 — I’ve incremented their cluster labels by 1 for comparison). Finally, we’re plotting both sets of clusters to visually confirm we’re getting identical results.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5f8218f137fe9bdcf07d0573f53dae7a/href">https://medium.com/media/5f8218f137fe9bdcf07d0573f53dae7a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*sD2VwYFNnjREACpAoFovhg.png" /><figcaption>Success! Identical clusters!</figcaption></figure><p>To further explore the capabilities of DBSCAN, let’s try this again, but using the full range of features in the dataset! I’ll tweak ε and <em>minPts </em>slightly.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/180b890a3c4be656a4bae3396f228d2c/href">https://medium.com/media/180b890a3c4be656a4bae3396f228d2c/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*0f0bdtww9T73acXm06AxOQ.png" /><figcaption>Looking good!</figcaption></figure><p>Once again, our results are lining up with sk-learn. Research indicates that DBSCAN can continue to be effective as the dimensionality of the data increases, though at extremely high dimensions <a href="https://ieeexplore.ieee.org/document/7823505">alterations</a> to <a href="https://arxiv.org/abs/1801.06965">DBSCAN</a> have been <a href="https://link.springer.com/chapter/10.1007/978-3-319-31750-2_20">proposed</a> to better combat instability and inefficiency.</p><p>Let’s explore this a little further; viewing just two dimensions of our 9-feature dataset may not be giving us the best insight of how well this has been clustered. After all, this image is definitely a little messier than previously. For this, we’re going to apply the sk-learn implementation of <a href="https://scikit-learn.org/stable/modules/generated/sklearn.manifold.TSNE.html">t-SNE</a> to reduce our dimensionality to 2 for easier visualization.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9c3f06811e83798a55bf5e37230eac39/href">https://medium.com/media/9c3f06811e83798a55bf5e37230eac39/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*1bDhrBe1FnLDdFt_TDQ-Gg.png" /><figcaption><a href="https://en.wikipedia.org/wiki/Ens%C5%8D">Ensō?</a></figcaption></figure><p>Beautiful! Here we can see how cleanly clustered things are, even across 9 dimensions. DBSCAN has seen wide application for pattern mining, pattern recognition, and recommendation systems throughout the sciences and the corporate world.</p><p>If you’d like to explore my work further, a notebook is <a href="https://github.com/austiezr/DBSCAN/blob/master/Basic_DBSCAN.ipynb">available here (GitHub)</a>, and <a href="https://colab.research.google.com/drive/1Ax4zrbdT0JDxH2uG0RwLJn3p5YCmN55L?usp=sharing">here (Google Colab)</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b02096600c14" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/dbscan-from-scratch-almost-b02096600c14">DBSCAN From Scratch (Almost)</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Student Performance]]></title>
            <link>https://medium.com/analytics-vidhya/the-nature-of-trying-to-predict-student-success-is-tricky-16168faba8ec?source=rss-59aa1df823f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/16168faba8ec</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[education-reform]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Austin Robinson]]></dc:creator>
            <pubDate>Fri, 06 Mar 2020 03:51:07 GMT</pubDate>
            <atom:updated>2021-09-14T16:57:57.767Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oSk9-EvPuZonAT-zOyuRqA.jpeg" /></figure><p>The nature of trying to predict student success is tricky. It’s difficult to account for the various factors in home life, personal life, mental health, quality of education, and study habits. Nevertheless, I feel that there are certain universal factors that help and hinder students. While these factors may grow or diminish in the face of cultural and personal differences from student to student, there is a still non-zero correlation between student success and these factors that makes them worth study.</p><p>It is with this in mind that I began this project. My data was provided by <a href="https://archive.ics.uci.edu/ml/datasets/Student+Performance">UCI</a>, sourced by <a href="http://www3.dsi.uminho.pt/pcortez/Home.html">Paolo Cortez, Universidade do Minho,</a> and consisted of student demographic, educational, and social features collected from two secondary schools in Portugal. My work with this data was inspired by the work of Paolo Cortez and Alice Silva, <a href="http://www3.dsi.uminho.pt/pcortez/student.pdf">available here</a>.</p><h3>The Process</h3><p>My goal was to predict a binary class, whether a student will pass or fail at the end of the year (represented in the data as whether G3, the final semester grade of the year, is greater than or equal to 10), and to do so in a way that could be valuable in an actual classroom; It is my belief that an educator could make use of a process similar to this in order to better facilitate early intervention for students who may be at risk academically.</p><p>During this process, I fit both XGBClassifier and LogisticRegressionCV models, and did so twice; once without the earlier semester grades (G1 &amp; G2), and once with, to compare how effective early intervention could be with and without taking into account concurrent academic performance.</p><p>My chosen metric for the performance of these models is Precision, represented as the number of True Positive Predictions over the Total Positive Predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*Nu29gRsSO-45gR-J9cDyiw.png" /></figure><p>This means I’m minimizing False Positive Predictions, the number of students who are likely to fail, but are predicted to pass, and therefore may not receive the help they may need; there is far less harm in falsely predicting the failure of student than in falsely predicting the success of a student, and far less help in accurately predicting students who will pass than in accurately predicting those who will fail.</p><h3>The Results</h3><p>For my baseline, I chose the ZeroR or Majority Class Baseline. The class with the most observations is used as the result for all predictions. This gives us a Precision of .78, not bad for what is essentially a guess, but with plenty of room for improvement.</p><p>I applied cross-validation to both of my models, and from both received significant improvement upon this initial score. My XGBClassifier, however, consistently returned equivalent or lower scores than LogisticRegressionCV, and was prone to overfitting, and so won’t be included going forward.</p><h4>Without Accounting For Earlier Grades</h4><p>My model returned a consistent Precision of ~.85 across validation and testing rounds. This is a significant increase in Precision, given no prior knowledge of a student’s grades. This increase comes solely from information a teacher may have on an incoming student, e.g. attendance records, age, previous failures, etc, <em>before</em> that student has done any work for that teacher.</p><h4>With Accounting For Earlier Grades</h4><p>When first and second semester grades are included, validation scores climb to ~.96, and my final test score climbs to ~.95; again, a significant climb in Precision, though in a real world scenario that increased Precision may be less valuable given that it may be too late at that point to effectively provide early intervention for struggling students.</p><h3>The Insights</h3><p>Through the process of exploring this data and creating this model, I discovered several interesting, if unsurprising, things.</p><p>First, the level of education a student’s parents had was a dramatic indicator of their own academic success. The students of educated parents had consistently higher scores and a significantly higher rates of passing. This could possibly be an indicator of the greater means available to educated families, or of the greater ability educated parents have to help their children learn.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J_Q73Tuxtq8fRiyTYBpSBg.png" /><figcaption>Effect Of Parent’s Education On Student Probability Of Passing</figcaption></figure><p>Second, the effect of weekly study time on student success displays a very interesting characteristic; while greater amounts of time spent studying does on average increase the chance of a student passing their exams, past a certain point further study is strongly correlated with increased variability of student scores.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*143RjEZ9k2Gt_Fieq49Rww.png" /><figcaption>Effect Of Study Time On Student Probability Of Passing</figcaption></figure><p>For many students it seems there may be a point of diminishing returns, where further time spent in study may not be leading to better retention, possibly coming at the expense of other factors (sleep, stress, etc.) that have an impact on performance.</p><p>Third, number of absences, while on average an indicator of student success, approaches ludicrous levels of variability at the extreme end of the spectrum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tC0n_ObRiqRIXEtuyD8Xgg.png" /><figcaption>Effect Of Absences On Student Probability Of Passing</figcaption></figure><p>Very large numbers of absences are associated with decreased performance, as would be expected; it’s hard to learn from a class you’re rarely in. However, large numbers of absences are far less useful in predicting student success than small ones.</p><p>Frequently missing school can be an indicator of destabilizing factors in home life, or a lack of interest or desire to succeed. However, it could also be the result of, among other things, chronic illness or injury which may not necessarily preclude a student from doing the things necessary to achieve success regardless of attendance.</p><h3>Conclusion</h3><p>There seem to be a number of factors, academic and otherwise, that could be used to predict student success with a reasonable amount of Precision. I believe that these factors have a certain universal nature that would allow an educator to apply a model like the one detailed above in order to better aid students that may be struggling. This model could be applied at varying times to varying degrees of efficacy, but should in all cases provide greater value than mere guesswork.</p><p>I’d like to acknowledge again that the data used above, <a href="https://archive.ics.uci.edu/ml/datasets/Student+Performance">available here</a>, was made available courtesy of <a href="http://www3.dsi.uminho.pt/pcortez/Home.html">Paolo Cortez, Universidade do Minho</a>.</p><p>My work, <a href="https://github.com/austiezr/DS-Unit-2-Build/blob/master/Austin_Robinson_DS_12_Unit_2_Build.ipynb">available here</a>, was inspired by the work of Paolo Cortez and Alice Silva, <a href="http://www3.dsi.uminho.pt/pcortez/student.pdf">available here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16168faba8ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/the-nature-of-trying-to-predict-student-success-is-tricky-16168faba8ec">Predicting Student Performance</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can I see a UFO?]]></title>
            <link>https://medium.com/analytics-vidhya/how-can-i-see-a-ufo-f8518b1e1920?source=rss-59aa1df823f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/f8518b1e1920</guid>
            <category><![CDATA[ufo]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[aliens]]></category>
            <dc:creator><![CDATA[Austin Robinson]]></dc:creator>
            <pubDate>Thu, 06 Feb 2020 17:46:18 GMT</pubDate>
            <atom:updated>2021-07-27T19:24:07.334Z</atom:updated>
            <content:encoded><![CDATA[<h3>How Can I See A UFO?</h3><h4>A tongue-in-cheek approach to predicting sightings</h4><p>The <a href="http://www.nuforc.org/">National UFO Reporting Center</a> has recorded an average of 1,329 UFO sightings per year over the last 50 years. In the last 10 years, that number has risen to an average of 4,914 sightings, with a high of 7,022 reported sightings as recently as 2014. That gives us a daily average of 13 unique sightings since 2010, vs a daily average of just 3 unique sightings overall.</p><p>It is my belief that this increase in reported sightings has more to do with the <a href="https://ourworldindata.org/internet">greater availability of internet access</a>, in combination with NUFORC being featured in an ABC documentary titled <a href="https://www.youtube.com/watch?v=BlDLDRT-whU"><em>UFOs: Seeing Is Believing</em></a><em>. </em>This documentary drove a large amount of traffic to the NUFORC site and greatly increased their visibility. This trend of growth in reported sightings, then, represents just that; an increase in <em>reported </em>sightings, rather than the warning signs of imminent alien invasion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sY0Jn-T8nact7PxenT8AAA.png" /></figure><p>Taking the most recent population estimates from the <a href="https://www.census.gov/quickfacts/fact/table/US/PST045218">US Census Bureau</a>, there are roughly 254,000,000 adults in the US right now. A <a href="https://solarismodalis.com/research-links-20th-century-fox-survey-americans-belief-ufos/">2017 survey</a> of American belief in UFOs, commissioned by 20th Century Fox, indicates that nearly <strong>17%</strong> of American adults believe they have seen a UFO; ~43,000,000 people. Dividing this by our yearly average of reported sightings (4,914) tells us that only 1 in nearly 8,800 people having experiences <em>actually</em> report them.</p><p>We’ve now established that, while few people report them, there must be a large number of sightings happening. Enough that, given the right place at the right time, maybe you could have one too!</p><h4>If I wanted to experience a sighting myself, what are my next steps?</h4><p>From the data collected by NUFORC, we can immediately discern a couple of valuable things.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*FNlemuHc4mzxGt6CaGZz-A.png" /></figure><p>Unsurprisingly, sightings are much more common at night, increasing sharply at sunset, and slowly declining throughout the evening until a sudden lull at sunrise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W4-RmTr9e3GN-jlDbru2YA.png" /></figure><p>And surprisingly, sightings seem to increase significantly in the summer months despite the shorter nights.</p><h4>But where do I need to be to have a sighting?</h4><figure><a href="https://austiezr.github.io/Chloro"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4KBtNmPJ4meJYWMfYPKVQ.png" /></a><figcaption><a href="https://austiezr.github.io/Chloro">Interactive Here</a></figcaption></figure><p>A quick K-Means clustering of the sightings tells us the Northeast (~25% of all sightings) is the place to be! So if I’m planning an excursion to experience some Unidentified Aerial Phenomena, I should shoot for a nice, warm evening in July, maybe by the banks of the <a href="https://www.sciencechannel.com/tv-shows/close-encounters/videos/a-wave-of-sightings-hits-the-hudson-valley">Hudson River</a>. But why?</p><p>Is there an aspect of the phenomenon that responds to the higher temperatures, the longer days? (Maybe.)</p><p>Are we just outside more in the summer? (Probably.)</p><p>Are there other celestial events happening during the peak months that are easy to misidentify? (Definitely — Both the Perseid and Delta Aquarid Meteor Showers run from mid-July to mid-August).</p><p><strong>WHAT COULD IT BE?!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eYckdtHx6fVjBH9XX64WsA.png" /></figure><p>As it turns out, sightings occur <strong>~7 times as frequently</strong> on the 4th of July as on any other date of that month. There’s a corresponding (though much smaller) uptick for the 1st of January— midnight fireworks capping off New Year’s Eve. Of the ~68,000 sightings in the data I worked with, July makes up for 12.5% of all reported sightings, with the 4th of July alone accounting for a staggering 2% of that total. On top of this, a <a href="https://austiezr.github.io/geo_heatmap">geo heatmap</a> of the sightings looks suspiciously like a population map.</p><p>I think the implications are clear.</p><figure><a href="https://xkcd.com/1138/"><img alt="" src="https://cdn-images-1.medium.com/max/432/1*7KP0WCpMcvxAy2gfjPl-3A.png" /></a><figcaption><a href="https://xkcd.com/1138/">Source: xkcd</a></figcaption></figure><h3>UFOs love fireworks.</h3><p>Unfortunately, UFOs also happen to <em>look</em> like fireworks. Frequently. The most commonly reported appearances on July 4th are described as “lights” (21%) and “fireballs” (17%).</p><h4>How can I know I’ve seen a UFO and not fireworks?</h4><p>A quick and highly questionable application of Bayes’ Theorem, assuming our 17% rate of prior sightings, and a false positive rate of 38% (the percentage of July 4th sightings in the Northeast most likely to have been fireworks), returns a probability of having a sighting at 96.48% after 10 long years of July 4th stakeouts. Perhaps more encouraging, after a single July 4th spent in watchful solitude, we’re already looking at a 25% chance of having a sighting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*-NZYjKeO7-JXOZpvXlmFeQ.png" /></figure><p>The primary takeaways here seem to be that witnesses are unreliable, and that the vast majority of Unidentified Aerial Phenomena are, in fact, Misidentified Aerial Phenomena.</p><p>Or, maybe, UFOs love fireworks.</p><p>But, if you want to have your own personal <a href="https://en.wikipedia.org/wiki/Close_encounter">Close Encounter</a>, the most prudent course of action is to head to the Northeast for the 4th of July this year, look up, and <em>believe</em>.</p><figure><a href="https://youtu.be/fPzKhXgkjRk"><img alt="" src="https://cdn-images-1.medium.com/max/319/1*NURZ_cX_wRRcdJpMLBKAHA.gif" /></a></figure><p>The <a href="https://data.world/timothyrenner/ufo-sightings">data</a> used above has been made available by <a href="https://timothyrenner.github.io/">Tim Renner</a>, whose work is an inspiration. I excluded all incomplete reports, i.e. reports not containing a sighting, reports not specifying a date or location, etc. My notebook is available <a href="https://colab.research.google.com/drive/1eHT6iEEWhNQCmcuz5Eqhcy9WiGuV_lQd">here</a>.</p><p>If you’d like more information on the UFO phenomenon, both <a href="http://www.nuforc.org/">NUFORC</a> and the <a href="https://www.mufon.com/">Mutual UFO Network</a> (MUFON) have a number of resources available. The writings of <a href="https://www.jacquesvallee.net/">Jacques Vallée</a> have served as a personal inspiration. If you believe you’ve had an encounter and would like to report it, NUFORC’s submission form is <a href="http://www.ufocenter.com/reportform.html">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f8518b1e1920" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/how-can-i-see-a-ufo-f8518b1e1920">How can I see a UFO?</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>