<?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 Abhishek Kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhishek Kumar on Medium]]></description>
        <link>https://medium.com/@abhishekkumar_6264?source=rss-8b8c8532f810------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gl7i2kmmAMJlbs_mXa9ndA.jpeg</url>
            <title>Stories by Abhishek Kumar on Medium</title>
            <link>https://medium.com/@abhishekkumar_6264?source=rss-8b8c8532f810------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:45:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abhishekkumar_6264/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[Introduction to Descriptive Statistics and Probability for Data Science]]></title>
            <link>https://medium.com/data-science/intro-to-descriptive-statistics-and-probability-for-data-science-8effec826488?source=rss-8b8c8532f810------2</link>
            <guid isPermaLink="false">https://medium.com/p/8effec826488</guid>
            <category><![CDATA[descriptive-statistics]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Abhishek Kumar]]></dc:creator>
            <pubDate>Sat, 04 Aug 2018 17:24:16 GMT</pubDate>
            <atom:updated>2018-08-06T17:44:49.380Z</atom:updated>
            <content:encoded><![CDATA[<h3>Table of Contents:</h3><ul><li>Introduction</li><li>Measure of Central Tendency (Mean, Mode, Median)</li><li>Measures of Variability (Range, IQR, Variance, Standard Deviation)</li><li>Probability (Bernoulli Trials, Normal Distribution)</li><li>Central Limit Theorem</li><li>Z scores</li></ul><h4>Introduction:</h4><p>In Descriptive statistics you are describing, presenting, summarizing, and organizing your data, either through numerical calculations or graphs or tables. Some of the common measurements in descriptive statistics are central tendency and others the variability of the dataset.</p><p>Descriptive statistical analysis helps us to understand our data and is very important part of Machine Learning. Doing a descriptive statistical analysis of our dataset is absolutely crucial. A lot of people skip this part and therefore lose a lot of valuable insight about their data, which often leads to wrong conclusions.</p><h4>Measure of Central Tendency:</h4><p>It describes a whole set of data with a single value that represents the centre of its distribution. There are three main measures of central tendency:</p><ol><li><strong>Mean</strong>: It is the sum of the observation divided by the sample size. It is not a robust statistics as it is affected by extreme values. So, very large or very low value(i.e. Outliers) can distort the answer.</li><li><strong>Median</strong>: It is the middle value of data. It splits the data in half and also called 50th percentile. It is much less affected by the outliers and skewed data than mean. If the no. of elements in the dataset is odd, the middle most element is the median. If the no. of elements in the dataset is even, the median would be the average of two central elements.</li><li><strong>Mode</strong>: It is the value that occurs more frequently in a dataset. Therefore a dataset has no mode, if no category is the same and also possible that a dataset has more than one mode. It is the only measure of central tendency that can be used for categorical variables.</li></ol><h4><strong>Measures of Variability</strong></h4><p>Measures of Variability also known as spread of the data describes how similar or varied are the set of observations. The most popular variability measures are the range, interquartile range (IQR), variance, and standard deviation.</p><ol><li><strong>Range</strong>: The range describes the difference between the largest and the smallest points in your data. The bigger the range the more spread out is the data.</li><li><strong>IQR</strong>: The interquartile range (IQR) is a measure of statistical dispersion between upper (75th) quartiles i.e Q3 and lower (25th) quartiles i.e Q1. You can understand this by below example.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*1Om0PkFRSZ3cG89l.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*l89OZ5S7__AqAp6Q.png" /></figure><p>While the range measures where the beginning and end of your datapoint are, the interquartile range is a measure of where the majority of the values lie.</p><p>3. <strong>Variance:</strong> It is the average squared deviation from mean. The variance is computed by finding the difference between every data point and the mean, squaring them, summing them up and then taking the average of those numbers.</p><p>The problem with Variance is that because of the squaring, it is not in the same unit of measurement as the original data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*9IGq3Z6m_BtadRjI.gif" /></figure><p>4. <strong>Standard Deviation: </strong>Standard Deviation is used more often because it is in the original unit. It is simply the square root of the variance and because of that, it is returned to the original unit of measurement.</p><p>When you have a low standard deviation, your data points tend to be close to the mean. A high standard deviation means that your data points are spread out over a wide range.</p><p>Standard deviation is best used when data is unimodal. In a normal distribution, approximately 34% of the data points are lying between the mean and one standard deviation above or below the mean. Since a normal distribution is symmetrical, 68% of the data points fall between one standard deviation above and one standard deviation below the mean. Approximately 95% fall between two standard deviations below the mean and two standard deviations above the mean. And approximately 99.7% fall between three standard deviations above and three standard deviations below the mean.</p><p>The picture below illustrates that perfectly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/0*bwE5vm5S5loCpjjL.png" /></figure><p>With the so-called „Z-Score“, you can check how many standard deviations below (or above) the mean, a specific data point lies.</p><h4>Probability</h4><p>I will just give a brief indroduction of probability. Before going to the actual definition of Probability let’s look at some terminologies.</p><ul><li><strong>Experiment</strong>: An experiment could be something like — whether it rains in Delhi on a daily basis or not.</li><li><strong>Outcome</strong>: Outcome is the result of a single trial. If it rains today, the outcome of today’s trial is “it rained”.</li><li><strong>Event</strong>: An event is one or more outcomes of an experiment. For the experiment of whether it rains in Delhi every day the event could be “it rained” or it didn’t rain.</li><li><strong>Probability</strong>: This simply the likelihood of an event. So it there’s a 60% chance of it raining today, the probability of raining is 0.6.</li></ul><p><strong>Bernoulli</strong> <strong>Trials</strong></p><p>An experiment which has exactly two outcomes like coin toss is called Bernoulli Trials.</p><p>Probability distribution of the number of successes in n Bernoulli trials is known as a <strong>Binomial distribution</strong>.</p><p>Formula for Binomial distribution is given below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*8e1XgO-CpZRjP9PL.jpg" /><figcaption>Binomial distribution Formula</figcaption></figure><p><strong>Probability Mass Function</strong> for Binomial distribution with different probability of success and 100 random variables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/0*xqSO1G73O5WTP7m8.gif" /><figcaption><strong>Probability Mass Function</strong></figcaption></figure><p>Probability distribution of <strong>continuous random variable (</strong>variable that can assume any possible value between two points)<strong> </strong>is known as <strong>Probability Density Function</strong>. There will be infinite no. of trials in case of continuous random variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*imeP1xZdd-JsJO-J.png" /></figure><p>Area under a probability density function gives the probability for the random variable to be in that range.</p><p>If I have a population data and I take random samples of equal size from the data, the sample means are approximately normally distributed.</p><h4>Normal Distribution</h4><p>It basically describes how large samples of data look like when they are plotted. It is sometimes called the “bell curve“ or the “Gaussian curve“.</p><p>Inferential statistics and the calculation of probabilities require that a normal distribution is given. This basically means, that if your data is not normally distributed, you need to be very careful what statistical tests you apply to it since they could lead to wrong conclusions.</p><p>In a perfect normal distribution, each side is an exact mirror of the other. It should look like the distribution on the picture below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/0*N7NAMAeUN41oToZ-.png" /><figcaption><strong>Normal Distribution</strong></figcaption></figure><p>In a normal distribution, the mean, mode and median are all equal and fall at the same midline point.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*vvuhf8gdAPBmfMJ6.png" /><figcaption><strong>Normal Distribution Function</strong></figcaption></figure><p>A normal distribution with a mean of 0 and a standard deviation of 1 is called a <strong>standard normal distribution</strong>. Area under the standard normal distribution curve would be 1.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*ShA9PQVyjCUBXajA" /></figure><h4>Central Limit Theorem</h4><ul><li>If we take means of random samples from a distribution and we plot the means, the graph approaches to a normal distribution when we have taken sufficiently large number of such samples.</li><li>The theorem also says that the mean of means will be approximately equal to the mean of sample means i.e. population mean.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*yHig8_O3NQC94KxU.png" /></figure><p>Normal distributions for higher standard deviations are flatter i.e. more spread as compared to those for lower standard deviations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/0*oO_B-AvDh_daDCED.png" /></figure><h4>Z scores</h4><p>The distance in terms of number of standard deviations, the observed value is away from the mean, is the standard score or the Z score.</p><p>A positive Z score indicates that the observed value is Z standard deviations above the mean. Negative Z score indicates that the value is below the mean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/0*0zTZDzKcrkQAOW92.jpg" /></figure><p>Observed value = µ+zσ [µ is the mean and σ is the standard deviation]</p><p>From above graph area around 2 standard deviation around the mean is 0.95, that means 0.95 probability of data lying within that range.</p><p>For a particular z score, we can look into the Z-table to find the probability for values to fall less than that particular z value.</p><p>So, I hope this post gave you a proper introduction to descriptive statistics.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8effec826488" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/intro-to-descriptive-statistics-and-probability-for-data-science-8effec826488">Introduction to Descriptive Statistics and Probability for Data Science</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>