{"id":188318,"date":"2024-08-28T06:30:00","date_gmt":"2024-08-28T05:30:00","guid":{"rendered":"https:\/\/liora.io\/en\/?p=188318"},"modified":"2026-08-09T19:48:28","modified_gmt":"2026-08-09T18:48:28","slug":"arithmetic-and-data-science","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/arithmetic-and-data-science","title":{"rendered":"Arithmetic and  Data Science"},"content":{"rendered":"\n<p><strong>Arithmetic is a fundamental branch of mathematics, dealing with the basic properties of numbers and elementary operations. Often perceived as a mere calculation tool, it actually plays a fundamental role in Data Science and AI. Discover everything you need to know!<\/strong><\/p>\n\n\n<p>Tracing its roots back to ancient civilizations over 20,000 years ago, arithmetic is often considered <strong>the most elementary branch of mathematics<\/strong>.<\/p>\n\n\n<p>Yet, it is also a fundamental pillar of many <strong>scientific<\/strong> and <strong>technical<\/strong> disciplines. This is particularly true for <a href=\"https:\/\/liora.io\/en\/data-science-definition\">Data Science<\/a>, where it plays a major and often underestimated role&#8230;<\/p>\n\n\n<p>So, what is its utility for data science, and how do <a href=\"https:\/\/liora.io\/en\/how-to-become-a-data-scientist-the-the-best-kept-secrets\">Data Scientists<\/a> exploit it daily? That&#8217;s what you will discover in the following article!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"what-is-arithmetic\">What is Arithmetic?<\/h2>\n\n\n<p>The very first traces of arithmetic calculations were discovered on notched bones dating back to the Upper Paleolithic period.<\/p>\n\n\n<p>Over the centuries, <strong>numeration<\/strong> systems and <strong>calculation<\/strong> methods developed in various cultures, from ancient Egypt to Mesopotamia, through ancient Greece and India.<\/p>\n\n\n<p>The term &#8220;arithmetic&#8221; itself comes from the Greek &#8220;arithmos,&#8221; meaning &#8220;number&#8221;. The ancient Greeks, notably <strong>Pythagoras<\/strong> and his followers, significantly contributed to the advancement of this discipline.<\/p>\n\n\n<p>It is based on four fundamental operations: <strong>addition, subtraction, multiplication, and division<\/strong>. These operations form the basis of all more advanced mathematical calculations.<\/p>\n\n\n<p>Additionally, arithmetic also deals with the intrinsic properties of numbers. For instance, it distinguishes between <strong>even and odd numbers<\/strong>, <strong>prime numbers<\/strong> (divisible only by 1 and themselves), <strong>composite numbers<\/strong> (having more than two divisors), and <strong>rational and irrational numbers<\/strong>.<\/p>\n\n\n<p>Another notion is that of the <strong>fractional and decimal representations<\/strong> of numbers, which allow expressing non-integer quantities and performing more precise calculations.<\/p>\n\n\n<p>However, don&#8217;t think that arithmetic is limited to basic mathematics! Although often associated with it, it extends to more advanced areas like <strong>number theory<\/strong>.<\/p>\n\n\n<p>This branch explores the deep properties of integers and their relationships, addressing complex problems such as Goldbach&#8217;s <strong>conjecture<\/strong> or Fermat&#8217;s <strong>Last Theorem<\/strong>.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for What is Arithmetic?\" decoding=\"async\" height=\"514\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/08\/arithmetic-data-science-1.jpg\" style=\"width:100%;height:auto\" width=\"900\"\/><\/figure>\n\n\n<p>On the other hand, modular arithmetic, or the arithmetic of <strong>congruences<\/strong>, is a system where numbers &#8220;wrap around&#8221; after reaching a certain value (the modulus). This branch is particularly important in <a href=\"https:\/\/liora.io\/en\/all-about-cryptography\">cryptography<\/a> and computer science.<\/p>\n\n\n<p>Thus, far from being limited to simple calculations taught in elementary school, arithmetic constitutes a rich and complex field and forms the basis of many branches of mathematics and their practical applications&#8230; notably Data Science!<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"the-role-of-arithmetic-in-data-science\">The Role of Arithmetic in Data Science<\/h2>\n\n\n<p>At every stage of the <a href=\"https:\/\/liora.io\/en\/data-science-definition\">Data Science process<\/a>, arithmetic proves indispensable. Right from the start, during the initial data processing, it is of paramount importance.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"1-data-cleaning-and-processing\">1. Data Cleaning and Processing<\/h3>\n\n\n<p><a href=\"https:\/\/liora.io\/en\/data-cleaning-definition-methods-and-relevance-in-data-science\">Data cleansing, or Data Cleaning<\/a>, often involves basic operations. For example, one can identify and replace <strong>outliers<\/strong> using arithmetically calculated thresholds.<\/p>\n\n\n<p>Data can also be normalized by subtracting the <strong>mean<\/strong> and dividing by the standard deviation or imputing <strong>missing values<\/strong> by calculating means or medians.<\/p>\n\n\n<p>Similarly, descriptive statistics largely rely on arithmetic. Calculating the mean is the <strong>sum<\/strong> of the values divided by their number, calculating the <strong>median<\/strong> involves identifying the <strong>central value<\/strong> after sorting, and calculating the standard deviation is the <strong>square root<\/strong> of the average of the squared deviations from the mean.<\/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=\"\/en\/courses\/data-ai\/data-analyst\">\nBecome a Data Analyst\n<\/a><\/div><\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"2-data-analysis\">2. Data Analysis<\/h3>\n\n\n<p>Subsequently, during data analysis, <a href=\"https:\/\/liora.io\/en\/kpis-key-performance-indicators\">Key Performance Indicators (KPIs)<\/a> in business intelligence also rely on arithmetic calculations.<\/p>\n\n\n<p>An example is the <strong>conversion rate<\/strong>, which is the division of the number of conversions by the total number of visitors.<\/p>\n\n\n<p>Percentage growth is measured by subtracting the old value from the new one, then dividing by the old one and multiplying by 100.<\/p>\n\n\n<p>Other techniques use arithmetic to make data comparable. This is the case for Min-Max normalization <strong>(x-min) \/ (max ,  min)<\/strong> and Z-score standardization <strong>(x-mean) \/ standard deviation<\/strong>.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"3-modeling\">3. Modeling<\/h3>\n\n\n<p>The next step is <strong>modeling<\/strong>, and once again, many Machine Learning algorithms are actually based on arithmetic operations.<\/p>\n\n\n<p>Linear regression is the calculation of coefficients using the least squares method, while <strong>k-means clustering<\/strong> involves the iterative calculation of centroids as the arithmetic mean of the assigned points.<\/p>\n\n\n<p>For model performance evaluation, metrics also use arithmetic. Precision is measured using the formula <strong>&#8220;true positives \/ (true positives + false positives)&#8221;<\/strong>.<\/p>\n\n\n<p>Recall relies on the formula &#8220;true positives \/ (true positives + false negatives),&#8221; and the <strong>F1-score<\/strong> is obtained via the arithmetic mean of precision and recall.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for 3. Modeling\" decoding=\"async\" height=\"514\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/08\/arithmetic-data-science-2.jpg\" style=\"width:100%;height:auto\" width=\"900\"\/><\/figure>\n\n\n<h3 class=\"wp-block-heading\" id=\"4-data-visualization-dataviz\">4. Data Visualization (DataViz)<\/h3>\n\n\n<p>As you may know, after data analysis, it is crucial <a href=\"https:\/\/liora.io\/en\/nos-tracks\/data-visualisation\">to present the results in clear and intuitive visualizations<\/a> so that non-technical stakeholders can understand them.<\/p>\n\n\n<p>However, <strong>creating visualizations<\/strong> requires arithmetic calculations. Histograms involve calculating intervals and counting occurrences, while <a href=\"https:\/\/liora.io\/en\/mastering-data-visualization-a-deep-dive-into-pie-charts-in-excel\">pie charts<\/a> rely on calculating angles proportional to frequencies.<\/p>\n\n\n<p>Arithmetic is also used for scaling axes to determine appropriate scales. <strong>Calculating minimum and maximum values<\/strong> determines the axis limits. It also involves determining regular intervals for the graduations.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"an-invaluable-asset-for-data-scientists\">An Invaluable Asset for Data Scientists<\/h2>\n\n\n<p>A solid understanding of arithmetic allows Data Scientists to develop new approaches based on its principles, <strong>intuitively grasp the workings of algorithms<\/strong>, and correctly interpret statistical results.<\/p>\n\n\n<p>This is also very useful for <strong>debugging<\/strong> and result verification. Arithmetic allows manually verifying an algorithm&#8217;s calculations, <strong>identifying errors<\/strong> in the code by comparing expected and obtained results, and performing consistency tests on the data and results.<\/p>\n\n\n<p>Moreover, it helps in <strong>performance optimization<\/strong> by simplifying complex calculations to improve code efficiency and choosing appropriate data structures based on arithmetic complexity.<\/p>\n\n\n<p>It is also a way to implement efficient numerical approximations when exact calculations are too costly. For all these reasons, <strong>arithmetic is a valuable ally for the Data Scientist!<\/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\">Find a course for you<\/a><\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\" id=\"expertise-required-to-meet-challenges\">Expertise Required to Meet Challenges<\/h2>\n\n\n<p>The application of arithmetic in Data Science can be more complex than it seems. First, remember that computers use a <strong>binary representation of numbers<\/strong>, which can lead to precision issues.<\/p>\n\n\n<p>For example, floating-point numbers cannot exactly represent all decimal values. This can lead to rounding errors.<\/p>\n\n\n<p>Very large or very small numbers can also exceed <strong>representation limits<\/strong>, causing calculation errors. And subtracting two very close numbers can result in significant precision loss.<\/p>\n\n\n<p>The solution is to use arbitrary precision calculation libraries or advanced numerical computation techniques.<\/p>\n\n\n<p>Another problem: <strong>traditional arithmetic can be challenged by<\/strong><a href=\"https:\/\/liora.io\/en\/big-data-definition-technologies-uses-and-training\">Big Data<\/a>. Even the simplest operations can become time-consuming when repeated billions of times.<\/p>\n\n\n<p><strong>Storing intermediate results<\/strong> can also overload the available memory. Moreover, some operations are difficult to parallelize effectively.<\/p>\n\n\n<p>The best way to circumvent this obstacle is by using <strong>sampling techniques<\/strong>, <strong>approximate algorithms<\/strong>, or <strong>distributed computing<\/strong>.<\/p>\n\n\n<figure class=\"wp-block-image size-full\" style=\"margin-top:32px;margin-bottom:32px\"><img alt=\"Illustration for Expertise Required to Meet Challenges\" decoding=\"async\" height=\"514\" loading=\"lazy\" src=\"https:\/\/liora.io\/app\/uploads\/sites\/9\/2024\/08\/arithmetic-data-science-3.jpg\" style=\"width:100%;height:auto\" width=\"900\"\/><\/figure>\n\n\n<p>Some Machine Learning and AI algorithms also go beyond simple arithmetic. This is the case for <a href=\"https:\/\/liora.io\/en\/deep-neural-network-what-is-it-and-how-is-it-working\">deep neural networks<\/a> that use operations on multidimensional tensors.<\/p>\n\n\n<p>Many learning algorithms also use <strong>complex optimization techniques<\/strong> that do not rely solely on elementary arithmetic. The same goes for some <a href=\"https:\/\/liora.io\/en\/bayesian-optimization-definition-and-operation\">Bayesian<\/a> or probabilistic models requiring much more complex calculations.<\/p>\n\n\n<p>This is why a <strong>thorough training in advanced mathematics<\/strong> and scientific computing can be indispensable for Data Scientists.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"conclusion-arithmetic-an-essential-mathematical-foundation-in-data-science\">Conclusion: Arithmetic, an Essential Mathematical Foundation in Data Science<\/h2>\n\n\n<p>As you have seen in this article, arithmetic forms the <strong>basis of data processing and analysis operations<\/strong> and allows for the evaluation and interpretation of results.It is also at the heart of many Machine Learning and statistical algorithms, making its mastery <strong>indispensable for any Data Scientist<\/strong>.<\/p>\n\n\n<p>To acquire all the skills and knowledge required for this profession, you can turn to <strong>Liora<\/strong>.<\/p>\n\n\n<p>Our training programs will allow you to learn <a href=\"https:\/\/liora.io\/en\/python-programming-for-dummies-episode-1\">Python programming<\/a>, <a href=\"https:\/\/liora.io\/en\/dataviz-definition-objectives-and-uses\">DataViz<\/a>, <a href=\"\/en\/courses\/data-ai\/machine-learning-engineer\">Machine Learning<\/a>, and <a href=\"\/en\/courses\/data-ai\/deep-learning\">Deep Learning<\/a>, <a href=\"https:\/\/liora.io\/en\/data-analysis-definition-use-of-cases-and-tools\">Data Analysis<\/a> or <a href=\"https:\/\/liora.io\/en\/data-engineer-everything-you-need-to-know-about-the-job\">Data Engineering<\/a>, and <a href=\"\/en\/courses\/data-ai\/mlops\">MLOps<\/a>.<\/p>\n\n\n<p>At the end of the program, you will have all the tools to <strong>work as a Data Science professional<\/strong> and will receive a highly recognized diploma and certification.<\/p>\n\n\n<p>All our training programs are conducted online, in bootcamp, continuous, or alternating modes, and our institution is eligible for CPF funding. <strong>Discover Liora!<\/strong><\/p>\n\n\n\n<p>You now know everything about arithmetic. For more information on the same topic, discover <a href=\"https:\/\/liora.io\/en\/algorithm-what-is-it\">our article on algorithms<\/a> and <a href=\"https:\/\/liora.io\/en\/machine-learning-what-is-it-and-why-does-it-change-the-world\">our article entirely dedicated to Machine Learning<\/a>!<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Arithmetic is a fundamental branch of mathematics, dealing with the basic properties of numbers and elementary operations. Often perceived as a mere calculation tool, it actually plays a fundamental role in Data Science and AI. Discover everything you need to know! Tracing its roots back to ancient civilizations over 20,000 years ago, arithmetic is often [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":188320,"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-188318","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\/188318","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\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=188318"}],"version-history":[{"count":4,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/188318\/revisions"}],"predecessor-version":[{"id":211117,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/188318\/revisions\/211117"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/188320"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=188318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=188318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}