<?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 Konark Jain on Medium]]></title>
        <description><![CDATA[Stories by Konark Jain on Medium]]></description>
        <link>https://medium.com/@konark145?source=rss-e7bce3ee434b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dKihL-lWoOscZId17EcTbA.jpeg</url>
            <title>Stories by Konark Jain on Medium</title>
            <link>https://medium.com/@konark145?source=rss-e7bce3ee434b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 01:17:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@konark145/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[Ramblings on some short stories…]]></title>
            <link>https://medium.com/@konark145/ramblings-on-some-short-stories-d085252878c1?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d085252878c1</guid>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Mon, 16 May 2022 10:51:05 GMT</pubDate>
            <atom:updated>2022-05-18T08:41:03.803Z</atom:updated>
            <content:encoded><![CDATA[<p>I love to read short stories which have a great message at the end. Manto is one of my absolute favourites but those stories — and the lessons learnt from them — are probably too.. saucy to share here. Another author I love is Ted Chiang (you may have seen the movie Arrival which he wrote), I have read his second collection Exhalation and am currently making through the first one “The Story of You and Others”. Here’s my takes on them — again this is more for future me than anyone else but glad to make use of Medium to share my thoughts.</p><p>I’ll update this along as I make my way through the collections. Feel free to send along your thoughts about it. Ofcourse full spoilers ahead.</p><h4>Tower of Babylon</h4><p>The story, for me, is about the vanity of people. They spend so much effort and time, centuries, if I’m not wrong, to build this tower to The Vaults of Heaven — entire cities of people who’ve never touched ground living on the tower, their whole lives spent in pulling carts, making the tower higher one brick at a time — all to find out that the world they live in is wrapped upon itself like a torus and the tower they built is nothing but a full circle in the toroidal direction. The parallel I draw from this to real life is that you work towards a goal tirelessly and if you’re passionate and unrelenting enough, you will eventually reach that goal, feeling that all your life and more has been spent in building the path to this goal but when you ultimately achieve it, you don’t feel anything of the scale of your dreams. I’ve been a very “journey before destination” guy — thanks, Sanderson, for that — but this story is a slap in the face on that. Perhaps not all journeys are meant to be taken?</p><p>Another hot take — which I believe Chiang was going for here — could be that the people of Babylon didn’t really “waste” their efforts. The realization that the world is a closed torus and there really is no heaven must be liberating. The point the story makes is that they are mesmerized by the beauty of the Creator and their Creation’s design of a torus but when they take a deeper look, I’m sure they’ll realize that working towards a potential infinite reward is not only extremely stupid but simply pointless. They should start living their moments on their Earth as fruitfully and happily as possible without worrying about the path to heaven. This has been a theme in some of the other stories by Chiang and it could very well be the case here as well.</p><p>I especially feel very related to this story, surprise-surprise — another life lesson I feel related to due to recent events (perhaps everyone does it, but personally I find it quite strange that whatever I read, watch, seems to connect with me when I’m going through a rough patch, quite possible it’s a trick the emotionally vulnerable mind plays), since I recently spent a lot of effort on something for a long period time which resulted in nothing to show for. It’s a horrible feeling but I kept reminding myself of “journey before destination” and “glad that I atleast had fun in the journey”. As I mentioned before it’s a diametrically opposite outlook towards the whole thing and it is, kind-of, comforting. It left me thinking that didn’t the people of Babylon atleast consider the possibility that this multi-century long effort to build a tower to the heaven might lead to absolutely nothing? Did I, when I started my journey? Did I, during the journey? It’s quite interesting how myopic people can become when they are focused (yes, I know there’s an optics pun there). Perhaps it’s nice to take some time and think about your goals before you move heaven and earth to achieve them.</p><p>What’s the rush mate? Take your time.</p><h4>Understand</h4><p>This story is about a person who is given a drug which enhances their mental abilities. The person becomes progressively more intelligent through the story with further doses and eventually becomes a rogue realizing that CIA might treat them as a weapon or a threat. It’s an interesting philosophical question to ask — what if you had the opportunity to become more intelligent? Well obviously you’ll take it the first chance you get — ignorance is a bliss won’t apply since I assume intelligence here also means emotional intelligence and the capability of handling your own emotions on a much better scale. The question is what would you do with this intelligence. World domination? Solve the biggest problems in science? Altruism? The protagonist chooses the second option but they never really publish their findings. That could be because they’re on the run and avoiding the CIA is a major concern. I feel very uneasy after reading this story if I’m being honest. The protagonist spends an insane amount of effort in avoiding being captured and is ultimately killed by another hyper-intelligent person who chose to use his intelligence for altruism. I’m realising that it’s not a treatise on the philosophical question of intelligence. It’s a thriller story. Interesting start and opens a lot of wondrous doors to ponder over but, not my favourite.</p><p>I was very jealous of the protagonist’s abilities of learning new things so fast and their drive to be this innovative and their ingenuity. Not much lessons learnt here for me — just that I shouldn’t be discounting the area of social intelligence. It seems to be vital to be able to interact with other people efficiently. Gave me some things to think over.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d085252878c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Kindle Highlights]]></title>
            <link>https://medium.com/@konark145/my-kindle-highlights-485b55b97a62?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/485b55b97a62</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[kindle]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[quotes]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Fri, 17 Jul 2020 05:18:19 GMT</pubDate>
            <atom:updated>2020-07-17T05:18:19.304Z</atom:updated>
            <content:encoded><![CDATA[<p>I bought my Kindle (the basic one, not the paperwhite or oasis or what have you) on 16th July 2019. Today is the one year anniversary of the thing and I truly believe it might be one of the best investments I made.</p><p>Prior to that, I believed that I didn&#39;t need <em>another</em> device manufactured by a foreign company for “reading books of all things” but when I used one of my friend’s Kindle for a couple of months, I was sold. I then had the brilliant idea of gifting it to myself from the money I earned from my internship and here we are! One year into it and I have replaced watching TV shows with reading as my primary boredom killer. I read 25+ books during this year which is more than 3 times the number of books I read during the last year and it’s all because of the user experience of the Kindle 10th Gen.</p><p>So I thought, why not make a collection of the highlights I made while reading all those books? So here it is and it is mostly meant as a self-reference kind of a thing but if it’s at all useful for any other readers, I’ll be elated. (Some of the non-fiction books I read have too many highlights to add here, so I guess I will make another post for each of them? I’m not sure. Let’s see if I can find the time for it!) I apologize in advance for the Hindi books’ quotes. I try to read at least one Hindi (which is my mother tongue) book along with my other books (I read, on average, 6–8 books in parallel.).</p><p><strong>The Final Empire</strong></p><ol><li>“If you let someone get too close, it would just give them better opportunities to betray you.”</li><li>“What is belief — what is faith — if you don’t continue in it after failure?”</li></ol><p><strong>The Well of Ascension</strong></p><ol><li>“His search for truths could never be completed, but neither could it be ignored.”</li><li>“A man was defined not by his flaws, but by how he overcame them.”</li><li>“If you perpetuate the dreams of the past, then you stifle your own dreams of the future.”</li><li>“At first glance, the key and the lock it fits may seem very different,” Sazed said. “Different in shape, different in function, different in design. The man who looks at them without knowledge of their true nature might think them opposites, for one is meant to open, and the other to keep closed. Yet, upon closer examination, he might see that without one, the other becomes useless. The wise man then sees that both lock and key were created for the same purpose.”</li><li>“Those who take lightly promises they make to those they love are people who find little lasting satisfaction in life.”</li></ol><p><strong>The Hero of Ages</strong></p><ol><li>“Being in charge isn’t about doing anything — it’s about making certain that other people do what they’re supposed to! Delegation, my friend. Without it, we would have to bake our own bread and dig our own latrines!”</li></ol><p><strong>Idea Makers</strong></p><ol><li>“Feynman loved doing physics. I think what he loved most was the process of it. Of calculating. Of figuring things out. It didn’t seem to matter to him so much if what came out was big and important. Or esoteric and weird. What mattered to him was the process of finding it. And he was often quite competitive about it.”</li><li>Once he’d gotten the answer, he’d go back and try to figure out why it was obvious.</li><li>Yet the statement says that it is unprovable. So here, then, is a statement within mathematics that is unprovable by mathematics: an “undecidable statement”. And its existence immediately shows that there is a certain incompleteness to mathematics: there are mathematical statements that mathematical methods cannot reach.</li><li>One might think of undecidability as a limitation to progress, but in many ways it is instead a sign of richness. For with it comes computational irreducibility, and the possibility for systems to build up behaviour beyond what can be summarized by simple formulas. Indeed, my own work suggests that much of the complexity we see in nature has precisely this origin. And perhaps it is also the essence of how from deterministic underlying laws we can build up apparent free will.</li></ol><p><strong>Parallel Worlds</strong></p><ol><li>“Why is it that you physicists always require so much expensive equipment? Now the Department of Mathematics requires nothing but money for paper, pencils, and waste paper baskets and the Department of Philosophy is better still. It doesn’t even ask for waste paper baskets. ”</li><li>When Einstein later complained that “God does not play dice with the world,” Bohr reportedly fired back, “Stop telling God what to do.”</li></ol><p><strong>Elantris</strong></p><ol><li>Pain lost its power when other things became more important.</li><li>“Truth can never be defeated, Sarene. Even if people do forget about it occasionally.”</li><li>Ashe replied, “but to live is to have worries and uncertainties. Keep them inside, and they will destroy you for certain — leaving behind a person so callused that emotion can find no root in his heart.”</li></ol><p><strong>Red Sister</strong></p><ol><li>“All the world and more has rushed eternity’s length to reach this beat of your heat, screaming down the years. And if you let it, the universe, without drawing breath, will press itself through this fractured second and race to the next, on into a new eternity. Everything that is, the echoes of everything that ever was, the roots of all that will ever be, must pass through this moment that you own. Your only task is to give it pause and to make it notice.”</li><li>“They fear the possibility of failure — just as the fear of death weighs so many down when they fight. The warrior though hates fear: it’s an attack like any other and must be fought. She throws herself at it, all or nothing, she dares it and disdains it. Death claims us all in the end, but the warrior chooses the ground on which she meets it, and the manner, she makes death run to catch up!”</li><li>“Those that burn short burn bright. The shortest lives can cast the longest shadows.”</li><li>“Your death has not been waiting for your arrival at the appointed hour: it has for all the years of your life, been racing towards you with the fierce velocity of time’s arrow. It cannot be evaded, it cannot be bargained with, deflected or placated. All that is given to you is the choice: meet it with open eyes and peace in your heart, go gentle to your reward. Or burn bright, take up arms, and fight the bitch.”</li><li>“Every star, turning in the black depth of heaven, burns for no better reason than that humanity raised its face to look. Every great deed needs to be witnessed. Go out and do something great.”</li></ol><p><strong>Exhalation</strong></p><ol><li>“Hope that you were motivated by a desire for knowledge, a yearning to see what can arise from a universe’s exhalation. Because even if a universe’s life span is calculable, the variety of life that is generated within it is not.”</li><li>“Contemplate the marvel that is existence, and rejoice that you are able to do so.”</li><li>“My message to you is this: Pretend that you have free will. It’s essential that you behave as if your decisions matter, even though you know they don’t.”</li><li>“Writing lets you look at your thoughts in a way you couldn’t if you were just talking, and having see them, you could improve them, make them stronger and more elaborate.”</li></ol><p><strong>Warbreaker</strong></p><ol><li>“If you do nothing, then the problems are as much your fault as if you had instigated them.”</li><li>“You want to be competent? You want to learn to be in control of what goes on around you, rather than just being pushed around? Then you’ll have to learn to deal with failure.”</li></ol><p><strong>The Way of Kings</strong></p><ol><li>“But expectations were like fine pottery. The harder you held them, the more likely they were to crack.”</li><li>“A blank page was nothing but potential, pointless until it was used.”</li><li>“The body needs many different foods to remain healthy. And the mind needs many different ideas to remain sharp.”</li><li>“It was fulfilling to be able to do something where progress was obvious.”</li><li>“Let your actions defend you, not your words.”</li><li>“If we do nothing with the knowledge we gain, then we have wasted our study. Books can store information better than we can — what we do that books can’t is interpret. So if one is not going to draw conclusions, then one might as well just leave the information in the texts.”</li><li>“Keep in mind that channelling your capacities and stifling them are two separate things.”</li><li>“Life before Death. Strength before Weakness. Journey before Destination.”</li></ol><p><strong>The Hobbit </strong>(First Re-read after 2015)</p><ol><li>There is nothing like looking if you want to find something. You certainly usually find something, if you look, but is not always quite the something you were after.</li></ol><p><strong>Mahabharata </strong>(Currently Reading)</p><p><em>Although I’m a devout atheist, Mahabharata is one of the best ever fantasy series written with a million life lessons. I thought it would be an excellent exercise to go through it at least once in my life so I picked the unabridged Hindi translated version from Gorakhpur press.</em></p><ol><li>जो वेदस्वरूप उत्तम ज्ञान के दाता गुरु का आदर नहीं करता, वह कलंकित हो कर नरकगामी होता है।</li><li>जो मनुष्य अपनी निन्दा सह लेता है, उसने सारे जगत्‌पर विजय प्राप्त कर ली।</li><li>एक मनुष्य सौ वर्ष तक निरन्तर यज्ञ करे और दूसरा क्रोध न करे तो उससे क्रोध न करने वाला ही श्रेष्ठ है।</li><li>अब मुझे निश्चय हो गया कि विषयों के भोग की कामना उनके भोग से शान्त नहीं होती। आग में जितना घी डालते जाओ, वह बढ़ती ही जाती है। पृथ्वी में जितना भी अन्न, सोना, पशु और स्त्रियाँ हैं वे एक कामुक की कामना पूर्ण करने में भी असमर्थ हैं। इसलिये सुख उनकी प्राप्ति से नहीं, उनके त्याग से ही होता है। दुर्बुद्धि लोग तृष्णा का त्याग नहीं कर सकते। बूढ़े होने पर भी वह बूढ़ी नहीं होती। वह एक प्राणान्तक रोग है। उसे छोड़ने पर ही सुख मिलता है।</li><li>दुःख से जले नहीं; सुख से फूले नहीं। दोनों में समान रहे।</li><li>स्वर्ग के सात द्वार हैं — दान, तप, शम, दम, लज्जा, सरलता और सब पर दया।</li><li>अभय के चार साधन हैं — अग्निहोत्र, मौन, वेदाध्ययन और यज्ञ। यदि अनुचित रीति से अहंकार के साथ इनका अनुष्ठान होता है तो ये भय के कारण बन जाते हैं।</li><li>शास्त्र स्पष्ट शब्दों में कहते हैं कि कुल के लिये एक मनुष्य का, ग्राम के लिये एक कुल का, देश के लिये एक ग्राम का और आत्मकल्याण के लिये सारी पृथ्वी का भी परित्याग कर।</li><li>बड़े-बड़े कुलीन भी अपने अन्तःकरण पर वश न होने के कारण काम के फंदे में फँस जाते हैं और अपने ही हाथों अपनी दुर्गति करते हैं।</li><li>मनुष्य चार ऋण लेकर जन्म लेता है — पितृ-ऋण, देव-ऋण, ऋषि-ऋण और मनुष्य-ऋण। यज्ञ से देवता, स्वाध्याय और तपस्या से ऋषि, पुत्र तथा श्राद्ध से पितर एवं परोपकार से मनुष्य का ऋण उतरता है।</li></ol><p><strong>The Stand</strong> (Currently Reading)</p><ol><li>“Responsibility is a pie. Some of the responsibility goes with all the charity work she does, but you’re only kidding if you think you’re not going to have to cut a big, juicy, bitter piece for yourself. And eat every bite.”</li></ol><p><strong>Godan</strong> (Currently Reading)</p><ol><li>काना कहने से काने को जो दुःख होता है, वह क्या दो आँखों वाले आदमी को हो सकता है?</li></ol><p>So that’s it for this year. You can find the whole list of books I read and plan to read on my <a href="https://www.goodreads.com/user/show/110328407-konark-jain">Goodreads here</a>. Feel free to follow me there. Unfortunately, I don’t accept any friend requests on Goodreads because it just fills my activity feed by the activities of my friends which is a pretty bad feature of the website.</p><p>Anyway, I hope this list added something to your values. And I <em>really </em>hope all of this will add something to <em>my </em>values when I go through these in the future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=485b55b97a62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stats Series #2 — MCMC]]></title>
            <link>https://medium.com/iitg-ai/stats-series-2-mcmc-50913f8bf6b3?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/50913f8bf6b3</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Wed, 13 Nov 2019 16:57:59 GMT</pubDate>
            <atom:updated>2019-11-13T18:05:55.302Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stats Series #2 — MCMC</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/0*Hz2cQcNf6L4whRcU" /><figcaption>MC Bayes — The dopest reverend there ever was.</figcaption></figure><h3>Sampling</h3><p>What is sampling? Sampling is the act of “picking out the n number of balls from an urn”. More mathematically, it’s the process of taking an observation out of a general population with a well-defined probability distribution over the observations.</p><p>Now, this probability distribution of your data is almost never available to us, generally, and we would like to figure this distribution out by sampling so many times that we come close to exhausting all the <em>probable</em> observations in the sample space and can generate an approximate probability distribution. This is very readily doable for univariate case i.e. when only one variable is <em>varying. </em>When it comes to multiple variables we kind of run with our tails between our legs to Reverend Bayes as shown above with his famous Bayes Rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/0*aeA5czvsKT2qusFu" /></figure><p>For this, we now need to know the likelihood i.e. P(A|B) which is, <em>surprise surprise, </em>very difficult!</p><h3>Ancestral Sampling</h3><p>So what if you <em>had </em>some information of the variables in the multivariate case? Let’s say they were affecting each other directly and formed a network of ancestors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*TWzJ5O-rn6UWvk3524ISVw.png" /><figcaption>An ancestral network for the variables x(i)</figcaption></figure><p>An example can be seen here. We can then calculate all the likelihoods easily using this diagram and just use sampling in a forward sense. For example, here we can just go with sampling 1 &amp; 2 then 3 then 4 &amp; 5 and finally 6. And we get:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*a9w_QBbrIEV12f9I4JIpqA.png" /></figure><p>Pretty simple right? In many cases, we <em>are </em>able to build such belief networks as they are popularly known as but ancestral sampling has an obvious problem.</p><p>What if we had some conditions over a specific variable? For example, let’s say you’re planning a trip and the X3 guy will only come if X1 and X2 are coming, X4 and X5 won’t come if X3 is not coming and X6 wants X4 and X5 to make it to the trip to even considering paying a penny. Now, what if we wanted to check the scenario that what if X6 is definitely going. What is the scene now? How will the trip bus now look like?</p><p>Well to be short, it gets complicated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*OYqMn6vc8zYf3oIMZe-r3Q.png" /><figcaption>What a mess, right?</figcaption></figure><p>This situation is known as having evidence and X6 is known as an evidential variable. Ancestral sampling is plain stupid when sampling with evidential variables.</p><h3>Gibbs Sampling</h3><p>Josiah Gibbs, among his seemingly endless contributions to physics and chemistry (<em>ah when true polymaths walked this earth</em>!), invented this method of sampling.</p><p>The idea is simple. We clamp all the variables but one and sample that variable. We, therefore, get a totally new sample than the previous one. We then continue this for all variables. Therefore successive samples differ only in one variable. How is this sampling possible? Well, if you clamp all the variables except one, you’re essentially sampling from the distribution:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*lWbMOQeqyVw9dDM1a5gZ3w.png" /></figure><p>which is a univariate distribution and easy to sample from!</p><p>It’s quite simple but brilliant. The problem of evidential variables is solved pretty sweetly: we just don’t do probabilistic sampling for the variables which have evidence.</p><p>As you can imagine, Gibbs sampling is extremely slow to move. Also, it is quite useless when it comes to highly correlated variables.</p><h3>Monte Carlo Markov Chain (MCMC)</h3><p>We generalize the above method in a much stronger sampling technique known as MCMC.</p><blockquote>I am writing this blog as a precursor to the research paper I published in the Neurocomputing journal some time ago. It can be viewed <a href="https://www.sciencedirect.com/science/article/pii/S0925231219308069?via%3Dihub">here</a> on the journal’s website and <a href="https://arxiv.org/abs/1811.04343">here on ArXiV</a>. It seeks to improve MCMC and I like to call it MCMCMC (for multi chain MCMC) but it officially is called Parallel Tempering MCMC. Anyway, the following math is extremely clever and this is the most exciting part of the blog.</blockquote><p>So! Let’s begin.</p><p>Let’s say we know what our multivariate distribution <em>is </em>in the sense that we know how it looks like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/130/1*qAoWyaT68oGPX8xAm6NBcw.png" /></figure><p>So here it is. x is a vector. We know p*(x) but not Z which is an intractable constant of integration. We often have this situation in practice. We can just assume the variables to come from a normal distribution and start building the conditional distributions from then on. We will now work on another distribution q_∞ which will converge to p(x) at the end of eternity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*Xl3ZLcuFsEPoeRz1FdV0KQ.png" /></figure><p>This is always possible since an irreducible Markov Chain has the property of having a stationary distribution. q(x’|x) is the conditional distribution that can be extracted from p(x) using this MCMC technique. So basically what we want is to get this q(x’|x) somehow and just use that to do forward sampling. Since the above equation holds, we can then conclude that the samples we get are indeed from p(x) and we have solved the problem at hand! We don’t need to calculate Z and we can still sample from p(x).</p><p>Now we further simplify the task of attaining q(x’|x) by noting that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/211/1*pF1KSsgPMwlE2KAoXzjKBA.png" /></figure><p>and therefore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/158/1*XXfLHAVH5rJldG7D7fraqw.png" /></figure><p>This is known as the detailed balance condition and we will be using it next. Now let’s take a step back and look at what we <em>really</em> want to do. Sampling as explained earlier is making an observation out of an intractable PDF. So we have an initial guess on the PDF’s shape in our hands: p*(x) and we have our detailed balance condition and that sampling from q(x’|x) is equivalent to sampling from p(x). We now want to calculate this q(x’|x) from a proposal distribution (q̅(x’|x)) that we very often calculate using another model. In my paper(referred above), we use the likelihood function of a simple neural network as the proposal. Let’s now construct q from q̅.</p><p>Often in real life, we need a person to pull our shit together for us since we are just so incapable of doing it ourselves. Say we have a positive function <strong>f(x’,x)</strong> ranging in <strong>[0,1]</strong> that does this shit pulling for our <strong>q̅</strong>. Let’s take notation for a ride and just for simplicity I will propose this: <strong>q = q̅ f </strong>. But we need:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/117/1*YATdx6wW9gjM-PEieIh29g.png" /></figure><p>So let’s modify our proposal a tad to achieve the above. Observe, with some conditions of f(x’,x) which we will find later (in the detailed balance satisfaction para below), p(x’)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/284/1*OXexGSPLNc8_wlj-h_AquA.png" /></figure><p>So let’s use this observation to satisfy our needs. What if we take this as our q(x’|x):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*18IRvuJ_2FUQVglQJbCaiw.png" /></figure><p>It is derived from the above observation and also satisfies the stationarity condition. Now we need to find f. How do we do that? Well, we have our detailed balanced condition equation left to exploit, don&#39;t we? We need</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*mCi89W1yl2ZUqEXen9NmZQ.png" /></figure><p>If can remove the integrands and use the following definition of f, known as Metropolis-Hasting acceptance function, it satisfies the equation above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/288/1*04TWpmJFFf4D77JVvJKObw.png" /></figure><p>since:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/374/1*H0y4UeaaHWzmiAMH8IltHQ.png" /></figure><p>Now we have formulated our f and q given q̅ and p*. Great. Now, what do we do with those? Where is the actual sampling happening? We can interpret the equation of q(x’|x) in this way.</p><p>The first half before the + sign can be stated as drawing x’ from q̅(x’|x) and accepting it with a probability f(x’, x). The second half is when our sample is rejected and the Dirac delta function becomes = 1 or in other words, x’ = x. That is, we use the previous value itself as our new value.</p><p>And we’re done. Phew. It was an immense amount of effort to write this blog with all the math involved and everything. Anyway, this algorithm can be summarised in this figure below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*kdoqBs6RQ_WBvp0kRg2ZTw.png" /><figcaption>A programmer reading this blog can skip the beautiful math above this algorithm and just use this 13 line beauty for their MCMC application.</figcaption></figure><p>Reference: Bayesian Reasoning and Machine Learning by <a href="http://www.cs.ucl.ac.uk/staff/D.Barber/brml">David Barber</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50913f8bf6b3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/iitg-ai/stats-series-2-mcmc-50913f8bf6b3">Stats Series #2 — MCMC</a> was originally published in <a href="https://medium.com/iitg-ai">IITG.ai</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stats Series #1 — Elastic Net]]></title>
            <link>https://medium.com/@konark145/stats-series-1-elastic-net-655786810be7?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/655786810be7</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Sun, 09 Jun 2019 06:49:01 GMT</pubDate>
            <atom:updated>2019-06-09T06:49:01.790Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stats Series #1 — Elastic Net</h3><p>Another addition to the “For the love of Math” series, I have planned to read and describe the most cited papers in the intersection of statistics and machine learning and this would be making the <strong>Stats Series. </strong>My motivation for doing is the simple quotation by Dr Feynman — <em>“If you want to truly learn something, teach it!”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*_KOFTLFV7QzLbZuM.jpg" /></figure><p><a href="https://web.stanford.edu/~hastie/Papers/B67.2%20(2005)%20301-320%20Zou%20&amp;%20Hastie.pdf"><strong>Elastic Net — Zou et al.</strong></a><strong> </strong>is a widely revered paper in the field of Machine Learning and has been cited over 9000 times. The title of the paper, <strong>Regularization and variable selection via the elastic net, </strong>is self-explanatory and I will elaborate about what’s <em>elastic </em>in this regularization technique. But first, a quick background and notations check:</p><h3>Background</h3><p>Considering the linear regression problem:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ALLRENnCTdQqywfx.png" /></figure><p>We calculate the <em>best </em>fitting set of <strong>β, </strong>using the residual sum of squares (RSS) method. Now for many applications simple linear regression should very well be <em>enough </em>to do the job, so to speak, but every ML practitioner knows that practically this is very rare and we need some <em>regularization or penalization </em>techniques to bound the parameters <strong>β </strong>so they don’t blow up. A famous technique for regularization is <a href="https://www.math.arizona.edu/~hzhang/math574m/Read/RidgeRegressionBiasedEstimationForNonorthogonalProblems.pdf">Ridge Regression</a> which uses the L2-norm of the coefficients. It works on the famous <strong><em>bias-variance tradeoff. </em></strong>One drawback of Ridge was that it wasn’t able to produce <em>sparse models</em> which are much needed in practical applications for speed. Another technique came up soon after this by the name <a href="https://cs.nyu.edu/~roweis/csc2515-2006/readings/lasso.pdf">Lasso Regression</a> which now uses L1-norm for regularization. L1 regularization inherently provides a lot of sparsity to the model but it had a whole lot of problems in itself like underperforming for cases such as highly correlated predictors (common in problems with financial data) and <strong>p &gt; n </strong>problems where Lasso used to select at the most <strong>n</strong> predictors and could be <em>too sparse</em>.</p><h3>Key Contribution</h3><p>Now Zou et al. got a brilliant idea that to many may seem something very naive “<em>taking the best out of both worlds</em>” approach: they combined L1 and L2 penalty together with parameterising each of them with a hyperparameter. Although to some end, they <em>did </em>try to combine the best of Ridge and Lasso, the paper provides an in-depth analysis of their discoveries and the limitations of the elastic net. If you’re an ML Software Development Engineer, just apply the following loss function in your choice of optimizer and you’re done! You get a sufficiently sparse representative model so it is very fast to compute and it doesn’t <em>generally</em> fail with highly correlated data. Just remember to tune the λ1 and λ2 hyperparameters as per your liking. For the more mathematically oriented, read on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*bocHEbuX22RKMVyy.png" /></figure><h3>The <em>Magical </em>Part</h3><p><strong>I. Elastic Net can perform automatic variable selection just like Lasso!</strong></p><p>In other words, Elastic Net can build a sparse representation just like Lasso. This is true since the above equation can be transformed to an equation of the form:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*PAXW71HU1qO3NxhW.png" /></figure><p>where <strong>y*, X* and β* </strong>all can be obtained by elementary transforms and padding of the original <strong>y, X and β </strong>vectors. This equation is exactly the same as Lasso and thus tells us that computationally, Elastic Net can be seen as equivalent to Lasso. The important part though is that sample size in the augmented problem is <strong>n+p </strong>and <strong>X* </strong>is of rank <strong>p </strong>which meant that elastic net could now potentially select all <strong>p </strong>predictors and avoid the problem we had in Lasso when dealing with <strong>p&gt;n</strong> problems at the same theoretical speed of Lasso!</p><p>It’s like paying the price of an economy class ticket and getting business class service.</p><p><strong>II. Grouping Effect —</strong></p><p>Grouping effect is the situation that often arises when dealing with high <strong>p </strong>small <strong>n </strong>problems. In general, regression methods exhibit the grouping effect if the regression coefficients of highly correlated variables are equal thereby “grouping” those variables into one. Grouping is a positive thing and lets the regression perform much better. If there is a group of variables among which the pairwise correlations are very high, then the lasso tends to select only one variable from the group and does not care which one is selected. The surprising thing is that the elastic net penalty function is strictly convex and thereby has the property of grouping effect. If this is a little hard to grasp, you can think of it in terms of the following example:</p><p>When trading with foreign exchange rates we see these two quantities: EUR/USD and GBP/USD having high correlation historically (~0.89). Now if you were to use a regression model for predicting your investment’s success in these instruments you might choose to use Lasso. I being a big fan of Elastic Net would use Elastic Net. Now, what would have happened when Brexit happened? You using Lasso with no grouping effect might have dropped one of the two variables mentioned above in your analysis and would have had extremely poor prediction when EUR and GBP were not so correlated for that fickle time while I would be enjoying the ride since my model didn’t drop any of those variable and rather grouped them of being of equal weight. I win.</p><h3>The Pitfalls</h3><p>Well, it turns out that the <em>naıve </em>elastic net which is portrayed above is rather not that good in practice unless it is very close to either Ridge or Lasso. Turned out that the solution was very <em>easy </em>to do: just multiply the trained coefficients with a special constant and you’re good to go!</p><h3>Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*hI36gJjoNPHIRLUC.png" /></figure><p>Elastic Net produces a regression regularization technique with shrinkage and selection method. The motivation for the name <em>elastic net </em>is that the authors built a selection method to provide sparsity or a <em>net </em>with grouping properties or <em>the elasticity </em>of the <em>net. </em>You can think of it as a fishing net which can adjust the size of its holes to select the size of fish it wants to catch while not catching the <em>useless </em>smaller fish which are unsellable. Lasso is a net with fixed sized holes while Ridge is just a tarp to catch all fish big and small.</p><p>That’s it for this amazing paper. All references have been linked in the article itself. Thank you, truly, if you made it this far in this article. I would love to hear from peers and experts about the content of this article. Was it too hard, was it too easy? Did I make any mistakes? Constructive criticism is always appreciated!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=655786810be7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What makes Math mysterious — some brilliant results in Math]]></title>
            <link>https://medium.com/@konark145/what-makes-math-mysterious-some-brilliant-results-in-math-de9b02cd7d6c?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/de9b02cd7d6c</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[mystery]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Wed, 13 Feb 2019 02:33:08 GMT</pubDate>
            <atom:updated>2019-02-13T05:17:49.673Z</atom:updated>
            <content:encoded><![CDATA[<h3>What makes Math mysterious — some brilliant results in Math</h3><p><em>This post is the second in the series “For the Love of Math”. Find the first one </em><a href="https://link.medium.com/vRxj39IxgU"><em>here</em></a><em>.</em></p><p>This post will be a long one: full of equations, references and anecdotes about famous mathematicians. Similar to my previous post, this too will be updated as and when I get the time to do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/633/0*iZJU87q7GX9aa7n-.jpg" /><figcaption>A Monkey on a typewriter — you will understand this photo if you read all the way to the end of this blog!</figcaption></figure><p>It’s 4 AM in the morning when I write this. I woke up to the sound of mosquitoes buzzing in my ear and couldn’t sleep so I decided I’d write this. I’ll be listing some well-known but amazing theorems and results in Mathematics that amaze me in their entirety. Here we go:</p><h3>1. There are more than one forms measuring distances!</h3><p>Well, in fact, there is an infinite number of forms of distance measurement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*2TGAw2_1xlQaZ7-X.png" /></figure><p>Then the <strong>Holder’s Inequality</strong> states that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/0*Suaudrx1Bfnr6ILD.png" /></figure><p>This result might appear boring to some but if you look closely, this theorem can pour out results you cannot think of! For example, we can get the <strong><em>generalised triangle inequality</em></strong>, called the Minkowski Inequality, by elementary transformations of this inequality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*RfJ4gUkElifTFZz4.png" /></figure><p>If you’re still not impressed, many fundamental properties of <em>measures </em>in mathematical theory are developed from this inequality for example: Probability and Lebesgue Measures develop a lot of their properties from these two inequalities.</p><blockquote>Fun Fact: The <strong>Holder’s</strong><em> </em>Inequality was actually first proved by Leonard James Rogers from Oxford and Holder rediscovered it independently.</blockquote><blockquote>Fun Fact [2]: Minkowski actually taught Alber Einstein during his time in <a href="https://en.wikipedia.org/wiki/University_of_G%C3%B6ttingen">Göttingen</a>.</blockquote><h3>2. The theorem upon which all of Machine Learning is built.</h3><p>What essentially Machine Learning practitioners do is that they find a map from a given set of numbers (<em>dataset</em>) to another given set of numbers (<em>classes or output</em>). Now have you ever wondered whether such a map exists or not for <em>any sets of numbers?</em> Have you wondered if out of these maps, are there maps that map the two sets 100% accurately? Turns out, and ML practitioners will enthusiastically agree with me here, that as the set of numbers become more and more complex, it becomes harder and harder to find a <em>good </em>map and impossible to find a <em>perfect</em> generalized map.</p><p>One of the most common ways to find the said map is to use polynomials as maps from each set to another. Now it’d be nice if we’d have some assurance for the accuracy of the polynomial map before we start finding the polynomial, right?</p><p><strong>Weierstrass’s Approximation Theorem</strong> states that:</p><blockquote>Suppose <em>f</em> is a continuous real-valued function defined on the real interval [<em>a</em>, <em>b</em>]. For every <em>ε</em> &gt; 0, there exists a polynomial <em>p</em> such that for all <em>x</em> in [<em>a</em>, <em>b</em>], we have | <em>f</em> (<em>x</em>) − <em>p</em>(<em>x</em>)| &lt; <em>ε</em>, or equivalently, the <a href="https://en.wikipedia.org/wiki/Supremum_norm">supremum norm</a> || <em>f</em> − <em>p</em>|| &lt; <em>ε</em>.</blockquote><p>In other words, polynomials can arbitrarily approximate any map of any set of numbers to any other set of numbers. Seems a bit obvious, doesn’t it? The proof of this seemingly <em>basic </em>theorem comes from what is known as the <a href="https://en.wikipedia.org/wiki/Bernstein_polynomial#Approximating_continuous_functions">Bernstein Polynomials</a>. This extremely complex looking proof is exactly what it took for Weierstrass to formulate this theorem.</p><p>If this property wouldn’t have been true for polynomials, Amazon would not have been making billions through AWS, Deepmind by Google would not be busting the balls of every ML Research organization and China would not have been spying on its people so effectively.</p><blockquote>Fun Fact: Weierstrass, <strong>“father of modern </strong><a href="https://en.wikipedia.org/wiki/Mathematical_analysis"><strong>analysis</strong></a><strong>”</strong>, was an autodidact in math and did not have any formal training whatsoever. Well that’s inspiring isn’t it?</blockquote><h3>3. The Infinite Monkey Theorem</h3><p>The picture you saw at the beginning of this blog (of a monkey on a typewriter) is what makes this theorem as a more <em>funny </em>theorem in math. In simple language, it states that if a Monkey were to type on a typewriter for an infinitely long time, there <em>will </em>be a section of the typed text which is exactly the same as William Shakespeare’s <em>Macbeth.</em></p><p>Before you start bickering, no this is not specific to Macbeth. Any and all sequences of text you can imagine will occur infinitely many times in the infinitely long text document written by a random operating stupid, albeit cute, monkey. If you’re one of those who scoffs at this result as blatantly obvious and of no practical use in the real world, the next paragraph is for you!</p><p>This theorem essentially states the famous quote “<em>only in chaos can there be order</em>”. I’ll give some examples where this theorem becomes really <em>really </em>useful. If you’re familiar with the generative models in Machine Learning, it’s basically teaching a computer how to make new <em>stuff </em>rather than just compute on the preexisting <em>stuff</em>, this theorem is the only thing that makes the generation possible. A computer cannot, latest till today, think on its own and <em>create.</em> It needs randomness to start with. That randomness can be moulded, transformed and made into something meaningful like generating faces of people who do not exist, generating fake videos of people saying stuff they won’t even dream of, fake pornographic content of famous people and everything else you might read in the news by the tag of <em>GANs. </em>Guided randomwalks can help solve problems in optimization that seems unsolvable by any iterative method.</p><blockquote>If you walk long enough, you <strong>will </strong>stumble upon a breakthrough.</blockquote><p>At the end of this article I would like to express again the importance of the Infinite Monkey Theorem. This article might also have been written by a monkey, you know? ;)</p><h3>Footnotes:</h3><p>More theorems are coming on this blog in the form of updates. Stay tuned!</p><ol><li>Holder’s Inequality — <a href="https://en.wikipedia.org/wiki/H%C3%B6lder%27s_inequality">Excellent Wiki Page</a></li><li>Weierstrass’s Theorem — <a href="http://neuralnetworksanddeeplearning.com/chap4.html">Article on Neural Networks</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de9b02cd7d6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[These were the People]]></title>
            <link>https://medium.com/@konark145/these-were-the-people-94c23f8f8421?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/94c23f8f8421</guid>
            <category><![CDATA[celebrity]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[biography]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[people]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 06:55:31 GMT</pubDate>
            <atom:updated>2019-03-05T14:50:11.471Z</atom:updated>
            <content:encoded><![CDATA[<h3>These were the People — and lessons to be learned from their stories</h3><p>Every generation has its ‘superhumans’ — the people who achieved that wasn’t perceived to be humanly possible. I want you to take a minute and think of a single person from this decade who comes to your mind when you think of a superhuman.</p><p>Was it Elon Musk? Was it Jeff Bezos? Or was it Donald Trump (well he did prove that <em>anyone </em>can be POTUS didn’t he?)?</p><p>This post is a small list of people who I consider to have lived a life that could be considered as ‘super’ extraordinary. I will keep updating this list when I get a chance to.</p><h3>1. Freddie Mercury</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tS0LQhYUpAgf-XKGk_QE6g.jpeg" /><figcaption>Mercury during one of his iconic performances</figcaption></figure><p>Born with buck-teeth, arguably the best voice the world of rock n’ roll has ever seen and a phenomenal performer with whom even Michael Jackson wouldn’t have competed, Freddie Mercury comes on the top of this list. Queen is one of my favourite bands in history and the lead-singer’s, not <em>the leader,</em> story is one filled with controversies, arguments and <em>awesomeness. </em>He faced challenges we cannot fathom in this day and age — he married early but realised his true sexuality later, he was a homosexual, <em>or bisexual as he told the public</em>, and the victim of the homophobia prevalent in the 70s, he brought in the very concept of making the audience to actually <em>participate and not just stand listening </em>in a concert, he was an outsider in Britain and he conquered the whole music industry. His life went on with a spree of sexual relations with <em>more than a few</em> men, alcoholism and revolutionary performances. Ultimately his brilliant career ended with him announcing that he was ailed with the wretched disease of AIDS. He died shortly after the announcement due to the disease. Queen continues today without Mercury and his flamboyant persona.</p><p>His journey taught me the extremely important fact that creativity, <em>with a dash of craziness,</em> is the most important thing you must have if you want to leave a mark in history, <em>even if it means that you seem weird to the whole world.</em></p><h3>2. Bobby Fischer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*y-61Si2paSPk0TeCD-Y1IQ.jpeg" /><figcaption>Fischer playing a charity game</figcaption></figure><p>The greatest chess player ever, before the computer era began, Bobby Fischer was not a force that you would want to be in conflict with. Extremely innovative and calculative in his games, he remains till date regarded as <em>“the greatest genius to have descended from the chess heavens”</em> as said by the great Mikhail Tal. His 13 year old self defeated GM Donald Byrne in what is known as the <em>Game of the Century.</em> Can you fathom this sentence? A 13 year old’s chess game regarded as the Game of the Century by hundreds of chess grandmasters! This was just the start of his career. He held the youngest to become grandmaster record for a whopping <em>thirty-three years</em> and that was before computers could be used as an aid for chess study. His growth as a prominent figure continued till he became the world champion in 1972: defeating the goliath Boris Spassky and ending the Russian hegemony over chess championships.</p><p>Here is where the story becomes ‘super’ extraordinary. He was most probably a schizophrenic and had an extremely erratic behaviour — he once during the world championship match demanded the match to be shifted to a closed locker room because “<em>the audience and the camera noises were too loud”</em> and refused to play frequently when his highly specific conditions of play weren’t met. He was anti-Semitic and regarded as a racist although his own mother was Jewish. He disappeared from the public eye after his world championship match and did not reappear for 20 years during which he lost his world championship by default. He fled USA in 1992 because he was issued an arrest warrant for non-compliance with the government and became an émigré. He was seen, arrested for holding an invalid passport, in Japan in 2004 after which he was offered residence in Iceland where he died in 2008. Even after his death he did not find peace, his remains were exhumed for a legal battle over his property by his supposed daughters.</p><p>Bobby was the literal example of the famous expression <em>crazy genius</em>. To be regarded as the greatest player to have played the widely revered game of chess is what makes me stand in awe of his amazing story.</p><h3>3. <strong>Srinivasa Ramanujan</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*2qwJmq3jhlDFW8BjF2TBfA.jpeg" /><figcaption>The Indian National Mathematics Day is celebrated on Ramanujan’s Birthday</figcaption></figure><p>This man needs no introduction to people studying math. Born in rural India, Ramanujan was a childhood prodigy in math. His work on number theory is still revered by many mathematicians as the most enigmatic research produced by any non-conventional mathematician. He failed multiple times in his university except in math where too he barely passed because he just attempted the questions he thought were intriguing. He dropped out of college to pursue independent research in math with no source of steady income. He came to the brink of starvation multiple times in his life because of his unreliable financial situation.</p><p>He was ultimately discovered by a professor from the University of Madras where he then continued his research as a professional researcher. His career rocketed then when he contacted the British mathematician G.H. Hardy who mentored him in formal math and took him to England to pursue research. He published several groundbreaking papers there and received a PhD followed by a Fellowship of the Royal Society. He was considered one of the most intuitive mathematicians in history. In his own words, the proofs <em>“just come to me as a Goddess placed it on my tongue”</em>. Less than a year after his election to the Royal Society, being the youngest to have achieved so, Ramanujan contracted tuberculosis and met with his demise at the early age of 32.</p><p>His story teaches me that no matter how brutally severe your state is right now, it just takes a moment of time to change that. His fortunes turned twice: once for the better when he met Hardy and another time for the worse when he contracted the illness right after the biggest achievement of his life.</p><p>Whenever I feel too morose or too happy about a situation, I remember a line that Birbal told Akbar — “<em>this too shall pass”.</em></p><h3>4. Sir Isaac Newton</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*p5-cr37Q53gAsK7I.jpg" /><figcaption>Newton with his multiple contributions to science</figcaption></figure><p>Out of all the people I have written till now, I think Newton is most widely known among them. He was a mathematician in the true sense of the word. Claimed as the inventor of calculus, discoverer of the mathematical notion of the phenomenon of gravity, father of classical mechanics and a major contributor to the field of Optics, Newton’s interests varied across a lot of domains. His fame as a genius, <em>who supposedly had the idea of gravity because of an apple falling on his head,</em> was universal during his reign as the President of the Royal Society. But enough about the stuff that you probably already know. Let’s dive into the <em>interesting</em> stuff, shall we?</p><p>He quietly practiced Alchemy — the pseudoscience of combining random elements that may make some magical potion by any chance. His works on alchemy were published after his death and a lot of scientists took this as shocking news as an extremely logical and realist physicist was found in the race to invent <em>the Elixir of Life. </em>He was also quite famous for his aversion towards any kind of sexual activity towards both women and men. It is widely believed that Newton was a virgin his whole life and thus, obviously, never married leaving no successors to this great man. His dispute with Leibniz over the invention of calculus and his abuse of power being the President of the Royal Society are widely known as characteristic of his egotistical, devious and vindictive behaviour.</p><p>Now, Newton’s journey’s moral for me is kind of weird but what the general tone to it is — “<em>avoid distractions, keep your head down and work hard till you make it.”</em> His multidimensional contribution to Physics is something rarely found in today’s scientists who are more concentrated on a very specific niche of a subject. He proved beyond doubt that the human mind is capable of transferring intellect from one area to the other very effectively, <em>while also indulging in pretty useless stuff like alchemy!</em></p><h3>5. Kurt Cobain</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*fv3KDQ2QZMjAfZmoAf5yXA.jpeg" /><figcaption>Cobain’s suicide note — wildly shared amongst the youth of the 90s.</figcaption></figure><blockquote>Oh well, whatever, nevermind. — Smells Like Teen Spirit, Nirvana</blockquote><p>If depressed people in the early 90s had a messiah, it was Kurt Cobain. A phenomenal band, Nirvana was one of the best and foremost <em>alternate rock </em>bands out there. His reputation grew tremendously as a person who <em>truly </em>understood depression, suicidal thoughts and general gloominess faced by every teen in their lifetime a multitude of times — remember that phase when you were depressed for no reason at all and somehow those “soothing” songs set up camp in your playlist? Yeah, Nirvana <em>touched my soul</em> too at that time. His work in music is considered revolutionary and gave rise to the development of styles of rock music which targetted the contemporary time teens. His style prevails till today as alternate rock has exploded in the 2000s.</p><p>He was obviously very depressed. He was an open bisexual, had a difficult childhood, heroin addiction, Lithium addiction and<em> who-knows-what-more</em> addictions. There’s a popular saying in Urdu and Hindi literature —</p><blockquote>टूटे हुए दिल से ही संगीत निकलता है |</blockquote><p>or — <em>Only from a broken heart can Music arise.</em> He had his life in a mess and was a worldwide phenomenon.</p><p>He <em>supposedly </em>committed suicide by shooting himself with a shotgun — emphasis on the <em>supposedly. </em>His beloved wife is considered the prime suspect for his possible murder. His suicide note is one of the most shared pieces of writing in the email era. Okay so by now you must be thinking I only write about guys with tragic death scenes and yeah I found the pattern too. The thing is, and Cobain taught us this, we do not matter in this whole gigantic marvellous universe. We don’t even matter in our tiny cities or even our neighbourhood. <em>Eventful </em>Death is the only interesting thing that happens in a person’s life. According to Cobain’s “suicide note”:</p><blockquote>I would rather burn out than fade away.</blockquote><p>Now, I myself believe in a slightly <em>greener</em> version of Cobain’s life lessons. I agree with him on the notion of us not mattering even in the tiniest of the scales. But I believe that the only thing that matters in a person’s life is her legacy. If, by the end of my insignificant life, I am able to get my name in some <em>textbook, </em>(I know, cheesy right?)<em> </em>I’d consider my life successful.</p><blockquote>Lesser known fact about Kurt: He had an imaginary friend <strong>Boddah </strong>to whom he wrote his suicide note.</blockquote><h3>Footnotes</h3><p>[1] Freddie Mercury: <a href="https://www.youtube.com/watch?v=ktYlzVYQbwY">Queen: One of the best performances</a></p><p>[2] Bobby Fischer: <a href="https://www.youtube.com/watch?v=A82NI_42kgY">Game of the Century</a></p><p>[3] Ramanujan: <a href="https://www.youtube.com/watch?v=zdWICer7j34">Movie</a></p><p>[4] Newton: <a href="http://nautil.us/issue/19/illusions/the-loneliest-genius">The Loneliest Genius</a></p><p><strong>Coming up in future updates</strong>: Stephen Hawking, Nikola Tesla, Rahul Dravid, Saadat Hasan Manto</p><p><strong>Honorable Mentions: </strong>Elon Musk, Helen Keller, Galileo Galilei, <a href="https://en.wikipedia.org/wiki/Brian_May">Brian May</a>, <a href="https://en.wikipedia.org/wiki/Judit_Polg%C3%A1r">Judit Polgar</a>, <a href="https://en.wikipedia.org/wiki/Vassily_Ivanchuk">Vassily Ivanchuk</a>, Bhagat Singh and Chandrashekhar Azad.</p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2IVAl0TbsfES9cFGYr40g.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_read_later_text">Journal</a>.</p><p>🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: <a href="https://usejournal.com/newsletter/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_text">Get the noteworthy newsletter &gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94c23f8f8421" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Narcissistic View of my interest in math]]></title>
            <link>https://medium.com/@konark145/a-narcissistic-view-of-my-interest-in-math-220168bcf84?source=rss-e7bce3ee434b------2</link>
            <guid isPermaLink="false">https://medium.com/p/220168bcf84</guid>
            <category><![CDATA[math]]></category>
            <category><![CDATA[random]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[college]]></category>
            <category><![CDATA[storyofmylife]]></category>
            <dc:creator><![CDATA[Konark Jain]]></dc:creator>
            <pubDate>Tue, 29 Jan 2019 07:12:35 GMT</pubDate>
            <atom:updated>2019-02-13T05:20:07.822Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever since my high school days, I have had a certain zeal with regards to Physics. I was good at Math in my schooling days but Physics was where my passions lied at. Then came university where I took the closest thing engineering has to offer to Physics in circuit branches — Electronics and Electrical Engineering. I do not know what exactly is the reason for this, but my interest in physics and electrical in my school days never made it to my time at the university. Now most people, including me till last year, blamed the IIT teaching system: <em>“The professors at IITs instead of making the subject interesting make you hate even the subjects that you loved till high school.” </em>I believe this is more than a bit unfair to the caliber of our professors. What I personally found and believe in is that it is not the professor but the student’s perspective towards the subject that leads to the deterioration of her grades. I found myself guilty of the fact that I simply did not pay much attention to the subjects in my first semester.</p><p>The second semester of my university life was a total 180 shift of what my first semester was. I started focusing on the theoretical details that my courses had, started scoring more marks and most importantly, started exploring my interests <em>outside </em>circuit engineering. By sheer luck or by the buzz around the topic, I found Artificial Intelligence as a domain of knowledge that I want to conquer. So I started by taking courses in it, doing projects, internships and even co-founded the AI society of my university. This was my 2nd to 4th semester — learn and apply AI. Oh, and one more major development that I had in my 3rd semester was that I applied for and got the math minor degree offered in my college. Everything was going pretty well — I was about to go to Sydney for my third internship, my grades were going up, and our AI society was flourishing as well.</p><p>Then came the March of 2018. I had a course on Stats in my minor and the course instructor was just changed for post-mid-sem part of the syllabus. This was one of the most defining moments in my math journey — I started genuinely taking interest in Statistics and Probability Theory, all thanks to my professor Dr. Ayon Ganguly. Luckily enough, when I went to Sydney in May, my projects were also very math intensive and required me to study heaps of material before the actual “<em>application” </em>part came to be. I have a small anecdote from my journey to Sydney — I made a friend at the Singapore Airport where I had a layover of a couple of hours. She was Indian too and thus she knew and followed the famous stereotype — all IITians are nerds, and to be fair I am a huge nerd so she was kind of right in assuming so. We had a ton of fun at the airport because there was so much to explore and I for one am the kind of person who doesn’t bother getting all tired up exploring new places just like a puppy with a new toy. So we boarded the plane and she came to meet me after our plane was stable in the air. She loudly said, standing in front of my seat with like 10 people around her, and I quote “<em>Dude don’t you have anything else to do than doing these stupid equations?”. </em>Yes, I was solving a problem from a math book that I was studying for my intern in an 8-hour midnight flight. That’s how much I loved the math part of AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3-xRKZVWhgJbwi4Y0WFIJA.jpeg" /><figcaption>Snorkeling and being un-manly at the Manly beach of Sydney</figcaption></figure><p>Sydney was a blast. I did that <em>“puppy-with-a-new-toy”</em> thing for the whole two and a half months and spent all of my stipend traveling Sydney. <em>My supervisor’s supervisor — </em>Dr<em>.</em> Sally Cripps — was in Rohit Sir’s, my supervisor, own words “<em>a math genius”. </em>Well, you don’t get to be the director of a whole Centre for Research at USyd without being a genius. Anyways, she was another major source of inspiration for me to study math. I remember once when she took the whole Centre to a bar to welcome a newcomer to the Centre and I had one of our meetings, <em>in actuality: lectures on beautiful math, </em>scheduled with her during the same time. When she came to <em>the cave, </em>a huge room with kickass PCs where 4–5 of us low life “AI developers” worked, to invite me to the party, she said “Konark, I remember our meeting but this party has come up and you are coming with us. And grab your notebook we’ll chat over a beer there.” She literally was willing to give a math lecture to me in a damn bar in the middle of a party! Anyways I was the sane one when we actually got to the bar and I didn’t mention the lecture, and we chatted over Genghis Khan’s love for his wives, Jainism and Jain’s eating habits along with a long discussion on yogurt. These lectures were the last bit that delved me deep into the amazing field of math!</p><p>My 5th Semester’s first half was a literal hell for me as I was under a lot of pressure to get an internship for my 2019 summer and after a few weeks of almost killing myself with competitive coding, which no offense is <em>the worst </em>part of Computer Science Engineering, I got an intern as a quant researcher at JP Morgan &amp; Chase, Mumbai. Now many of my juniors asked me “Weren’t you an AI guy? Why are you going to finance?”. Only my close friends know this and I want to take this opportunity to tell the world — <strong>I am not an AI guy, I am a math guy. </strong>And I am promised math intensive coding in quant research. When I got this part of my life sorted out, I finally began with learning something that I would actually value. My projects in Sydney were in simple terms learning models for complex data that is data that can not be modeled with current techniques without using extremely computationally expensive models. I thought it’d be cool to try out my research in areas of AI which have these kinds of extremely complex data. So I started learning Natural Language Processing and a book on Probabilistic Models for ML by David Barber. NLP was fun but not something that I found very interesting. I never managed to actually finish Barber but it is on my to-do list, yeah.</p><p>Then came the winter break of 2018 — from then to today, I am in a state of so much flux that I do not know what I want to pursue next. Some topics that interest me and which I am trying to pursue in parallel are: Reinforcement Learning, Generative Models, Math — (group theory in minor and learning theory for self-study), Quantum Computing and Blockchain. Yes, I am an idiot and yes you are thinking right, I will most definitely screw up while learning each of these areas. But I simply can not help it. I am too interested in everything that I mentioned to drop any one of them. If you can help me with how to sort this out, maybe drop me a comment or email me. I would really appreciate any help because the point where I become overwhelmed and give up all of these subjects together is not very far.</p><p>Anyways so this was the story of my interests in math till today. I don’t believe it that you liked it but I just have been meaning to write <em>something </em>for so long that I just went up and blabbered these 1300 something words on an off day. Thank you for reading. This is a part of a series which I want to call “For the love of Math” but I can’t assure if or when the next part is coming. I want to write about various extremely cool things that I discovered in Mathematics as a whole in my short journey of about 4 years studying “<em>applied math”</em>.</p><p>You can find the second post <a href="http:// https://link.medium.com/g7YITAgmgU">here</a>.</p><p>Side note to my friends — I know I am going to be made fun of by you guys when you read this and I just want to this — bring it on!</p><figure><a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_image"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2IVAl0TbsfES9cFGYr40g.png" /></a></figure><p>📝 Read this story later in <a href="https://usejournal.com/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_read_later_text">Journal</a>.</p><p>🗞 Wake up every Sunday morning to the week’s most noteworthy Tech stories, opinions, and news waiting in your inbox: <a href="https://usejournal.com/newsletter/?utm_source=medium.com&amp;utm_medium=noteworthy_blog&amp;utm_campaign=guest_post_text">Get the noteworthy newsletter &gt;</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=220168bcf84" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>