{"id":1474,"date":"2014-02-01T12:11:05","date_gmt":"2014-02-01T06:41:05","guid":{"rendered":"http:\/\/ucanalytics.com\/blogs\/?p=1474"},"modified":"2016-09-28T22:29:50","modified_gmt":"2016-09-28T16:59:50","slug":"the-beauty-of-%cf%80-iterative-calculation","status":"publish","type":"post","link":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/","title":{"rendered":"The Beauty of \u03c0 (Pi) &#8211; Iterative Calculation"},"content":{"rendered":"<hr \/>\n<p>Let us continue with our inadvertently started tradition of separating the articles on cluster analysis with a different topic to make them form perfect clusters. This time, I am going to discuss iterative calculation in between articles on our running series on <a href=\"http:\/\/ucanalytics.com\/blogs\/category\/marketing-analytics\/telecom-case-study-example\/\">cluster analysis and customer segmentation for telecom<\/a>.\u00a0 Though I must say we are going to use concepts discussed in this article in the next article on cluster optimization and customer segmentation. Coming back to iterative calculation, almost all data mining and machine learning algorithms use iterative calculation methods to arrive at the solution for curve fitting, classification, and prediction. Let us try to understand how Archimedes devised a strategy to estimate the value of \u03c0 through iterative calculation more than two thousand years ago.<\/p>\n<h2><span style=\"font-size: 18px; color: #3396e6;\">Archimedes of Syracuse<\/span><\/h2>\n<div id=\"attachment_1476\" style=\"width: 287px\" class=\"wp-caption alignright\"><a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg\"><img aria-describedby=\"caption-attachment-1476\" data-attachment-id=\"1476\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/photo1\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&amp;ssl=1\" data-orig-size=\"1354,1465\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Archimedes &#8211; by Roopam\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Archimedes &#8211; by Roopam&lt;\/p&gt;\n\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=277%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=640%2C693&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-1476 \" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?resize=277%2C300\" alt=\"Archimedes - by Roopam\" width=\"277\" height=\"300\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?resize=277%2C300&amp;ssl=1 277w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?resize=946%2C1024&amp;ssl=1 946w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?w=1354&amp;ssl=1 1354w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?w=1280 1280w\" sizes=\"(max-width: 277px) 100vw, 277px\" data-recalc-dims=\"1\" \/><\/a><p id=\"caption-attachment-1476\" class=\"wp-caption-text\">Archimedes &#8211; by Roopam<\/p><\/div>\n<p>Eureka! This is the word most of us associate with Archimedes who lived between 287\u2013212\u00a0BC. Eureka! Archimedes screamed in exhilaration in his bath tub upon discovering the phenomenon of buoyancy, the upward force exerted by a fluid on the immersed object. Eureka is the word associated with the moment of joy experienced through discovery or invention. Archimedes was certainly a Eureka man. During the Renaissance (14th\u201317th century AD) the concepts known to Archimedes were independently discovered. Imagine the surprise when the contents of Archimedes manuscripts were revealed in 1906 and it was appreciated that he had discovered the Renaissance concepts more than thousand years before! Archimedes was indeed a man who was centuries ahead of his time.<\/p>\n<p>Isaac Newton and Gottfried Leibniz are credited with the invention of &#8216;calculus&#8217; (the mathematical study of change)\u00a0 in the 17th century. However, the concept of limits that is at the heart of calculus was used by Archimedes to estimate the value of \u03c0 (Pi).\u00a0 The famous \u03c0 is an irrational number that has the value 3.141592653589793238 &#8230; (this number will go on till eternity or infinity).<\/p>\n<h2><span style=\"font-size: 18px; color: #3396e6;\">Limits of \u03c0 (Pi) &#8211; Archimedes&#8217; Genius<\/span><\/h2>\n<p><a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg\"><img data-attachment-id=\"1504\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/sqr\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?fit=351%2C352&amp;ssl=1\" data-orig-size=\"351,352\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Sqr\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?fit=351%2C352&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"alignright size-thumbnail wp-image-1504\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?resize=250%2C250\" alt=\"Sqr\" width=\"250\" height=\"250\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?resize=250%2C250&amp;ssl=1 250w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?resize=300%2C300&amp;ssl=1 300w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?resize=50%2C50&amp;ssl=1 50w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?resize=150%2C150&amp;ssl=1 150w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/Sqr.jpg?w=351&amp;ssl=1 351w\" sizes=\"(max-width: 250px) 100vw, 250px\" data-recalc-dims=\"1\" \/><\/a>Let us try to understand the genius of Archimedes through his estimation of the limits of \u03c0. Let us start by drawing two squares one inside and the other outside of the circle as shown in the adjacent figure. \u00a0It is easy to notice that the area of the circle is greater than the area of the inner square. Also, the area of the outer square is greater than the area of the circle. This relationship will also hold for the perimeters of the inner and outer squares and circumference of the circle. Remember, the perimeter of a square is the sum of the length of all the sides of a square and circumference is the length of the boundary of a circle.<\/p>\n<p>Moreover, recall from the high-school math that circumference of a circle is equal to \u03c0d i.e. \u03c0\u00a0times diameter of the circle. It is easy to see that for a circle with the diameter of one (i.e. d=1), the circumference is just \u03c0.<\/p>\n<p>Now it is time to generalize our above findings. A square is a polygon with 4 sides. The above relationship about squares and the circle is true for all the polygons drawn inside and outside a circle. This general relationship can be depicted as<\/p>\n<pre><span style=\"font-size: 16px; font-family: georgia,palatino;\">Perimeter of the Inner Polygon &lt; \u03c0 &lt; Perimeter of the outer Polygon<\/span><\/pre>\n<p>You might appreciate that finding the value of perimeter of a polygon is much simpler than finding the value of \u03c0. Just find the perimeter of the inner and outer polygon and you have found the upper and lower limits for \u03c0. The stroke of genius for Archimedes was his realization that as the number of sides of polygons was increased he could capture the value of \u03c0 to a greater precision. Theoretically, if Archimedes had constructed a polygon with an infinite number of sides he would have produced the exact value of \u03c0 (sounds like calculus, isn\u2019t it?). This same phenomenon is captured in the animation below.<br \/>\n<a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/output_vqwfmz.gif\"><img data-attachment-id=\"5998\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/output_vqwfmz\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/output_vqwfmz.gif?fit=421%2C419&amp;ssl=1\" data-orig-size=\"421,419\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"output_vqwfmz\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/output_vqwfmz.gif?fit=300%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/output_vqwfmz.gif?fit=421%2C419&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-5998 aligncenter\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/output_vqwfmz.gif?resize=421%2C419\" alt=\"output_vqwfmz\" width=\"421\" height=\"419\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<table>\n<tbody>\n<tr>\n<td style=\"width: 108.8px;\"><a href=\"http:\/\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/circle.xlsx\"><img data-attachment-id=\"8637\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/information-value-and-weight-of-evidencebanking-case\/information-value-iv-and-weight-of-evidence-woe-excel\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?fit=275%2C150&amp;ssl=1\" data-orig-size=\"275,150\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Information-Value-IV-and-Weight-of-Evidence-WOE &#8211; Excel\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?fit=275%2C150&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?fit=275%2C150&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"alignleft wp-image-8637\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?resize=106%2C58\" alt=\"Information-Value-IV-and-Weight-of-Evidence-WOE - Excel\" width=\"106\" height=\"58\" srcset=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?w=275&amp;ssl=1 275w, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2016\/08\/Information-Value-IV-and-Weight-of-Evidence-WOE-Excel.png?resize=250%2C136&amp;ssl=1 250w\" sizes=\"(max-width: 106px) 100vw, 106px\" data-recalc-dims=\"1\" \/><\/a><\/td>\n<td style=\"width: 708.2px;\"><span style=\"font-size: 24pt;\"><strong> \u2190<\/strong><\/span> Download the Excel to play around with these polygons yourself (I find it good fun)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Archimedes had painstakingly calculated the limits of \u03c0 using polygons with 96 sides. I have shown this in the above animation as a tribute to Archimedes. You might have noticed that with 96 sides the value of \u03c0 has converged to just first two decimal places i.e. 3.14 (remember using this number in the high-school math).\u00a0This was a phenomenal discovery by Archimedes but had its own limitations. For instance, Archimedes&#8217; method converges to the value of \u03c0\u00a0very slowly.\u00a0\u00a0Notice the last slide in the animation, even with a polygon with 1200 sides the value of \u03c0 has converged to just fourth decimal place i.e. 3.1415.<\/p>\n<h2><span style=\"font-size: 18px; color: #3396e6;\">An Important Problem in Mathematics<\/span><\/h2>\n<p>Using Archimedes method, it will take eternally long time to learn the 10 trillion digits of \u03c0 (the current record for finding the largest number of digits of \u03c0 on a personal computer). This is a good place to appreciate an important problem in modern mathematics, computer science, and machine learning.\u00a0 The idea is not just to find an algorithm that converges to the right value but also fast. In the context of \u03c0, it is an apt time to introduce an equation suggested by another genius Srinivasa Ramanujan. Evaluate the following equation for \u03c0 suggested by him<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/ramanujan.png\"><img data-attachment-id=\"1511\" data-permalink=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/ramanujan\/\" data-orig-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/ramanujan.png?fit=297%2C51&amp;ssl=1\" data-orig-size=\"297,51\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"ramanujan\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/ramanujan.png?fit=297%2C51&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/ramanujan.png?fit=297%2C51&amp;ssl=1\" decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-1511\" src=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/ramanujan.png?resize=297%2C51\" alt=\"ramanujan\" width=\"297\" height=\"51\" data-recalc-dims=\"1\" \/><\/a><\/p>\n<p>It\u2019s beautiful, isn\u2019t it? Ok I agree, it is incomprehensible but it does converge to the value of \u03c0 and that too really fast. All the modern formulas for estimating the value of \u03c0 use Ramanujan\u2019s method in some form or other. This formula gives the right value of\u00a0\u03c0 to 14 decimal places in just 2<sup>nd<\/sup> iteration i.e. k = 1. This is a major improvement on our estimation of \u03c0 using the Archimedes&#8217; method.<\/p>\n<h4><span style=\"color: #3396e6; font-size: 16px;\"><b>Sign-off Note<\/b><\/span><\/h4>\n<p>You must have noticed my penchant for sketching as I try to include a sketch in all my blog posts. I really enjoy drawing these sketches. I have equally enjoyed creating Archimedes\u2019 method of the polygon on an excel spreadsheet which is used in the above animation. I guess I am a visual mathematician.<\/p>\n<p>See you soon with the continuation of our telecom case study in the next article.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let us continue with our inadvertently started tradition of separating the articles on cluster analysis with a different topic to make them form perfect clusters. This time, I am going to discuss iterative calculation in between articles on our running series on cluster analysis and customer segmentation for telecom.\u00a0 Though I must say we are<\/p>\n<p><a class=\"excerpt-more blog-excerpt\" href=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":1476,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[64],"tags":[7,71,6,10],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The Beauty of \u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-\u03c0-iterative-calculation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The Beauty of \u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |\" \/>\n<meta property=\"og:description\" content=\"Let us continue with our inadvertently started tradition of separating the articles on cluster analysis with a different topic to make them form perfect clusters. This time, I am going to discuss iterative calculation in between articles on our running series on cluster analysis and customer segmentation for telecom.\u00a0 Though I must say we areRead More...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-\u03c0-iterative-calculation\/\" \/>\n<meta property=\"og:site_name\" content=\"YOU CANalytics |\" \/>\n<meta property=\"article:author\" content=\"roopam\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-01T06:41:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-28T16:59:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&#038;ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"1354\" \/>\n\t<meta property=\"og:image:height\" content=\"1465\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Roopam Upadhyay\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\",\"name\":\"YOU CANalytics\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120\",\"contentUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120\",\"width\":607,\"height\":120,\"caption\":\"YOU CANalytics\"},\"image\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#website\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/\",\"name\":\"YOU CANalytics |\",\"description\":\"Explore the Power of Data Science\",\"publisher\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ucanalytics.com\/blogs\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1\",\"width\":1354,\"height\":1465,\"caption\":\"Archimedes - by Roopam\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage\",\"url\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/\",\"name\":\"The Beauty of \\u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |\",\"isPartOf\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage\"},\"datePublished\":\"2014-02-01T06:41:05+00:00\",\"dateModified\":\"2016-09-28T16:59:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ucanalytics.com\/blogs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"The Beauty of \\u03c0 (Pi) &#8211; Iterative Calculation\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage\"},\"author\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6\"},\"headline\":\"The Beauty of \\u03c0 (Pi) &#8211; Iterative Calculation\",\"datePublished\":\"2014-02-01T06:41:05+00:00\",\"dateModified\":\"2016-09-28T16:59:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage\"},\"wordCount\":1001,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#organization\"},\"image\":{\"@id\":\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1\",\"keywords\":[\"Business Analytics\",\"Customer Segmentation\",\"Predictive Analytics\",\"Roopam Upadhyay\"],\"articleSection\":[\"Analytics Graffiti\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6\",\"name\":\"Roopam Upadhyay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ucanalytics.com\/blogs\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g\",\"caption\":\"Roopam Upadhyay\"},\"description\":\"This blog contains my personal views and thoughts on predictive Analytics and big data. - Roopam Upadhyay\",\"sameAs\":[\"roopam\"],\"url\":\"https:\/\/ucanalytics.com\/blogs\/author\/roopam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"The Beauty of \u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-\u03c0-iterative-calculation\/","og_locale":"en_US","og_type":"article","og_title":"The Beauty of \u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |","og_description":"Let us continue with our inadvertently started tradition of separating the articles on cluster analysis with a different topic to make them form perfect clusters. This time, I am going to discuss iterative calculation in between articles on our running series on cluster analysis and customer segmentation for telecom.\u00a0 Though I must say we areRead More...","og_url":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-\u03c0-iterative-calculation\/","og_site_name":"YOU CANalytics |","article_author":"roopam","article_published_time":"2014-02-01T06:41:05+00:00","article_modified_time":"2016-09-28T16:59:50+00:00","og_image":[{"width":1354,"height":1465,"url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1","type":"image\/jpeg"}],"twitter_misc":{"Written by":"Roopam Upadhyay","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/ucanalytics.com\/blogs\/#organization","name":"YOU CANalytics","url":"https:\/\/ucanalytics.com\/blogs\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/#logo","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120","contentUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2015\/11\/YOU-CANalytics-Logo.jpg?fit=607%2C120","width":607,"height":120,"caption":"YOU CANalytics"},"image":{"@id":"https:\/\/ucanalytics.com\/blogs\/#logo"}},{"@type":"WebSite","@id":"https:\/\/ucanalytics.com\/blogs\/#website","url":"https:\/\/ucanalytics.com\/blogs\/","name":"YOU CANalytics |","description":"Explore the Power of Data Science","publisher":{"@id":"https:\/\/ucanalytics.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ucanalytics.com\/blogs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage","inLanguage":"en-US","url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1","width":1354,"height":1465,"caption":"Archimedes - by Roopam"},{"@type":"WebPage","@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage","url":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/","name":"The Beauty of \u03c0 (Pi) - Iterative Calculation &ndash; YOU CANalytics |","isPartOf":{"@id":"https:\/\/ucanalytics.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage"},"datePublished":"2014-02-01T06:41:05+00:00","dateModified":"2016-09-28T16:59:50+00:00","breadcrumb":{"@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ucanalytics.com\/blogs\/"},{"@type":"ListItem","position":2,"name":"The Beauty of \u03c0 (Pi) &#8211; Iterative Calculation"}]},{"@type":"Article","@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#article","isPartOf":{"@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage"},"author":{"@id":"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6"},"headline":"The Beauty of \u03c0 (Pi) &#8211; Iterative Calculation","datePublished":"2014-02-01T06:41:05+00:00","dateModified":"2016-09-28T16:59:50+00:00","mainEntityOfPage":{"@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#webpage"},"wordCount":1001,"commentCount":3,"publisher":{"@id":"https:\/\/ucanalytics.com\/blogs\/#organization"},"image":{"@id":"https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1","keywords":["Business Analytics","Customer Segmentation","Predictive Analytics","Roopam Upadhyay"],"articleSection":["Analytics Graffiti"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ucanalytics.com\/blogs\/the-beauty-of-%cf%80-iterative-calculation\/#respond"]}]},{"@type":"Person","@id":"https:\/\/ucanalytics.com\/blogs\/#\/schema\/person\/55961a1cea272ecdf290cb387be069b6","name":"Roopam Upadhyay","image":{"@type":"ImageObject","@id":"https:\/\/ucanalytics.com\/blogs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/dd1aa0b0e813f7639800bcfad6a554f1?s=96&d=mm&r=g","caption":"Roopam Upadhyay"},"description":"This blog contains my personal views and thoughts on predictive Analytics and big data. - Roopam Upadhyay","sameAs":["roopam"],"url":"https:\/\/ucanalytics.com\/blogs\/author\/roopam\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo1.jpg?fit=1354%2C1465&ssl=1","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3L0jT-nM","jetpack-related-posts":[{"id":1532,"url":"https:\/\/ucanalytics.com\/blogs\/customer-segmentation\/","url_meta":{"origin":1474,"position":0},"title":"Telecom Case (Part 4) &#8211; Customer Segmentation and Application","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Telecom Case Study \u2013 Customer Segmentation For the last few articles we have been working on a telecom case study to create customer segments (Part 1, Part 2 and Part 3). In this case, you are the head of customer insights and marketing at a telecom company, ConnectFast Inc. Recall,\u2026","rel":"","context":"In &quot;Marketing Analytics&quot;","block_context":{"text":"Marketing Analytics","link":"https:\/\/ucanalytics.com\/blogs\/category\/marketing-analytics\/"},"img":{"alt_text":"Customer Segmentation - by Roopam","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/photo1.jpg?fit=742%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/photo1.jpg?fit=742%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/photo1.jpg?fit=742%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/02\/photo1.jpg?fit=742%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1385,"url":"https:\/\/ucanalytics.com\/blogs\/customer-segmentation-outliers-telecom-case-study-part-3\/","url_meta":{"origin":1474,"position":1},"title":"Cluster Analysis and Outliers \u2013 Telecom Case Study Example (Part 3)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Outliers \"I refuse to join any club that would have me as a member.\" - Groucho Marx This witty statement came from (according to me) one of the funniest men in the history of American cinema \u2013 Julius Henry Marx better known as Groucho Marx. Groucho was certainly a very\u2026","rel":"","context":"In &quot;Marketing Analytics&quot;","block_context":{"text":"Marketing Analytics","link":"https:\/\/ucanalytics.com\/blogs\/category\/marketing-analytics\/"},"img":{"alt_text":"Groucho - by Roopam","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo.jpg?fit=768%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo.jpg?fit=768%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo.jpg?fit=768%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2014\/01\/photo.jpg?fit=768%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":9519,"url":"https:\/\/ucanalytics.com\/blogs\/cluster-analysis-learn-by-doing-analytics-challenge-part-1\/","url_meta":{"origin":1474,"position":2},"title":"Cluster Analysis Puzzle &#8211; Learn by Doing! (Part 1)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Cluster analysis is a powerful analytical technique to group or segment identical elements i.e. customers, products etc. In this series of articles, you will explore nuances of cluster analysis and its applications. Analytics challenges, on YOU CANalytics, are designed like puzzles where your participation is extremely important to move things\u2026","rel":"","context":"In &quot;Analytics Challenge&quot;","block_context":{"text":"Analytics Challenge","link":"https:\/\/ucanalytics.com\/blogs\/category\/analytics-challenge\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2017\/01\/Twins-and-Cluster-Analysis-1.jpg?fit=427%2C233&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1259,"url":"https:\/\/ucanalytics.com\/blogs\/customer-segmentation-cluster-analysis-telecom-case-study-part-2\/","url_meta":{"origin":1474,"position":3},"title":"Customer Segmentation &#038; Cluster Analysis \u2013 Telecom Case Study Example(Part 2)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"In one of\u00a0the previous articles, we have started with a case study example from the telecom sector. We learned about cluster analysis using black holes as an analogy. In that article, we used Euclidean distance to form customer segments. Let us continue with the same case study and learn about\u2026","rel":"","context":"In &quot;Marketing Analytics&quot;","block_context":{"text":"Marketing Analytics","link":"https:\/\/ucanalytics.com\/blogs\/category\/marketing-analytics\/"},"img":{"alt_text":"Euclid - by Roopam","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/12\/unnamed.jpg?fit=524%2C615&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":1116,"url":"https:\/\/ucanalytics.com\/blogs\/customer-segmentation-cluster-analysis-telecom-case-study-example\/","url_meta":{"origin":1474,"position":4},"title":"Customer Segmentation &#038; Cluster Analysis &#8211; Telecom Case Study Example (Part 1)","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"Galaxies and Cluster Analysis I live in Mumbai (Bombay), the financial capital of India and one of the largest cities in the world. One of the problems of living in a large city is that you rarely see stars in the night sky. The limited sky one can see through\u2026","rel":"","context":"In &quot;Marketing Analytics&quot;","block_context":{"text":"Marketing Analytics","link":"https:\/\/ucanalytics.com\/blogs\/category\/marketing-analytics\/"},"img":{"alt_text":"The Night Sky - by Roopam","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/11\/sky-1.jpg?fit=768%2C1024&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/11\/sky-1.jpg?fit=768%2C1024&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/11\/sky-1.jpg?fit=768%2C1024&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/11\/sky-1.jpg?fit=768%2C1024&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":1251,"url":"https:\/\/ucanalytics.com\/blogs\/murder-cases-evidence-and-logical-rigor-addendum\/","url_meta":{"origin":1474,"position":5},"title":"Murder Cases, Evidence and Logical Rigor &#8211; Addendum","author":"Roopam Upadhyay","date":false,"format":false,"excerpt":"I know this article should be a continuation of our telecom case study on customer segmentation and cluster analysis. Though it\u2019s not intended, but possibly is apt that the articles on cluster analysis are separated by articles on other topics \u2013 forming them into perfect clusters. Last time, we had\u2026","rel":"","context":"In &quot;Analytics Graffiti&quot;","block_context":{"text":"Analytics Graffiti","link":"https:\/\/ucanalytics.com\/blogs\/category\/analytics-graffiti\/"},"img":{"alt_text":"Return to the Dark Ages - by Roopam","src":"https:\/\/i0.wp.com\/ucanalytics.com\/blogs\/wp-content\/uploads\/2013\/12\/peace.jpg?fit=357%2C489&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts\/1474"}],"collection":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/comments?post=1474"}],"version-history":[{"count":0,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/posts\/1474\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/media\/1476"}],"wp:attachment":[{"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/media?parent=1474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/categories?post=1474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ucanalytics.com\/blogs\/wp-json\/wp\/v2\/tags?post=1474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}