<?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 Ankit Singh on Medium]]></title>
        <description><![CDATA[Stories by Ankit Singh on Medium]]></description>
        <link>https://medium.com/@ankitsingh1906?source=rss-7cca6bf5bd34------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*dCRBvrc09c6PrtRF.</url>
            <title>Stories by Ankit Singh on Medium</title>
            <link>https://medium.com/@ankitsingh1906?source=rss-7cca6bf5bd34------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 13:18:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ankitsingh1906/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[What my short-term relationships taught me about love and life]]></title>
            <link>https://medium.com/@ankitsingh1906/what-my-short-term-relationships-taught-me-about-love-and-life-b16fe8ab16ba?source=rss-7cca6bf5bd34------2</link>
            <guid isPermaLink="false">https://medium.com/p/b16fe8ab16ba</guid>
            <dc:creator><![CDATA[Ankit Singh]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 03:58:14 GMT</pubDate>
            <atom:updated>2019-11-30T03:58:14.094Z</atom:updated>
            <content:encoded><![CDATA[<p>When it comes to love and relationships, it seems that everything is learned the hard way. It’s not taught in school (even though it’s one of the most important subjects in life) and even if it was, it would be a double-edged sword because there really isn’t a right or wrong way to love, the best you can do is love as much as you can and learn through your experiences.</p><p>At this point, my romantic encounters are vaguely reminiscent of Taylor Swift’s, in that they come in short bursts and end in scorn that is used to fuel other facets of life. It isn’t what I planned, but at least having commonalities with Taylor Swift is pretty cool (silver linings right?) All in all, you can say that I’ve taken many crash courses in love and relationships, here are five lessons that I learned:</p><p>Forever doesn’t exist</p><p>People come into your life for a reason, a season, or a lifetime. As cynical as it sounds, it’s true and I’d like to take it even further; relationships can only end in two ways, separation or death. There is no forever, I’ve been promised forever by so many exes that it’s as meaningless to me as a homeless person promising me a pot of gold. From here on out, I’m no longer looking for promises of forever, what I want is the promise that you’ll try your best and you’ll be worth it. Don’t promise me forever, promise me that there will be no regrets.</p><h3>No one can make you happy except yourself</h3><p>Happiness is fully dependent on yourself; other people can’t make you happy. What this means is that if you’re not happy going into a relationship, you won’t be happy while you’re in it. I’ve experienced the highs of finding a relationship that I thought would pull me out of depression, but guess what? The second it ended, my depression came right back, it’s something you must conquer on your own. On the contrary, I’ve also gone into relationships as a truly happy person and the rule still remained true. I went in happy, I came out happy, the ending was sad and it hurt, but deep down, I was still happy. Hence, don’t look for happiness in others; it can only be found within yourself. Look to others to enhance the happiness you already have.</p><h3>You can’t change others</h3><p>Whoever your partner was before they met you, that is who they’re going to be the whole way. So if there is a fundamental personality trait in your partner that rubs you the wrong way, don’t wait around hoping things will change, because they won’t. That’s who they are, either find a way to love and accept it or leave. I’ve clung to a relationship with someone who was practically a physical manifestation of pessimism thinking they were just going through a bad patch and that things would eventually change. However, you can’t change the fundamentals of who someone is, that is a choice they have to make for themselves. Sometimes, it’s best to love someone from afar because incompatibility exists and the person you love may not be the person you can be happy with at that time.</p><h3>Expectations are the root of sorrow</h3><p>Managing your expectations is such an important factor in preserving your happiness and most people forget this when they fall in love. There’s no one to blame for this because alas, love is blind. But, we live, experience and learn. Relationships will teach you that humans are and always will be just humans, meaning that anything is possible. You can be completely in love with someone, having the best time of your life, and it can end in a second. You and your partner could have had an amazing date, and they may decide to end the relationship the next day. The person who you completely trust could betray you at any moment (even Beyonce got cheated on multiple times, go figure). If you want to spare yourself a lot of pain and sorrow, remind yourself that these scenarios are all possible. I believe that trust and having confidence in another person is necessary to sustain a relationship. But at the end of the day, this is life and anything goes. The world doesn’t believe in mercy; it’ll throw anything and everything at you whether you’re ready or not. Therefore, you must manage your expectations and appreciate the moments in life while you are still in them.</p><h3>Always put yourself first</h3><p>Self-improvement and care is never selfish. The fact of the matter is, the best thing you can do for your relationship is to improve yourself because the better you are, the better your relationship can be. Relationships stagnate and decay because one or both individuals lose interest in their personal development. Dating an unambitious person taught me that without a passion for life, dreams, and goals, excitement and communication dries out very quickly. When there’s nothing going on, there’s nothing to talk about and without communication, emotional connection dwindles. Furthermore, if the relationship does end, only you will be around to pick up the pieces, so don’t ever lose yourself. Always remember who you are, what you need, and don’t ever stop serving yourself.</p><p>If you look back at your life, I bet your most important lessons were preceded by a tremendous amount of pain. Thus, I hope we can all remember that pain is a necessity for growth. During tough times, remind yourself that it won’t be easy, but it will be worth it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b16fe8ab16ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mathematical programming — a key habit to build up for advancing in data science]]></title>
            <link>https://medium.com/@ankitsingh1906/mathematical-programming-a-key-habit-to-build-up-for-advancing-in-data-science-10caff4a396?source=rss-7cca6bf5bd34------2</link>
            <guid isPermaLink="false">https://medium.com/p/10caff4a396</guid>
            <dc:creator><![CDATA[Ankit Singh]]></dc:creator>
            <pubDate>Mon, 22 Apr 2019 05:40:04 GMT</pubDate>
            <atom:updated>2019-04-22T05:40:04.256Z</atom:updated>
            <content:encoded><![CDATA[<p>Mathematical programming — a key habit to build up for advancing in data science</p><p>We show how, by simulating the random throw of a dart, you can compute the value of pi approximately. This is a small step towards building the habit of mathematical programming, which should be a key skill in the repertoire of a budding data scientist.</p><p>Introduction</p><p>The essence of mathematical programming is that you build a habit of coding up mathematical concepts, especially the ones involving a series of computational tasks in a systematic manner.</p><p>This kind of programming habit is extremely useful for a career in analytics and data science, where one is expected to encounter and make sense of a wide variety of numerical patterns every day. The ability of mathematical programming helps in rapid prototyping of quick numerical analyses, which are often the first steps in building a data model.A few examples</p><p>So, what do I mean by mathematical programming? Isn’t a bunch of mathematical functions already built-in and optimized in various Python libraries like <a href="https://towardsdatascience.com/lets-talk-about-numpy-for-datascience-beginners-b8088722309f">NumPy</a> and <a href="https://scipy-lectures.org/intro/language/python_language.html">SciPy</a>?</p><p>Yes, but that should not stop you from coding up various numerical computation tasks from scratch and getting into the habit of mathematical programming.</p><p>Here are a few random examples,</p><p>Compute pi by a <a href="https://www.palisade.com/risk/monte_carlo_simulation.asp">Monte Carlo experiment</a> —simulating randomly throwing darts at a board</p><p>Build a function or class incorporating all the methods for handling complex numbers (Python already has such a module, but can you mimic it?)</p><p>Compute the <a href="https://www.quantinsti.com/blog/portfolio-optimization-maximum-return-risk-ratio-python">average return of an investment portfolio</a> given the variance of each stock over by simulating a number of economic scenarios</p><p>As you can see, the examples can be made extremely interesting and close to real-life scenarios. This technique, therefore, also leads to the ability of writing code for discrete or stochastic simulations.</p><p>When you are browsing through some mathematical properties or ideas on the internet, do you feel the urge to quickly test the concept using a simple piece of code in your favorite programming language?</p><p>If yes, then congratulations! You have the ingrained habit of mathematical programming and it will take you far in your pursuit of a satisfactory data science career.</p><p>Why is mathematical programming a key skill for data science?</p><p>The practice of data science needs an extremely friendly relationship with numbers and numerical analyses. However, this does not mean memorization of complicated formula and equations</p><p>A faculty of discovering patterns in numbers and an ability to quickly testing ideas by writing simple code go far for a budding data scientist.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*UKnIO8Izj7YeacwV7nb-Zg.jpeg" /></figure><p>This is akin to an electronics engineer being fairly hands-on with laboratory-equipments and automation scripting to run those pieces of equipment to capture hidden patterns in the electrical signals.</p><p>Or, think of a young biologist who is proficient in creating cross-section samples of cells on a slide and quickly run automated tests under a microscope to gather data for testing her ideas</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YsN1D9dmsmUkANikhoYzTw.jpeg" /></figure><p>The point is that while the whole enterprise of data science may comprise of many disparate components — data wrangling, text processing, file handling, database processing, machine learning and statistical modeling, visualization, presentation, etc. — a quick experimentation with ideas often do not require much more than solid mathematical programming ability.</p><p>It is difficult to exactly pin-point all the necessary elements that are required to develop the skill of mathematical programming, but some of the common ones are,</p><p>A habit of modularized programming,</p><p>A clear idea about various randomization techniques</p><p>Ability to read and understand the fundamental topics of linear algebra, calculus, and discrete mathematics,</p><p>Familiarity with basic descriptive and inferential statistics,</p><p>Rudimentary ideas about discrete and continuous optimization methods (such as linear programming)</p><p>Basic proficiency with the core numerical libraries and functionsin the language of choice, in which the data scientists wants to test her ideas</p><p>Thanks for reading — Ankit Singh</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10caff4a396" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What exactly can you do with Python? Here are Python’s 3 main applications.]]></title>
            <link>https://medium.com/@ankitsingh1906/what-exactly-can-you-do-with-python-here-are-pythons-3-main-applications-d55e51b1b7c4?source=rss-7cca6bf5bd34------2</link>
            <guid isPermaLink="false">https://medium.com/p/d55e51b1b7c4</guid>
            <dc:creator><![CDATA[Ankit Singh]]></dc:creator>
            <pubDate>Sat, 20 Apr 2019 15:57:04 GMT</pubDate>
            <atom:updated>2019-04-20T15:57:04.646Z</atom:updated>
            <content:encoded><![CDATA[<p>What exactly can you do with Python? Here are Python’s 3 main applications.</p><p>If you’re thinking of learning Python — or if you recently started learning it — you may be asking yourself:</p><p>“What exactly can I use Python for?”</p><p>Well that’s a tricky question to answer, because there are so many applications for Python.</p><p>But over time, I have observed that there are 3 main popular applications for Python:</p><p>Web Development</p><p>Data Science — including machine learning, data analysis, and data visualization</p><p>Scripting</p><p>Let’s talk about Python in data science</p><p>Data Science — including machine learning, data analysis, and data visualization</p><p>First of all, let’s review what machine learning is.</p><p>I think the best way to explain what machine learning is would be to give you a simple example.</p><p>Let’s say you want to develop a program that automatically detects what’s in a picture.</p><p>So, given this picture below (Picture 1), you want your program to recognize that it’s a dog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cx_3rasmq7FJ-NzsNpmxcg.jpeg" /></figure><p>Given this other one below (Picture 2), you want your program to recognize that it’s a table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rqYh_TiPjbBgOklf7G0Z-w.jpeg" /></figure><p>You might say, well, I can just write some code to do that. For example, maybe if there are a lot of light brown pixels in the picture, then we can say that it’s a dog.</p><p>Or maybe, you can figure out how to detect edges in a picture. Then, you might say, if there are many straight edges, then it’s a table.</p><p>However, this kind of approach gets tricky pretty quickly. What if there’s a white dog in the picture with no brown hair? What if the picture shows only the round parts of the table?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d55e51b1b7c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Analytics — using Excel]]></title>
            <link>https://medium.com/@ankitsingh1906/hi-guys-i-didnt-put-any-post-in-regarding-to-the-data-analytics-and-visualization-i-didn-t-have-e66fd59285a2?source=rss-7cca6bf5bd34------2</link>
            <guid isPermaLink="false">https://medium.com/p/e66fd59285a2</guid>
            <dc:creator><![CDATA[Ankit Singh]]></dc:creator>
            <pubDate>Sat, 09 Mar 2019 14:51:24 GMT</pubDate>
            <atom:updated>2019-03-09T15:47:40.572Z</atom:updated>
            <content:encoded><![CDATA[<p>Data Analytics — using Excel</p><p>Hi guys I didn’t put any post in regarding to the data analytics and visualization i didn’t have time to do that and now we will do a small data analysis using Microsoft Excel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*Gn9FeeWr-C7LUm1EBJNkdw.jpeg" /></figure><p>So you know that we can do many number of calculations like sum, average, difference, median, variance and etcetra in Excel. So today we will do some couple of data analysis calculation with a data set. You can download the data set from this link.</p><p>So let us set up the environment in the Excel for the Data analysis. First open your Microsoft Excel if you don’t have Excel please download in this link.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FuMdY1rgS478imjdbz6NIQ.png" /></figure><p>Next import the dataset to the Excel using “open” option in the file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FNdYEgiQnmk11Av0-yvyXw.png" /></figure><p>Now we can see the attributes as Id, Sepal Length, Sepal Width, Petal Length, Petal Width and Species. Actually we will remove Species because it is a categorical value. Now lets start the data analysis using this simple data set.</p><p>Before we start the data analysis we need to download some of the add ins to the excel because when we download the excel it will come as the basic version and if we need we can put as many as the add ins and make it as an advanced excel.</p><p>First step is click “file” menu and go to options.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*83g2h87c7F4EzzF_U2QsLQ.png" /></figure><p>Once you click “option” You should get a dialog box like given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OCDsGcyd8WPvLO7Je9NobA.png" /></figure><p>If you get this dialog box you are fine enough to start your analysis. The next step is to click “Add-Ins” in the dialog box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gZ8xdgKfitlgu_TW5BkESA.png" /></figure><p>Don’t change any settings just click “Go” in the dialog box to enable another dialog box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4MA_T3g5P95ALmQubRHT6A.png" /></figure><p>In this small dialog box just check in the first two boxes and press “ok” button. Once you are done the excel will download some patch files from internet so you are asked to connected to internet.</p><p>Once it is over we need to check where add ins package is downloaded in the excel. Now go to Data section and check if you see a Data Analysis button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*baiI3aEFLZb9crd8JiJflw.png" /></figure><p>If you cannot see the data analysis button please go back and do the process again the problem expected to be you have not connected to the internet properly that’s why you will get these errors.</p><p>Ok let’s start with t-test. What is t-test?</p><p>The t-test is any statistical hypothesis test in which the test statistic follows a Student’s t-distribution under the null hypothesis. A t-test is most commonly applied when the test statistic would follow a normal distribution if the value of a scaling term in the test statistic were known.</p><p>Lets do it practical by taking two attributes the one is Sepal Length and Petal Length.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wmZTbsy9NM9uHIiXPbimYA.png" /></figure><p>Click the “t-test paired Two samples for means”. Once you click that you will get another dialog box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zvlmb6MKMK0N1aPpoeNgOQ.png" /></figure><p>Give the values which is given above and click ok. The above values depict that B2:B151 tells that Iam taking the value from B’Column and 2’Row to 151’Row. And put the output has H”Row. Click ok.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yH5rbuB0QESaxFC9gYIXIw.png" /></figure><p>Check the output the mean depicts the average of the number. Variance is the calculated from the mean. The number of observation shows how many records in the rows. Pearson correlation definition I will tell in the next line. “df” says the difference, the difference is zero because the we took the both the rows as 150. So 150–150=0. And the other or the other statistical calculation of t-test.</p><p>Pearson Correlation is a number between -1 and 1 that indicates the extent to which two variables are linearly related. The Pearson correlation is also known as the “product moment correlation coefficient” (PMCC) or simply “correlation”.</p><p>Try other statistical calculation and take a screenshot and drop in the comment box. If you have any question please put it in comment box. Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e66fd59285a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>