<?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 Pushpak Ruhil on Medium]]></title>
        <description><![CDATA[Stories by Pushpak Ruhil on Medium]]></description>
        <link>https://medium.com/@ruhil?source=rss-5624f102752f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*p_j_UgU35MbnrvCDDLrVFA.jpeg</url>
            <title>Stories by Pushpak Ruhil on Medium</title>
            <link>https://medium.com/@ruhil?source=rss-5624f102752f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:42:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ruhil/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[Understanding Transformers Like You Are Five.]]></title>
            <link>https://ruhil.medium.com/understanding-transformers-like-you-are-five-463af9057731?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/463af9057731</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Wed, 23 Jul 2025 11:00:13 GMT</pubDate>
            <atom:updated>2025-07-23T11:00:13.960Z</atom:updated>
            <content:encoded><![CDATA[<p>My story is that keeping track of the math with the complex explanation of Transformers architecture is punishing. So, here’s a guide for myself(and others like me) to understand transformers.</p><h3>The Bird’s Eye View</h3><p>Tokens = Words<br>Words = Tokens</p><p>The <strong>transformer architecture </strong>takes a sequence of <em>tokens</em> as an input →</p><p>→ Turns them into vectors →</p><p>→ Let’s them <strong>“talk”</strong> to each other (self attention mechanism) →</p><blockquote><em>Essentially, we are</em> <em>asking</em> “How much should I care about what the other words are saying?”</blockquote><p>→ Outputs a vector that represents the “meaning” of each word in context</p><p>Imagine a classroom of kids (tokens). Each kid (word vector) learns from <strong>every other kid</strong> in the class through <strong>attention</strong>. Then, they update what they know</p><p>But moving on, we need to understand the encoder and decoder. So, a little closer view from the perspective of encoders and decoders:</p><p>— — — — — — — — —</p><p>Let’s say we are in a classroom and we have 2 groups of students:</p><ul><li>Group A (🧠) = The encoders: These students read the <strong>story</strong></li><li>Group B (✍️) = The decoders: These students write a <strong>summary</strong> of the story, one word at a time.</li></ul><p>But there sure is a catch :P</p><p>Well…</p><ul><li>The encoders can only talk to <strong>everyone in their group</strong> freely.</li><li>The decoder, however, can only:<br>1. Talk to <strong>themselves</strong>, but only to students who have already written something.<br>2. Ask the encoders questions to understand the story better.</li></ul><p>This is the <strong>Transformer</strong> architecture — a system where:</p><ul><li>Encoders build a smart understanding of the input.</li><li>Decoders generate the output using that understanding.</li></ul><blockquote><strong>Encoder: </strong>Reads the entire sequence of input to build a <strong><em>contextual representation</em></strong> of each token.</blockquote><blockquote><strong>Decoder:</strong> Generates the output sequence, one token at a time, attending both to itself(past outputs) and encoder’s representations.</blockquote><h3>The Ugly Math</h3><p>Let’s deep dive into the ugly math that we <strong>must</strong> remember.</p><h3>SETUP - Inputs and Outputs</h3><p>Let’s make some assumptions:</p><ul><li>Input sentence = “The cat sat on the mat”</li><li>output (so far) = “Le chat est”</li></ul><p>We’re trying to translate English to French.<br>Each word becomes a <strong>vector</strong> (a student with knowledge inside!).</p><h3>Encoder: The reading team</h3><p>Each encoder:</p><ul><li>Gets their word (vector)</li><li>Adds their seat position (positional encoding)</li><li>And then goes through <strong>N </strong>layers where they talk to everyone in their group.</li></ul><h4>Step 1: Input Embeddinga</h4><p>Let’s say:</p><ul><li>sql_len = L = 6 (number of words)</li><li>d_model = 512 (size of each word vector)</li><li>h = 8 (Number of attention heads)</li><li>d_head = d_model/h = 64</li></ul><p>We get:</p><ul><li>X ∈ R^{L×d_model} = R^{6×512}</li></ul><p>6 words, each embedded into a 512-dim vector</p><h4>Step 2: Add Positional Encoding</h4><p>Adds seat numbers to the knowledge:</p><p>X&#39; = X + PE ∈ R^{6x512}</p><h4>Step 3: Multi-Head Self-Attention</h4><blockquote>All encoders talk to each other</blockquote><p>Each Encoder:<br><strong>• </strong>Turns their vector into the following:<br> <strong>• Query:</strong> What do I want to know?<br> <strong>• Key:</strong> What do I know?<br> <strong>• Value: </strong>What info do I offer?</p><p>Each student then:<br><strong>• </strong>Uses<strong> dot product </strong>to ask: “Whose key is most similar to my query?”<br><strong>• </strong>Uses <strong>softmax</strong> to assign attention weights<br><strong>• </strong>Gathers weighted values from everyone</p><p>So now…</p><p>Q, K, V ∈ R^{L x d_head} = R^{6x64}</p><p>How did we get this? There are some matrices which I did not mention. This step is known as the attention projection(per head):</p><p>Q = X&#39;W_Q<br> K = X&#39;W_K<br> V = X&#39;W_V</p><blockquote>X’ is R^{6x512}</blockquote><p>Now, do this 8 times → concatenate → project back → get AttnOut ∈ R^{6x512}</p><p>Here, “this” means <strong>scaled dot-product attention </strong>for <strong>one attention head.</strong></p><h4>Step 3.1: Scaled Dot-Product Attention(Per head):</h4><p>Scores = {QK^T}/sqrt(d_head) -&gt; {6x512}{512x6}/sqrt{64} -&gt; {6x6}</p><blockquote><em>If you’re wondering where did the sqrt of 64 go? Easy peasy, we are dividing each element with 8. So, it doesn’t change the overall dimension.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*HTyeSnXrlZKmw1FJERpELA.png" /></figure><p>head_i = softmax(Scores_i) <strong>• V_i </strong>∈ R^{6x64} -&gt; {6x6}{6x64} -&gt; {6x64}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8aEzh1aA2O3Zoxub.png" /></figure><p>Finally, we get the output as, after repeating the steps for 8 times and concatenating:</p><p>AttnOut ∈ ℝ^{6 × 512}</p><h4>Step 4: Add &amp; Norm + Feedforward</h4><ul><li>Resudual connection + LayerNorm</li><li>Then MLP: ReLU(W_1*X)W_2 (512 -&gt; 2048 -&gt; 512)</li></ul><p>Repeat this whole block <strong>N times </strong>(eg: 6 layers)</p><p>The final output will be:</p><p>E∈R^{6x512}</p><p>This is the smart understanding of the sentence — <strong>Encoder’s knowledge</strong></p><h3>Decoder: The Writing Team</h3><p>Now, the decoder students generate the <strong>translation, </strong>word-by-word.</p><p>Let’s recall that the original input and outputs:</p><ul><li>Input sentence = “The cat sat on the mat”</li><li>output (so far) = “Le chat est”</li></ul><p>They’ve seen:</p><ul><li>“Le” -&gt; “chat” -&gt; “est”</li><li>We want them to produce the next word: “assis” (sat)</li></ul><p>Here’s how the decoder step works:</p><h4>Step 1: Input Embedding + Positional Encoding</h4><p>Y ∈ R^{3×512}</p><ul><li>3 words generated so far, embedded</li></ul><h4>Step 2: Masked Self-Attention</h4><p>Each decoder student can only talk to the <strong>students before them.</strong></p><ul><li>For example, student 3 (“est”) can talk to:<br>• Student 1 (“Le”)<br>• Student 2 (“chat”)</li><li>But <strong>NOT</strong> student 4 or 5 (they don’t exist yet!)</li></ul><p>So essentially, same attention as before but we <strong>mask the future:</strong></p><p>Scores ∈ R^{3x3}, with upper triangle masked</p><p>Now they gather weighted info from only past tokens.</p><h4>Step 3: Add &amp; Norm</h4><p>Residual and normalize again, like before.</p><h4>Step 4: Encoder-Decoder Attention (The bridge)</h4><p>Now comes the actual magic:</p><p>Each decoder student asks the following</p><blockquote><em>“Based on what I’ve written so far, can I consult the encoder team?”</em></blockquote><p>They, then, collectively generate:</p><ul><li><strong>Query:</strong> from decoder student</li><li><strong>Key, Value:</strong> From encoder outputs</li></ul><p>Mathematically, we would have:</p><p>Q ∈ R^{3x64} &lt;- From the decoder</p><p>K,V ∈ R^{6x64} &lt;- From the encoder (E ∈ R^{6x512})</p><p>Each decoder student compares their query with all encoder keys:</p><ul><li>“Which part of the input story should I focus on?”</li><li>They use dot product to decide which words to focus on”</li></ul><p>scores = (QK^T)/sqrt(d_h) ∈ R^{3x6} -&gt; {3x64}{64x6}/sqrt(64) -&gt; {3x6}</p><p>Attention = Softmax(QK^T/sqrt(64))<strong>•</strong>V ∈ R^{3x64} -&gt; {3x6}{6x64} -&gt; {3x64}</p><p>They now have an external memory: What the encoder understood.</p><h4>Step 5: Add &amp; Norm -&gt; Feedforward -&gt; Add &amp; Norm (same pattern)</h4><p>The final decoder output will be:</p><p>D ∈ R^{3x512}</p><h3>Final Step: Predict the next word</h3><p>We now project D into vocabulary logits:</p><p>logits = D x W_{vocab}^T ∈ R^{3 x vocab_size}</p><p>Use softmax to get probabilities and pick the most likely next word:<br>“assis”</p><p>Then append it and repeat the entire process</p><h3>Summary: Encoder vs Decoder Flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZzJQyHOEabT1Ipb0R8NLiw.png" /></figure><p>We have:</p><ul><li><strong>Readers</strong> (Encoder) who deeply understand the text by discussing it together.</li><li><strong>Writers</strong> (Decoder) who slowly generate a response:<br><strong>• </strong>First thinking about what they’ve written so far,<br><strong>• </strong>Then consulting the reader group for details,<br><strong>• </strong>Then deciding what to write next.</li></ul><p>The beauty is in the <strong>dynamic attention</strong>: every token decides who to listen to — that’s how we get such powerful language modeling.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463af9057731" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Convexity]]></title>
            <link>https://ruhil.medium.com/introduction-to-convexity-f6e10d09d6a?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6e10d09d6a</guid>
            <category><![CDATA[linear-algebra]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[optimization]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Tue, 13 Feb 2024 14:30:40 GMT</pubDate>
            <atom:updated>2024-02-13T14:30:40.922Z</atom:updated>
            <content:encoded><![CDATA[<h3>1. Introduction</h3><p>This article will start with an important concept of machine learning. Optimization!</p><p>To understand optimization, we need to understand convexity. This article will deal with concepts in convexity. Let us begin.</p><p>We want to know about convex functions. To understand convex functions, we need to build up to it. This article will do exactly that.</p><p>Starting from convex sets, we’ll move on to convex combinations, convex hull, epi of a function, and then finally convex functions.</p><p>We’ll end the article with some commonly used properties of convex functions.</p><h3>2. Convex sets</h3><p>Let’s look at the formal definition of a convex set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J22wAjrRYbFPkG_5eNUf2w.png" /><figcaption>Definition of Convex Sets; Written on Mathcha Editor in LaTeX</figcaption></figure><p>Visually, in 2D, below is the interpretation(along with the 2 extreme cases of 𝜆)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*aNygBxXSm6SN-X2JtpQbrQ.png" /><figcaption>A line is convex</figcaption></figure><p>Simply, interpret it as if you take any 2 points and try to join them using a straight line, the line should not go out of the boundary. The figure below will help you understand it better.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhNu4Pbo_2vVqxNIr_gP-Q.png" /><figcaption>Convex v/s non-convex region/figures</figcaption></figure><blockquote><strong><em>Property: Intersection of 2 convex sets is also a convex set!</em></strong></blockquote><h4>2.1. Convex Sets relevant to Machine Learning</h4><p>One example of convex sets relevant to ML would be hyperplanes. Another example would be half-spaces. All hyperplanes are convex sets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lDfZ5PZZMl6Ln2LnHGPm6A.png" /><figcaption>Proof for hyperplanes; Written on Mathcha Editor in LaTeX</figcaption></figure><h3>3. Convex Combination</h3><p>Let us discuss what convex combinations are.</p><p>Simply put, it is a special kind of linear combination of some points. Let’s dive more into it.</p><p>Let’s consider a set <strong>S</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*kE3XlW0o-qPG90Zhw3vexQ.png" /><figcaption>S is a set of some <strong><em>n </em></strong><em>points in d-dimensions</em></figcaption></figure><p>Please note that S is not a convex set but more like points from a convex set.</p><p>Let us also define <strong>Z</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*mYMTQAhPM91xkmGmQNxTxg.png" /><figcaption>Defining Comvex combination Z; Written on Mathcha Editor in LaTeX</figcaption></figure><h3>4. Convex Hull</h3><p>Again, simply put, a <strong>convex hull </strong>is a set of all Z’s (convex combinations).<br>The Convex hull will be the set of all the possible convex combinations with the given set of points.</p><p>The mathematical definition might be a little confusing but let’s also look at that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/1*DihkK9i6nvvQVbv9ApqbnQ.png" /><figcaption>Convex hull mathematical definition; Written on Mathcha Editor in LaTeX</figcaption></figure><p>We have used the set builder notation here and have mentioned the conditions of convex combinations.</p><p>Let us try to have a graphical understanding of the same.</p><p>Let us consider 4 points, i.e.,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/1*D6oqcNvDGNJBrtpoLvLCxA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*f6_T6ko4GyCehnP9jfcwpg.png" /><figcaption>Made on Mathcha Editor</figcaption></figure><p>The area enclosed within the 4 points(shaded region) is our convex hull(including the boundary points)</p><p>I have marked 3 red points, they all are some arbitrary <strong><em>Z’s</em></strong> that will have a linear combination of the lambda’s according to the 2 conditions mentioned</p><p>Maybe something like <strong>Z=0.1x_1 + 0.5x_2 + 0.4x_3 + 0x_4</strong></p><p>All 𝜆’s here are more than equal to 0 and the sum turns out to be equal to 1</p><blockquote>Convex hull is a convex set!!</blockquote><h3>5. Epi of a function</h3><p>Let’s say we have a function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v0VccX7MJc-CDZuZJ2Qgow.png" /></figure><p>We define the epi of the function as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NX9m4HHaSH4rpQ-6Ax_RiA.png" /></figure><p>This definition may be confusing, but the visual representation below will help you understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*K41PUhsTq0dgdAl3LDAy4A.png" /><figcaption>Visual Representation of Epi of a Function</figcaption></figure><h3>6. Convex Functions</h3><p>There are multiple definitions for a convex function. Let’s look at them one by one</p><h4>6.1. Definition 1</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9JwViHiGSVlJsHyvLVpmsw.png" /></figure><p>Now you know why such a long build-up. We want to work with convex functions, and all the topics we saw above are used in some way or another in convex functions.</p><p>Let’s see it visually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HpLDwGzEaX7Y3mX8lyM5fw.png" /><figcaption>Made using Mathcha</figcaption></figure><p>Now, because the epi of the function “<em>f” </em>is a convex set(try to test for it), we can say that the <strong>function is convex.</strong></p><p>Let’s see another example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tTWl0jgfOCVGUjs-ymlV9A.png" /><figcaption>Made using Mathcha</figcaption></figure><p>In this graph, the epi of the function is not a convex set, so the <strong>function is not convex.</strong></p><p>If you remember, the line joining any 2 points in the shape should not go outside the boundary, but here it does. Hence, not convex.</p><h4>6.2. Definition 2</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*thy9fAmFOZUEZX7bJziP5g.png" /></figure><p>Let’s again look at 2 examples:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ML5FLllUl11RvX4rCG7pdg.png" /></figure><p>Hence, our given “<em>f”</em> is a <strong>convex function.</strong></p><p>Another example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xSqO7KtFrfdvRK6B_SmXQ.png" /></figure><p>Therefore, we can conclude that <strong>this function is not convex.</strong></p><h4>6.3. Definition 3</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sjhCF2_4cwDq2xGG9RhFzg.png" /></figure><p>What we mean is that the function should stay <strong>over</strong> the linear approximation at all times.</p><p>In the case of a quadratic function of the form <strong><em>x</em>²</strong>, the linear approximation is always below the actual function, tangent to the point at which we are approximating the value. In the below case, I linearly approximated the function at <strong><em>x = </em>1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fgOUw9yCZwZ_CqDDBXGxCw.png" /></figure><p>No matter what point you choose, for this function:<br>The linear approximation always stays <strong>below</strong>.<br><strong>OR<br></strong>The function always stays <strong>over</strong> the linear approximation.</p><h4>6.4. Definition 4</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NHyx1vO4AUSwaFNcpCnzrw.png" /></figure><p>For a multivariate function in, say, 2 variables (<strong><em>x</em></strong> and <strong><em>y)</em></strong>, the hessian can be defined as the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8x2qvbajAx_JOSTQJ_m6EQ.png" /></figure><h3>7. Properties of Convex Functions</h3><p>Here are a few properties that you must be aware of, for convex functions.</p><h4>7.1. Property 1: All local minima are global minima</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X8FiJYo9KvZHuElxGhMhiQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*ywKrasfBSP2-_X6m6yp4Vw.png" /></figure><p>Also note that the set of all global minima is a <strong>convex set.<br></strong>Here, it’s <strong><em>[a,b]</em></strong></p><h4>7.2. Property 2: Sum of Convex functions</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TP7K4YQxazNx90BmPNJUzQ.png" /></figure><p>Proof:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*v705T7b00VFOSNh15xX-Ag.png" /></figure><p>Therefore, the sum of convex functions is also a convex function.</p><h4>7.3. Property 3: Composition of convex + non-decreasing function with a convex function</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*keJUQsMrq3wnvlEi-e0UfQ.png" /></figure><p>The proof is similar to the last property’s proof.</p><p>Therefore, the composition of a convex function with a (convex + non-decreasing) function is also a convex function.</p><h4>7.4. Property 4: Composition of convex with a linear function</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3UNxG1qfnARXfEePkxJg6A.png" /></figure><p>Note: In general, if <em>“</em><strong><em>f</em></strong><em>”</em> and <em>“</em><strong><em>g</em></strong><em>”</em> are convex functions then <strong><em>h= fog</em></strong> <em>MAY NOT</em> be convex.</p><p>Here’s an example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/536/1*FHmT0QQ6ZcJ-D-5TJwp-Yw.png" /></figure><p>The above “<strong><em>fog</em></strong>” will give us a graph similar to that of normal distribution.</p><h3>Wrapping Up</h3><p>We end our discussion of convexity here. Next, we will look at unconstrained and constrained optimization. <br>Convexity will help us there.</p><p>We can connect over <a href="https://linkedin.com/in/PushpakRuhil">LinkedIn</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6e10d09d6a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Normal Distribution: Separating the Normal from the Abnormal]]></title>
            <link>https://ruhil.medium.com/normal-distribution-separating-the-normal-from-the-abnormal-52d653fc2bf?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/52d653fc2bf</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 04:41:41 GMT</pubDate>
            <atom:updated>2023-03-02T04:41:41.167Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s move on to the next topic in our statistics journey, i.e., the <strong>normal distribution.</strong></p><h3>Relation with the exponent — e</h3><p>If we were to plot the graph for e^(-x²), this is what we end up with</p><blockquote>Graph of <strong>e raised to the power of negative x squared</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S8xLteelc4CQ68e5DD_agA.png" /></figure><p>But this particular formula doesn’t qualify for a distribution. Why? Because there were a few hypotheses/axioms that need to be satisfied.</p><p>The one that isn’t followed here is one related to the area. The area under the curve needs to be equal to 1.</p><p>So, we make simple scalar modifications to end up with the formula of our need.</p><p>You can notice the difference below. The blue curve is of a normal distribution.</p><blockquote>The curve is also known as the bell curve because it resembles a <em>🔔</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eU3QAk8HjOn0rW44JclNqw.png" /></figure><p>Now we see, the area under the curve(AUC) rule holds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*ITjHsLa72Ea1zr6IbCosNQ.jpeg" /></figure><p>But this is a very special case of the normal distribution known as the <strong>Standard Normal Distribution. </strong>Here, the mean is 0 units and the variance is 1 unit.</p><h3>The notation and the general formula for the PDF</h3><p>Usually, this is the notation followed for a normal distribution.</p><p>We have the mean and the variance specified together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*xsrd9FSNMM80AOXUtLZZRA.png" /></figure><p>BUT BE AWARE…</p><p>There is another notation, which might confuse you. Instead of the variance, they use the standard deviation as a notation. Nevertheless, follow the above convention wherever necessary. The below notation, if used, would be specified to you in some form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*rfVA9nhoXXt3xBs0g2IOGg.png" /></figure><p>Now talking about the PDF, we have it as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8XoMrQbfTe1UZ2yvX8UU_w.png" /></figure><h3>The standard normal distribution</h3><p>A Standard Normal Distribution is one with 0 mean and unit variance. <br>~ N(0,1)</p><p>Let’s talk about the <strong>68–95–99 rule</strong>. Sometimes, you may see people calling it the <strong>68–95–99.7 rule</strong> or the <strong>empirical rule</strong>.</p><ul><li>It says that approximately 68% of the data is within 1 standard deviation of the mean.</li><li>About 95% of the data is within 2 SDs about the mean.</li><li>And about 99.7% of the data is within 3 SDs about the mean.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*-4MuWqVFM8vY6SJJ.jpg" /></figure><p>Why is the normal distribution called normal? Well, it’s pretty simple reasoning. It’s called normal because IT IS normal. What I mean is that it is a very common distribution noticed almost everywhere. You’ll get a clear understanding of it once you know what CLT is, which is a topic to be discussed during inferential statistics.</p><h3>Cumulative distribution function — CDF</h3><p>We cannot calculate the CDF directly from the PDF.</p><p>We know that — <br>CDF = integration of the PDF</p><p>Integrating the PDF is not an easy task to perform. But there is an easy walkthrough to it.</p><p>We use something called the <strong>Z Table. </strong>There are two Z-tables, One for the positive side(right side of the 0 means) and another one for the negative side(left of the 0 means).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/0*GYDwlM_EoDK1VD1t.png" /><figcaption>Z table (Negative side)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/759/0*4m5KzWmK5rzKJP38" /><figcaption>Z table (Positive side)</figcaption></figure><h4>Step 1</h4><p>Standardize your value to calculate the z-score.</p><p>Z-score is the value you get after converting your N(mu, sigma²) score to a N(0,1) score</p><p>We use the below formula to get the z-score</p><ul><li>X is our value of the random variable</li><li><strong>µ </strong>is the mean and</li><li>σ is the standard deviation</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/345/1*n6anC2XIr991slUxsE2IVQ.png" /><figcaption>Z-score formula</figcaption></figure><blockquote>Example: Let’s say for N(5, 9) we have X=9.3<br>z = (9.3–5)/3 = 4.3/3 = 1.43333 ≈ 1.43 (Take to 2 deimal places)</blockquote><h4>Step 2</h4><p>Reading the value from the Z-table</p><p>In the Z-table, start by looking at the left column to get the row respective to our Z-score.</p><blockquote>In our example, We look at the row corresponding to 1.4<br>Look at the last row of the below image.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*FDs1GgYwHE78S2YUIbHisw.png" /></figure><p>Now, we choose the column required by us according to the Z-score.</p><blockquote>In our example, the Z-score was 1.43<br>We took the row corresponding to 1.4<br>Now we choose the .03 column<br>Turns out to be <strong><em>0.9236</em></strong></blockquote><p>This is how we get the CDF</p><p>In our example, we get the AUC to be 0.9236 for a z-score of 1.433</p><p>=&gt; F(1.43) = P(Z &lt; <em>z</em>) = P(X &lt; 9.3) = 0.9236</p><blockquote>F(1.43) is the CDF for a Std. Normal Distribution</blockquote><p>There is also a concept of reverse lookup of the Z-table, where we have the area and we want the Z-score. <br>You just look at the area from the table and get the corresponding z-score. Just reverse what we just learnt.</p><h3>Wrapping up</h3><p>Thanks again if you made it till the very end of this article.<br>I would be starting with the inferential statistics from the next article.<br>We’ll start learning about the parameter estimation, hypothesis testing, etc from now on.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52d653fc2bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Variables and Probability Functions — 2]]></title>
            <link>https://ruhil.medium.com/random-variables-and-probability-functions-2-b539d06154b2?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b539d06154b2</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Wed, 11 Jan 2023 17:43:28 GMT</pubDate>
            <atom:updated>2023-01-11T17:50:36.144Z</atom:updated>
            <content:encoded><![CDATA[<h3>Random Variables and Probability Functions — 2</h3><p>There are two parts to this title. This is the second part.</p><p>Here we will look at CDF and PDF, some continuous distributions, expected values and variances.</p><p>If you landed here directly, please read <a href="https://ruhil.medium.com/random-variables-and-probability-functions-1-e56f249881b5">the last part by clicking here, first</a>. It’ll help you understand this one better because I’ll continue right where I left.</p><h3>Cumulative Distribution Function</h3><p>CDF and PDF are directly related, but we need to understand what CDF is, first.</p><p>CDF is a function which gives us the probability that a random variable <strong>X</strong>’s value is less than or equal to some value, <strong><em>x</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*8qi0LiWZb65s1Ks_glSCnQ.png" /><figcaption>CDF of a random variable X</figcaption></figure><ul><li>CDF’s curve starts from 0 and saturates at 1.</li><li>CDF is always increasing, with an increasing value of <strong><em>x.</em></strong></li></ul><p>Let’s say we have a discrete random variable <strong>X</strong> that takes 5 values</p><p>{<strong><em>x₁, x₂, x₃, x₄, x₅</em></strong>}</p><p>each <strong><em>x</em></strong> with a respective probability -&gt;</p><p>{<strong><em>p₁, p₂, p₃, p₄, p₅</em></strong>}</p><p>Then, the CDF would look something like this →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W1YSiovNd4shUdtouoyYkg.png" /><figcaption>The green step-curve is the CDF for our example</figcaption></figure><p>Don’t be confused by this curve, I’ve taken a very arbitrary example with uneven values of <strong><em>x </em></strong>and their respective probabilities.<br>However, for a discrete RV, this is what a CDF graph would typically look like.</p><p>This will help us understand the CDF for the next part — PDFs</p><h3>Probability Density Functions</h3><p>Before we dive into PDFs, we must understand the concept of probability in continuous random variables.</p><p>What is the value of P(X=x) would be, where <strong>X</strong> is a continuous random variable, in your opinion?<br>The answer is ZERO!<br>Yes, the probability at a given point is always 0. Sounds fascinating, no? I mean, even though the probability at all the given points is 0, there is a probability for some interval.<br>So, the idea is that the probability exists for an interval when dealing with continuous random variables.<br>Can you guess why? We can explain it using the same idea that I mentioned for continuous RVs (Infinite precision).</p><h4>Formal definition and relation with CDF</h4><p>A continuous random variable <strong>X</strong> with CDF <strong>Fₓ(<em>x</em>) </strong>is said to have a PDF <strong>fₓ(x), </strong>if, for all <strong>x₀</strong>, the following holds</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*zBIxJqWSAIjnWhkdsWasSQ.png" /><figcaption>CDF from PDF</figcaption></figure><p>If the above definition is confusing, here’s a simpler version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*MBemubob4JyUcvZWLvPT8w.png" /><figcaption>Simple relation</figcaption></figure><ul><li>CDF is the integration of PDF.</li><li>PDF is the differentiation of CDF</li></ul><p>That’s it. This is what was needed for you to know to move forward.</p><h4>Properties of PDF</h4><ul><li>Integral from -∞ to +∞ of PDF is always equal to 1.</li><li>The area under the curve(AUC) of PDF is also equal to 1.<br>- Both these terms are equivalent if you can figure out how :p</li><li>PDF is always more than equal to 0</li></ul><h4>What does <strong>fₓ(<em>x</em>) mean?</strong></h4><p><strong>fₓ(x) </strong>doesn’t mean that we are talking about the probability at a point <strong><em>x. </em></strong>Rather, it means what the probability density is AROUND <strong><em>x.</em></strong></p><blockquote>While writing this article, I picked up on a small issue I made. There’s a difference between probability and probability density. We may use them interchangeably, however, they are different.</blockquote><p>So, we don’t explicitly mention it, but if you find <strong>fₓ(x) </strong>written somewhere, it implies that we are discussing about the probability around x.</p><h3>Continuous Distributions</h3><p>Let’s have a look at a few continuous distributions.</p><h4>1) Uniform Distribution</h4><p>If<strong> X ~ Uniform[a,b], </strong>then we say that every value x belonging to X has a uniform probability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*Ziz0pHMZOznFtISaTL2ZUg.png" /><figcaption>PDF of X, following Uniform distribution</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/843/1*iYCUHwefQKFo4u0aQPQ_4A.png" /><figcaption>PDF of X</figcaption></figure><blockquote>Try making a CDF curve for this. It’s easy :D</blockquote><h4>2) Exponential Distribution</h4><p><strong>X ~ Exp(</strong>λ<strong>)</strong></p><p>Here, we have 1 parameter — λ</p><blockquote>An exponential distribution is a way to describe how often something happens.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*8COFwZMXy59-PZBfvEibRg.png" /><figcaption>PDF of exp(λ)</figcaption></figure><p>Here’s a rough calculation of CDF of a random variable <strong>X~Exp(λ)<br></strong>This would help you get an idea of how to calculate CDF from PDF.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nxZMIYJTUYN-R675gblUPQ.png" /><figcaption>Ignore the handwriting :p</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OcIO9O4j9RUnHTn9ew05CQ.png" /><figcaption>PDF and CDF of an exponential distribution</figcaption></figure><h4>3) Normal Distribution</h4><p>This is the last distribution that I want to touch upon, in this article.</p><p>I will write a detailed article on normal distribution later on, but for now, I just want to give a brief overview of it.</p><p>This is, by far, the most important distribution you’ll ever see. <br>Its graph is commonly referred to as a <strong><em>bell curve.</em></strong></p><p><strong><em>X ~ N(μ,σ)</em></strong></p><p>There are 2 parameters — <strong><em>μ </em></strong>is the mean and <strong><em>σ </em></strong>is the standard deviation.</p><p>Sometimes, the notation <strong><em>X ~ N(μ,σ²) </em></strong>is used.<strong><em><br></em></strong>In this case, <strong><em>σ² </em></strong>is the variance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*kKjTJYxweyOTwo_DaNqOrA.png" /><figcaption>PDF formula for a normal distribution.</figcaption></figure><p>It is not possible to directly calculate the CDF for a normal distribution. There are alternatives to it.</p><p>We’ll talk about them in a separate article :’)</p><h3>Other Distributions</h3><p>I did not mention many distributions, you must be aware of them. However, it is not necessary to memorise them. <br>That’s just not practical either :’)</p><p>I will list some of the distributions for you to explore when you have time —</p><ul><li>Poisson’s distribution</li><li>Beta distribution</li><li>Gamma distribution</li><li>Chi-squared distribution</li><li>Cauchy distribution</li></ul><p>There are just a few that come in handy if you, at least, know about them.</p><p>Poisson’s and Chi-squared are, especially, the more important ones to be familiar with :’)</p><h3>Expectations and Variance</h3><p>I’d try to keep this brief.<br>Learning about random variables and probabilities without understanding expectation and variance is not fully beneficial.</p><p>Both, the expected value(or expectation) and the variance can be defined for discrete as well as continuous random variables. <br>All my formulae will be for discrete random variables.<br>You just have to smartly convert the summation sign to an integration sign, and you’ll have your formulae for continuous RVs.</p><h3>Expectation</h3><p>You already know what mean/average is. I had it mentioned in my “<a href="https://ruhil.medium.com/the-art-of-descriptive-statistics-12ac457cf275">The Art of Descriptive Statistics</a>” as well.</p><p>The expectation is a way to describe the <strong>mean of a random variable.<br></strong>It is the average value of a random variable over a large number of trials.</p><p>Denoted as <strong>E[X]<br></strong>It can be calculated as the summation given below, over the support of our RV.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*m6QuI1eD5MVbfWh5KNtqXg.png" /><figcaption>Expected Value Formula for a discrete RV</figcaption></figure><h4>What if you have a function of a random variable?</h4><p>Let’s say, something like Y = g(X)<br>Where X and Y both are random variables and Y is a function of X.</p><p>In that case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*sDIxKmnU2oj48ecDBxtLFQ.png" /><figcaption>The expected value of a function of a random variable</figcaption></figure><p>Note that here, the summation is over the support of X and not Y.</p><p>Certainly, you can also express the formula completely in terms of Y, as we did before(for X).</p><h3>Variance</h3><p>The variance of a random variable is a measure of the spread between its possible values.</p><p>We define variance as follows — <br><strong>Var(X) = E[ (X — E[x] )² ]</strong></p><p>We can simplify this further, however, I’m not going to do that here. <br>Feel free to attempt it yourself. All you need to do is expand the squared term.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*brdflGbo85CObruErae4oQ.png" /><figcaption>The variance of a random variable.</figcaption></figure><p>If you observe the simplified formula, you’ll see that we are using the concept of “the expected value of a function of a random variable”</p><p>Some points to keep in mind —</p><ul><li>Given Y = aX+b, E[Y] = a*E[X] + b</li><li>E[X+Y] = E[X] + E[Y]</li><li>Generally, Var(X+Y) ≠ Var(X) + Var(Y)</li></ul><h3>Wrapping Up</h3><p>In conclusion, I would like to express my gratitude to all of my readers for taking the time to read this article. <br>I hope it was informative and helpful.</p><p>I will continue to research and write about related topics in the future, bringing you up-to-date information and insights on the subject matter. <br>I am planning to write an article on topics from linear algebra as well. So, once I’m done with the statistics part, I would be starting with that.</p><p>I would also love to hear feedback from you all, please feel free to reach out to me with any questions, comments or suggestions. I look forward to connecting with you all in the future with more such interesting articles.</p><p>Thank you again for your support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b539d06154b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Random Variables and Probability Functions — 1]]></title>
            <link>https://ruhil.medium.com/random-variables-and-probability-functions-1-e56f249881b5?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e56f249881b5</guid>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Sat, 07 Jan 2023 19:20:12 GMT</pubDate>
            <atom:updated>2023-01-11T17:46:38.656Z</atom:updated>
            <content:encoded><![CDATA[<h3>Random Variables and Probability Functions — 1</h3><p>There will be 2 parts to this title. This is the 1st part.</p><p>In this article, we will look at what random variables are and the different probability functions that exist.<br>I will assume that you already have a basic understanding of probability.</p><h3>Random Variables (RVs)</h3><p>A Random Variable is a function from a set of possible outcomes to a set of real numbers.<br>It maps a real number to each possible outcome.</p><p>For example, we roll a die with our RV being X. Then, <br>X = {1,2,3,4,5,6}</p><p>If we flip a coin, <br>X= {1, 0} (we mapped heads to 1 and tails to 0).</p><p>More mathematically →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*38KiRilHT2k9whSwgBM5eg.png" /><figcaption>RV, mathematically.</figcaption></figure><p>Here, X is a Random Variable, <strong>Ω </strong>the Domain(the possible outcomes)</p><p>X is mapped to R’’. This could also be a subset of R’’.</p><h3>Types of Random Variables</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Yk_x92aqAp1ibxvkHwB9Q.png" /><figcaption>Types of RVs (Drawn on ExcaliDraw)</figcaption></figure><h4>1) Discrete Random Variables</h4><p>These random variables take <strong>finite</strong> or <strong>countably infinite</strong> values.</p><p>Countably infinite values are countable but infinite, hehe.<br>Here’s a more detailed definition for a countably infinite set — <br>A countably infinite set is a set that contains an infinite number of elements, but the numbers can be counted one by one in a way that never ends. for examples: {1,2,3,…}</p><p>Examples of Discrete RVs:</p><ul><li>The sum of numbers on two dice throws</li><li>The outcome of a single die</li><li>The number of tosses after which a head appears (COUNTABLY INFINITE)</li></ul><h4>2) Continuous Random Variables</h4><p>These random variables take uncountable values.</p><p>This type of random variable can take an infinite number of values that cannot be counted one by one.</p><p>Examples of Continuous RVs:</p><ul><li>The amount of rainfall in a state</li><li>The temperature of a surface</li><li>The density of a liquid</li></ul><p>You might be wondering how these examples are classified as continuous random variables. <br>We can measure the rainfall or the temperature of a surface, then how do they fall under the category of “continuous RVs”?</p><p>The answer is that we can measure these quantities, but we approximate them to our benefit.<br>Rainfalls are approximate values. We cannot calculate them to infinite precision. <br>We are talking about the precision of the level beyond the size of an electron. This isn’t possible. We always approximate!<br>The same logical approach can be used to argue about the temperature, density, or any other example you can think of.</p><h3>Probability Functions</h3><p>There are many types of probability functions, but let’s focus on the 3 most basic types. Even here, we’ll only look at PMF and the other 2 would be discussed in the next article.<br>We’ll see the name of other types of probability functions at the end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H1Cna25ERhfhK_cpxui2lg.png" /><figcaption>Types of Probability Functions (Drawn on ExcaliDraw)</figcaption></figure><h4>1) Probability Mass Function</h4><p>An assignment of probabilities to all the possible values that a <strong>discrete RV </strong>can take is called the <strong><em>Probability Mass Function of the random variable</em></strong></p><p>It is also known as the <strong><em>probability distribution of the random variable</em></strong>.</p><p>It assigns a probability to each value that the random variable can take.</p><p>let’s consider an example to better understand it.</p><blockquote>Example: We want to find the probability of an event defined by the sum of numbers that appear on 2 dice throws.</blockquote><p>Let <strong>X</strong> be the random variable denoting the event “Sum of numbers of the 2 dice throws”</p><p>let <strong>x</strong> be an individual value taken by the random variable <strong>X</strong>.</p><p>PMF can be used to answer questions such as →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*GfkeCZGNkkIQTl4MOZRg9w.png" /><figcaption>The probability that X takes a value x.</figcaption></figure><p>Let’s look at the possible outcomes for each X=x</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_GYwxsaeYK2irqfu4KogLQ.png" /><figcaption>All possible events for 2 dice throw</figcaption></figure><p>Now, we can calculate the probability for each event using the -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*MaZ07vLbgfG0g6wzucHhsg.png" /><figcaption>Calculating Probability</figcaption></figure><p>Resulting in the following probabilities →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*nVssVvVH26o3qcplvlembg.png" /><figcaption>PMF of each X=x</figcaption></figure><p>You may also notice this representation, at times —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*559dpGwaHA20KtHIZ6eLhg.png" /></figure><h4>Properties of PMF</h4><p>Here are a few properties you should be aware of.<br>Refer to the picture below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ogrVUOcDjtMuljwlfQG4rQ.png" /></figure><h3>Discrete Distributions</h3><p>Now, let’s examine a few discrete distributions commonly used in statistics.</p><h4>1) Bernoulli Distribution</h4><p>This type of distribution is used for experiments with two possible outcomes: failure and success.</p><p>For True/False, On/Off, 1/0, etc conditions.</p><p>Such experiments are called <strong>Bernoulli Trials.</strong></p><p>P(success) = <em>p</em><br>P(failure) = <em>1-p</em></p><p>let’s see this in a compact form. Let <strong>X</strong> be an RV denoting the Bernoulli distribution and <strong>x </strong>be any possible value of X. Then, we can denote the PMF using the following notation -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/1*LbrO44zSzkdNQ0uLP6DBOg.png" /><figcaption>PMF for Bernoulli DIstribution.</figcaption></figure><p>Here,<br>P(0) = <em>1-p<br></em>P(1) = <em>p</em></p><blockquote><strong>How to check if a distribution is valid or not?<br></strong>I would not be testing the validity of any of these distributions, but to check for the validity, you need to check 2 things, i.e., the properties of PMF.<br>1) Each probability should be ≥ 0<br>2) Sum of probabilities over the support of the RV should be = 1.</blockquote><h4>2) Binomial Distribution</h4><p>This is one of the important distributions.<br>In simple terms, a Binomial distribution is a Bernoulli distribution repeated over and over <strong><em>n</em></strong><em> times.</em></p><p>The Binomial Distribution is a discrete distribution. It is used to model the number of successes in a series of Bernoulli Trials. The Binomial Distribution is denoted by X∼Bin(n,p)</p><p>But there’s a catch. These conditions need to be followed for every trial:</p><ol><li><strong>INDEPENDENCE: </strong>Success/Failure in one trial should not affect the outcome of any other trial.</li><li><strong>IDENTICAL: </strong>The probability of success in each trial is the same, i.e., <em>p.</em></li></ol><p>What is the probability of <strong>k</strong> successes in <strong>n</strong> trials?<br>This is the type of question that binomial distribution helps us answer.</p><p>Let <strong>X</strong> be the RV. <strong>k</strong> be the number of successes.</p><p>Then, the probability of getting <strong>k </strong>successes in <strong>n</strong> trials, each with a probability of success equal to <strong>p</strong>, can be derived from the following formula.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*gQoZjFqge0s7y31OgB6_2w.png" /><figcaption>PMF for Binomial Distribution</figcaption></figure><p>If you check, this formula is similar to what we have for a Bernoulli distribution. <br>Here, we have a combination term as well. For those who don’t remember, here’s a quick refresher on the formula for combinations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*sHllzvWV58deTd2PJashWA.png" /><figcaption>Combination formula.</figcaption></figure><h4>3) Geometric Distribution</h4><p>Instead of performing a trial “n” times, we perform the trial “∞” number of times.</p><p><strong>X</strong>: The number of trials until we get the 1st success.</p><p>Let <strong>k </strong>be the number of trials performed to get our 1st success. What does it mean? We performed our trial k times and got our 1st success after (k-1) failures.<br>So, can you find the PMF of it?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/495/1*hOrdgBNhiI68NkXo5fJMPw.png" /><figcaption>PMF of Geometric Distribution.</figcaption></figure><p>We can derive the PMF using the simple multiplication rule of probabilities.</p><h4><strong>4) Uniform distribution</strong></h4><p>Experiments with equally likely outcomes.<br>For example, the outcomes of a die-throw.</p><p>Let <strong>X</strong> be the RV denoting the experiment where the outcomes are equally likely.<br>We also need to assume a range for our support of X.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*qYw0Hkp3-19EBMVR_tMcLQ.png" /><figcaption>PMF of Uniform distribution.</figcaption></figure><p>Here, (b-a+1) can be explained using the counting principles. It simply is equal to the number of numbers between a and b.</p><h3>Wrapping up</h3><p>Well, thanks for reading through.<br>This is my 2nd article while continuing the journey of writing articles related to statistics. This is the 1st part of “Random variables and Probability Functions”, The 2nd part is available as well.</p><p>The 2nd part extends the topic to CDFs(Cumulative Distribution Functions) and PDF(not the format :p It stands for Probability Density Functions)</p><p>Also, I mentioned at the top that I’d be referring to the other type of probability functions. Here are a few other than PMF, CDF and PDF -</p><ul><li>Joint probability mass function</li><li>Joint probability Density function</li><li>Moment-generating function</li></ul><p>For now, I’ll not be focusing on these, but I might come up with an article in the future.</p><p>Hopefully, this article was beneficial for you in some way or another.</p><p>Do show your support by dropping in a follow and a comment :’)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e56f249881b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Art of Descriptive Statistics]]></title>
            <link>https://ruhil.medium.com/the-art-of-descriptive-statistics-12ac457cf275?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/12ac457cf275</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[mathematics]]></category>
            <category><![CDATA[descriptive-statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Sat, 17 Dec 2022 15:53:42 GMT</pubDate>
            <atom:updated>2023-12-15T18:59:04.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Every analysis should, by the norms, begin with descriptive statistics.</p><p>Descriptive statistics is the branch of statistics used to summarise the data.<br>It is used to give brief summary of the data.</p><p>I will try to give a quick summary of the types of data before diving into the details of descriptive statistics.</p><h3>Types of data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wk7d0Ny-dqwZHYnKUKxag.png" /><figcaption>Types of data — Drawn on Excalidraw</figcaption></figure><h3>Summary Statistics for Quantitative Data</h3><p>There are mainly 2 different ways to use summary statistics for Quantitative (numerical) Data —</p><ol><li>Measure of Centrality</li><li>Measure of Spread</li></ol><h3>1) Measure of Centrality</h3><p>The measure of centrality includes 3 main measures —</p><ul><li>Mean</li><li>Mode</li><li>Median</li></ul><h4>Mean -</h4><ul><li>Mean is nothing but the arithmetic average of the data points.</li><li>Let’s say we have <strong>n</strong> data points from a SAMPLE**</li></ul><p>* <em>There’s a difference when we talk about sample and population. There is no difference in the formula for the mean for the two, but you need to understand that there is a difference.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*194L3KVc7ZpyF3kB.jpg" /></figure><p>Then, the sample mean, would be →</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/0*jKx42D5sMrWlwpyR.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*LYPicyfMq15avDvYcDEkwQ.png" /></figure><h4>Mode -</h4><ul><li>Mode is the most frequently occurring value in the data set.</li><li>Mode is not calculated for a dataset where we have bins** of size more than 1.</li></ul><p>* <em>bins are taken into consideration when we have continuous data with lots of values. To ease our work, we end up creating bins of particular bin sizes.</em></p><ul><li>We can have single uni-modal, bi-modal, tri-modal,… multi-modal data.</li><li>If all values are repeated exactly once, we say that the mode doesn’t exist.</li></ul><h4>Median -</h4><ul><li>The Median is the value which appears at the centre of the data WHEN THE DATA IS <strong>SORTED.</strong></li><li>Let’s say we have <strong>n </strong>data points, sorted in the order</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*KTRDFhEivZO2G6rwis9_fA.png" /><figcaption>X is a set of all the data points</figcaption></figure><p><strong>CASE 1</strong>: n is odd</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*8UWqlORSZD66at7R2b8BNA.png" /><figcaption>If n is odd, use this formula</figcaption></figure><p><strong>CASE 2</strong>: n is even<br>In this case, we will have 2 medians, calculated using the following formulae</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/707/1*IXfwrfUqD5gtlxt-GjxduA.png" /></figure><blockquote>Mean is sensitive to outliers, while median and mode aren’t.</blockquote><blockquote>An outlier is a data point which is far off from the other values in a data.<br>Formal Definition to be given when discussing IQR</blockquote><h3>2) Measure of Spread</h3><p>The measure of spread includes a lot of things. Here are a few —</p><ul><li>Percentile</li><li>range &amp; IQR</li><li>Variance</li><li>Standard Deviation</li></ul><h4>Percentile -</h4><p>The <em>Pth</em> percentile of a sample is a value such that the <em>p </em>percentage of the values in the dataset is less than or equal to this value.</p><p>As an example, 90 percentile in an exam means that you did better than 90% of the people. Or, there are 90% of people who scored equal to or less than you and 10% of people who scored more than you.</p><p>How to calculate the value at <em>p-th</em> percentile? There are 3 steps to it</p><p><strong>Step 1: Sort the data<br>Step 2: Compute the location of the <em>p-th</em> percentile<br>Step 3: Calculate the value of the <em>p-th </em>percentile.</strong></p><p>After sorting the data, use the following formula to calculate the location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*ZAP018gwPAhi6iE7si9rTw.png" /><figcaption>Location of P-th percentile</figcaption></figure><p>After calculating the location, we will have a real number with an integer part and a fractional part.<br>Eg: if Lp = 18.2, then the integer part is 18 and the fractional part is 0.2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*R58Dludw_pEYu2Usgz0Beg.png" /><figcaption>storing the integer part and fractional part separately.</figcaption></figure><p>As a final step, you need to calculate the value of the <em>p-th</em> percentile</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/581/1*e4ICbovJUG3tefgaLqapHg.png" /></figure><blockquote>Let’s look at a quick example. <br>Say there are 25 students who appeared for an exam and we store their marks. We wan’t to see the value for 70th percentile.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/718/1*b9_CklkIashSwzdiwtg5wA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*ugyqk9vw5N49TQJ3H56cqQ.png" /></figure><p>So, the 70 percentile means the score would be 56.6</p><h4>Range -</h4><p>Range = (max_value — min_value)</p><p>If the range is high, we say that the spread is high.</p><p>But, the range isn’t the best measure because it is <strong>highly sensitive</strong> to outliers.</p><p>So, what’s the solution? IQR!!!</p><h4>Inter Quartile Range (IQR) -</h4><ul><li>IQR is not sensitive to outliers, unlike range</li><li>IQR is defined as the difference between the 75th percentile and the 25th percentile.</li><li><strong>IQR = Q3 — Q1</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/913/1*ala5ywdoZbxpjcvtdSbMCg.png" /><figcaption>IQR = Q3 — Q1</figcaption></figure><p>Why do we call it the inter-<strong>QUARTILE</strong> range, though?</p><h4>Quartile -</h4><ul><li>Quartiles divide the data into 4 equal parts, giving us 3 quartiles.</li><li>In the above image, we can see that the data is divided into 4 equal parts (25% each) and we get 3 quartiles, Q1, Q2 and Q3.</li><li>Similarly, we have quintiles (5 equal parts, each of 20% of the data) and deciles (10 equal parts, each of 10% of the data)</li></ul><blockquote>Now that we know what IQR is, let’s formally define outliers.<br><strong>Outliers: </strong>Any data point <strong>x</strong> is considered to be an outlier if…<br>x &lt; Q1–1.5*IQR<br>OR<br>x &gt; Q3 + 1.5*IQR</blockquote><h4>Variance -</h4><ul><li>Variance is the measure of how variable the data is from the mean. By how much the data is spread.</li><li>It is calculated by taking the average of squared deviations from the mean.</li><li>Variance can also be thought of as a measure of CONSISTENCY. Low variance data are more consistent.</li><li>Variance is calculated differently for a sample and for a population.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*wm6xFxHs7MKlWcXefqU6lA.png" /><figcaption>different variance calculation for a sample and for a population.</figcaption></figure><blockquote>This difference of 1/n and 1/(n-1) can be explained using the concepts of inferential statistics, which is out of the scope of this article.</blockquote><p>Here, n is the size of the sample/population</p><ul><li><strong>Also, note that </strong>the unit of variance is not the same as of the data. Here, the unit is squared.</li></ul><h4>Standard Deviation-</h4><ul><li>SD is, again, a measure which tells us the variation of the data from the mean.</li><li>The only difference is that SD is the squared root of variance.</li><li>S = √S²</li><li>σ = √σ²</li><li>Here, the unit is the same as the data.</li></ul><h3>Effects of Transformation</h3><p>Finally, as I wind up, it is also important to understand the effects of transformation on the summary statistics, when each data point is scaled and shifted.</p><p>Let’s say that each data point is scaled by a factor of <strong>a </strong>and shifted by a factor of <strong>c</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*8yXKudTobBkiTKStFsWYZQ.png" /></figure><h3>Wrap up</h3><p>Thanks for reading the article.</p><p>I wanted to resume writing articles for a long time but my busy schedule didn’t let me. Hopefully, I’ll be writing more articles, gradually increasing the complexity.</p><p>This was a fairly easy topic to start with but an important one!<br>People who are starting to enter this field would be benefitted from it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12ac457cf275" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HOW NOT TO GET HACKED]]></title>
            <link>https://ruhil.medium.com/how-not-to-get-hacked-57d923b3cc94?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/57d923b3cc94</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[phishing-awareness]]></category>
            <category><![CDATA[facebook]]></category>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Mon, 13 Jun 2022 10:15:46 GMT</pubDate>
            <atom:updated>2022-06-13T10:29:48.963Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*UCnLKn6iuCOHG8oa.png" /></figure><p><em>Recently, I have been seeing so many people getting hacked/phished easily on Instagram and other social media platforms. Hence, I decided to write an article to help you secure your accounts!</em></p><p>I will be taking a running example of Instagram hacking.</p><h3>What is a <strong>Phishing attack</strong>?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XIyxwgkT6buReHzt.jpg" /><figcaption>Phishing ~~ fishing</figcaption></figure><p>It is very similar to what we know as “fishing”.<br>We have a “trap” with food attached to it. <br>A fish would come and see food, which looks legitimate. Now when it starts to eat the attached food, boom! The fish gets trapped!</p><p>Now in a PHISHING ATTACK, there is also a trap — a login page that would look exactly like that of Instagram.<br>You put your credentials to it, and boom! You are now hacked.</p><blockquote>You might wonder, “I know that we don’t have to login to some random link that asks us to login” BUT, BUT, BUT….</blockquote><p>That’s where <strong>social engineering </strong>comes into play.</p><h3>What is Social Engineering?</h3><blockquote>Social engineering is <strong>the term used for a broad range of malicious activities accomplished through human interactions</strong>. It uses psychological manipulation to trick users into making security mistakes or giving away sensitive information. Social engineering attacks happen in one or more steps.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*GSE6kTgdplUZZTK6.png" /><figcaption>Hacker posing to be a good man in order to manipulate you to get sensitive information.</figcaption></figure><h3>HOW TO PROTECT YOURSELF?</h3><blockquote>Now let us jump to the main part of it. How can you protect and possibly identify a phishing attack?<br>After a person(can be a hacker texting you from your friend’s hacked account) texts you, and manipulates you somehow to login to some link, you will see something similar to what I have posted below.</blockquote><h4>Protect yourself — 1</h4><p>Just look at the URL in the picture below. <br>You can identify a phishing page by the URL. If it’s <strong>not</strong> “instagram.com” <br><strong>You don’t have to login to it.</strong></p><h4>A quick way to check phishing pages?</h4><p>Just randomly enter anything in the fields, if it redirects you to some other page, it’s a phishing attack! Not the best way, but amateur hackers would be caught with this trick</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*SCXl_7wi5Q7pbXI3.jpg" /></figure><h4>Protect yourself — 2</h4><p>Enable 2-step authentication!<br>Instagram is tired of telling you to secure your account by enabling 2 step authentication! YET, YOU GUYS DON’T ENABLE IT.</p><p>TRUST ME, it would be close to impossible to phish you if you have 2-step auth enabled because even after getting your credentials, to actually log in, the hacker will have to hack your “sim card” which isn’t a very easy task!</p><h4>Protect yourself — 3</h4><p>Keep a strong password! <br>Usually, what we do is use passwords with some sort of words in them. This is the most common way to keep a password secure too, but you can go one step further to avoid any sort of guessing or brute-forcing of your password.</p><p>First of all, <strong>keep your passwords for social media different from what you have for the recovery email</strong>. <br>For example, you can keep a similar/same password for Instagram, Facebook, and Snapchat <strong>but don’t keep the same password for your Gmail. </strong>This would ensure that even if your Instagram gets hacked, you have your recovery email secure.</p><p>Second of all, use this trick to have a strong password.<br>Think of any sentence or 2, say — <br><strong><em>My name is Pushpak Ruhil. I am 21 years old.</em></strong><em><br></em>All you have to do is take the initials of this(these) sentence(s) and form a strong password.</p><h4>In this case, my password would be — <strong><em>MniPR.Ia21yo.</em></strong></h4><p>Notice how this looks completely <strong>random</strong> and also <strong>constitutes everything needed for a strong password</strong> — upper case, lower case, numbers, special characters.</p><p>think of some completely random sentence that only you can think of. Even if you type it in front of someone and they see it, they’ll never make sense of it.</p><h3>How secure is your password?</h3><p>You can check how secure your password is on the following link<br><a href="https://www.security.org/how-secure-is-my-password/">https://www.security.org/how-secure-is-my-password/</a></p><p>If I check for the same password I formed above using those 2 simple sentences, it’d take <strong>5 MILLION YEARS to crack it using brute-force methods</strong></p><p>You can check your current password’s strength on the link above.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZUKCP1IrKS8AtueBIC8a7A.png" /></figure><p>NOTE THAT this website is telling you an approximate time to crack your password using <strong>BRUTE-FORCE METHODS. </strong><br>Brute-Forcing is basically trying every single combination possible.</p><h3>Conclusion</h3><p>Stay secure :)<br>If you get hacked, your <strong>1st step</strong> should be to check for a mail from Instagram/Facebook and recover and secure your account from that mail.<br>The <strong>next step</strong> should be to change the password of all other platforms which use the same password.<br>If you don’t see a mail, try to contact the support team of Instagram somehow. Usually, this is done by tapping “need more help” or “having trouble logging in?” on the login screen of your Instagram app. Follow the steps and they will contact you to verify your identity.</p><p><strong>Lastly</strong>, TURN THE TWO-FACTOR AUTH ON !!!!!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57d923b3cc94" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Things you should do as a Data Scientist, other than Data Science.]]></title>
            <link>https://ruhil.medium.com/things-you-should-do-as-a-data-scientist-other-than-data-science-abbbcd091e19?source=rss-5624f102752f------2</link>
            <guid isPermaLink="false">https://medium.com/p/abbbcd091e19</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Pushpak Ruhil]]></dc:creator>
            <pubDate>Mon, 19 Apr 2021 22:19:33 GMT</pubDate>
            <atom:updated>2021-04-20T12:22:55.462Z</atom:updated>
            <content:encoded><![CDATA[<p>After studying Data Science(DS) for more than a year, this will be my very 1st article on any platform. I want my 1st article to be something that can inspire other DS aspirants to follow. This is someone I haven’t seen many DS aspirants talking about, so here it is…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*Wu4WjEjXFqADoQJABC307w.jpeg" /><figcaption>Adding a completely random, out of context picture because why not? Image source : ice bear cartoon</figcaption></figure><p>You’re probably reading not just this but many other articles on a daily basis (or at whatever frequency you have). Ever wondered why so many people share their post related to DS on this platform? Sure few of them are earning from these articles, but the major community is doing it for free! And there’s a common reason too…</p><p>Sharing one’s experience is useful for others. Knowledge is not bound to any particular community. “<strong>Education/Knowledge is for anyone who wants it”. </strong>It does not just create a learning environment by helping others, but they are improving themselves too. It surely enhances their communication skills, which is the prime soft skills needed. So let’s begin with the main title of things you should do as a Data Scientist, other than DS.</p><h3>THESE ARE THE THINGS YOU SHOULD START DOING AS SOON AS POSSIBLE, TO HELP OTHERS AND TO IMPROVE YOUR SELF -</h3><h4>1) START WRITING BLOGS, ARTICLES ON PLATFORMS LIKE MEDIUM</h4><p>As you could already tell why I am writing this article on medium, you should start too. This will ensure that you 1 — l<strong>earn from yourself</strong>, 2 — <strong>you help others who may need help with the topic you’re a pro at.</strong></p><p>As a Data Scientist, you need to work on your communication and writing skills as much as you can. Even I am working on it, for improvising the same.</p><p>Write blogs on different experiences you have, topics you should are difficult to understand, and what not?</p><p>Also, Medium is not the only platform. There are many others, but Medium is the most famous one, so why not only this? But do try other platforms too, it’s totally a personal preference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Su_uqZVJh8_DufNEo8wVTA.jpeg" /><figcaption>Start writing your blogs, this is the sign you need | Photo by <a href="https://unsplash.com/@glenncarstenspeters?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Glenn Carstens-Peters</a> on <a href="https://unsplash.com/s/photos/writing-article?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>2) START TEACHING WHAT YOU HAVE KNOWLEDGE OF</h4><p>The above point will mainly help you in improvising your written skills but teaching others will ensure that you’re working on your spoken skills too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/595/1*s7HSsGL3ZwyS1at_CDAVkw.png" /><figcaption>Remember Dexter doing those chemical reactions when you were 8? image source — Dexter cartoon</figcaption></figure><p>Who’s telling you to teach others? <strong>TEACH YOURSELF</strong>. Be your own teacher, stand in front of a mirror, or just sit on your study table and explain everything to yourself. Your explanation should be such that it’s explained using simple words. Think of it as you explaining some complex chemical reaction to a 5-year-old kid as “You mix these 2 liquids and magically they form that particular substance.” This skill is pretty useful when explaining your projects to non-technical clients.</p><p><strong>3) FOLLOW TECH RELATED NEWS</strong></p><blockquote>Many people skip this one. KEEPING YOURSELF UPDATED WITH TECH RELATED NEWS, SPECIALLY RELATED TO DS, IS … I M P O R T A N T</blockquote><p>Take out a day, google every possible thing related to Data Science and boom! half of your work has been done. You now have DS curated news feed on google.</p><p>Start following DS and ML related pages on Instagram, join discussion groups, attend webinars, go through the tech section of your favourite news website, watch interviews, there’s literally so much you can do in just 15 minutes of your regular break</p><p>To name a few, these are my recommended Instagram pages to keep yourself updated —</p><ol><li><a href="https://www.instagram.com/datadrivenscience/">Data-Driven Science</a></li><li><a href="https://www.instagram.com/bigdataqueen/">Big Data Queen</a></li><li><a href="https://www.instagram.com/datascience.brain">Data Science Brain</a></li><li><a href="https://www.instagram.com/funwithmachinelearning/">Fun With Machine Learning</a></li></ol><p>Find more for yourself :P</p><p>This will ensure your personal growth.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/1*-zwdnf-XpWxsZuYN5spZSg.jpeg" /><figcaption>keep a note of it all. Image source — ice bear cartoon</figcaption></figure><h3>FINAL WORDS</h3><p>naa, no final words. LOL</p><p>Take care, have a great DS journey.</p><p>BYE :D</p><h3>FINAL WORDS PT 2</h3><p>OKAY FINE!</p><p>I’ll be occasionally posting things in a concise way not wasting your time.</p><p>My main aim is to spread my experience and get experienced.</p><p>Thanks for reading up till here.</p><p>Hope you enjoyed this article. I’ll keep on using such memeified images to keep you engaged. HAVE A GREAT DAY BUDDY.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abbbcd091e19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>