{"id":4617,"date":"2020-08-28T16:08:17","date_gmt":"2020-08-28T10:38:17","guid":{"rendered":"https:\/\/www.h2kinfosys.com\/blog\/?p=4617"},"modified":"2020-08-28T19:20:30","modified_gmt":"2020-08-28T13:50:30","slug":"statistics-basics-measures-of-central-tendency","status":"publish","type":"post","link":"https:\/\/www.h2kinfosys.com\/blog\/statistics-basics-measures-of-central-tendency\/","title":{"rendered":"Statistics Basics &#8211; Measures of Central Tendency"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><strong>What is Statistics?<\/strong><\/h2>\n\n\n\n<p>The field of statistics is the science of learning from data. Statistical knowledge helps you use the proper methods to collect the data, employ the correct analyses, and effectively present the results. Statistics is a crucial process behind how we make discoveries in science, make decisions based on data, and make predictions. Statistics allows you to understand a subject much more deeply.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>What makes statistics important for Data Science?<\/strong><\/h2>\n\n\n\n<p>Statistics is a Mathematical Science pertaining to data collection, analysis, interpretation, and presentation. Statistics is used to process complex problems in the real world so that <a href=\"https:\/\/datasciencedegree.wisconsin.edu\/data-science\/what-do-data-scientists-do\/\" rel=\"nofollow noopener\" target=\"_blank\">Data Scientists <\/a>and Analysts can look for meaningful trends and changes in Data. In simple words, Statistics can be used to derive meaningful insights from data by performing mathematical computations on it.<\/p>\n\n\n\n<p>Moving ahead let&#8217;s discuss the basic terminologies in Statistics.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Basic Terminologies In Statistics :<\/strong><\/h2>\n\n\n\n<p>One should be aware of a few key statistical terminologies while dealing with Statistics for Data Science. I\u2019ve discussed these terminologies below:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Variable<\/strong><\/h2>\n\n\n\n<p>A variable is an attribute that describes a person, place, thing, or idea. The value of the variable can &#8220;vary&#8221; from one entity to another.&nbsp;<\/p>\n\n\n\n<p>For example, a person&#8217;s hair color is a potential variable, which could have the value of &#8220;Black&#8221; for one person and &#8220;Red&#8221; for another.<\/p>\n\n\n\n<p>Variables can be classified as<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Qualitative <\/strong>(categorical)&nbsp;<\/li><li><strong>Quantitative <\/strong>(numeric)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Qualitative<\/strong><\/h2>\n\n\n\n<p>Qualitative variables take on values that are names or labels. The color of a ball (e.g., red, green, blue) or the breed of a dog (e.g., collie, shepherd, terrier) would be examples of qualitative or categorical variables.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Quantitative<\/strong><\/h2>\n\n\n\n<p>Quantitative variables are numeric. They represent a measurable quantity. For example, when we speak of the population of a city, we are talking about the number of people in the city a measurable attribute of the city. Therefore, the population would be a quantitative variable.&nbsp;<\/p>\n\n\n\n<p><strong>Quantitative variables <\/strong>can be further classified as <strong>Discrete <\/strong>or <strong>Continuous<\/strong>.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Continuous. <\/strong>If a variable can take on any value between the range of minimum and maximum value, it is called a <a href=\"https:\/\/www.h2kinfosys.com\/blog\/java-variables-and-data-types\/\">Continuous variable<\/a>. Example for continuous variable: If your variable is \u201c The Height of the PoliceMen between 170-190 cm, which can be infinite, then the height of policemen would be an example of a <strong>Continuous variable<\/strong>.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Discrete. <\/strong>If a variable takes discrete values which can be integers, real numbers, etc., then it is called a Discrete variable. <br>Example of discrete variable: If your variable is \u201cNumber of planets around a star,\u201d then you can count all of the numbers out (there can\u2019t be an infinite number of planets). That is a <strong>Discrete variable<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Statistical data are often classified according to the number of variables being studied.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Univariate data<\/strong><\/h2>\n\n\n\n<p>When we conduct a study that looks at only one variable, we say that we are working with univariate data. Suppose, for example, that we conducted a survey to estimate the average weight of high school students. Since we are only working with one variable (weight), we would be working with univariate data.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Bivariate data<\/strong><\/h2>\n\n\n\n<p>When we conduct a study that examines the relationship between two variables, we are working with bivariate data. Suppose we conducted a study to see if there were a relationship between the height and weight of high school students. Since we are working with two variables (height and weight), we would be working with bivariate data.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Levels of measurement in statistics :<\/strong><\/h2>\n\n\n\n<p>The level of measurement in about how each variable is measured i.e. qualitative or quantitative and how precise each variable is<\/p>\n\n\n\n<p>A variable has one of four different levels of measurement:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Nominal.<\/strong> The nominal scale is a naming scale, where variables are simply named or labeled, with no specific order.<\/li><li><strong>Ordinal.<\/strong> The ordinal scale has all its variables in a specific order, beyond just naming them.<\/li><li><strong>Interval \/ Ratio.<\/strong> Interval\/ratio scale offers labels, order, as well as, a specific <strong>interval<\/strong> between each of its variable options<\/li><\/ul>\n\n\n\n<p><strong>Nominal<\/strong> is the least precise and informative and <strong>Interval \/ Ratio<\/strong> variable being most precise and informative among the levels of measurement in statistics<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Measures of Central Tendency :<\/strong><\/h2>\n\n\n\n<p>A measure of central tendency is a single value that attempts to describe a set of data by identifying the central position within that set of data. As such, measures of central tendency are sometimes called measures of central location. They are also called as <strong>Summary statistics<\/strong>. In statistics, the three most common measures of central tendency are<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Mean<\/strong><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Median&nbsp;<\/strong><\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Mode<\/strong><\/li><\/ul>\n\n\n\n<p>Each of these measures calculates the location of the central point using a different method.&nbsp;<\/p>\n\n\n\n<p>The mean (often called the average) is most likely the measure of central tendency that you are most familiar with<\/p>\n\n\n\n<p><strong>Mean. <\/strong>The mean of a <strong>sample <\/strong>or a <strong>population <\/strong>is computed by adding all of the observations and dividing by the number of observations.<\/p>\n\n\n\n<p>Example: The Mean of 4,5,6,7 is ( 4+5+6+7 ) \/ 4 = 5.5<\/p>\n\n\n\n<p><strong>Median. <\/strong>To find the median, we arrange the observations in order from smallest to largest value. If there is an odd number of observations, the median is the middle value. If there is an even number of observations, the median is the average of the two middle values.&nbsp;<\/p>\n\n\n\n<p>Example: The median of 4,1,7 is 4 because when the numbers are put in order ( 1, 4, 7 ) the number 4 is in the middle.<\/p>\n\n\n\n<p><strong>Mode.<\/strong> The most frequent number\u2014that is, the number that occurs the highest number of times.&nbsp;<\/p>\n\n\n\n<p>Example: The mode of { 4, 4, 2, 3, 2, 2} is 2 because it occurs 3 times which is more than any other number.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>When to use Median over Mode?<\/strong><\/h2>\n\n\n\n<p>As measures of central tendency, the mean and the median each have advantages and disadvantages. Some pros and cons of each measure are summarised below.&nbsp;<\/p>\n\n\n\n<p>The median may be a better indicator of the most typical value if a set of scores has an <strong>outlier<\/strong>. An outlier is an extreme value that differs greatly from other values.&nbsp;<\/p>\n\n\n\n<p>However, when the sample size is large and does not include outliers, the mean score usually provides a better measure of central tendency.<\/p>\n\n\n\n<p>Example: Suppose we examine a sample of 10 households to estimate the typical family income. Nine of the households have incomes between $20,000 and $100,000, but the tenth household has an annual income of $1,000,000,000. That tenth household is an outlier. If we choose a measure to estimate the income of a typical household, the mean will greatly overestimate the income of a typical family (because of the outlier); while the median will not.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Population and Samples&nbsp;<\/strong><\/h2>\n\n\n\n<p>The study of statistics revolves around the study of data sets. There are two important types of data sets&nbsp;<\/p>\n\n\n\n<p><strong>Population. <\/strong>A population<strong> <\/strong>includes all of the elements from a set of data.&nbsp;<\/p>\n\n\n\n<p><strong>Samples. <\/strong>A sample<strong> <\/strong>consists of one or more observations drawn from the population.&nbsp;<\/p>\n\n\n\n<p>A measurable characteristic of a population, such as a mean<strong> <\/strong>or standard deviation, is called a <strong>parameter&nbsp;<\/strong>But a measurable characteristic of a sample<strong> <\/strong>is called a <strong>statistic<\/strong>. We will see in future lessons that the mean of a population is denoted by the symbol <strong>\u03bc<\/strong>; but&nbsp;the mean of a sample is denoted by the symbol <strong>x\u0305&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Samples are subset\u2019s of population&nbsp;<\/strong><\/h2>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"648\" height=\"303\" src=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/08\/image-23.png\" alt=\"\" class=\"wp-image-4620\" title=\"\" srcset=\"https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/08\/image-23.png 648w, https:\/\/www.h2kinfosys.com\/blog\/wp-content\/uploads\/2020\/08\/image-23-300x140.png 300w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>What is Statistics? The field of statistics is the science of learning from data. Statistical knowledge helps you use the proper methods to collect the data, employ the correct analyses, and effectively present the results. Statistics is a crucial process behind how we make discoveries in science, make decisions based on data, and make predictions. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4663,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[500],"tags":[1292,1293,1294,1291],"class_list":["post-4617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-science-using-python-tutorials","tag-central-tendency-measures","tag-qualitative","tag-quantitative","tag-statistics-basics"],"_links":{"self":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/4617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/comments?post=4617"}],"version-history":[{"count":0,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/posts\/4617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media\/4663"}],"wp:attachment":[{"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/media?parent=4617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/categories?post=4617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h2kinfosys.com\/blog\/wp-json\/wp\/v2\/tags?post=4617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}