<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Data on Noetic Nought</title>
    <link>https://punchagan.muse-amuse.in/tags/data/</link>
    <description>Recent content in Data on Noetic Nought</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>© 2006-2026 CC-BY-SA-4.0</copyright>
    <lastBuildDate>Thu, 28 Sep 2017 00:46:00 +0530</lastBuildDate>
    <atom:link href="https://punchagan.muse-amuse.in/tags/data/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>HT interactives</title>
      <link>https://punchagan.muse-amuse.in/blog/ht-interactives/</link>
      <pubDate>Thu, 28 Sep 2017 00:46:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/ht-interactives/</guid>
      <description>&lt;p&gt;I recently discovered the &lt;a href=&#34;http://www.hindustantimes.com/interactives/&#34;&gt;interactives&lt;/a&gt; by HindustanTimes, and thoroughly loved&#xA;some of them. It felt like a fresh breath of air amongst all the other Indian&#xA;data driven journalism that I have been coming across in the recent past.&lt;/p&gt;&#xA;&lt;p&gt;The visualizations are a lot more interactive than some of the other Indian&#xA;publications. These remind me of NYT&amp;rsquo;s interactives, which are amongst the best&#xA;you&amp;rsquo;d see, while more often than not exploring data in the Indian context. I&#xA;really like that they explore a variety of ways of doing these visualizations,&#xA;and don&amp;rsquo;t just fit the data into one of the many standard options available in a&#xA;visualization library.&lt;/p&gt;&#xA;&lt;p&gt;It feels like they are willing to take their time to do these visualizations,&#xA;and are willing to collect data from multiple sources, and combine multiple&#xA;datasets to tell a story. I also like the fact that the visualizations and the&#xA;articles are more open-ended, allowing users to interact with and explore the&#xA;data, rather than trying to come up with an article full of conclusions with a&#xA;click-baity title. The fact that one of the sections is called &lt;a href=&#34;http://www.hindustantimes.com/interactives-just-for-fun&#34;&gt;Just for Fun&lt;/a&gt;&#xA;speaks to me.&lt;/p&gt;&#xA;&lt;p&gt;The data and the code used in most of these interactives is open and available&#xA;on &lt;a href=&#34;https://github.com/HindustanTimesLabs/&#34;&gt;GitHub&lt;/a&gt;, which is nice!&lt;/p&gt;&#xA;&lt;p&gt;On the whole, I think they are doing pretty good work, and I shall be on the&#xA;lookout for even better stuff from them. I&amp;rsquo;m sure I&amp;rsquo;ll pick up a thing or two&#xA;from their work, in my projects. Hopefully, other teams doing similar work will&#xA;also learn from there and produce more good stuff for greedy readers like me.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Blog trends from word clouds</title>
      <link>https://punchagan.muse-amuse.in/blog/blog-trends-from-word-clouds/</link>
      <pubDate>Mon, 11 Sep 2017 23:23:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/blog-trends-from-word-clouds/</guid>
      <description>&lt;p&gt;I came across a couple of fun word clouds, and felt like generating a word cloud&#xA;for my blog content to get a sense of the major themes on my blog, over the&#xA;years.&lt;/p&gt;&#xA;&lt;p&gt;With some &lt;a href=&#34;https://github.com/punchagan/data-projects/blob/master/blog/process%5Fdata.py#L134&#34;&gt;simple Python code&lt;/a&gt;, I was able to parse the blog and get the word&#xA;frequency over the years. I then used a &lt;a href=&#34;https://github.com/punchagan/data-projects/blob/master/blog/viz.js&#34;&gt;modified version&lt;/a&gt; of &lt;a href=&#34;http://bl.ocks.org/lorenzopub/820bec1dafa6a5cd11aa23c1268edcbf&#34;&gt;this d3 example&lt;/a&gt; to&#xA;generate a word cloud.&lt;/p&gt;&#xA;&lt;p&gt;Using all the words used in each year to generate the word-cloud, made it very&#xA;noisy. So, I switched to using only the top 50 words for each year.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://punchagan.muse-amuse.in/images/word-cloud-top.gif&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;The word cloud doesn&amp;rsquo;t seem very useful or insightful, but was fun to generate.&#xA;Each year&amp;rsquo;s cloud seems to have some words that gives me a sense of some major&#xA;events/themes for that year, though it may not be very apparent to anybody other&#xA;than me.&lt;/p&gt;&#xA;&lt;p&gt;The years which have a lot of posts have clear winners, but the winning words&#xA;are quite generic. For example, 2007 has words like &amp;ldquo;life&amp;rdquo;, &amp;ldquo;time&amp;rdquo;, etc., as&#xA;winners. To try to get rid of the generic words in the word cloud, I tried a&#xA;quick and dirty &lt;code&gt;tf-idf&lt;/code&gt; based word-cloud, but it didn&amp;rsquo;t really seem to help.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://punchagan.muse-amuse.in/images/word-cloud-tfidf.gif&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;I might get back to this later, to try and improve the &lt;code&gt;tf=idf&lt;/code&gt; word cloud.&#xA;There are also other problems, like code-blocks in posts contributing variable&#xA;names, urls contributing domain names, etc.&lt;/p&gt;&#xA;&lt;p&gt;Also, a simple line chart of the usage of tags vs. year might give a better&#xA;sense of the themes in the blog by year, even though it may not look as fancy as&#xA;a word-cloud.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>30 years of floods in India</title>
      <link>https://punchagan.muse-amuse.in/blog/30-years-of-floods-in-india/</link>
      <pubDate>Sun, 03 Sep 2017 19:01:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/30-years-of-floods-in-india/</guid>
      <description>&lt;figure&gt;&lt;img src=&#34;https://punchagan.muse-amuse.in/images/30-years-floods-cyclone-names.png&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Inspired by &lt;a href=&#34;https://www.axios.com/thirty-years-of-major-flooding-in-the-united-states-2479957846.html&#34;&gt;this post&lt;/a&gt; showing the major flooding events in the US, I created a&#xA;similar graphic for India. You can find an interactive version &lt;a href=&#34;https://punchagan.github.io/data-projects/30-years-floods/&#34;&gt;here&lt;/a&gt; &amp;ndash; hovering&#xA;over each flooding, shows some more information about the event.&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The graphic uses flooding related data from the &lt;a href=&#34;http://www.dartmouth.edu/~floods/Archives/index.html&#34;&gt;Dartmouth Flood Observatory&lt;/a&gt;&lt;/li&gt;&#xA;&lt;li&gt;The data for 2017 events is not up-to date.&lt;/li&gt;&#xA;&lt;li&gt;It is very likely that there is some missing data, and some inaccuracies in&#xA;the data. 1987, for instance, doesn&amp;rsquo;t show the &lt;a href=&#34;https://en.wikipedia.org/wiki/1987%5FBihar%5Fflood&#34;&gt;Bihar flood&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;The flood severity is indicated by the color of each shape&lt;/li&gt;&#xA;&lt;li&gt;Each shape represents the &lt;a href=&#34;http://www.dartmouth.edu/~floods/Archives/ArchiveNotes.html&#34;&gt;geographic flood extents&lt;/a&gt; - based on information&#xA;obtained from news sources.&lt;/li&gt;&#xA;&lt;li&gt;The data for India map shape is obtained from this &lt;a href=&#34;https://github.com/deldersveld/topojson/tree/master/countries/india&#34;&gt;topojson collection&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;It is interesting to look at the severity definitions &lt;a href=&#34;http://floodobservatory.colorado.edu/Archives/ArchiveNotes.html&#34;&gt;here&lt;/a&gt; &amp;ndash; the extreme class&#xA;floods, for instance, are defined to be those that have an estimated recurrence&#xA;interval of over 100 years. In a span of 30 odd years, there are a whole bunch&#xA;of regions which have been affected by extreme floods. Yet another case in point&#xA;showing that the climate change shit has really hit the roof!&lt;/p&gt;&#xA;&lt;h2 id=&#34;code&#34;&gt;Code&lt;/h2&gt;&#xA;&lt;p&gt;I used &lt;code&gt;ogr2ogr&lt;/code&gt; to convert the shape file obtained from the Dartmouth Flood&#xA;Observatory&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;ogr2ogr -f geoJSON data/floods.json FloodArchive_region.shp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This file turned out to be about 6MB. I created a file with only Indian floods&#xA;by parsing the json file.&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;kn&#34;&gt;import&lt;/span&gt; &lt;span class=&#34;nn&#34;&gt;json&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;with&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;open&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;floods.json&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;encoding&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;latin-1&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;as&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;f&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;data&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;json&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;load&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;f&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;india_features&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;data&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;features&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;properties&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;COUNTRY&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;==&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;India&amp;#39;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;data&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;features&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;india_features&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# FIX some names in the data&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;n&#34;&gt;NAME_FIXES&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;Tropical Storm K&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;Tropical Storm Komen&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;),&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;Tropical Storm Hudhug&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;Tropical Storm Hudhud&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;),&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;india_features&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;k&#34;&gt;for&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;fix&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;NAME_FIXES&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;n&#34;&gt;cause&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;properties&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;MAINCAUSE&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;        &lt;span class=&#34;k&#34;&gt;if&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;name&lt;/span&gt; &lt;span class=&#34;ow&#34;&gt;in&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;cause&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;            &lt;span class=&#34;n&#34;&gt;feature&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;[&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;properties&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;][&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;MAINCAUSE&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;=&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;cause&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;replace&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;name&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;fix&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;k&#34;&gt;with&lt;/span&gt; &lt;span class=&#34;nb&#34;&gt;open&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;india-floods.json&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;s1&#34;&gt;&amp;#39;w&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;encoding&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;&lt;span class=&#34;s1&#34;&gt;&amp;#39;latin-1&amp;#39;&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt; &lt;span class=&#34;k&#34;&gt;as&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;f&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;    &lt;span class=&#34;n&#34;&gt;json&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;.&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;dump&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;(&lt;/span&gt;&lt;span class=&#34;n&#34;&gt;data&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;,&lt;/span&gt; &lt;span class=&#34;n&#34;&gt;f&lt;/span&gt;&lt;span class=&#34;p&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The visualization code itself is about a &lt;a href=&#34;https://github.com/punchagan/data-projects/blob/master/30-years-floods/viz.js&#34;&gt;hundred odd lines of d3 code&lt;/a&gt;.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Google Trends, Clickbaits, and PV Sindhu</title>
      <link>https://punchagan.muse-amuse.in/blog/google-trends-clickbaits-and-pv-sindhu/</link>
      <pubDate>Sat, 20 Aug 2016 22:59:13 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/google-trends-clickbaits-and-pv-sindhu/</guid>
      <description>&lt;p&gt;TL;DR&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Am I saying India doesn&amp;rsquo;t have a caste problem?&lt;/p&gt;&#xA;&lt;p&gt;No, it&amp;rsquo;s definitely a HUGE problem!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Are these articles on Google Trends and Sindhu&amp;rsquo;s caste useful at all?&lt;/p&gt;&#xA;&lt;p&gt;Just more click-baits and no useful contribution to the discussion on caste.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;First of all, congratulations to PV Sindhu on making it to the finals and&#xA;giving the world number one a hard fight!&lt;/p&gt;&#xA;&lt;p&gt;This post, though, is not a celebratory one.  I read &lt;a href=&#34;http://www.thenewsminute.com/article/while-pv-sindhu-fought-hard-medal-many-indians-googled-her-caste-48545&#34;&gt;this article&lt;/a&gt; &amp;ndash; While PV&#xA;Sindhu fought hard for a medal, many Indians googled her caste &amp;ndash; by the News&#xA;Minute thanks to a &lt;a href=&#34;https://twitter.com/tmkrishna/status/766844023810117632&#34;&gt;re-tweet by TM Krishna&lt;/a&gt;.  I probably wouldn&amp;rsquo;t have paid much&#xA;attention to it, if not for the retweet by TMK.&lt;/p&gt;&#xA;&lt;p&gt;Caste is a huge problem for the country, and if you still like to pretend it&#xA;isn&amp;rsquo;t &amp;ndash; read &lt;a href=&#34;http://www.firstpost.com/india/from-gujarat-to-gurugram-atrocities-on-dalits-rise-even-as-their-protests-continue-2960548.html&#34;&gt;this&lt;/a&gt; for a start.  I&amp;rsquo;m not surprised that &lt;strong&gt;some&lt;/strong&gt; people searched&#xA;for Sindhu&amp;rsquo;s caste while she was battling it out at Rio.  But, &lt;strong&gt;some&lt;/strong&gt; people&#xA;also searched for Badminton rules, and others for Sania Mirza!  What surprises&#xA;me is that the article doesn&amp;rsquo;t try to put the data in a context at all.  Nor do&#xA;I understand the contribution this article makes to the discussion on caste.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c5.staticflickr.com/9/8541/28818616900%5Fd8e2b33cb0%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;I played around a little more with these search terms and Google Trends, and&#xA;here are a few things that I thought were worth sharing.&lt;/p&gt;&#xA;&lt;h2 id=&#34;indian-trends&#34;&gt;Indian trends&lt;/h2&gt;&#xA;&lt;p&gt;First of all, the article says &amp;ldquo;Many Indians&amp;rdquo;, and gives off cumulative&#xA;month-wise numbers (&lt;strong&gt;UPDATE &lt;span class=&#34;timestamp-wrapper&#34;&gt;&lt;span class=&#34;timestamp&#34;&gt;[2016-08-21 Sun 12:15]&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;: which are so wrong! See&#xA;Sankrant Sanu&amp;rsquo;s &lt;a href=&#34;http://indiafacts.org/lie-graphs-newsminute/&#34;&gt;excellent article&lt;/a&gt; on India Facts).  But, what does it really&#xA;mean?&lt;/p&gt;&#xA;&lt;p&gt;I don&amp;rsquo;t know if anybody actually wrote about how many people actually followed&#xA;the match, but Sindhu actually managed to get a whole lot of people interested!&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c2.staticflickr.com/9/8014/29105184025%5F777ac4e5d0%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;More people searched for PV Sindhu than the daily average number of searches&#xA;(not hits) for Facebook and very close to the daily number of searches for Porn&#xA;&amp;ndash; two of the biggest things Internet is allegedly used for.  Can you see the&#xA;red line at the bottom?  That is the number of people who actually searched for&#xA;Sindhu&amp;rsquo;s caste &amp;ndash; a tiny blip.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s take a closer look.  Here&amp;rsquo;s a plot of some of the other auto suggest&#xA;terms + badminton rules &amp;amp; courts compared to Sindhu&amp;rsquo;s name.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c7.staticflickr.com/9/8507/28818617070%5F9c9fdfeb12%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Nothing other than badminton rules (which is at about 1% of max. searches) is&#xA;even visible, clearly.&lt;/p&gt;&#xA;&lt;p&gt;So, these other terms (wiki &amp;amp; caste being auto-suggested ones) are nowhere near&#xA;the actual number of searches being made for PV Sindhu&amp;rsquo;s name alone.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s get rid of the name graph to get a closer look at the other terms.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c6.staticflickr.com/9/8191/29105184165%5F133734e300%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;The maximum number of people searching for Sindhu&amp;rsquo;s caste is at about a fifth&#xA;of the maximum number of people searching for badminton rules.  Interpreting&#xA;it is upto you.  But, I&amp;rsquo;m not surprised knowing how significant caste has&#xA;been in our society.  Also, notice that searches for wiki and caste fall off&#xA;more gradually than the searches for the rules which peak while the game is&#xA;being played and watched.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Unsurprisingly, a bulk of the searches appear to be coming from Andhra and&#xA;Telangana. Notice that the other states are searching more for the rules or&#xA;her wiki page.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c8.staticflickr.com/9/8169/29105184295%5Ff3e1448d10%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Do you notice that the red (caste), blue (wiki) and violet (images) lines&#xA;following a similar trend, until the last few hours?  What do you think is&#xA;happening there? It&amp;rsquo;s the shitty click baits working!  Look at the trends from&#xA;~8:30AM to ~12:30AM below &amp;ndash; the red has spread to other states as well!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c6.staticflickr.com/9/8049/29105184245%5F6e691d318d%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;And this is how it looks by the evening (17:00-21:00).  Well done, folks!&#xA;The click bait articles totally succeeded!&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c4.staticflickr.com/9/8144/29032147971%5Fc9c3c13fdc%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;If you are wondering how much effect the auto suggestions are having in&#xA;suggesting people to try searching for caste, I don&amp;rsquo;t think that is much&#xA;because wiki and images are the other auto-suggest terms, with no such surges&#xA;in the number of searches.&lt;/p&gt;&#xA;&lt;h2 id=&#34;trends-from-the-telugu-states&#34;&gt;Trends from the Telugu states&lt;/h2&gt;&#xA;&lt;p&gt;We could see that the two Telugu states were more worried about the caste, than&#xA;the rest of the country.  Let&amp;rsquo;s see how abnormal they are.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c8.staticflickr.com/9/8293/29105183935%5F5bc55c03b4%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c3.staticflickr.com/9/8395/28483785994%5F89f1c999e4%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;You can definitely see the red line more prominently.  In case of Andhra the&#xA;peak searches for caste are at about 5% of the name searches.  A statistically&#xA;significant difference from the rest of the country.&lt;/p&gt;&#xA;&lt;p&gt;Let&amp;rsquo;s zoom in at the auto-suggest terms alone.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c7.staticflickr.com/9/8317/28818617430%5Fbca8ed9d1a%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c4.staticflickr.com/9/8265/29105184115%5Fa0a8e34f4b%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;Woah, Andhra is definitely quite an aberration from the rest of the country.&#xA;From about 1/5th of the maximum number of searches for rules, the maximum&#xA;number of caste searches jumps to about twice.  Telangana also is different,&#xA;but much less so.&lt;/p&gt;&#xA;&lt;p&gt;Tamil Nadu&amp;rsquo;s trends below for comparison.  You can&amp;rsquo;t help noticing the last few&#xA;hours, can you?&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;https://c3.staticflickr.com/9/8426/28818617290%5Feb4b3a2535%5Fb.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;&lt;strong&gt;NOTE&lt;/strong&gt;: The trends and screen-shots for the states are slightly more recent&#xA;than the others.&lt;/p&gt;&#xA;&lt;h2 id=&#34;conclusion&#34;&gt;Conclusion&lt;/h2&gt;&#xA;&lt;p&gt;Without a context, I don&amp;rsquo;t really see the point of these &amp;ldquo;news&amp;rdquo; articles.  It&#xA;seems more click-bait-y than useful to me.&lt;/p&gt;&#xA;&lt;p&gt;If you still feel &lt;strong&gt;many&lt;/strong&gt; Indians were searching for Sindhu&amp;rsquo;s caste, while she&#xA;was fighting it out, go ahead and play with Google trends &lt;a href=&#34;https://www.google.com/trends/explore?date=now%25207-d&amp;amp;geo=IN&amp;amp;q=pv%2520sindhu,pv%2520sindhu%2520caste,porn,movies&#34;&gt;here&lt;/a&gt;.  Add/remove&#xA;terms, change the time and location filters.  Some terms that could be&#xA;interesting to add to the comparison are: Kashmir, Independence day, Facebook.&lt;/p&gt;&#xA;&lt;p&gt;Later, I looked at the search results and then found that this article wasn&amp;rsquo;t&#xA;the only one like it.  I didn&amp;rsquo;t bother to read the others, but I really hope at&#xA;least some of them are talking sense.  Is any of them really trying to&#xA;contribute to the discussion on caste, meaningfully?&lt;/p&gt;&#xA;&lt;p&gt;Also, the actual search results don&amp;rsquo;t seem to give useful answers to the folks&#xA;so curious about Sindhu&amp;rsquo;s caste.  I hope none of these articles are trying to&#xA;help them out.&lt;/p&gt;&#xA;&lt;p&gt;Finally, if you are using Google Trends to write an article, &lt;a href=&#34;https://medium.com/@dannypage/stop-using-google-trends-a5014dd32588#.js332qw0h&#34;&gt;Danny Page has&#xA;some really good advice&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;hr&gt;&#xA;&lt;p&gt;Thanks to &lt;a href=&#34;https://twitter.com/kamalx&#34;&gt;Kamal&lt;/a&gt;, &lt;a href=&#34;https://twitter.com/baali%5F&#34;&gt;baali&lt;/a&gt; and &lt;a href=&#34;https://twitter.com/cloud9trt&#34;&gt;9&lt;/a&gt; for reading and reviewing drafts of this.  Errors&#xA;mine, obviously.&lt;/p&gt;&#xA;</description>
    </item>
    <item>
      <title>Thinking about Data Ethics</title>
      <link>https://punchagan.muse-amuse.in/blog/thinking-about-data-ethics/</link>
      <pubDate>Wed, 25 May 2016 00:00:00 +0530</pubDate>
      <guid>https://punchagan.muse-amuse.in/blog/thinking-about-data-ethics/</guid>
      <description>&lt;p&gt;Earlier this month, a researcher made a dataset containing the profiles of about&#xA;70,000 users public. He didn&amp;rsquo;t really see a problem in doing this because he&#xA;felt he was only presenting &lt;a href=&#34;https://twitter.com/KirkegaardEmil/status/730449904909324289&#34;&gt;already publicly available&lt;/a&gt; data in a more usable&#xA;form. was only presenting it in a more usable form.&lt;/p&gt;&#xA;&lt;p&gt;Yesterday, I came across this quote in the very first chapter of &lt;a href=&#34;https://twitter.com/allendowney&#34;&gt;Allen Downey&lt;/a&gt;&amp;rsquo;s&#xA;book &lt;a href=&#34;http://greenteapress.com/thinkstats2/index.html&#34;&gt;Think Stats&lt;/a&gt; which I liked a lot, and reminded me of this incident.&lt;/p&gt;&#xA;&lt;figure&gt;&lt;img src=&#34;//c2.staticflickr.com/8/7193/26969166130_58e4865f47_b.jpg&#34;&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;I hadn&amp;rsquo;t looked at the OKCupid data release and the discussion around it much,&#xA;but I went back and read &lt;a href=&#34;https://points.datasociety.net/okcupid-data-release-fiasco-ba0388348cd#.u8xxlkqsv&#34;&gt;this article&lt;/a&gt; by a social media researcher who thinks a&#xA;lot about these things.&lt;/p&gt;&#xA;&lt;p&gt;She puts forth a lot of interesting ideas to think about ethics. Some things&#xA;that stood out to me are:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Ask yourself how the person whose data you are using feels about the data.&lt;/li&gt;&#xA;&lt;li&gt;Taking a &amp;lsquo;what if&amp;rsquo; impact approach to thinking about data and ethics.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Also, you needn&amp;rsquo;t really call yourself a researcher to be actually doing&#xA;experiments with (or &lt;a href=&#34;http://www.npr.org/2016/05/17/478266839/this-is-your-brain-on-uber&#34;&gt;analyzing&lt;/a&gt;) &amp;ldquo;big-data&amp;rdquo; and discovering and putting out facts&#xA;that have an impact &amp;ndash; however big or small. You should really go read the&#xA;article, whether or not you are a researcher using data.&lt;/p&gt;&#xA;&lt;p&gt;Incidentally, there is a meet-up on &lt;a href=&#34;http://www.meetup.com/DataKind-Bangalore/events/231310093/&#34;&gt;Data Ethics&lt;/a&gt; this weekend in Bangalore. I&amp;rsquo;m&#xA;excited to learn and think more about this, and talk to others who care.&lt;/p&gt;&#xA;</description>
    </item>
  </channel>
</rss>
