<?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 Vaibhav Srivastav on Medium]]></title>
        <description><![CDATA[Stories by Vaibhav Srivastav on Medium]]></description>
        <link>https://medium.com/@vaibhavs10?source=rss-27b2072cd01d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5K1JNlfwWdylYkR1Ii0KgQ.jpeg</url>
            <title>Stories by Vaibhav Srivastav on Medium</title>
            <link>https://medium.com/@vaibhavs10?source=rss-27b2072cd01d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 11:55:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vaibhavs10/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[Analyzing the Effects of Social Distancing: A Statistical Approach]]></title>
            <link>https://medium.com/@vaibhavs10/analyzing-the-effects-of-social-distancing-a-statistical-approach-4e0fa18f867d?source=rss-27b2072cd01d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e0fa18f867d</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[epidemic]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vaibhav Srivastav]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 14:39:23 GMT</pubDate>
            <atom:updated>2020-03-22T14:56:43.652Z</atom:updated>
            <content:encoded><![CDATA[<p>The Coronavirus (COVID-19) has become the talk of the town (or the world?). Everyone has their own story, opinion and in some cases remedy, yikes! In the times when governments across the globe are pushing for lock-downs, self-isolation, quarantines there is a rather large (&amp; young) group of people who are challenging the new status quo and is care-free about the dire repercussions of not staying the f*ck at home.</p><blockquote>This blog is an attempt to provide a data-driven approach to uncover the consequences and spread of 2019-nCoV and a desperate plea to maintain safe distance.</blockquote><p>Social Distancing, the broad idea here is to reduce the one-to-one interaction between individuals to stem the transmission of virus. Essentially entails staying home, avoiding crowds and refraining from touching one another. The effects of distancing can be seen in the GIF below, where the green plot is flattened to spread out the disease as much as possible. This helps to ensure that there are sufficient resources available for a sick population, which will help improve survival rates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dFTSvgh3glCzIdTELVzBXQ.gif" /><figcaption>Graphic depicting the importance of Social Distancing</figcaption></figure><blockquote>But, how do we establish the impact of social distancing in ever-so-changing nCoV pandemic?</blockquote><p>To answer this question, we’ll mull over simulations using a S-I-R (Susceptible — Infectious — Recovered) model to gauge the impact of an viral epidemic.</p><p>Short brief about the model, it divides the (fixed) population of <strong><em>N</em></strong> individuals into three “compartments” which may vary as a function of time, <strong><em>t</em></strong>:</p><ul><li><strong><em>S(t)</em></strong> are those susceptible but not yet infected with the disease;</li><li><strong><em>I(t)</em></strong> is the number of infectious individuals;</li><li><strong><em>R(t)</em></strong> are those individuals who have recovered from the disease and now have immunity to it.</li></ul><h3>TL;DR</h3><p>The blog becomes progressively math heavy, if that’s not what floats your boat, then you can look at the simulation below. The model takes in parameters for <em>contact rate</em>, <em>recovery rate</em>, <em>social distancing factor</em> (<strong>varies from 0–1</strong>) and the <em>overall population</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*eaDCegJVNm2lVUw9IPKJ2w.gif" /><figcaption>Varying degrees of Susceptibility, Infection and Recovery</figcaption></figure><p>The simulation showcases how the number of infected people decrease considerably when the social distancing factor varies (0 corresponds to total lockdown, 1 to free movement).</p><p>Interested in how this all was put together? Read on.</p><p>The SIR model describes the change in the population of each of these compartments in terms of two parameters, <strong><em>β</em></strong> and <strong><em>γ</em></strong>.</p><p><strong><em>β</em></strong> describes the effective <em>contact rate</em> of the disease: an infected individual comes into contact with <strong><em>βN</em></strong> other individuals per unit time (of which the fraction that are susceptible to contracting the disease is <strong><em>S/N</em></strong>).</p><p><strong><em>γ</em></strong> is the mean recovery rate: that is, <strong><em>1/γ</em></strong> is the mean period of time during which an infected individual can pass it on.</p><p>The model then uses <strong><em>β</em></strong><em>, </em><strong><em>γ, N </em></strong>to solve the differential equations defined by Kermack and McKendrick [<em>Proc. R. Soc. A</em>, <strong>115</strong>, 772 (1927)]:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*1E_Lum78aEjNQh38_RRfgw.png" /><figcaption>The differential equations describing this model derived by Kermack and McKendrick</figcaption></figure><h3>Enough talk, lets get simulat-ing!</h3><p>For a successful SIR simulation we would need to 3 key values, <strong><em>β</em></strong><em>, </em><strong><em>γ, N , </em></strong>values, upon research I came across 2 research papers (<a href="https://arxiv.org/pdf/2002.06563.pdf">[1]</a>, <a href="https://www.thelancet.com/journals/langlo/article/PIIS2214-109X(20)30074-7/fulltext">[2]</a>)which go through the existing nCoV cases in china and define the <strong><em>β </em></strong>value as <strong><em>1.75</em></strong></p><p>For the <strong><em>γ</em></strong> value, we look at the existing rate of recovery in days, and it ranges from <strong><em>6–10 days</em></strong> based on the age of the infected person, so we take the average of the minimum and maximum bound, <strong><em>8 days </em></strong>as our gamma value.</p><p>Here’s a quick look at the code used for this analysis, it integrates the equations provided above with our own <strong><em>β</em></strong><em>, </em><strong><em>γ, N </em></strong>(we define N as 133.92 crores i.e. population of India)to plots curves of <strong><em>S(t)</em></strong>, <strong><em>I(t)</em></strong> and <strong><em>R(t)</em></strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1b64ff83c32684d79450e4165c5c8dad/href">https://medium.com/media/1b64ff83c32684d79450e4165c5c8dad/href</a></iframe><p>Upon running the code, we get a visualization (below)with base parameters and assuming there is no social distancing, and everyone goes around the day they usually do.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*2gmXE_i10HdO4dAbMy7gVQ.png" /></figure><p>As you can see, the infected population rate shoots up because of a high contact rate and reaches catastrophic levels of 100 Crore people in a matter of few days, of-course, real-life scenarios would differ from this as this does not account for urban and rural mobility within the model. However, it provides an intuition as to the scale of disease spread.</p><p>Now, Let’s introduce a new value, <strong><em>ρ</em></strong>, to capture our social distancing effect. This is going to be a constant term between 0–1, where 0 indicates <em>everyone</em> is locked down and quarantined while 1 is equivalent to our base case above.</p><p>So, our <strong><em>β </em></strong>value now becomes <strong><em>ρβ</em></strong> with the new effects of social distancing, you can find the updated code for this visualization <a href="https://gist.github.com/Vaibhavs10/e1d969c3c1ef0134f8a7177bc8ceb01c">here</a>.</p><p>Here’s the viz with a SD factor (<strong><em>ρ</em></strong>)of 0.2 meaning everyone isolates themselves except the people manning the front-lines, e.g. Doctors, Firefighters, Police, Pharmacist, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*ki3vd-ua4sz6S5VnjmdGuQ.png" /><figcaption>Graph depicting S-I-R rates with social distancing factor of 0.2</figcaption></figure><p>From the graph above its clear that not only are we delaying the onset of the infection but also reducing the rate of infection massively. Isolation would also give enough time to the authorities to prepare for the inevitable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*eaDCegJVNm2lVUw9IPKJ2w.gif" /><figcaption>Varying degrees of S-I-R with SD factor ranging from 0.2 to 1.0</figcaption></figure><p>Above is the graph of cycling <strong><em>ρ</em></strong> values from <strong>0.2–1.0</strong> range to simulate the effect of social distancing. It clearly echo’s that as we start isolating each other, the impact of the virus decreases considerably!</p><blockquote>With this, I implore you to isolate yourself and your family members (specially old-age individuals), if not for others do it for yourself.</blockquote><p>Don’t forget to wash your hands, also this too shall pass!!</p><p><strong>Note</strong>: If you have ideas around Data Science, Google Cloud / or are interested in collaborating, do drop me a note on Twitter (<a href="https://twitter.com/reach_vb"><strong>@reach_vb</strong></a>) or E-mail at <a href="/service/mailto:vaibhavs10@gmail.com"><strong>Vaibhavs10@gmail.com</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e0fa18f867d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[With more than 20 Million pending cases (civil/ criminal) where is India headed?]]></title>
            <link>https://medium.com/@vaibhavs10/with-more-than-20-million-pending-cases-civil-criminal-where-is-india-headed-149183ff0a30?source=rss-27b2072cd01d------2</link>
            <guid isPermaLink="false">https://medium.com/p/149183ff0a30</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[judicial]]></category>
            <category><![CDATA[crime]]></category>
            <category><![CDATA[civil-rights]]></category>
            <dc:creator><![CDATA[Vaibhav Srivastav]]></dc:creator>
            <pubDate>Fri, 05 Aug 2016 13:50:29 GMT</pubDate>
            <atom:updated>2016-08-10T17:29:52.462Z</atom:updated>
            <content:encoded><![CDATA[<p>Yes, you heard that right, there are more than 20 Million pending civil/ criminal cases in district courts as of yesterday.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/466/1*rxv3gQHJHWUe_YcZMfJUpg.png" /><figcaption>Data Source: <a href="http://njdg.ecourts.gov.in/njdg_public/main.php">http://njdg.ecourts.gov.in/njdg_public/main.php</a></figcaption></figure><p>If you see the Info graphic on your left side you can see that not only India has a huge number of cases to dispose but also that the number of criminal cases pending in district courts is roughly 2 times that of civil cases, so much for fast track courts *sigh*</p><p>These pending cases not only just comprise of recent cases but cases going way back till 10 years old too, according to <a href="http://njdg.ecourts.gov.in/njdg_public/main.php">stats</a> more than 10 year old cases across India constitute about 10.04%, 5–10 year old cases of 16.69%, 2–5 year old cases of 29.14% and less than 2 year old 44.13%.</p><p>Let’s see if we can dig deeper into this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/545/1*fyMoTQ-32HAw0vR6bk3Nvw.png" /><figcaption>Data for some states wasn’t available hence are not included</figcaption></figure><p>Taking a look at Total pending cases by state in India, Uttar Pradesh takes the lead with more than 52 lakh pending cases, Maharashtra comes second with more than 30 Lakh cases followed by Gujarat and Bihar.</p><p><a href="http://timesofindia.indiatimes.com/india/Opposition-tutoring-Bulandshahr-victims-for-political-gains-says-UP-CM/articleshow/53541124.cms">Uttar Pradesh</a> and <a href="http://indianexpress.com/article/education/bihar-toppers-scam-rubi-wants-to-be-a-lawyer/">Bihar</a> have been in news recently due to a lot of criminal activities or some bizarre incident happening.</p><p>Though Gujarat has <a href="http://indianexpress.com/article/cities/ahmedabad/three-commercial-courts-start-functioning-in-gujarat-2829640/">recently</a> started 3 new commercial courts to cater to these needs but these will only deal with matters which involve finances over a crore only this wouldn’t directly effect this but can be a contributing factor.</p><p>Can this be a contributing factor for crimes in these states?</p><p>Is our judicial infrastructure so weak that even fast track courts haven’t been able to cover this backlog</p><p>or Is it the typical “Sab chalta hai” attitude that is taking our judicial system down?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*-6MdLDXUUUgsV5OcSBvBfA.png" /><figcaption>White spaces represent Data not Available</figcaption></figure><p>Let’s go one notch deep and see how many cases are filed to that of disposed by Indian Courts:</p><p>On your right you can see a Geo chart which points something really interesting that more than 65% of the states have a ratio more than 1, that is, The number of cases filed in the previous month are more than the number of cases disposed by the court.</p><p>Which clearly points out that our courts are not even able to deal with the current filed cases that they have, then how can we expect them to clear the huge 20 Mil backlog.</p><p>Towards the end let’s see how much time will these courts take to finish dispose all the cases pending (not considering future cases):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*pqwj8Q__d1TYDA6r-u7O2w.png" /></figure><p>In this graph we are assuming that the courts will function as they are functioning right now, given that the previous month was more or less normal.</p><p>We can see that the average number of years that courts will take is greater than 6 years!</p><p>With states like West Bengal, Orissa taking more than 8 years to do the same.</p><p>Starting <a href="http://njdg.ecourts.gov.in/njdg_public/index.php">NJDG</a> (National Judicial Data Grid) is a good step in bringing transparency and accountability towards the judicial system in India, but we’re still miles away in making this mess make sense.</p><p>Suggestions:</p><ol><li>Fast track courts: We have a lot of them but these aren’t optimised to their right potential, if implemented properly and in an organised fashion will help in decreasing the pendency of cases, these will be more focused and a district level implementation could also be something that can be looked into.</li><li>Strict norms against stalled cases: A number of times it’s the offender/ defender who stall the case intentionally, either by not showing or by faking a serious medical issue, etc, these should be taken seriously and strict penalties should be imposed on them.</li><li>Penalties on judges taking frequent leaves: This is one of the major reasons why courts postpone hearings and hearing as judges themselves are not available most of the times.</li></ol><p>While all this being said, with right amends in legislation and redundant policies coupled with reinforced infrastructure would go a long way in reducing this number.</p><p>Have more suggestions? Let’s hear it in the comments sections.</p><p>Have an Idea or want to engage in a conversation? hit me up at vaibhavs10[at]gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=149183ff0a30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Narendra Modi and Barack Obama, How similar are they?]]></title>
            <link>https://medium.com/@vaibhavs10/narendra-modi-and-barack-obama-how-similar-are-they-9e94dc599789?source=rss-27b2072cd01d------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e94dc599789</guid>
            <category><![CDATA[barack-obama]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[narendra-modi]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[united-states]]></category>
            <dc:creator><![CDATA[Vaibhav Srivastav]]></dc:creator>
            <pubDate>Thu, 23 Jun 2016 15:23:51 GMT</pubDate>
            <atom:updated>2016-06-24T01:32:12.491Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*LFQ3FgJwr4MM0R8tIaCHnA.jpeg" /><figcaption>Source: www.newindianexpress.com</figcaption></figure><p>People around the world have taken a lot of angles to see how similar Narendra Modi and Barack obama, <a href="http://www.hindustantimes.com/india/leaders-alike-10-similarities-between-obama-and-modi/story-mqZwjjYa64CjvMkvuut1YK.html">here!</a> Many have covered the way they stand, their foreign policy, reforms, etc., I decided to see it from a different angle by looking at the way they speak!</p><p>For this I took both <a href="http://time.com/3736357/barack-obama-selma-speech-transcript/">Barack Obama</a> and <a href="http://www.narendramodi.in/pm-s-address-to-the-nation-on-69th-independence-day-211458">Narendra Modi’s</a> I-Day speech and did sentiment and word frequency analysis on it, which gave pretty amazing results.</p><p>Here, is a word cloud of both their speeches, side-by-side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bRFkl1M0OErkBTyeKFFAGQ.png" /></figure><p>As you can see from the above image that a lot of words repeat in both of their speeches which can to an extend mean that they both are talking along the same lines. The larger words are the ones which are used most. One can also sense a resemblance in the background about change, law, right, development.</p><p>Let’s take a deeper look into this and see their most used words:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*veUVUYnmCsNWul8kkGT-HQ.png" /><figcaption>Green words are similar</figcaption></figure><p>If you see both of them talk about how to unite their country, how to make lives better for people, letting reforms shape a new country and why it is very essential for us to start working from today at this moment, all of these are reflected by the table above, apart from the local issues they both are talking about the same broad framework upon which the country should function.</p><p>But these are just words, so I went a little bit more deeper to see the what overall sentiment does the speech exhibit:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIrgSkYO7ntSjZ9ICCJyIg.png" /></figure><p>This tells a lot about both of their speech, both the speech practically show the same sentiments.</p><p>Which can be attributed to a lot of reasons like:</p><ol><li>They both had an under privileged background.</li><li>They both have the same idea of hope.</li><li>They both know how to pull crowd and how to use social media.</li><li>They both have/ had massive redevelopment programs.</li></ol><p>In the end it is safe to say that they both are very similar in the way they speak and communicate at least!</p><p>Thank You for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e94dc599789" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Suicides in India, how troubled are we? [visualized]]]></title>
            <link>https://medium.com/@vaibhavs10/suicides-in-india-d24ff991fd7a?source=rss-27b2072cd01d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d24ff991fd7a</guid>
            <category><![CDATA[india]]></category>
            <category><![CDATA[suicide-prevention]]></category>
            <category><![CDATA[suicide-awareness]]></category>
            <category><![CDATA[society]]></category>
            <category><![CDATA[education]]></category>
            <dc:creator><![CDATA[Vaibhav Srivastav]]></dc:creator>
            <pubDate>Thu, 16 Jun 2016 12:08:51 GMT</pubDate>
            <atom:updated>2016-06-17T11:08:12.934Z</atom:updated>
            <content:encoded><![CDATA[<p>Suicide is the act of intentionally causing one’s own death.</p><p>About <em>800,000</em> people commit suicide worldwide every year, of these <em>17%</em> are residents of India. The male to female suicide ratio has been about <em>2:1</em> in India. On an average a total number of suicides in India per day is <em>300</em>!</p><p>As per the reports of <strong>Accidental Deaths and Suicides in India 2014</strong> and <strong>National Crime Records Bureau</strong>, the total number of suicides in India as per 2014 statistics is <strong><em>1,09,456</em></strong>.</p><p>How troubled are we?</p><p>Let’s take a deeper look into this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*vWkCA_iMIZu6yl33y3peqA.png" /></figure><p>Puducherry tops this list followed by Andaman and Nicobar Island, sikkim and telangana with more than 45 suicides per 100000 people in each of these states.</p><p>Reason?</p><p>There can be a lot of explanations for the same, right from Mental Illness to Unemployment to Social isolation to lack of education to what not, but the real question is that out of 29 states and 7 Union Territories why is it that 5 states/UTs are contributing to more than <strong>75%</strong> of the suicides in this country.</p><p>To answer this why lets look into the cause or motivators of suicide in India:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*mxGKXRsrIsQfEW-LQD5slQ.png" /></figure><p>Here, we can clearly see that one of the key motivators or cause for the same is “Other Family problems”, these can be anything ranging from inter caste marriage to small family disputes, but in a country based on the values of togetherness and oneness is this the right example we are setting?</p><p>Similarly for “Marriage Related Issues” and “Dowry Related Issues”, are we making people prosper in a family or pushing them of the edge?</p><p>Let’s deep dive a little bit more into relationship between Male and Female suicides by their Educational Qualification in India:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*s1rBAwyl_5bHULAfbq2xaA.png" /></figure><p>More educated a person is more likely he/she is to commit a suicide, are we educating ourselves only for them to jump of that ledge?</p><p>Is our environment so unfavorable that even after being so educated they are forced to take their own lives?</p><p>Reason can be any of the one stated in the above graph but this tells us that it is us and only us who are at fault for this, and we can only make it better.</p><p>So far, we’ve looked at this at a state level and educational level, lets look into how suicide among youth in our country by profession in the country:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*zIbWCUTVJ4i531CNxPjBkg.png" /><figcaption>Blue:Red is the ratio, do not confuse it with the numbers</figcaption></figure><p>Which just proves the point said in the starting that <em>Male:Female</em> suicide ratio is around <em>2:1.</em></p><p>Recommendations:</p><ol><li><strong>Reducing social isolation</strong>: Making our lives more interactive, looking out for each other, spreading happiness instead of stress in this country, these can be as small as community programs, or nationwide campaigns to bring people together.</li><li><strong>Treating mental illness</strong>: Mental illness is still treated as a taboo in India, addressing these problems can be the first step to reducing suicides in our country steps can be launching a nationwide suicide prevention helpline like <a href="http://www.aasra.info/">here</a>!</li><li><strong>Banning pesticides, poisons, etc</strong> : This may be a bit far fetched but right now a person can easily get hold of acid, poison, etc than painkillers, we need to change this, steps can be releasing licenses for farmers to get hold of pesticides, etc.</li></ol><p>What do you think about it?<br>Let’s talk in the comment section or reach me at vaibhavs10@gmail.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d24ff991fd7a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>