<?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 Couch on Medium]]></title>
        <description><![CDATA[Stories by Andrew Couch on Medium]]></description>
        <link>https://medium.com/@andrew.couch?source=rss-84e7547493d4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*j7cWUrY8i8tm0B_xniiq0A.jpeg</url>
            <title>Stories by Andrew Couch on Medium</title>
            <link>https://medium.com/@andrew.couch?source=rss-84e7547493d4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 06:49:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@andrew.couch/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[Text Mining with the Democratic Debates]]></title>
            <link>https://medium.com/data-science/text-mining-with-the-democratic-debates-48e3343bb489?source=rss-84e7547493d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/48e3343bb489</guid>
            <category><![CDATA[data-mining]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Andrew Couch]]></dc:creator>
            <pubDate>Tue, 22 Oct 2019 15:59:29 GMT</pubDate>
            <atom:updated>2019-10-23T19:20:37.541Z</atom:updated>
            <content:encoded><![CDATA[<h3>A short introduction for analyzing text with R</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*er-d0PQPIsH52u-wU6XJLg.png" /></figure><p>There have been 6 official democratic debates so far and more in the future. The debates are long and frankly very boring. The argument for the debates is to introduce America the candidates and understand their policy positions. However, America has a short attention span and with a 3-hour run-time, that’s a lot of time spent watching tv. In total, a person would spend <strong>18 hours </strong>watching the debates. That is not realistic at all and there must be a better way to summarize the debates in an objective manner.</p><h4>Introducing Text Mining</h4><p>Text mining is the practice of extracting information out of text. Techniques such as n-grams, bag of words, and topic modeling are some basic techniques in text mining. I believe text mining will be a more important field than machine learning because of the rising integration of social media with business. We live in an age where collecting and storing data is extremely easy and cheap. Businesses are now exploring ways to process and understand the data which has resulted in machine learning, deep learning, and AI. However, unstructured data is growing larger specifically with text. Consumer reviews, tweets, and emails are examples of unstructured data that businesses want to capitalize on. All of this sounds extremely complicated; machine learning with unstructured data? neural networks for understanding language? How is it possible? Believe it or not, extracting insights from text can be as simple as counts of words. The hardest part of text mining is collecting the data.</p><p>Luckily, after every debate a news organization will post the debate transcripts. I downloaded the transcripts and cleaned it into a simple csv file that can be found <a href="https://drive.google.com/file/d/12Blq4wIIoa8yDZGmRAH09fvEvWOZtEzG/view?usp=sharing">here.</a> Both R and Python have a lot of text mining packages. I will be using TidyText which has a <a href="https://www.tidytextmining.com/index.html">great textbook </a>to learn the basics of text and this article is basically a summary of the techniques.</p><h4>N-grams and Bag-of-words</h4><p>N-grams and Bag-of-words is the foundation of most text mining techniques. The idea behind them is to count each word. Given the sentence “I like dogs.” a bag-of-words feature would look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/335/1*Ui5Ln5uLXlA-RlJH3s1xJg.png" /></figure><p>Now let’s see what two sentences would look like with the bag-of-words features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*e_pwBFnrM-pgW7TUxh5MTw.png" /></figure><p>Note how for “I like cats”, the dogs feature counts 0. Bag-of-words features help map out text data into a traditional numerical format.</p><p>N-grams are like bag-of-words except with another step. Instead of counting one word like bag-of-words, N-grams specifies how many words. N is the number of words. So, 2-grams or “bigrams” is two words. Let’s see what a bigram features look like with the previous sentences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*niG-q4AQzWkgHoMwAQm_sw.png" /></figure><p>When looking at the table, it doesn’t look any different than the bag-of-words table. However, <strong>bigrams add more context, </strong>we can see that dogs and cats are paired with the word <strong>like</strong>. This means we can see that both sentences are positive to those two animals. You can even go farther with n-grams such as trigrams, four-grams, five-grams, etc. N-grams add context, however, can start to get very specific. This can be a good or a bad thing.</p><h4>N-grams and Bag-of-Words feature engineering in R</h4><p>N-gram and Bag-of-Words can be generated using regex functions, but regex is messy looking and there are packages that can do most of the legwork. Tidytext contains a function called <strong>unnest_tokens. </strong>Tokens are mentioned a lot in text mining. Tokens are inputs for text mining so bag-of-words and n-grams would all be considered tokens.</p><p>First, we’re going to load the packages and do some formatting. There are three columns in the dataset; Debate, Character, and Text. I filtered out the moderators and other unknown people from the transcripts so that the data only contains presidential candidates.</p><pre>library(tidyverse)<br>library(tidytext)</pre><pre>df &lt;- read.csv(&quot;DemDebates.csv&quot;, colClasses = c(&quot;factor&quot;,&quot;factor&quot;,&quot;character&quot;))</pre><pre>df &lt;- df %&gt;% <br>  filter(!character %in% c(&quot;(Unknown)&quot;, &quot;Announcer&quot;,&quot;Bash&quot;,&quot;Bridgewater&quot;,&quot;Burnett&quot;,&quot;Cooper&quot;,&quot;Davis&quot;,&quot;Diaz-Balart&quot;,&quot;Guthrie&quot;,&quot;Holt&quot;,&quot;Jose Diaz-Balart&quot;,&quot;Lacey&quot;,&quot;Lemon&quot;,&quot;Lester Holt&quot;, &quot;Maddow&quot;,&quot;Muir&quot;,&quot;Protesters&quot;,&quot;Protestor&quot;,&quot;Ramos&quot;,&quot;Savannah Guthrie&quot;,&quot;Stephanopoulos&quot;,&quot;Tapper&quot;,&quot;Todd&quot;,&quot;Unknown&quot;))</pre><p>Now we’ll use the <strong>unnest_tokens </strong>function to extract the bag of words. The first input names the token, the second input is column containing the text, the third input is specifying the type of token, and the last input is the n for the n-gram. So, for bag of words we would specify n = 1.</p><pre>df %&gt;% unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1)</pre><p>Now that we have the words, we need to count them. This is a simple count function where we will count by character. I will also filter it to the top 5 words for each candidate and sort by candidate and by word frequency. All of this will be in one command however, you can assign the bag-of-words to a variable.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1) %&gt;% <br>  count(character, word) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(n, n = 5) %&gt;% <br>  arrange(character, -n)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*141S4sXkWuU_IcTcVm_ecA.png" /></figure><p>As you can see the top 5 words for each candidate is not very useful. The list is full of words that have little to no meaning. These words are known as<strong> stop words</strong> and are usually filtered out. The tidytext package contains a list of frequent stop words we can use to filter the bag-of-words list. This will be done with <strong>anti_join</strong> from <strong>dplyr </strong>although you can also use the <strong>filter </strong>function. Tidytext has integrated many of its functions with the tidyverse making it very intuitive.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1) %&gt;% <br>  anti_join(stop_words) %&gt;% <br>  count(character, word) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(n, n = 5) %&gt;% <br>  arrange(character, -n)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*sBX_tPpCGN2HdnQ6vy5ddg.png" /></figure><p>Now some interesting things are happening. The words look to be somewhat relevant and could give some insights to each candidate. Let’s plot the words with the candidates. We’re going to use <strong>ggplot </strong>and make a simple bar chart showing each candidates top 5 words and their frequencies. I will also use <strong>facet_wrap </strong>which creates a separate plot for each value in a column. This will create separate graphs for each candidate. A common problem with plotting words or categorical variables is arranging them, but tidytext comes with functions that help with this process. <strong>reorder_within</strong> arranges the words and will help keep it sorted when using <strong>facet_wrap. </strong>Additionally <strong>scale_x_reordered </strong>will need to be used with it to format the x axis.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1) %&gt;% <br>  anti_join(stop_words) %&gt;% <br>  count(character, word) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(n, n = 5) %&gt;% <br>  arrange(character, -n) %&gt;% <br>  ggplot(aes(x = reorder_within(word, n, character),#Reorders word by freq<br>             y  = n,<br>             fill = character)) + <br>  geom_col() + <br>  scale_x_reordered() + #Reorders the words <br>  facet_wrap(~character, scales =&quot;free&quot;) + #Creates individual graphs<br>  coord_flip() + <br>  theme(legend.position = &quot;None&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3VUFDhIzQKn4SNNvMtcoLA.png" /></figure><p>This graph is very nice and reveals a lot about the current pool of candidates. Democrats are talking about people, president, Trump, America, government, healthcare, climate, etc. All of this makes sense however, all of the candidates share the same words and doesn’t explain the details of each candidate. Let’s see the bigrams for each candidate.</p><p>Although you should rename the token to bigram, we can just change n = 1 to n = 2. See how simple it is to look at n-grams with tidytext?</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =2) %&gt;% <br>  anti_join(stop_words) %&gt;% <br>  count(character, word) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(n, n = 5) %&gt;% <br>  arrange(character, -n) %&gt;% <br>  ggplot(aes(x = reorder_within(word, n, character),#Reorders the words by freq<br>             y  = n,<br>             fill = character)) + <br>  geom_col() + <br>  scale_x_reordered() + #Reorders the words <br>  facet_wrap(~character, scales =&quot;free&quot;) + #Creates individual graphs<br>  coord_flip() + <br>  theme(legend.position = &quot;None&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IH_491atsobdFmKH-kAknQ.png" /></figure><p>Okay, maybe it isn’t that easy. The anti_join command is looking for unigrams or just words instead of bigrams. We can filter by using the <strong>separate </strong>and <strong>unite </strong>functions. We are just creating two columns containing word1 and word2 of the bigram and filtering out the bigram if one of the words contains a stop word.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =2) %&gt;% <br>  separate(word, c(&quot;word1&quot;,&quot;word2&quot;), sep = &quot; &quot;) %&gt;% <br>  filter(!word1 %in% stop_words$word | !word2 %in% stop_words$word) %&gt;% <br>  unite(&quot;bigram&quot;, c(word1, word2), sep = &quot; &quot;) %&gt;% <br>  count(character,bigram) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(n, n = 5) %&gt;% <br>  arrange(character, -n) %&gt;% <br>  ggplot(aes(x = reorder_within(bigram, n, character),#Reorders the words by freq<br>             y  = n,<br>             fill = character)) + <br>  geom_col() + <br>  scale_x_reordered() + #Reorders the words <br>  facet_wrap(~character, scales =&quot;free&quot;) + #Creates individual graphs<br>  coord_flip() + <br>  theme(legend.position = &quot;None&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EI9_Nt5zMAmg4ahbnhcPTA.png" /></figure><p>As you can see the bigrams are more informative of each candidate. Beto talks about El Paso, Sanders talks about Medicare for all (as implied by Medicare for). We can also evaluate the debates and see if there were any major themes between them.</p><pre>df %&gt;% <br>  unnest_tokens(bigram, &quot;text&quot;, token = &quot;ngrams&quot;, n =2) %&gt;% <br>  separate(bigram, c(&quot;word1&quot;,&quot;word2&quot;), sep = &quot; &quot;) %&gt;% <br>  filter(!word1 %in% stop_words$word | !word2 %in% stop_words$word) %&gt;% <br>  unite(&quot;bigram&quot;, c(&quot;word1&quot;, &quot;word2&quot;), sep = &quot; &quot;) %&gt;% <br>count(debate, bigram) %&gt;% <br>  group_by(debate) %&gt;% <br>  top_n(n, n =5) %&gt;% <br>  ggplot(aes(x = reorder_within(bigram, n, debate), <br>             y = n, <br>             fill = debate)) + <br>  geom_col() + <br>  scale_x_reordered() +<br>  facet_wrap(~debate, scales = &quot;free&quot;) + <br>  coord_flip() +<br>  theme(legend.position = &quot;None&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KEqNzZ16drqTCzd9AxV8cA.png" /></figure><p>At first, the graph shows there are no differences, in fact, the bigrams and rankings are very similar. <strong>This is one of the faults with simply counting n-grams or bag-of-words. </strong>It doesn’t take into account popular words. You could create a separate list of popular words for each document and filter them out but that takes a lot of time. Here is where TF-IDF shines.</p><h4>Term Frequency and Inverse Document Frequency (TF-IDF)</h4><p>Term Frequency and Inverse Document Frequency is my preferred way of counting n-grams or bag-of-words within groups. TF-IDF finds unique words for each group by comparing a group’s words with the entire set of documents. The math is pretty simple too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/0*IDaZJCURAwsjCZiL.png" /><figcaption><a href="https://skymind.ai/wiki/bagofwords-tf-idf">https://skymind.ai/wiki/bagofwords-tf-idf</a></figcaption></figure><p>Tidytext contains a Tf-idf function so you won’t need to manually create the formula. What’s great about Tf-idf is you technically don’t need to remove stop words because stop words will be shared across all of the documents. Let’s see it in action.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1) %&gt;% <br>  count(debate, word) %&gt;% <br>  bind_tf_idf(word, debate, n) %&gt;% <br>  group_by(debate) %&gt;% <br>  top_n(tf_idf, n = 5) %&gt;% <br>  ggplot(aes(x = reorder_within(word, tf_idf, debate), y = tf_idf, fill = debate)) + <br>  geom_col() + <br>  scale_x_reordered() + <br>  facet_wrap(~debate, scales = &quot;free&quot;) + <br>  coord_flip() + <br>  theme(legend.position = &quot;none&quot;)</pre><p><strong>Bind_tf_idf </strong>goes after the count function. <strong>Bind_tf_idf </strong>will then take a term, document, and n.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hBSN4Si4yOoaidaazMPpvA.png" /></figure><p>So, the graph shows a lot of different words and some of the words don’t make any sense. Tf-idf did help however there are some words that simply don’t add any value like in debates 4 and 2a. Why is there an “h”? Probably from how the data was cleaned where there might have been an unwanted space. But we still can see very distinct words.<strong> Although Tf-idf did remove a lot of stop words, it is still better to remove them. </strong>Let’s see what tf-idf shows us for each candidate.</p><pre>df %&gt;% <br>  unnest_tokens(word, &quot;text&quot;, token = &quot;ngrams&quot;, n =1) %&gt;% <br>  count(character, word) %&gt;% <br>  bind_tf_idf(word, character, n) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(tf_idf, n = 5) %&gt;% <br>  ggplot(aes(x = reorder_within(word, tf_idf, character), y = tf_idf, fill = character)) + <br>  geom_col() + <br>  scale_x_reordered() + <br>  facet_wrap(~character, scales = &quot;free&quot;) + <br>  coord_flip() + <br>  theme(legend.position = &quot;none&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P9GBQfr8q3IxnOw-65avpQ.png" /></figure><p>Now this is very interesting. The top 5 tf-idf words do reveal a lot about each candidate. Yang talks about 1000 which references his freedom dividend. Beto talks about Texas and Paso which makes sense because that is his hometown. Eric Swallwell with Torch being the most identifiable word for him which references the infamous “pass the torch” speech. Even looking at the x axis Torch has the highest value which shows how well it identifies the candidate. Tf-idf can be applied to any n-gram too. You may have noticed that the first graph shows the top 5 trigrams for each candidate.</p><pre>df %&gt;% <br>  unnest_tokens(trigram, &quot;text&quot;, token = &quot;ngrams&quot;, n = 3) %&gt;% <br>  count(character, trigram) %&gt;% <br>  bind_tf_idf(trigram, character,n) %&gt;% <br>  group_by(character) %&gt;% <br>  top_n(tf_idf, n = 5) %&gt;% <br>  mutate(rank = rank(tf_idf, ties.method = &quot;random&quot;)) %&gt;% <br>  arrange(character, rank) %&gt;% <br>  filter(rank &lt;=5) %&gt;% <br>  ggplot(aes(x = reorder_within(trigram, tf_idf, character), <br>             y = tf_idf, <br>             color = character, <br>             fill = character)) + <br>  geom_col() +<br>  scale_x_reordered() +<br>  facet_wrap(~character, scales = &quot;free&quot;) +<br>  coord_flip() + <br>  theme(legend.position = &quot;None&quot;)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*er-d0PQPIsH52u-wU6XJLg.png" /></figure><h4>Conclusion</h4><p>Bag-of-words and n-grams are the foundation of text mining and other NLP topics. It is very simple and elegant way of converting text into numerical features. Additionally, tf-idf is another tool that can add to the effectiveness of bag-of-words and n-grams. These basic concepts can take you far into the world of text mining. Consider creating a model using bag-of-words and n-grams, play with how tf-idf changes the accuracy of the model, use lexicons to apply sentiment values to bag-of-words, or play with negations using bigrams. Text mining is a relatively unexplored frontier compared to its other counterparts in data mining. However, with the rise of smartphone, online businesses, and social media, text mining will be needed to process the millions of text posted, shared, and retweeted every day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=48e3343bb489" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/text-mining-with-the-democratic-debates-48e3343bb489">Text Mining with the Democratic Debates</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[Estimating Pi with Monte Carlo in Excel]]></title>
            <link>https://medium.com/swlh/estimating-pi-with-monte-carlo-in-excel-c47725feaaa7?source=rss-84e7547493d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/c47725feaaa7</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[r]]></category>
            <category><![CDATA[excel]]></category>
            <category><![CDATA[monte-carlo]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Andrew Couch]]></dc:creator>
            <pubDate>Mon, 01 Jul 2019 00:39:24 GMT</pubDate>
            <atom:updated>2019-11-16T23:41:30.655Z</atom:updated>
            <content:encoded><![CDATA[<h4>Freshman geometry class finally put to use</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*es8Zj0emHUsp_DgTuOybpQ.jpeg" /><figcaption>Art created with Pi by color coding each digit. Originally created by <a href="https://fineartamerica.com/profiles/martin-krzywinski.html?tab=artworkgalleries">Martin Krzywinski</a>.</figcaption></figure><p>While I was watching the show Veep, Kent Davison, the pollster and numbers-cruncher for Selina’s campaign mentioned his favorite number was Euler’s number which made me wonder how mathematicians came up with these numbers that are used in everyday life. I started reading about the history of these important numbers and then stumbled upon the history of Pi. After reading about the long <a href="https://en.wikipedia.org/wiki/Pi">Wikipedia page</a>, I believe Pi is one of the most fascinating number in mathematics; there are races on how many digits people can memorize of Pi, there are races to see how many digits of Pi can be computed, there is a holiday after Pi, and yet Pi’s accuracy is not really relevant to its everyday use. There are strong diminishing returns when adding additional digits to Pi, <strong>3.14 is only .5% off from the true value of Pi</strong>. <a href="https://blogs.scientificamerican.com/observations/how-much-pi-do-you-need/">NASA scientists used Pi rounded to 16 digits for its calculations when developing the Space Integrated Global Positioning System/Inertial Navigation System (SIGI) </a>. All of these things I read about made me think about how someone could estimate Pi without being a mathematician or with a crazy computer.</p><h3>Introducing Monte Carlo</h3><p>Monte Carlo is used to solve problems by simulating randomness. Monte Carlo simulations are often used for gambling to estimate probabilities. The navy will use Monte Carlo simulations to identify the most probable areas someone would be located during search and rescue missions. I have used Monte Carlo simulations to simulate S&amp;P performance and would conduct random walks with an investment portfolio. <strong>To put it simply Monte Carlo is basically just simulated guessing and checking using randomness.</strong></p><h3>How to estimate Pi with Monte Carlo</h3><p>Estimating Pi is a common example cited for Monte Carlo simulations. The best part is you only need to know some basic geometry to estimate Pi. The idea is that an area of a circle is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/155/1*zQWrIwv5wu0ejGtQuOO99w.png" /></figure><blockquote>So, if the radius is 1 inch, then the area of the circle is just π.</blockquote><p>If the radius is 1 inch, then the diameter of the circle must be 2 inches. Okay, that’s great and all but <strong>how do you actually derive Pi if you only know the area of a circle is Pi</strong>? Well, since the diameter of the circle is 2 inches, we can also put the circle inside a 2-inch square. The circle will be touching the square’s sides but there will be a part of the square that does not overlap with the circle.</p><blockquote>Here’s the underlying logic for deriving Pi.</blockquote><p>Since the area of the square is 4 inches and the area of the circle is Pi, the ratio of the areas will be <strong>Pi / 4.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/1*RM188mJXe71OC6fW3VDtVQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*a971bZ4ZUc4WFb0FdcuuQQ.png" /><figcaption>For the visual learners</figcaption></figure><p>Assume we put a 2-inch square and a circle with a radius of 1 inch on a plot where the centers of the shapes are located at x = 0 and y = 0 so the coordinate is (0,0).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*B5--TWxrmQ6R9EPrM8z3FA.png" /></figure><h4>If we plot random points inside the square, count how many points are in the circle, and how many points are in the square, then the ratio should be Pi / 4. So, if we multiply the ratio by 4 then we will have Pi.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*-3ic9JDG7Ml0cn6oYtfdfg.png" /><figcaption>All we need to do is find the ratio</figcaption></figure><blockquote>But, how will we know which points will be in the circle and which will be in the square?</blockquote><p>Easy, <strong>the distance of each point from the origin is less than or equal to one. </strong>The points inside the circle can be found by using the Pythagorean theorem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/244/1*45EZLV-u-fxMuKw3kvguig.png" /><figcaption>hello old friend</figcaption></figure><p>C squared is the <strong>longest side of the triangle and is also the radius of a <em>circle</em></strong><em> (which is 1 inch)</em>.</p><blockquote>So as long as the sum of x and y squared is less than or equal to 1, <strong>it must be inside the circle.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*kabAeLgGMOU31V-fRKBqsQ.png" /><figcaption>The hypotenuse is 1 inch long. Note how the sum of x and y squared is less than or equal to 1 inside the circle.</figcaption></figure><h3>Monte Carlo Simulations in Excel</h3><p>You don’t need fancy software to run Monte Carlo Simulations. Although nowadays I use a lot of R, I still believe Excel is the best<em> “statistical”</em> software due to its popularity and ease of use. You can really push Excel to do more than just pivot tables.</p><h3>Creating the random variables and underlying logic</h3><blockquote>First create two columns and label them x and y</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/192/1*4iRrp0T3_D1Mb8tVILgInQ.png" /></figure><p>Now to simulate randomness use the rand function by typing <strong>=RANDBETWEEN(-1000000,1000000)/1000000</strong> in both columns. This is to simulate random numbers between -1 and 1. The reason why I am using one million instead of one is to add additional decimals places to the number. Highlight the two functions and click the square located in the bottom right of the cells and drag down to the 1001 row. This will copy the formula 999 more times.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/216/1*j7paRhxcuaweAnCZrzYUvw.png" /></figure><p>Go to the top of the worksheet to column C and click on cell <strong>C2</strong>. Type in <strong>=IF( (POWER(A2,2) + POWER(B2,2)) &lt;=1,1,0) </strong>.<strong> </strong>Double click the bottom right corner to fill in the remaining rows. This is the underlying logic to find if the point is in the circle. The formula squares x and y and checks if it is less than or equal to 1. If the point is inside the circle than, it outputs a 1, if the point is outside of the circle, it outputs a 0.</p><h3>Conducting the Monte Carlo Simulation</h3><p>Type 1 and 2 in cells <strong>D2</strong> and <strong>D3</strong> respectively and highlight the cells. Double click on the bottom right of the highlighted cells to fill in the remainder of the cells. <strong>This creates the amount of iterations</strong> the Monte Carlo simulation will conduct. After that, click on cell <strong>C1</strong> and type <strong>=4 *SUM(C2:C1001) / 1000 </strong>. Look familiar? This is the formula to estimate Pi! The sum is counting the points that fall inside of the circle and the denominator is the amount of total points which is in the square. This is the ratio that is needed to calculate Pi and all we needed to do is multiply it by 4 to get Pi.</p><blockquote>But it probably doesn’t resemble Pi.</blockquote><p>And this is where data tables will help improve the accuracy. We only plotted 1,000 points which is a relatively small sample. We need to plot more, but we don’t have enough rows to plot 1,000,000 points or run the simulation 1,000,000 times. Creating a data table will help with this. Click on cell <strong>E2</strong> and type <strong>=C1. </strong>This is to reference the cell and will be added to the records in the following iterations. Highlight <strong>D2</strong> and <strong>E2</strong> and press <strong>shift+control+down arrow</strong> to select the entire table. Go to the <strong>Data tab</strong> and click on <strong>What-If Analysis </strong>and then click on <strong>Data Table</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/464/1*JJiC63iofFMux9o3WUp2eg.png" /></figure><p>Type in <strong>F2</strong> in the column input cell. This is a trick that you don’t really need to know why. (Because I don’t know why you do it, you just do)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/1*qvGT9SdI1_0yfWr3a7vb_Q.png" /></figure><p>Click OK and you will see the table fill with estimations of Pi. Click on <strong>E2 </strong>and type<strong> =AVERAGE(E2:E1001). </strong>This averages all of the estimations of Pi to create an average estimation which should closely resemble the actual number of Pi! You have successfully created the ratio with 1,000,000 data points and derived and estimation of Pi. Play around with it and see how close you can reach Pi. Change the sample size (number of rows in columns A and B) or add more rows to the data table to increase the amount of iterations.</p><p>The more iterations or samples you add, the more accurate Monte Carlo will be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*yCQUl8SXlq-NipPRbbfM2g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*R1xBjBdkGuhK7oXWWsPJWA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*8908ViI8WWkxIxK-uapCgQ.png" /></figure><p>If you want to do this in R and also recreate the graphs above, I have attached the R code.</p><pre>library(tidyverse)<br>library(ggthemes)</pre><pre>#Create an empty data frame<br>piSimulation &lt;- data.frame(&quot;&quot;)</pre><pre>#Adds 1,000,000 random points between -1 and 1<br>piSimulation &lt;- cbind(piSimulation, x =runif(1000000,-1,1))<br>piSimulation &lt;- cbind(piSimulation, y =runif(1000000,-1,1))</pre><pre>#Removes the extra column<br>piSimulation &lt;-  piSimulation[,-1]</pre><pre>#Logic for checking if points are inside the circle<br>piSimulation &lt;-  piSimulation %&gt;% mutate(., inCircle = (piSimulation$x^2 + piSimulation$y^2) &lt;=1)</pre><pre>#Estimation of Pi<br>4 *sum(piSimulation$inCircle, na.rm = TRUE) / 1000000</pre><pre>#Creates row reference to serve as a point count for graph<br>piSimulation$ID &lt;- seq.int(nrow(piSimulation))</pre><pre>#Graphs the points and filters the data to the first 10,000 points<br>ggplot(data = piSimulation %&gt;% filter(., ID &lt; 10000), mapping = aes( x, y, color = inCircle)) + geom_point() + theme_economist()</pre><p>As you can see, creating it in R takes less than 10 lines of code.</p><h3>Finishing thoughts</h3><p>Monte Carlo is a fun tool to use and also has useful applications regardless of what field you are in. You may be asking <strong>why I didn’t just run the simulation for the first quadrant</strong> and used the rand() function in which x and y would always be positive. I think it is<strong> easier conceptually to understand </strong>however, plotting only in the first quadrant is easier to implement. There is something beautiful about the Monte Carlo method. I think it’s due to the ability of using randomness and chaos to find a solution that otherwise could not be found. Or maybe I just really want to live in <a href="https://qtxasset.com/styles/breakpoint_sm_default_480px_w/s3/luxurytraveladvisor/1514485016/MonteCarloMonacoCreditXantanaiStockGettyImagesPlusGettyImages_0.jpg/MonteCarloMonacoCreditXantanaiStockGettyImagesPlusGettyImages_0.jpg?HaO_VuTJd_hkgyC2wr5PlKFFCIflUZN7&amp;itok=W9GnCXzh">Monaco</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c47725feaaa7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/estimating-pi-with-monte-carlo-in-excel-c47725feaaa7">Estimating Pi with Monte Carlo in Excel</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>
        <item>
            <title><![CDATA[Finding the Safest Bars in Iowa City using Statistics]]></title>
            <link>https://medium.com/@andrew.couch/finding-the-safest-bars-in-iowa-city-using-statistics-87f1112d4e1d?source=rss-84e7547493d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/87f1112d4e1d</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[university-of-iowa]]></category>
            <dc:creator><![CDATA[Andrew Couch]]></dc:creator>
            <pubDate>Thu, 09 May 2019 23:24:39 GMT</pubDate>
            <atom:updated>2019-05-09T23:24:39.701Z</atom:updated>
            <content:encoded><![CDATA[<h4>A data driven approach for avoiding PAULA citations</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pv-TKADdTH6jc2aBvwnyQA.jpeg" /><figcaption>Credits: <a href="https://www.facebook.com/asymmp">(A)Symmetrical Photography</a> Instagram: @asymmetrical_photography</figcaption></figure><h3>Methodology:</h3><p>The data was scraped from the Iowa City police logs. Iowa City police logs limit the length of the records, so data was only collected for one month. The data was cleaned showing only bar checks and was limited to Thursdays, Fridays, and Saturdays. Warnings and arrests were ignored due to low sample size. Some of the bars had 0 charges making the tool give a 0% probability of getting caught/charged. If values were 0, then the tool would give the average probability. There are limitations with the bar tool, arrests and warnings were ignored in the analysis due to infrequency. The data only accounts for one month making it sensitive to seasonal changes meaning March will probably have less bar raids then August or September.</p><h3>Abstract:</h3><p>Iowa City is known to have one of the best bar scenes in America. Many students who choose University of Iowa will purchase fake Illinois and Ohio IDs and then go out to Summit, Airliner, and Union. A common threat for freshman and sophomores is bar raids where Iowa City police officers will go inside bars looking for under-aged students staying in the bar past 10 pm. When students are caught, their fake IDs are often taken and are given a PAULA citation resulting in a fine.</p><blockquote>Students will often say go to X bar on Thursdays, Y bar on Saturdays, or go to the bars after 10 pm because police officers never raid during those times.</blockquote><p>The data shows<strong> 8</strong> bars account for<strong> 67.5%</strong> of bar raids. Days appear to have an effect on the probability of a bar getting raided. Thursdays are <strong>less</strong> likely for bars to get raided whereas Fridays and Saturdays have a relatively <strong>equal</strong> chance of a bar raid. The bar also has an effect of being caught meaning if a bar does get raided, the bar a student is at will affect the probability of getting caught.</p><blockquote>Overall, Brothers, SpoCo, Summit, and Union are bars that get raided the most. However, the most dangerous bars are Fieldhouse, Summit, and Union.</blockquote><p>Dangerous bars means if a bar does get raided, a student is <strong>more</strong> likely to get caught and charged with a PAULA citation. I have created a tool in <a href="https://drive.google.com/file/d/1X_MMZuXD5nvw9MXotBIrcmAIYEJ1iih2/view?usp=sharing">Excel</a> where a person selects the bar and day and then receives the probability of getting raided and if the bar gets raided, the probability of getting charged.</p><h3><strong>Analysis</strong></h3><h3>The Day Factor:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gcylXYvO-BKH8EYMXG3Opg.png" /></figure><p>The day has a <strong>large impact </strong>on whether or not a bar gets raided. The graph shows how Fridays and Saturdays have <strong>most </strong>amount of bar raids. Saturdays have the most charges out of any given day making Saturdays the <strong>most dangerous </strong>day for bar charges.</p><blockquote>Union and Brothers gets raided the most on Fridays. Saturdays are the most dangerous for bars because most citations/charges are issued on Saturdays.</blockquote><p>The charges are relatively evenly distributed for every bar. Given that bars are rarely raided on Thursdays, a freshman or sophomore should consider going out on <strong>Thursdays.</strong></p><h3>The Bar Factor:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAQ9Ir7N7_JtQ5h4kKAlbw.png" /></figure><p>The bar a student goes to has a large effect on whether or not a person will be charged. Using conditional probability, Fieldhouse is the most dangerous bar to go to if a student is under-aged.</p><blockquote>When a bar gets raided, it does not necessarily mean a student will be charged with a PAULA citation.</blockquote><p>Some bars get raided infrequently however, when a raid does occur, there is a high probability that a student will be charged. If police raid Fieldhouse, there is an <strong>83%</strong> chance of getting a citation. For Union, there is a<strong> 67%</strong> chance of getting a citation. Finally, for Summit, there is a <strong>57%</strong> chance of getting a citation.</p><p>Interestingly, some bars have a very different probabilities of getting raided and getting charged. However, I think this is due to small sample sizes, but the data can still be interpreted. For example, Fieldhouse has the <strong>highest</strong> chance of getting a PAULA citation when raided however, is among the <strong>lowest </strong>for actual bar raids. Brothers is one of the <strong>top 3</strong> bars that gets raided the most but, did not have any citations in the past month.</p><h3>Bar Tool:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*Oqk8VrMfJRArLCZ9H-Z-mg.png" /></figure><p><a href="https://drive.google.com/file/d/1X_MMZuXD5nvw9MXotBIrcmAIYEJ1iih2/view?usp=sharing">Here is the bar tool</a>. Hopefully this tool will help students with their decisions on what bar they want to go to. The tool is simple to use with a pull-down menu for both the bar and day. You can also open it as a google sheet and interact with it online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*RYEv8vYoeuj9HV3VnyzWvw.png" /></figure><p>I have also created a summary data table and two-way frequency tables for both charges and days. The data is also on the sheet and can be used for additional analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*B3i2JMDkrQ1QKDoTNowsfQ.png" /></figure><p>My goal for this bar tool and write up is to show students and specifically business analytics students that side projects can be interesting and can have a lot of value for other people. The data analysis was not complicated, and I mostly used the countif function and graphs. Hopefully, this inspires other Iowa students to work on interesting projects and show it to others.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87f1112d4e1d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bernie Sanders: Overrated/Underrated]]></title>
            <link>https://medium.com/@andrew.couch/bernie-sanders-overrated-underrated-41f53316c5a3?source=rss-84e7547493d4------2</link>
            <guid isPermaLink="false">https://medium.com/p/41f53316c5a3</guid>
            <category><![CDATA[presidential-campaign]]></category>
            <category><![CDATA[politics]]></category>
            <category><![CDATA[democrats]]></category>
            <category><![CDATA[primaries]]></category>
            <category><![CDATA[bernie-sanders]]></category>
            <dc:creator><![CDATA[Andrew Couch]]></dc:creator>
            <pubDate>Fri, 22 Mar 2019 01:21:25 GMT</pubDate>
            <atom:updated>2019-03-22T01:21:25.752Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y9VzZ2GKc4q7DYSGI2hKSw.jpeg" /><figcaption>Photo: Politico / Getty</figcaption></figure><p>I remember hearing about Bernie Sanders on the summer of 2015. The term democratic-socialist felt like a radically new concept back then and Bernie’s message resonated with me as an 18-year-old democrat who would be able to vote for the first time. I primaried for him and remember feeling satisfied about the 23–21 loss to Hillary. I felt I somehow made a difference because although Bernie lost the battle, he won the war with popularizing the idea of Medicare for all, a living minimum wage, and attacking the big banks.</p><p>Now, for 2020, Bernie Sanders will have to face a very crowded primary in which a lot of the candidates have absorbed his mantra.</p><blockquote>So what parts of Bernie Sanders’ are overrated and underrated?</blockquote><h3>Overrated: Bernie and reaching the black vote</h3><blockquote>Bernie Sanders marched during the civil rights era, so he can win over African Americans!</blockquote><p>The African American vote is very important for the democratic party considering <a href="https://www.pewresearch.org/fact-tank/2018/11/08/the-2018-midterm-vote-divisions-by-race-gender-education/">90% of African Americans votes for a democratic candidate</a>. I think Sam Sanders said it best</p><blockquote><a href="http://White liberals saying “Well Bernie marched in the 60s!” isn’t that different from white conservatives saying, “Well the GOP freed the slaves!”">White liberals saying “Well Bernie marched in the 60s!” isn’t that different from white conservatives saying, “Well the GOP freed the slaves!”</a></blockquote><p>I think Bernie Sanders being a senator from Vermont a state that literally has less than <a href="https://en.wikipedia.org/wiki/Vermont#Demographics">150 African Americans</a> births in 2017 could be a reason from the disconnect with him and African Voters. Sanders will need to win the black vote if he has any chance on winning the nomination which will be difficult considering Kamala Harris and Corey Booker are running.</p><h3>Underrated: Bernie Sanders is an old, white man</h3><p>Before someone says, “Candidates should be voted for based on their merit and policy instead of by their race or gender because voting for someone just because they are a woman or black is itself racist and detracts from people of merit”.<strong> I get it </strong>but the problem with Sanders is he is <strong>OLD </strong>like he would be 79 if he were to be elected. Why would someone vote for Bernie Sanders when they could vote for Elizabeth Warren, a younger candidate who shares very similar views.</p><p>Bernie Sanders being a white man in a field that is incredibly diverse can hurt him especially as the democratic party goes farther to the left. The 2018 midterms showed that the democratic party is the diverse and inclusive party and 2020 does not seem to be the year the for old white male democrats. But, Bernie Sanders can pick a VP that would balance out <a href="https://twitter.com/TheYoungTurks/status/1097999078938501120">his age and race</a>. Maybe Kamala Harris?</p><h3><strong>Overrated: Bernie Sanders has never been tested</strong></h3><p>A common criticism of Bernie Sanders is that</p><blockquote><a href="https://www.nbcnews.com/meet-the-press/meet-press-may-22-2016-n578291">Bernie Sanders never experienced a negative ad while campaigning in 2016</a>.</blockquote><p>The problem with this criticism is that Bernie Sanders has been using the same ideas for his entire career. If conservatives want to run ads that he is a socialist and wants to tax the middle class to death, Bernie Sanders has probably seen/heard that rhetoric already. Frankly, if they want to run ads that he wants to overtax the rich, create free college for everyone, and is a socialist, it might sway peoples’ perception of what democratic socialism is. Sanders has had the same message for a long time and now it’s going to pay dividends.</p><h3>Underrated: Name recognition and support</h3><p>Bernie bros have been saying the same thing since 2016</p><blockquote><a href="https://www.youtube.com/watch?v=moNHfeBJ81I">“Bernie would have won</a>”</blockquote><p>Personally, I don’t believe you could say that definitively. But, Bernie’s huge grass roots support has lasted the entire gap between 2016 and 2018 and shows Bernie’s ideas are catching on. You have to respect his political skills of popularizing democratic socialism and placing himself as the leader of the progressive movement. He really has taken over a part of the democratic party. I always thought he would find a protege to run for president which I suppose AOC fits that description. But, Bernie Sanders has decided to do it himself. The recent <a href="http://cdn.cnn.com/cnn/2019/images/03/09/rel1_ia1.pdf">Des Moines Register poll</a> shows Biden and Sanders in the lead and both candidates have a lead in the second choice for president too. I think Sanders is a heavy hitter especially since I consider Joe Biden to be an overrated candidate but that’s for another article.</p><p>The poll shows Sanders is doing everything correctly in Iowa and to me it’s not surprising. Especially considering Sanders’ message has an appeal to <a href="https://en.wikipedia.org/wiki/2016_Iowa_Democratic_caucuses">rural voters in Iowa</a>. I think Bernie Sanders can continue to win over rural voters especially because of the Trump tariffs hurting Iowa farmers and rural communities. The biggest question is whether Sanders can win Des Moines and especially Polk county. I think Polk county will be the battleground for Sanders and Biden but if Sanders were to win the nomination, he can easily win Iowa especially due to his performance in the Iowa 4th district’s Woodbury County.</p><h3>Overrated: Bernie Sanders is a democrat</h3><p>Bernie Sanders may be a democrat, but he is certainly not an “obedient” democrat. His affiliation with being an independent and far left democrat can be detrimental to the party. In my opinion Bernie Sanders’ double edge sword is pushing the party to the left. Although the current democratic party is not Bernie’s party, he certainly had a role in creating it. Bernie Sanders has influenced far left candidates which is by no means a bad thing but creates vulnerabilities in swing districts. If Bernie Sanders becomes the presidential nominee, I predict a lot of democrats representing swing districts losing their seats. I don’t think this necessarily means people should avoid voting for Bernie, but they should consider the importance of the house and that their representative might distance themselves from Sanders.</p><p>One of the largest blunders I’ve seen made by the Sanders campaign is hire <a href="https://twitter.com/davidsirota?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">David Sirota</a> a political commentator who has conveniently deleted his tweets attacking the other democratic candidates.</p><blockquote>The Atlantic alleges <a href="https://twitter.com/davidsirota?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">Sirota was working unofficially with Sanders while attacking other democratic candidates</a></blockquote><p>which is a lame move especially when Bernie Sanders’ voters have been criticized in not voting for Hillary Clinton in 2016. Although I believe the <a href="https://fivethirtyeight.com/features/bernie-sanders-was-helped-by-the-neverhillary-vote-what-does-that-mean-for-his-chances-now/">majority of Sanders’ voters did vote for Clinton</a> and the main reason Clinton lost was because she’s Clinton. But the main point is Bernie Sanders has had problems with his relationship between himself and the democratic party which will influence the establishment endorsements and voters. Is it worth supporting Sanders when his nomination could hurt the democratic party’s electability in 2020 for all races or will it energize the base?</p><h3>Final Thoughts</h3><p>Bernie Sanders is a hard-hitting candidate that I think the democrats can really rally with. I think he has an underrated appeal with the <a href="https://www.nytimes.com/2018/05/22/upshot/rural-and-urban-residents-feel-disparaged-pew-survey.html">rural vote </a>which is necessary in today’s political climate. I think he will again be one of the final 2 or 3 candidates in which he will be the only true far left progressive left in the pool.</p><blockquote>The biggest vulnerability for Sanders is ironically not his economic message, but social issues involving gender and race.</blockquote><p>He really needs to maneuver the democratic base’s needs for a candidate that looks like themselves which is not white, male, or above 70 years old. I’m not sure what the Washington insiders are thinking but Biden really made a great unconventional move with hinting he might pick <a href="https://twitter.com/staceyabrams">Stacey Abrhams </a>as his VP before even announcing. All in all, Bernie Sanders appears to be a strong, promising candidate and as an unsure democratic voter in Iowa, I’m starting to feel the Bern.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41f53316c5a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>