<?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 Chinmay Sathe on Medium]]></title>
        <description><![CDATA[Stories by Chinmay Sathe on Medium]]></description>
        <link>https://medium.com/@chinmaysathe93?source=rss-79d447840aba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*K8gclE7hXRWPRLN5z-wBjg.jpeg</url>
            <title>Stories by Chinmay Sathe on Medium</title>
            <link>https://medium.com/@chinmaysathe93?source=rss-79d447840aba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:48:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@chinmaysathe93/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[Know Enough Series: Exploratory Data Analysis — PART 2]]></title>
            <link>https://medium.com/@chinmaysathe93/know-enough-series-exploratory-data-analysis-part-2-251f871fb480?source=rss-79d447840aba------2</link>
            <guid isPermaLink="false">https://medium.com/p/251f871fb480</guid>
            <category><![CDATA[beginners-guide]]></category>
            <category><![CDATA[scatter-plots]]></category>
            <category><![CDATA[eda]]></category>
            <category><![CDATA[pair-plots]]></category>
            <category><![CDATA[seaborn]]></category>
            <dc:creator><![CDATA[Chinmay Sathe]]></dc:creator>
            <pubDate>Mon, 30 Mar 2020 18:03:59 GMT</pubDate>
            <atom:updated>2020-03-30T18:14:04.828Z</atom:updated>
            <content:encoded><![CDATA[<h3>Know Enough Series: Exploratory Data Analysis — PART 2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X448IpRHBMBPygikXw3KPQ.jpeg" /><figcaption>Image of Iris Flower — Taken from <strong>Pinterest</strong></figcaption></figure><p>Now that you know what EDA is, let us explore some tools which will help you get familiar with the data from a statistical point of view. The topics I’ll be covering in this post are :</p><ol><li><strong>2-D and 3-D Scatter Plot…</strong></li><li><strong>Pair Plots</strong></li></ol><p>We will be using the IRIS data set, which you can import through various methods like :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*Ii4SDlW9ZmwgGwk-ASS_MQ.png" /><figcaption>1. using <strong>sklearn.datasets</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*Pb2EBxc0rxfAXGyfpM-TEg.png" /><figcaption>2. by <strong>downloading </strong>and then <strong>importing </strong>data set from <a href="https://archive.ics.uci.edu/ml/datasets/Iris">here </a>.</figcaption></figure><p>For this post, I’ll be following the 2nd method (I have coded on Google Colab, hence the file link looks like that).</p><h3>A bit about the famous IRIS Dataset :</h3><p>The Iris dataset was used in R.A. Fisher’s classic 1936 paper. It includes 3 iris species with 50 samples each (thus total 150 samples) as well as some properties about each flower. <strong>One flower species is linearly separable from the other two, but the other two are not linearly separable from each other.</strong></p><p>The columns in the data set are :</p><ol><li>id — unique id given to each observation</li><li>sepal.length</li><li>sepal.width</li><li>petal.length</li><li>petal.width</li><li>variety — whether it is <strong>Setosa, Versicolor or Virginica</strong></li></ol><p>and our task in EDA is to find some statistical relations between <strong>Dependent Variables</strong> (from 2–5) and<strong> Independent Variable</strong> (variety).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*GF6mEVaHzJyIUPqeapV_Qg.png" /><figcaption><strong>iris </strong>is the pandas data frame of iris.csv file downloaded earlier</figcaption></figure><h3>1. 2-D Scatter Plot:</h3><blockquote>A <strong>scatter plot</strong> is a mathematical diagram using Cartesian coordinates <strong>(x,y) </strong>to display values for typically two variables for a set of data.</blockquote><p>Here, to draw a 2D scatter plot, I’ll be using the seaborn library. A simple 3 line code is as follows (comments are important, read them) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HrUzzrobAAti7TrxIlQIHg.png" /><figcaption>Code Snippet #1a</figcaption></figure><p>You can plot any 2 features (sepal.length &amp; sepal.width) of a pandas dataframe (iris) on a 2-D plane using the above code. The code resulted in :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*v-VmF2NyKtD5OAXBH7IQGw.png" /><figcaption>Output : Code Snippet #1a</figcaption></figure><h4>What can we infer from this?</h4><p><strong>First</strong>, as you can see the blue dots (Setosa) are easily separable from the other 2 varieties using a single line.</p><p>And <strong>second</strong>, the other 2 varieties are going to give us a hard time ahead to separate.</p><p>But, this is just from 2 features, what about other ⁴C₂ = 6 combinations? You could try those as an exercise if you want.</p><h4>What about 3D,4D or n-D scatter plot?</h4><p>For 3D, it requires some extra knowledge of javascript and python, but, yes, they are possible. You can find many awesome 3D plots on Kaggle, or even here on Medium, like the one made here :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*YLzdZ70zDKbmso9_OrwxvA.gif" /><figcaption>Taken from <a href="https://www.kaggle.com/jontix"><strong>kaggle.com/jontix</strong></a></figcaption></figure><p>But for 4D and more ….well if you want, you could, but it would be of no use since better methods are available for us to be used and, also, humans are unable to see things beyond 3D space, so there is that <strong>biological limitation</strong>.</p><h3>2. Pair Plots</h3><blockquote>Plot pairwise relationships in a dataset.(Yup! thats it.)</blockquote><p>So, what is a better way to plot all the pairs of features in one go, instead of doing it pair by pair? Well, since this task is done so many times, Seaborn library provides you with pairplots within a few lines solution as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*QCemKMZUdICvPbS5fmMbtQ.png" /><figcaption>for more on pair plot: <a href="https://seaborn.pydata.org/generated/seaborn.pairplot.html">https://seaborn.pydata.org/generated/seaborn.pairplot.html</a></figcaption></figure><p>It results in 2D scatter plots for all 6 combinations of the features. Additionally, it also gives a<strong> univariate distribution graph</strong> of the respective data (will be talked about in the next post). The output is as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*AOik3J7yMUqt0VW6qogXJg.png" /><figcaption>Pair-Plot on dataset iris (ignore diagonal elements for now)</figcaption></figure><h4>Things to notice:</h4><ul><li>all the features are in x as well as the y-axis, forming a matrix-like structure having 4 rows and 4 columns, let it be <strong>M₄₄</strong>. For example, in the last row, let it be <strong>R₄</strong>, <strong>petal.width</strong> is the<strong> y-axis</strong> while the combination of all the features with <strong>petal.width </strong>is on the x-axis of <strong>R₄</strong>.</li><li>When noticed carefully, the matrix <strong>M₄₄ </strong>is a symmetric matrix. We can remove the extra graphs (above or below diagonal) by adding <strong><em>corner=True, </em></strong>to the pairplot code. Hence the resulting pairplot graph would be :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*4kZwHq-1J4zDqEcS-JsSsw.png" /><figcaption>Pair-Plot after removing symmetry</figcaption></figure><ul><li>Now, notice the graph with <strong>sepal.width</strong> as y-axis and <strong>sepal.length</strong> as x-axis, i.e, the 1st graph. By drawing a line between blue dots cluster and green-orange dots cluster we can separate <strong>Setosa </strong>flowers from the rest of the herd (our main objective is to separate all kinds of flowers from each other).</li><li>The same task can be done in a much better way when features, <strong>petal.width </strong>and <strong>petal.length </strong>are taken into consideration :</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*khl_eJS2N4ZKEstaviegGw.png" /><figcaption><strong>a scatter plot between petal.length and petal.width taken out of the pair plot above.</strong></figcaption></figure><ul><li>As you will notice, for <strong>petal.length </strong>less than 2<strong> </strong>and <strong>petal.width </strong>near about 0.7<strong>, </strong>it’s all filled with blue dots. Similarily for orange and green dots are also following some patterns. Thus, we can state that</li></ul><blockquote>1. if, <strong>petal.length&lt;2 </strong>and <strong>petal.width&lt;0.7 </strong>the flower is<strong> Setosa.</strong></blockquote><blockquote>2. if, <strong>3≤petal.length≤5 and 1≤ petal.width≤1.75 </strong>the flower is <strong>Versicolor.</strong></blockquote><blockquote>3. else, for the rest of the values, it is <strong>Virginica.</strong></blockquote><p>Although the last 2 statement are not 100% accurate, still they are legal, logical and correct with some errors. Thus by using the above 3 statements only, we can discriminate the 3 kinds of iris flowers.</p><h4><strong>Congratulations! You just built a model without sweating much, and by using simple if-else statements only.</strong></h4><p>This is why EDA is so much recommended. It reduces your model&#39;s workload (yours as well).</p><p><strong>After doing the above few steps these are the observations we could come up with:</strong></p><ol><li><strong>petal.length</strong> and <strong>petal.width</strong> are much more useful than any other features.</li><li><strong>Setosa</strong> was easy to distinguish, but <strong>Virginica </strong>and <strong>Versicolor </strong>took some doing and hence will be the reason for errors during predictions.</li></ol><p>I will let you digest this much for now, play some more with the codes, try out a different dataset and perform EDA on it using these 2 tools. There is more to come in the next post.</p><p>*<strong>Wink</strong>ardiam Leviosa*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=251f871fb480" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Know Enough Series : Exploratory Data Analysis — PART 1]]></title>
            <link>https://medium.com/@chinmaysathe93/know-enough-series-exploratory-data-analysis-part-1-625b24084d43?source=rss-79d447840aba------2</link>
            <guid isPermaLink="false">https://medium.com/p/625b24084d43</guid>
            <category><![CDATA[beginner]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[eda]]></category>
            <dc:creator><![CDATA[Chinmay Sathe]]></dc:creator>
            <pubDate>Sun, 22 Mar 2020 19:05:05 GMT</pubDate>
            <atom:updated>2020-03-30T18:19:45.198Z</atom:updated>
            <content:encoded><![CDATA[<h3>Know Enough Series: Exploratory Data Analysis — PART 1</h3><blockquote>Give me six hours to chop down a tree and I will spend the first four sharpening the axe.― Abraham Lincoln</blockquote><p><em>This series is a collection of my notes and learnings. It is a handy collection of information for beginners in this field. If you find any faults please point it out.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*XVQOrtPQgBfm9IXlzVIrew.jpeg" /><figcaption><strong>Pic. Courtesy: Whoever made the Pie and also the Meme.</strong></figcaption></figure><h3>Introduction (an eye-opener for some):</h3><p>When I started my data science journey, a question that constantly kept popping up in my mind was that what makes Data Science different from Coding? It was a definite doubt, since, all we did was, take some dataset, read its description, maybe Standardize some features then come the Model Implementation and finally the Visualization part.</p><p><strong><em>So what differentiates Software Development from what we do in Data Science ??</em></strong><em><br></em>Other than the jobs and larger packages, these few are the differences I see :</p><ul><li>In <strong>Software Development (SD)</strong> we create data with/by/of data while in <strong>Data Science (DS)</strong> we procure valuable information from the data.</li><li>In SD you might have seen 1000+ lines of codes but in DS the code is just the implementation part and that too, not a tough one now, thanks to Google, Amazon, and others. Hence, the codes are of 25 or a tad bit more lines.</li><li>To make your work count to something in DS, you need proper knowledge of Probability, Statistics, Python, and many more Algorithms. While in SD, all you need is Logical Thinking and basic coding knowledge.</li><li>Both the fields are equally booming and equally competitive. I am not partial towards any of them because hard work is required to do well in any of them.<strong> And, let me make this clear, things are not easy to understand, but once you do understand, they are not easy to</strong> <strong>FORGET, while they’ll make you hungry for more.</strong></li></ul><h4>Lets Begin….</h4><p>The Data Science life cycle is as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QD6tQXThXuf5jEB9sF5tjw.png" /><figcaption>Taken from <a href="https://towardsdatascience.com/@drhanlau?source=post_page-----26c50372b492----------------------"><strong>Dr. Cher Han Lau</strong></a><strong>’</strong>s Post on Medium</figcaption></figure><p>Generally, when you download a dataset, which most of us beginners do, it has already been undergone the <strong>OBTAIN</strong> and <strong>SCRUB</strong> process. Here, we shall talk about the mid and most important part <strong><em>E</em></strong>, i.e. <strong>EXPLORATION</strong><em>.</em></p><h3>What is Exploratory Data Analysis?</h3><p>In simple words, you try to get the gist of the data using some probabilistic and statistical tools with the help of Python/R or any other language you are comfortable with. (Okay! Not so simple words, <strong>I KNOW!</strong>) Let me try to give you an intuition using one example.</p><p>Suppose you have no idea what an entity ‘STUDENT’ means. As in, you have zero clues as to what a student does. Who do we call a student? Is ‘student’ a job or is it something edible? You have no idea !!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*slQfFxmHB-6nJUE7ZD8P3g.png" /></figure><p>Now, when you are given a dataset that contains data of a student with some information related to its academic and other records. <strong>What do you do?</strong></p><p>You compare it with something you already know about and try to make a sense of it. Suppose you start comparing it with an entity ‘EMPLOYEE’. (you know what an employee is but don’t know what students are. I know! Strange world.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*73WR9exKZzY5a-BEPfgCWw.png" /></figure><p>You see that the EMP_ID of the EMPLOYEE looks similar to ROLL_NO of the STUDENT since they uniquely identify each row ( just <strong>FYI,</strong> EMP_ID or ROLL_NO are called <em>Features). </em>Similarly, ‘ATTENDANCE’ has a similar meaning and so on…</p><p><em>So, what did you do?</em> <br>You took some unknown dataset (STUDENT) and you tried making it meaningful to you by understanding its <strong><em>features</em></strong>, using some tools (EMPLOYEE). Now, in <strong><em>EDA</em></strong><em>,</em> the idea is same, i.e.,<strong> you have an unknown dataset and you need to make a sense out of it using some known tools, only here the tools won’t be some known dataset but few charts and a lot of mathematics (mainly P&amp;S), which you will be familiar with, after this EDA series.</strong></p><h3>Why Do This EDA thing?</h3><p>Suppose, you know the algorithm to make the tea. You know the names of the ingredients but you have no idea about their properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*3bNG4_jjTqpccM6znphnKQ.png" /></figure><p><strong>1. Will you be able to make tea?</strong></p><p><strong>Most definitely you will</strong>!<br>You have the names, you have the ingredients, you have the algorithm <strong>𝔸</strong> explaining which goes when and where and also the quantity of it.</p><blockquote>This is what generally people do. The algorithm <strong>𝔸</strong> is your algorithm of any <em>Model</em>( Linear Regression, Decision Tree, etc.) &amp; ingredients are your F<em>eatures</em>.</blockquote><p><strong>2. What if my grandpa (who is a sugar patient, mind you) asks you for a cup of tea with little to no sweetness?</strong></p><p>Now, you have a situation. You know that sweetness must be reduced but don’t know that sugar is the reason for it. In other words, since, you don’t know any properties of any ingredients, you might make some guesses and maybe you will make something resembling a tea but you may accidentally kill him.</p><blockquote>Since you don’t know what feature denotes what and how much is it important or what is the relation between some features, you will still be able to make PREDICTIONS and provide it to your company but in the long term they might be wrong and you may just have killed the companies profits or even the whole organisation itself.</blockquote><p>Using EDA, we explore what data is really about, we get a feel of what it wants to say to the world and some other philosophical stuff. <strong>My point is, first know your data and know your tools. Then, you can do wonders with the same stuff others are unable to get even simple results out of.</strong></p><p><strong><em>That’s all for this one.</em></strong><br>The following are the topics I will be covering within next few continuations of this EDA topic:</p><p><em>2D and 3D scatter Plots, Pair plots, Histograms, PDF &amp; CDF, Mean, Variance, Standard Deviation, and Median <br>Percentiles and Quantiles also IQR and MAD, Box-plots, Violin plots.</em></p><p><em>*Winks with both eyes closed*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=625b24084d43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Know Enough Series : Linear Algebra]]></title>
            <link>https://medium.com/@chinmaysathe93/know-enough-series-linear-algebra-87086fc5a42?source=rss-79d447840aba------2</link>
            <guid isPermaLink="false">https://medium.com/p/87086fc5a42</guid>
            <dc:creator><![CDATA[Chinmay Sathe]]></dc:creator>
            <pubDate>Thu, 19 Mar 2020 14:09:52 GMT</pubDate>
            <atom:updated>2020-03-22T06:30:08.253Z</atom:updated>
            <content:encoded><![CDATA[<h3>Know Enough Series : Linear Algebra</h3><blockquote>The only true wisdom is knowing you know nothing — Socrates</blockquote><p><em>This series is collection of my notes and learnings. It is a handy collection of information for beginners in this field. If you find any faults please point it out.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7SEQs29HgeZwRPBK" /><figcaption>Photo by <a href="https://unsplash.com/@antoine1003?utm_source=medium&amp;utm_medium=referral">Antoine Dautry</a></figcaption></figure><h3>Why Learn This ?</h3><p>Linear algebra is the first step in learning<strong> calculus</strong> and <strong>statistics</strong> (the basic foundations of many machine learning algorithms). It develops your intuition regarding how and why stuff works.</p><p><strong>You may be able to classify IRIS flowers using a hyperplane, but you may get stuck, if asked in the interview, why this works 99.99% of the times ?</strong> (You’ll be able to answer such questions after this post.)</p><p>There are many books and videos related to this topic and I have summarized everything just to keep your interest in this area.</p><h3>Let us Begin…</h3><p><strong>Points to be covered:</strong><br><em>1. Distance between origin &amp; a vector<br>2. Distance between two vectors<br>3. Angle between two vectors<br>4. Projection<br>5. Unit Vector<br>6. Distance of point from a plane<br></em><strong><em>….(</em>Where have we used it before ?<em>)…</em></strong></p><h3>1. Distance <em>between</em> origin &amp; a <em>vector</em>:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*VxTVw2KGSsXqSt_0IVXoxQ.png" /></figure><p>Let ‘<em>d’</em> be the distance between origin <strong>𝕆</strong> and a point/vector <strong>P </strong>with coordinates (<em>a,b</em>) in a 𝟚-d plane. (Here a 𝟚-D point is represented using a vector,thus <strong>P</strong> = [<em>a b</em>]). Then <em>d</em>, using pythagoras theorem can be written as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*WiJyFr3cZmVOur3u6p-gWw.png" /></figure><p>Similarly, distance between <strong>𝕆</strong> and <strong>P</strong>(<em>a,b,c</em>) i.e. in 𝟛-dimensional would be :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/324/1*y4Ogm-tZX40eP2G4BCbkcw.png" /></figure><p>Similarly, distance between <strong>𝕆</strong> and <strong>P</strong>(<em>a,b,c,d,e,</em>…..) i.e. in 𝕟-dimensional would be :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*97u9Zdvkivge_hoI8BWATw.png" /></figure><h3>2. Distance <em>between</em> two <em>vectors</em>:</h3><p>Let ‘<em>d’</em> be the distance between <strong>P</strong>(<em>a,b</em>) and <strong>Q</strong> (<em>c,d</em>) in a 𝟚-dimensional plane. Then <strong><em>d</em></strong> can be written as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*W_vBrI_pQcdJ2d28RNPMKQ.png" /></figure><p>Similarly, distance between <strong>P</strong>(<em>a</em>₁,<em>a</em>₂,<em>a</em>₃….) and <strong>Q</strong>(<em>b</em>₁,<em>b</em>₂,<em>b</em>₃…..) i.e. in 𝕟-dimensional space would be :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/290/1*SfCALVe9-REYELDa0sTUWg.png" /></figure><h3>3. Angle <em>between</em> two <em>vectors</em>:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/1*LPnA2XbA77MeAeceRpZzyQ.png" /></figure><p>Let <strong><em>a</em></strong>=<strong>[</strong><em>a</em>₁,<em>a</em>₂<strong>]</strong> and <strong><em>b</em></strong>= <strong>[</strong><em>b</em>₁,<em>b</em>₂<strong>]</strong> be two vectors on a 𝟚-d plane, then their dot(<strong>.</strong>) product is :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*c_RjU34D0QATAstm4tzA0Q.png" /><figcaption><strong>— Eq.( 1 )</strong></figcaption></figure><p>where <strong>∥<em>a</em>∥</strong> is the length of <strong><em>a</em></strong><em> </em>or in other words distance of <strong><em>a</em></strong> from the origin (<em>Refer to 1.</em>) . Hence, as we learnt earlier,<strong> ∥<em>a</em>∥</strong> and<strong> ∥<em>b</em>∥</strong> can be written as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*5WqOODUbfXszgQ08_YfwiA.png" /></figure><p>Now, if you know a little bit about dot product you will understand that <strong><em>a.b</em></strong> can be written as, (if not, read about simple matrix multiplication between <strong><em>a</em></strong> and <strong><em>b</em></strong>,where <strong><em>a</em></strong>=<strong>[</strong><em>a</em>₁,<em>a</em>₂<strong>]</strong> and <strong><em>b</em></strong>= <strong>[</strong><em>b</em>₁,<em>b</em>₂<strong>]</strong> are two column matrices) :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*RwiswWOyN7ubbM0hlOqaKA.png" /></figure><p>finally, <strong><em>Eq. (1)</em></strong> can be re-arranged and thus results as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*95-XJaJgpxFIayJgyZXVng.png" /></figure><p>Similarly, this can be extended to 𝕟-dimensions as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*k6qw6kv5FzNpogVE68sZrw.png" /></figure><h3>* Note : a.a = ||a||²</h3><h3>4. Projection:</h3><p>Projection here means if vector <strong><em>a </em></strong>is perpendicularly fallen over vector <strong><em>b</em></strong>. And this projection ‘<em>d’ </em>, can be represented as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*uurjZLRmKotYOYAYjfHpRg.png" /></figure><p>now we know <strong>cosθ</strong> = <strong>base/hypotenuse</strong> ,thus <em>d</em> can be written as :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/215/1*orPDaxGjrGfULX6CeKpe9w.png" /></figure><p>and by <strong><em>Eq.(1)</em></strong>, we can find <em>d</em> as follows :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/292/1*b-27pG2Yo4s0Yh3KDMqh_Q.png" /><figcaption>— Eq. (2)</figcaption></figure><p>Thus, <strong><em>Eq. (2)</em></strong> represents the projection of <strong><em>a</em></strong> on <strong><em>b</em></strong>.</p><h3>5. Unit Vector:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*mCCj7qG47-3UEyFeFBUFEg.png" /></figure><p>The <strong>hat</strong>{<strong><em>a</em></strong>} can be written as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/152/1*2g6croxIQdy3M-wRWYNyTQ.png" /></figure><p>and it can be noted that :<br>1. Unit vector <strong>hat</strong>{<strong><em>a</em></strong>} is in the same direction as <strong><em>a</em></strong>.<br>2. <strong>∥hat</strong>{<strong><em>a</em></strong>}<strong>∥</strong> =1 , <em>i.e.</em>, length of <strong>hat</strong>{<strong><em>a</em></strong>}is 1.</p><h3>6. Distance of a point from a plane:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*jsvUPxO0vUCFLXT9oejvTA.png" /></figure><p>Since, the plane passes through origin, the equation of the plane w.r.t. a vector <strong><em>W</em></strong>, can be written as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/156/1*zFwtCT5EW6Y4YMgSQgjj9w.png" /></figure><p>The distance <em>d</em> can be written with help of <strong>W</strong> as follows (proof not req.):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/166/1*ofS8NNoUJOIoydNX0hwuVg.png" /></figure><h3><strong><em>….(Where have we used it before ?)…</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*ZV6eUN-50vlg5KAgxE4jhw.png" /></figure><p>For a point lying at one end of the plane having the angle <strong>θ</strong> between <strong>W</strong> and <strong>P</strong>, less than <em>90</em><strong><em>ᵒ</em></strong>. Hence, <strong>W.P</strong> = ∥<strong>W</strong>∥∥<strong>P</strong>∥<em>cosθ</em> is positive. Here, we can relate these two as:</p><ul><li>If the point <strong>P</strong> is in same direction as <strong>W</strong> then <strong>W.P</strong> will be <strong>positive.</strong></li></ul><p>Similarly, for a point lying at other end of the plane having the angle <strong>Φ</strong> between <strong>W</strong> and <strong>P’</strong> greater than <em>90</em><strong><em>ᵒ</em></strong>. Hence, <strong>W.P’</strong> = ∥<strong>W</strong>∥∥<strong>P’</strong>∥<em>cosθ</em> is negative. Here, we can relate these two as:</p><ul><li>If the point <strong>P’</strong> is in opposite direction as <strong>W</strong> then <strong>W.P’</strong> will be <strong>negative.</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*BEuJpFcL8nzMw0QHBwCqqg.png" /></figure><p>Now, since point <strong>P</strong>,<strong>Q</strong> &amp; <strong>R</strong> are on one side, and <strong>1</strong>,<strong>2</strong>,<strong>3</strong> &amp; <strong>4</strong> are on the other side, the two sets are linearly separated. <strong>This is the basic behind how a hyperplane discriminates IRIS flowers.</strong></p><p><em>*Winks*</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87086fc5a42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>