<?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 Shiffraw dagnechaw on Medium]]></title>
        <description><![CDATA[Stories by Shiffraw dagnechaw on Medium]]></description>
        <link>https://medium.com/@shiffdag?source=rss-4c5a74f201c4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*s8bTkL_t83mIiO51TgWOPw.jpeg</url>
            <title>Stories by Shiffraw dagnechaw on Medium</title>
            <link>https://medium.com/@shiffdag?source=rss-4c5a74f201c4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:24:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shiffdag/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[My Experience Doing a 12 Week Data Science Bootcamp]]></title>
            <link>https://shiffdag.medium.com/my-experience-doing-a-12-week-data-science-bootcamp-69266db8b606?source=rss-4c5a74f201c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/69266db8b606</guid>
            <category><![CDATA[career-change]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-science-bootcamp]]></category>
            <dc:creator><![CDATA[Shiffraw dagnechaw]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 21:13:12 GMT</pubDate>
            <atom:updated>2020-11-22T19:58:10.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*ZMhcVCDaBmFB_cBqPmSeyA.png" /></figure><p>The decision to pursue data science as a career path was not a difficult one given the ever increasing relevance and importance that it has acquired in our everyday lives. Data science has played a major role in advancing our understanding of many phenomena and has aided many people in coming up with solutions to very important problems. As someone that comes from a Mathematics background and who is captivated by its pragmatic application, it was only a matter of time before I set my eyes upon this profession that everyone was talking about.</p><p>My initial exposure to Data Science took place in the midst of my college years without me even realizing it. I was looking to work part time in a research lab. After having applied to several labs, one particularly caught my eye. The lab was a Medical Physics lab at my alma mater. At the time, the lab was doing research on engineering medical imaging technology with fluorescence polarization, particularly for the purpose of detecting skin cancer. Aside from doing menial tasks around the lab, I was using MATLAB for the purposes of image processing. I was a novice when it came to the task of conducting computer vision and programming in general, but my new found fascination drove me to learn as much as I could and deliver as much as I could in the short time span that I worked with the lab. This experience turned out to be my last experience with data science for several years.</p><p>One day it dawned upon me that the career I was pursuing was very dull and boring. I was studying for my third actuarial exam, during the pandemic, and realized that this isn’t what I wanted to do with my life anymore. After taking a lot of time to reflect and think about what I wanted to do with my life, it couldn’t have been more clear to me that data science is what I wanted to do. The more research I did on the profession the more my eagerness grew. But there was just one problem. I didn’t know the best way to go about learning data science. There was a sea of information out there and I didn’t know where to begin. I started off by purchasing multiple books, some were deeply entrenched in theory and some were purely about application. I also started watching college lectures online on machine learning. I started to get frustrated because over time I wasn’t making the progress that I needed or had wanted after a few months passed.</p><p>I was out one night with a few friends and I stumbled across someone who was in the midst of doing a web development bootcamp. We struck up a conversation and the person was showing me their portfolio and the skills he acquired in a short time frame. He told me that they also offered a Data Science bootcamp along with a myriad of other options. This was not the first time I had heard of a bootcamp. I knew they existed, but I didn’t know that much about them. I looked up the bootcamp that the person was attending and it looked very promising. I still had many reservations and still felt apprehensive about going forward with the bootcamp after having thought about it for several months. The bootcamp was <strong>NOT </strong>cheap and I was intimidated by the schedule. The Data Science bootcamp is 12 weeks long and 10 a.m to 6 p.m Monday to Friday. This was clearly a very big commitment. What if I wasn’t able to finish it? What if the quality of information wasn’t good? What if it was a scam? I had a lot of uncertainty.</p><p>I eventually decided to go forward and apply to the program and I am currently in the last week of the Bootcamp. In hindsight, I believe it was a great decision to make. The vast amounts of information that was learned in such a short time span wouldn’t have been possible on my own. When discussing reasons as to why we decided to part take in the bootcamp with the other boot camp goers, a common answer is that the bootcamp provides structure and forces you to learn the information instead of relying upon yourself to get up everyday and dedicate hours to learning and refining your craft in data science.</p><p>Looking back, I am very happy that I chose to go through with it. I had amazing instructors that were very helpful and informative. I met great people that came from all sorts of different professional backgrounds. I have acquired a lot of skills that I wouldn’t have had by now. There were certainly very frustrating and stressful moments, but that comes naturally with anything worth learning or pursuing. I am very content with how much my skillset has grown and I am looking forward to keep growing. Although the thought of the job application process brings a great deal of anxiety, I know the bootcamp has set me on the right course.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69266db8b606" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Probability Distribution? And why they are important?]]></title>
            <link>https://shiffdag.medium.com/what-is-a-probability-distribution-and-why-they-are-important-dee5e5c1ba99?source=rss-4c5a74f201c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/dee5e5c1ba99</guid>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[probability-distributions]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Shiffraw dagnechaw]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 17:14:45 GMT</pubDate>
            <atom:updated>2020-11-16T17:19:11.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is a Probability Distribution?</h3><p>Probability distributions are an integral concept in probability theory and statistics. It is of vast importance for aspiring data scientists to solidify their understanding of probability distributions in order to be more efficacious. This article will serve as an introduction to the concept of a probability distribution.</p><p>Before delving into what a probability distribution is, there are prerequisite concepts that have to be initially understood:</p><ul><li>Discrete Data</li><li>Continuous Data</li><li>Random Variable</li></ul><p>After defining these three terms the concepts that will be covered in the scope of this article are:</p><ul><li>Probability Distribution</li><li>Discrete Probability Distribution</li><li>Probability Mass Function</li><li>Continuous Probability Distribution</li><li>Probability Density Function</li></ul><p><strong>Discrete Data</strong></p><p>The term “Discrete” can be defined as “separate”, “distinct”, or “detached”. <strong>Discrete data</strong> can only take on particular values. Each value is distinct and there’s no grey area in between. Discrete data can be numeric — like numbers of apples — but it can also be categorical — like red or blue, or male or female, or good or bad. There are two questions you can ask yourself when deciding if data is discrete:</p><ul><li>Can you count it?</li><li>Can it be divided into smaller and smaller parts?</li></ul><p>If you can count it then it is typically discrete and if it can be partitioned into smaller and smaller constituents then it is not discrete. Discrete data cannot be measured. For example, since you measure your weight on a scale, it’s not discrete data. Neither is the length of an object, as you use a ruler to measure it. A collection of exam grades, within a certain class, is an example of discrete data. The data can only take on a certain number of values and the number of data points are finite.</p><p><strong>Continuous Data</strong></p><p>If a data point can take on any value between two specified values, it is considered to be continuous. Continuous data is often measurements on a scale, such as height, weight, and temperature. Continuous data is not restricted to defined separate values, but can occupy any value over a continuous range. Between any two continuous data values, there may be an infinite number of others. Continuous data is always essentially numeric.</p><p><strong>Random Variable</strong></p><p>A random variable or stochastic variable can be conceptualized informally as a variable whose values depend on outcomes of a random phenomenon. It is a way to map outcomes of random processes to numbers. In other words we are quantifying outcomes by mapping them to a number. For example, we can define a random variable X in which X =1 if we toss a fair coin and it lands on heads and X = 0 if it lands on tails. In statistics, we deem phenomenon to be <strong>random</strong> if individual outcomes are uncertain but there in nonetheless a regular distribution of outcomes in a large number of repetitions. “Random” in statistics is not a synonym for “haphazard” but a description of a kind of order that emerges only in the long run. Random variables are a useful mechanism to assign probabilities to sample outcomes. Suppose that to each point of a sample space we assign a number. We then have a function defined on the sample space. This function, called a random variable, is usually denoted by a capital letter such as X or Y.</p><p>Suppose that a coin is tossed twice so that the sample space is S {HH, HT, TH, TT}. Let X represent the number of heads that can come up. With each sample point we can associate a number for X as shown in Table 2–1. Thus, for example, in the case of HH (i.e., 2 heads), X =2 while for TH (1 head), X =1. It follows that X is a random variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cQe2qaljbMplu98HWpuOcA.png" /><figcaption>Table</figcaption></figure><p>Suppose <em>X </em>denotes the number of allergic reactions among a set of eight adults. Then <em>X </em>is said to be a <em>random variable </em>and the number 3 is the <em>value </em>of the random variable for the outcome (yes, no, no, yes, no, no, yes, no).In general, random variables are functions that associate numbers with some attribute of a sample outcome that is deemed to be especially important. If <em>X </em>denotes the random variable and <em>s </em>denotes a sample outcome, then <em>X </em>(<em>s </em>) = <em>t </em>, where <em>t </em>is a real number. For the allergy example, <em>s </em>= (yes, no, no, yes, no, no, yes, no) and <em>t </em>= 3.</p><p>Random variables can often create a dramatically simpler sample space. That certainly is the case here — the original sample space has <em>256 </em>( 2^8 ) outcomes, each being an ordered sequence of length eight. The random variable <em>X</em>, on the other hand, has only <em>nine </em>possible values, the integers from 0 to 8, inclusive.</p><p>In terms of their fundamental structure, all random variables fall into one of two broad categories, the distinction resting on the number of possible values the random variable can equal. If the latter is finite or countably infinite (which would be the case with the allergic reaction example), the random variable is said to be <em>discrete</em>; if the outcomes can be any real number in a given interval, the number of possibilities is uncountably infinite, and the random variable is said to be <em>continuous</em>.</p><ul><li><strong>Probability Distributions</strong></li></ul><p>A probability distribution is a function that describes the likelihood of obtaining the possible values that a random variable can assume. In other words, the values of the variable vary based on the underlying probability distribution. When it comes to probability distributions (or probability functions) they are either discrete or continuous.</p><ul><li><strong>Discrete Probability Distributions</strong></li></ul><p>Suppose that <em>S </em>is a finite or countably infinite sample space. Let <em>p </em>be a real-valued function defined for each element of <em>S </em>such that</p><p>a) 0 ≤ <em>p</em>(<em>s</em>)for each <em>s</em>∈<em>S</em></p><p>b) ∑ p(s) = 1</p><p><strong>Then p is said to be a discrete probability function</strong></p><p>The sum of all probabilities for all possible values must equal 1 and no value can be negative. Furthermore, the probability for a particular value or range of values must be between 0 and 1. A discrete probability function is also called a <strong>probability mass function </strong>( or PMF).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8INKA31rHD9GNPjgQu8Vxw.png" /><figcaption>Discrete Uniform Distribution in Python</figcaption></figure><p>The python code above showcases a discrete probability distribution known as a uniform distribution. A uniform distribution is one in which each sample outcome has the equal probability. When it comes to rolling dice, there are six equally likely outcomes. Therefore the probability distribution only takes on the probability 1/6 for each sample outcome.</p><p>Another example of a discrete probability distribution is a Bernoulli Distribution also called: Bernoulli Trial.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EzfeONQ1Qm6ZYa_Vk14kHg.png" /><figcaption>Bernoulli Trial in Python</figcaption></figure><p><strong>Continuous Distribution</strong></p><p>A probability function <em>P </em>on a set of real numbers <em>S </em>is called continuous if there exists a function f(x) such that for any closed interval [a,b] ⊂ S , P[(a,b)] = the definite integral from a to b.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QfnGZYjKcc42nQEkXTZnww.png" /></figure><p>A probability distribution in which the random variable X can take on any value is continuous. Because there are infinite values that X could assume, the probability of X taking on any one specific value is zero. Therefore we often speak in ranges of values (p(X&gt;0) = .50). An equation or formula is used to describe a continuous probability distribution.The equation used to describe a continuous probability distribution is called a <strong>probability density function</strong> (pdf). All probability density functions satisfy the following conditions:</p><ul><li>The random variable Y is a function of X; that is, y = f(x).</li><li>The value of y is greater than or equal to zero for all values of x.</li><li>The total area under the curve of the function is equal to one.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VhK-svpY87OUJ8TGwb2R0w.png" /></figure><p><strong>Conclusion</strong></p><p>The probability distributions are a common way to describe, and possibly predict, the probability of an event. The main point is to define the character of the variables whose behavior we are trying to describe. The identification of the right category will allow a proper application of a model (for instance, the standardized normal distribution) that would easily predict the probability of a given event. Grasping the concept of probability distributions is a crucial predecessor to possessing the capability of statistical analysis and modeling.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dee5e5c1ba99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Accuracy, Precision, and Recall? And Why are they Important?]]></title>
            <link>https://shiffdag.medium.com/what-is-accuracy-precision-and-recall-and-why-are-they-important-ebfcb5a10df2?source=rss-4c5a74f201c4------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebfcb5a10df2</guid>
            <category><![CDATA[recall]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[classification-metrics]]></category>
            <category><![CDATA[precision]]></category>
            <dc:creator><![CDATA[Shiffraw dagnechaw]]></dc:creator>
            <pubDate>Mon, 02 Nov 2020 03:40:18 GMT</pubDate>
            <atom:updated>2020-11-02T08:39:42.096Z</atom:updated>
            <content:encoded><![CDATA[<p>Understanding how to assess the efficacy of your model is imperative. If you don’t understand how to interpret the results of a classification model then it will preclude you from being able to improve upon that model and properly implement it for the task that it is setting out to achieve.</p><p>When it comes to Linear Regression, typical metrics that are used to assess the model are : MSE , RMSE, MAE etc. These measures of error should be intuitive, despite using different mechanisms. They all capture or represent the extent to which the predicted values of the model deviate form the actual values. Well, then what do we do when our model is a classification one and not a regression one? We use metrics such as <strong>Accuracy,</strong> <strong>Precision, Recall, Sensitivity, and F1!</strong></p><p>At a first glance these metrics may appear to be confusing and difficult to conceptualize, but they are actually straightforward. What is often confusing is the nomenclature or the names assigned to these metrics. My suggestion is to not associate the colloquial or lexical ( dictionary ) definition of these words to their meaning in the context of machine learning or statistics. In machine learning and statistics, these terms are technical and have a very specific meaning that don’t necessarily coincide with our everyday use of the words “precision”, “accuracy”, and “sensitivity”. Another source of confusion is the similarity among some of the formulas and understanding the distinction and difference between what they pragmatically measure.</p><p>Before Defining these classification metrics, it is critical to understand what TP, FP, FN, and TN mean. T (True) means that the model has correctly classified an observation. In other words, the predicted class and actual class coincide with one another. F (False) means that the model has incorrectly classified an observation by assigning it to the wrong class. TP ( True Positive) means the model was correctly classified in the positive class. TN ( True Negative) means the model correctly classified an observation in the negative class. FP (False positive) means the model classified an observation to be positive when in reality it was actually negative. FN ( False Negative) means the model incorrectly classified an observation as negative when it should have been classified as positive.</p><h3>Accuracy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/964/1*udGMH6OQF4CMcv42mjW_qg.png" /><figcaption>Accuracy Formula</figcaption></figure><p>The accuracy of a machine learning classification algorithm is one way to assess how often model classifies a data point correctly. The numerator is total number of predictions that were correct. The denominator is the total number of predictions. The numerator will only include TP and TN and the denominator will be include TP, TN, FP, and FN. Accuracy is a ratio of the correctly classified data to the total amount of classifications made by the model.</p><p>For Binary Classification the formula for accuracy precisely is:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*PM6Dq_sOXRC6bJNZr7gbXA.png" /><figcaption>Accuracy for Binary Classification</figcaption></figure><p>Let’s try using accuracy for the model below that classified one hundred tumors as either malignant (positive class) or benign ( negative class).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L27CnNlNet6y4bfKM56d4g.png" /></figure><p>From the 100 tumors that were classified, 91 were correctly classified (0.91 or 91 %). Does this mean that the tumor classifier is doing an excellent job of identifying malignancies?</p><p>Well, let’s do a closer analysis of positives and negatives to gain more insight into our model’s performance.</p><p>Of the 100 tumor examples, 91 are benign (90 TNs and 1 FP) and 9 are malignant (1 TP and 8 FNs).</p><p>Of the 91 benign tumors, the model correctly identifies 90 as benign. That’s good. <strong>However, of the 9 malignant tumors, the model only correctly identifies 1 as malignant — a terrible outcome, as 8 out of 9 malignancies go undiagnosed!</strong></p><p>While 91% accuracy may seem good at first glance, another tumor-classifier model that always predicts benign would achieve the exact same accuracy (91/100 correct predictions) on our examples. In other words, our model is no better than one that has zero predictive ability to distinguish malignant tumors from benign tumors.</p><p>Accuracy alone doesn’t tell the full story when you’re working with a <strong>class-imbalanced data set</strong>, like this one, where there is a significant disparity between the number of positive and negative labels.</p><p>It’s also important to understand what we would like to optimize. In this context it is better to have an improved false negative score than an improved false positive score. Telling someone they don’t have cancer when they actually do is more detrimental to telling someone that they have cancer when they actually don’t. This is so because if you tell someone they don’t have cancer when they actually do then they can go untreated as the cancer progresses, whereas in the other situation more medical tests will be administered to confirm the diagnosis.</p><p>In order to help with this situation let’s examine <strong>Precision and Recall!</strong></p><h3>Precision and Recall</h3><p>Precision and Recall are concepts that are related but have an important distinction. It is crucial that this difference is understood, so you can improve your model to optimize for a specific metric.</p><p><strong>Precision</strong> attempts to answers the question: <em>What proportion of positive identifications was actually correct?</em></p><p>Precision is defined as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*YLe6E6v9-GVln7TxzvgKJg.png" /><figcaption>Precision Formula</figcaption></figure><p>From the above problem with tumors, let’s attempt to calculate the precision</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOSMY8TG0_YfyMPrPLiSDw.png" /></figure><p>The model has a precision score of 50 %, which means that when it classifies a tumor to be malignant it is correct 50 % of the time.</p><p><strong>Recall </strong>attempts to answer the question: <em>What proportion of actual positives was identified correctly?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*TxOI-PX0czrXTDVM-duJcw.png" /><figcaption>Recall Formula</figcaption></figure><p>Let’s calculate the recall value for the tumor classifier model</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GSanD4DZYBc7oaTQwkgT4Q.png" /></figure><p>The recall is 11 %, which means it correctly classifies only 11 % of the malignant tumors.</p><p>This demonstrates that Accuracy, although a great metric, is very limited in its scope and can be deceiving. It is always crucial to calculate the precision and recall and not to stop after accuracy. It is also important to understand when to optimize for precision and went to optimize for recall.</p><p><strong>Well Why cant we always improve both?</strong></p><p>Precision and Recall are often in collision. Meaning, improving one score can come at the cost of decreasing the other. So the decision to improve recall or precision is situational and depends heavily on the type of problem that is being solved. In the context of diagnostics and medicine, it is important to improve recall because, as already mentioned, it is better to classify someone as being positive for cancer when they don’t have cancer as opposed to the converse. There are situations in which we would like to increase precision in place of recall. For example, if we were building a classification model that classified emails as spam or not spam. It is better to have an email classified as not spam when it is actually spam then have an email classified as spam when it actually isn’t.</p><h3>Conclusion</h3><p>Accuracy, Precision, and Recall are all critical metrics that are utilized to measure the efficacy of a classification model. Accuracy is a good starting point in order to know the number of correctly predicted values in relation to the total prediction values, but it is important to understand that further metrics must be implemented such as Recall and Precision. Understanding the heart of the task will dictate whether you should focus on improving Recall or Precision.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebfcb5a10df2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>