{"id":19841,"date":"2023-01-18T08:11:44","date_gmt":"2023-01-18T08:11:44","guid":{"rendered":"https:\/\/www.booksofall.com\/de\/?post_type=product&#038;p=19841"},"modified":"2023-01-18T08:13:33","modified_gmt":"2023-01-18T08:13:33","slug":"annotated-algorithms-in-python-applications-in-physics-biology-and-finance","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/","title":{"rendered":"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance"},"content":{"rendered":"<h2><b>Main Ideas\u00a0<\/b><\/h2>\n<p>Even if we cover many different algorithms and examples, there are a few central ideas in this book that we try to emphasize over and over.<\/p>\n<p>The first idea is that we can simplify the solution of a problem by using an approximation and then systematically improve our approximation by iterating and computing corrections.<\/p>\n<p>The divide-and-conquer methodology can be seen as an example of this approach. We do this with the insertion sort when we sort the first two numbers, then we sort the first three, then we sort the first four, and so on. We do it with merge sort when we sort each set of two numbers, then each set of four, then each set of eight, and so on. We do it with the Prim, Kruskal, and <a href=\"https:\/\/www.baeldung.com\/cs\/prim-dijkstra-difference\">Dijkstra<\/a> algorithms when we iterate over the nodes of a graph, and as we acquire knowledge about them, we use it to update the information about the shortest paths.<\/p>\n<p>We use this approach in almost all our numerical algorithms because any differentiable function can be approximated with a<a href=\"https:\/\/www.cuemath.com\/calculus\/linear-functions\/\"> linear function<\/a>:<\/p>\n<p>f (x +\u00a0<i>\u03b4<\/i>x) &#8216; f (x) + f \u2032(x)<i>\u03b4<\/i>x (1.1)<\/p>\n<p>We use this formula in the <a href=\"https:\/\/web.ma.utexas.edu\/users\/m408n\/CurrentWeb\/LM4-8-2.php\">Newton method<\/a> to solve nonlinear equations and optimization problems, in one or more dimensions.<\/p>\n<p>We use the same approximation in the fix point method, which we use to solve equations like f (x) = 0; in the minimum residual and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Conjugate_gradient_method\">conjugate gradient methods<\/a>; and to solve the Laplace equation in the last chapter of the book. In all these algorithms, we start with a random guess for the solution, and we iteratively find a better one until convergence.<\/p>\n<p>The second idea of the book is that certain quantities are random, but even random numbers have patterns that we can capture using instruments like distributions and correlations. The presence of these patterns helps us model those systems that may have a random output (e.g., nuclear reactions, financial systems) and also helps us in computations. In fact, we can use random numbers to compute quantities that are not random (<a href=\"https:\/\/www.investopedia.com\/terms\/m\/montecarlosimulation.asp\">Monte Carlo methods<\/a>). The most common approximation that we make in different parts of the book is that when a random variable x is localized at a point with a given uncertainty,\u00a0<i>\u03b4<\/i>x, then its distribution is Gaussian. Thanks to the properties of Gaussian random numbers, we conclude the following:<\/p>\n<p>\u2022 Using the <a href=\"https:\/\/tutorial.math.lamar.edu\/classes\/calci\/linearapproximations.aspx\">linear approximation<\/a> (our first big idea), if z = f (x), the uncertainty in the output is<\/p>\n<p><i>\u03b4<\/i>z = f \u2032(x)<i>\u03b4<\/i>x (1.2)<\/p>\n<p>\u2022 If we add two independent Gaussian random variables z = x + y, the uncertainty in the output is<\/p>\n<p><i>\u03b4<\/i>z = \u221a<i>\u03b4<\/i>x2 +\u00a0<i>\u03b4<\/i>y2 (1.3)<\/p>\n<p>\u2022 If we add N independent and identically distributed Gaussian vari- ables z = \u2211 xi, the uncertainty in the output is<\/p>\n<p><i>\u03b4<\/i>z = \u221aN<i>\u03b4<\/i>x (1.4)<\/p>\n<p>We use this over and over, for example, when relating the volatility over different time intervals (daily, yearly).<\/p>\n<p>\u2022 If we compute an average of N independent and identically distributed Gaussian random variables, z = 1\/N \u2211 xi, the uncertainty in the aver- age is<\/p>\n<p><i>\u03b4<\/i>z =\u00a0<i>\u03b4<\/i>x\/ \u221aN (1.5)<\/p>\n<p>We use this to estimate the error on the average in a Monte Carlo com- putation. In that case, we write it as d<i>\u00b5\u00a0<\/i>=\u00a0<i>\u03c3<\/i>\/ \u221a N, and\u00a0<i>\u03c3\u00a0<\/i>is the standard deviation of {xi}.<\/p>\n<p>The third idea is that the time it takes to run an iterative algorithm is pro- portional to the number of iterations. It is therefore our goal to minimize the number of iterations required to reach a target precision. We develop a language to compare algorithms based on their running time and clas- sify algorithms into categories. This is useful to choose the best algorithm based on the problem at hand.<\/p>\n<p>In the chapter on parallel algorithms, we learn how to distribute those iterations over multiple parallel processes and how to break individual iterations into independent steps that can be executed concurrently on parallel processes, to reduce the total time required to obtain a solution within a given target precision. In the parallel case, the running time ac- quires an overhead that depends on the communication patterns between the parallel processes, the communication latency, and bandwidth.<\/p>\n<p>In the ultimate analysis, we can even try to understand ourselves as a par- allel machine that models the input from the world by approximations. The brain is a graph that can be modeled by a neural network. The learn- ing process is an ongoing optimization process in which the brain adjusts its synapses to produce better and better responses. The decision process mimics a search tree. We solve problems by searching for the most simi- lar problems that we have encountered before, then we refine the solution. Our DNA is a code that evolved to efficiently compress the information necessary to grow us from a single cell into a complex being. We evolved according to evolutionary mechanisms that can be modeled using genetic algorithms. We can find our similarities with other organisms using the longest common subsequence algorithm. We can reconstruct our evolu- tionary tree using shortest-path algorithms and find out how we came to be.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe frameborder=\"0\" allowtransparency=\"true\" allowFullscreen=\"true\" style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/annotated-algorithms-in-python-3-8--185u9awybi?p=1\"><\/iframe><\/p>\n","protected":false},"featured_media":19844,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here."},"product_brand":[],"product_cat":[263],"product_tag":[],"class_list":{"0":"post-19841","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-algorithms-data-structures","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German<\/title>\n<meta name=\"description\" content=\"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German\" \/>\n<meta property=\"og:description\" content=\"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll German\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-18T08:13:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"4\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/\",\"url\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/\",\"name\":\"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg\",\"datePublished\":\"2023-01-18T08:11:44+00:00\",\"dateModified\":\"2023-01-18T08:13:33+00:00\",\"description\":\"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg\",\"width\":\"827\",\"height\":\"1169\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/de\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/de\/#website\",\"url\":\"https:\/\/www.booksofall.com\/de\/\",\"name\":\"BooksOfAll German\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/de\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/de\/#organization\",\"name\":\"BooksOfAll German\",\"url\":\"https:\/\/www.booksofall.com\/de\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/www.booksofall.com\/de\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll German\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/de\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German","description":"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.","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:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/","og_locale":"de_DE","og_type":"article","og_title":"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German","og_description":"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.","og_url":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/","og_site_name":"BooksOfAll German","article_modified_time":"2023-01-18T08:13:33+00:00","og_image":[{"url":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"4\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/","url":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/","name":"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance - BooksOfAll German","isPartOf":{"@id":"https:\/\/www.booksofall.com\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg","datePublished":"2023-01-18T08:11:44+00:00","dateModified":"2023-01-18T08:13:33+00:00","description":"Simplification is what we are always looking for in algorithms. In this case, understanding of different techniques and methods are needed. Learn more here.","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#primaryimage","url":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg","contentUrl":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2023\/01\/cover-Page-11.jpg","width":"827","height":"1169"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/de\/annotated-algorithms-in-python-applications-in-physics-biology-and-finance\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/de\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/de\/categories\/"},{"@type":"ListItem","position":3,"name":"Annotated Algorithms in Python: Applications in Physics, Biology, and Finance"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/de\/#website","url":"https:\/\/www.booksofall.com\/de\/","name":"BooksOfAll German","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/de\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/de\/#organization","name":"BooksOfAll German","url":"https:\/\/www.booksofall.com\/de\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/www.booksofall.com\/de\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/de\/wp-content\/uploads\/sites\/9\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll German"},"image":{"@id":"https:\/\/www.booksofall.com\/de\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/product\/19841","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/media\/19844"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/media?parent=19841"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/product_brand?post=19841"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/product_cat?post=19841"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/de\/wp-json\/wp\/v2\/product_tag?post=19841"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}