{"id":81805,"date":"2026-01-28T11:27:03","date_gmt":"2026-01-28T10:27:03","guid":{"rendered":"https:\/\/multi.liora.io\/?p=81805"},"modified":"2026-08-08T12:24:20","modified_gmt":"2026-08-08T11:24:20","slug":"hello-daniel-what-is-data-normalization","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/hello-daniel-what-is-data-normalization","title":{"rendered":"Data normalization: How this concept is related to Data Science?"},"content":{"rendered":"\n<p><strong>Daniel is the technical support of Liora\u2019s trainings. It is the expert on every subject related to data science. Today, we have managed to get a quick interview with him, so that he can answer a few of our questions about data normalization.<\/strong><\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-data-normalization\">What is Data Normalization?<\/h2>\n\n\n<p><strong>Normalization<\/strong>, as it is heard in the data science area, is a <strong>very important concept<\/strong> in Data pre-processing, when you need to work on a <a href=\"https:\/\/liora.io\/en\/machine-learning-what-is-it-and-why-does-it-change-the-world\"><strong>Machine Learning<\/strong><\/a> project.<\/p>\n\n\n<p>Two main processes are implied when we talk about normalization: <strong>normalization and standard normalization<\/strong>, more commonly known as standardization. Generally, these two processes have the <strong>same purpose<\/strong>: to resize numerical variables so that they are <strong>comparable on a common scale<\/strong>.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"in-mathematics-terms-what-do-we-have\">In mathematics terms, what do we have?<\/h2>\n\n\n<p>Let\u2019s consider a <strong>numerical variable<\/strong> with n observations, than can be written as followed:<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:560px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"data-normalization\" decoding=\"async\" height=\"145\" loading=\"lazy\" sizes=\"(max-width: 800px) 100vw, 800px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/With-1-1-1024x186.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/With-1-1-1024x186.jpg 1024w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/With-1-1-300x55.jpg 300w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/With-1-1-768x140.jpg 768w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/With-1-1.jpg 1150w\" style=\"width:560px;max-width:100%;height:auto\" width=\"800\"\/><\/figure>\n\n\n<p>As we have a finite number of real values, we can extract various statistical pieces of information, including <strong>min<\/strong>, <strong>max mean<\/strong>, and <strong>standard deviation<\/strong>. The process of normalization only needs the min and max functions.<\/p>\n\n\n<p>The purpose here is to <strong>bring back all the values of the variable between 0 and 1<\/strong> while keeping some distance between the values.<\/p>\n\n\n<p>To do that, you\u2019ll use a simple formula:<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:429px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for In mathematics terms, what do we have?\" decoding=\"async\" height=\"109\" loading=\"lazy\" sizes=\"(max-width: 429px) 100vw, 429px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-2.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-2.jpg 429w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-2-300x76.jpg 300w\" style=\"width:429px;max-width:100%;height:auto\" width=\"429\"\/><\/figure>\n\n\n<p>Regarding the <strong>standardization<\/strong>, the transformation is more diffiuclt than easily bringing back the values between 0 and 1. It aims at bringing back <strong>the average \u03bc to 0<\/strong> and the <strong>standard deviation to 1<\/strong>.<\/p>\n\n\n<p>Again, the process is not very complicated: if you already know the <strong>mean \u03bc<\/strong> and the <strong>standard deviation \u03c3<\/strong> of a variable X =\u00a0x<sub>1<\/sub>\u00a0x<sub>2<\/sub>\u00a0x<sub>n<\/sub> you will write the <strong>standardized variable<\/strong> as followed:<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\" style=\"width:434px;max-width:100%;margin-top:32px;margin-right:auto;margin-bottom:32px;margin-left:auto\"><img alt=\"Illustration for In mathematics terms, what do we have?\" decoding=\"async\" height=\"122\" loading=\"lazy\" sizes=\"(max-width: 434px) 100vw, 434px\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-3.jpg\" srcset=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-3.jpg 434w, https:\/\/liora.io\/app\/uploads\/sites\/9\/2021\/07\/formula-3-300x84.jpg 300w\" style=\"width:434px;max-width:100%;height:auto\" width=\"434\"\/><\/figure>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-the-link-between-data-normalization-and-data-science\">What is the link between Data Normalization and Data Science?<\/h2>\n\n\n<p>In <a href=\"https:\/\/liora.io\/en\/data-science-definition-issues-and-use-cases\"><strong>Data Science<\/strong><\/a>, you\u2019re often dealing with <strong>numerical data<\/strong>, and you can rarely compare these data in their <strong>original state<\/strong>.<\/p>\n\n\n<p>Working with variable scale data <strong>can be a problem<\/strong> in analysis because a numerical variable with a <strong>range of values between 0 and 10,000<\/strong> will be more important in the analysis than a variable with values between <strong>0 and 1<\/strong>, which would cause a<strong> bias problem<\/strong> later on.<\/p>\n\n\n<p>However, be careful not to consider normalization as a mandatory step in processing Data, it constitutes a<strong> loss of information in the short term<\/strong> and can be <strong>detrimental<\/strong> in certain cases!<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"how-do-you-normalize-data-concretely\">How do you normalize data concretely?<\/h2>\n\n\n<p>With <strong><a href=\"https:\/\/liora.io\/en\/python-the-most-popular-programming-language\">Python<\/a><\/strong> it is very simple, many libraries allow it. I will only mention <strong>Scikit-learn<\/strong> because it is the <strong>most used in Data Science<\/strong>. This library offers functions that perform the desired normalizations in a few simple lines of code.<\/p>\n\n\n<p>However, it is important to put the <strong>use cases<\/strong> in context, because in practice it is not enough to apply a silly normalization to all the Data we have when we already normalized our <strong>training data<\/strong>.<\/p>\n\n\n<p>Why not? The reason is very simple: It is not possible to apply this same transformation to a <strong>test sample, or new data<\/strong>.<\/p>\n\n\n<p>It is obviously possible to <strong>center and reduce<\/strong> any sample in the same way, but with an average and standard deviation that will be <strong>different from those used on the training set<\/strong>.<\/p>\n\n\n<p>The results obtained would not be a fair representation of the <strong>performance<\/strong> of the model, when applied to new data.<\/p>\n\n\n<p>So, rather than applying the normalization function directly, it is better to use a <strong>Scikit-Learn feature called transformer API<\/strong>, which will allow you to adjust (<strong><i>fit<\/i><\/strong>) a preprocessing step using the training data.<\/p>\n\n\n<p>So when <strong>normalization<\/strong>, for example, is applied to other samples, it will use the same saved average and standard deviations.<\/p>\n\n\n<p>To create this \u2018<strong>adjusted<\/strong>\u2019 preprocessing step, simply use the \u2018<strong><i>StandardScaler<\/i><\/strong>\u2019 function and adjust it using the training data. Finally, to apply it to an array of data afterward, simply apply the following formula: <strong><i>scaler.transform()<\/i><\/strong>.<\/p>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center wp-container-core-buttons-is-layout-5ee10de4\" style=\"margin-top:32px;margin-bottom:32px\"><div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/data-ai\/data-scientist\">Discover our differents Data Science&#8217;s courses<\/a><\/div><\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Daniel is the technical support of Liora\u2019s trainings. It is the expert on every subject related to data science. Today, we have managed to get a quick interview with him, so that he can answer a few of our questions about data normalization.<\/p>\n","protected":false},"author":85,"featured_media":30548,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2433],"class_list":["post-81805","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-ai"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/81805","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=81805"}],"version-history":[{"count":5,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/81805\/revisions"}],"predecessor-version":[{"id":209785,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/81805\/revisions\/209785"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/30548"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=81805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=81805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}