{"id":851,"date":"2019-01-25T23:30:34","date_gmt":"2019-01-26T04:30:34","guid":{"rendered":"http:\/\/aristotle2digital.blogwyrm.com\/?p=851"},"modified":"2021-11-25T19:50:36","modified_gmt":"2021-11-26T00:50:36","slug":"chaos-game-part-3-stability-of-the-game","status":"publish","type":"post","link":"https:\/\/aristotle2digital.blogwyrm.com\/?p=851","title":{"rendered":"Chaos Game Part 3 &#8211; Stability of the Game"},"content":{"rendered":"<p>Now having <a href=\"http:\/\/aristotle2digital.blogwyrm.com\/?p=800\">introduced the chaos game<\/a> and analyzed <a href=\"http:\/\/aristotle2digital.blogwyrm.com\/?p=829\">how a single iteration works<\/a>, it is worth taking stock of what we actually know.\u00a0 Clearly the repeated application of the affine map causes points to collect only in certain places in the plane creating the self-similar fractals that are often called the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Attractor\">attractors<\/a> of the map or <a href=\"https:\/\/en.wikipedia.org\/wiki\/Attractor#Strange_attractor\">strange attractors<\/a>.\u00a0 We\u2019ve also established what the parameters of the affine map do in the particular case of the Sierpinski triangle, getting a sense of how those parameters map to the rules discussed in the <a href=\"https:\/\/www.youtube.com\/watch?v=kbKtFN71Lfs&amp;t=40s\">Numberphile video<\/a>.\u00a0 But the exact mechanism for why only certain points are hit is based on some specialized mathematics and little intuition is obtained from pursuing the study without a lot of initial effort being devoted to understanding the \u2018nuts and bolts\u2019.<\/p>\n<p>So, this post is devoted to an experimental approach to the chaos game that produces the Sierpinski triangle.\u00a0 Each experiment performed involves changing one or more of the parameters that make up the affine maps used in the game and then observing what happens to the pattern produced.\u00a0 Doing so will help us understand the stability of the map.<\/p>\n<p>Stability can be defined in numerous ways.\u00a0 There are definite schools of thought with different interpretations.\u00a0 For this exploration of the chaos game, I will define two types of stability:\u00a0 deterministic and stochastic.<\/p>\n<p>Deterministic stability looks to see in what range of parameters does the chaos game yield fractal-like results.\u00a0 The parameters themselves are chosen at the beginning of the game and remain fixed during its progression. \u00a0\u00a0The idea is to answer such questions as:\u00a0 How accurate do the parameters need to be?\u00a0 How many different shapes or patterns result?\u00a0 How many different types of games are there?<\/p>\n<p>To get a sense of what answers may result and to clarify what is meant by \u2018types of games\u2019, consider the investigation detailed in the last post.\u00a0 As a direct byproduct of understanding a single iteration, the significance of the constant terms $f^{(p)}$ and $g^{(p)}$ used in three Sierpinski affine maps became clear; multiplying these parameters by two gave the coordinates of vertices of the triangle.\u00a0 The same Sierpinski triangle resulted even if these values were changed.\u00a0 Thus, the family of all possible values for $f^{(p)}$ and $g^{(p)}$ form an equivalence class where the scale and overall geometry may change but the shape is undeniably a Sierpinski triangle.\u00a0 I term this equivalence class as a single game.<\/p>\n<p>In contrast, stochastic stability involves regarding the parameters of the affine maps as random variables, which vary at each iteration.\u00a0 The time history of each random variable forms a unique realization that is different each time the game is played.\u00a0 This aspect can be quite important because noise can creep into the game in a variety of scenarios.\u00a0 Computationally, the finite precision floating point representation of the rational numbers in the game are not exact and small errors arise as the game progresses through its iterations.\u00a0 Physically, an analog of the game in the material world is a messy affair with the parameters of the maps only inexactly realized due to all the small but unmodelled effects.<\/p>\n<p>One possible way of implementing a stochastic game would be to generalize the deterministic expression for a new point $(x,y)$ in the Sierpinski triangle game,<\/p>\n<p>\\[ \\left[ \\begin{array}{c} x \\\\ y \\end{array} \\right] = \\left[ \\begin{array}{cc} 1\/2 &amp; 0 \\\\ 0 &amp; 1\/2 \\end{array} \\right] \\left[ \\begin{array}{c} x_{current} \\\\ y_{current} \\end{array} \\right] + \\frac{1}{2} \\left[ \\begin{array}{c} x_{vertex} \\\\ y_{vertex} \\end{array} \\right] \\; , \\]<\/p>\n<p>(where $(x_{vertex},y_{vertex})$ are the coordinates of one of the three vertices of the triangle, chosen randomly, and $(x_{current},y_{current})$ is the current points coordinates) to a physical system by making the transformation matrix look like<\/p>\n<p>\\[ \\left[ \\begin{array}{cc} 1\/2 &amp; 0 \\\\ 0 &amp; 1\/2 \\end{array} \\right] \\rightarrow \\left[ \\begin{array}{cc} 1\/2 + \\eta_{11} &amp; \\eta_{12} \\\\ \\eta_{21} &amp; 1\/2 + \\eta_22 \\end{array} \\right] \\; , \\]<\/p>\n<p>where the $\\eta_{ij}$ are random variables, with some specified moments, reflecting noise that is ubiquitous in the world.<\/p>\n<p>For this post, we\u2019ll content ourselves with exploring deterministic stability for the Sierpinski triangle, looking at what results from changing the values in the transformation matrix and the relative probabilities that each vertex is selected.\u00a0 In order to facilitate the experiments, each game\u2019s results will be over-plotted (in black) the results from the standard Sierpinski triangle (red).<\/p>\n<p>The first experiment, we\u2019ll change the transformation matrix so that the new point is only moved one third along the line from the current point to the vertex (this was actually suggested in the Numberphile video).\u00a0 This modification amounts to the following change for the transformation matrix<\/p>\n<p>\\[ \\left[ \\begin{array}{cc} 1\/2 &amp; 0 \\\\ 0 &amp; 1\/2 \\end{array} \\right] \\rightarrow \\left[ \\begin{array}{cc} 1\/3 &amp; 0 \\\\ 0 &amp; 1\/3 \\end{array} \\right] \\; . \\]<\/p>\n<p>Running the game gives<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-850\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third.jpg\" alt=\"\" width=\"857\" height=\"439\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third.jpg 857w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third-300x154.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third-768x393.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third-810x415.jpg 810w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p>At first glance, lowering the values in the transformation matrix seems to have simply shrank the scale of the triangle but closer inspection shows that there is a fundamental change in the geometry.\u00a0 The missing \u2018center piece\u2019 is now a squat hexagon instead of a triangle as is more easily seen with the following annotated figure.<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-846\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated.jpg\" alt=\"\" width=\"857\" height=\"464\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated.jpg 857w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated-300x162.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated-768x416.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_third_annotated-810x439.jpg 810w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p>This small change has resulted in a new, but closely related game.<\/p>\n<p>Scaling up the values in the transformation matrix from $1\/2$ to $3\/4$ leads to no discernible structure (with the original triangle now peaking thru in the lower left corner).<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-849\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts.jpg\" alt=\"\" width=\"828\" height=\"418\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts.jpg 828w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts-300x151.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts-768x388.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_3quarts-810x409.jpg 810w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\" \/><\/a><\/p>\n<p>This result looks as if scaling the values in the transformation matrix above $1\/2$ causes the points to overlap, suggesting that the value of $1\/2$ is some sort of divider or separatrix between non-overlapping and overlapping points.\u00a0 We might expect that a small value above one half, say $0.55$ would begin to blur the Sierpinski triangle by creating a small amount of overlap.\u00a0 Running the game with this value yields<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-848\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55.jpg\" alt=\"\" width=\"857\" height=\"457\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55.jpg 857w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55-300x160.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55-768x410.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_55-810x432.jpg 810w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p>Some of the overlap regions are highlighted within red circles and the remaining ones can deduced by the symmetry exhibited by this self-similar fractal.<\/p>\n<p>Likewise, a value of $0.45$ produces a triangle where the sub-triangles no longer smoothly join together but where there are gaps.<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-847\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45.jpg\" alt=\"\" width=\"857\" height=\"490\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45.jpg 857w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45-300x172.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45-768x439.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/ST_0_45-810x463.jpg 810w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p>If this process were to occur in a physical system (and there are certain researchers constructing such systems \u2013 see <em><a href=\"https:\/\/www.sciencenews.org\/article\/physicists-wrangled-electrons-quantum-fractal\">Physicists wrangled electrons into a quantum fractal<\/a><\/em>) then the scales selected in the transformation matrix must stay confined to a relatively narrow range of parameter space ($0.45-0.55$) before the results become so different as to suggest that the system is fundamentally different.\u00a0 That said, the geometry produced by the game, regarded strictly in a visual sense, is remarkably resilient.\u00a0 Triangles within triangles result over a fairly wide range of values.<\/p>\n<p>The results of the final experiment show that the game is even much more tolerant to changes in the probabilities that determine how often each vertex is picked.\u00a0 In the original implementation of the game, each vertex had a $1\/3$ chance of being the one selected.\u00a0 To see how sensitive the game is to changes in this respect, the relative probabilities were adjusted so that one vertex had an 80% chance of being selected while there was only a 10% chance of selecting from the remaining two.\u00a0 As the figure below shows, the result of this change are to simply \u2018ghost out\u2019 the vertices that are less likely.<\/p>\n<p><a href=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-845\" src=\"http:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP.jpg\" alt=\"\" width=\"857\" height=\"405\" srcset=\"https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP.jpg 857w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP-300x142.jpg 300w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP-768x363.jpg 768w, https:\/\/aristotle2digital.blogwyrm.com\/wp-content\/uploads\/2019\/01\/sierpinski_sieve_UP-810x383.jpg 810w\" sizes=\"auto, (max-width: 857px) 100vw, 857px\" \/><\/a><\/p>\n<p>The conclusion here is straightforward.\u00a0 The chaos game method of producing the Sierpinski triangle is remarkably stable to a range of deterministic changes in the parameter set.\u00a0 This robustness makes the chaos game a convenient numerical laboratory for exploring other emergent fractals, some of which we will see in the next post.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now having introduced the chaos game and analyzed how a single iteration works, it is worth taking stock of what we actually know.\u00a0 Clearly the repeated application of the affine&#8230; <a class=\"read-more-button\" href=\"https:\/\/aristotle2digital.blogwyrm.com\/?p=851\">Read more &gt;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":0,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"wp:attachment":[{"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aristotle2digital.blogwyrm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}