{"id":370,"date":"2021-08-31T19:44:49","date_gmt":"2021-08-31T19:44:49","guid":{"rendered":"https:\/\/maboc.nl\/?p=370"},"modified":"2021-08-31T19:44:49","modified_gmt":"2021-08-31T19:44:49","slug":"bifurcation","status":"publish","type":"post","link":"https:\/\/maboc.nl\/?p=370","title":{"rendered":"Bifurcation"},"content":{"rendered":"<p>Let&#8217;s say I have the formula Y<sub>(n+1)<\/sub>= \u03bb*Y<sub>(n)<\/sub>(1-Y<sub>(n)<\/sub>)<\/p>\n<p>So the value of Y at time n+1 is some factor (\u03bb) times Y at time n times 1 minus Y at time n. Y is between 0 and 1.\u00a0 \u03bb can be anything. As a starting point I choose Y<sub>0<\/sub> to be 0.5 and \u03bb=1. (In the end it actually doesn&#8217;t matter what the starting point is :-)).<\/p>\n<p>Let&#8217;s iterate for a while:<\/p>\n<p>(y<sub>(0)<\/sub>=0.5 \u03bb=0.1 Y rounded up to 4 decimal places)<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<td style=\"width: 10%;\">n<\/td>\n<td style=\"width: 10%;\">0<\/td>\n<td style=\"width: 10%;\">1<\/td>\n<td style=\"width: 10%;\">2<\/td>\n<td style=\"width: 10%;\">3<\/td>\n<td style=\"width: 10%;\">4<\/td>\n<td style=\"width: 10%;\">5<\/td>\n<td style=\"width: 10%;\">6<\/td>\n<td style=\"width: 10%;\">7<\/td>\n<td style=\"width: 10%;\">8<\/td>\n<td style=\"width: 10%;\">9<\/td>\n<td style=\"width: 10%;\">10<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 10%;\">y<\/td>\n<td style=\"width: 10%;\">0.5<\/td>\n<td style=\"width: 10%;\">0.25<\/td>\n<td style=\"width: 10%;\">0.0024<\/td>\n<td style=\"width: 10%;\">0.0002<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<td style=\"width: 10%;\">0.0000<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>As you can see, after allready the 4th iteration the values are 0.<\/p>\n<p>We can do that for a lot of \u03bb values<\/p>\n<table>\n<tbody>\n<tr>\n<td>\u03bb<\/td>\n<td>0.1<\/td>\n<td>0.25<\/td>\n<td>0.5<\/td>\n<td>0.9<\/td>\n<td>1.1<\/td>\n<td>1.2<\/td>\n<td>1.7<\/td>\n<td>2.7<\/td>\n<td>2.8<\/td>\n<td>3,1<\/td>\n<td>3,3<\/td>\n<\/tr>\n<tr>\n<td>Steady State<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0<\/td>\n<td>0.0909<\/td>\n<td>0,1667<\/td>\n<td>0,4118<\/td>\n<td>0,6296<\/td>\n<td>0,6429<\/td>\n<td><strong>0,7646<\/strong><br \/>\n<strong> 0,5580<\/strong><\/td>\n<td><strong>0,8236<\/strong><br \/>\n<strong> 0,4794<\/strong><\/td>\n<\/tr>\n<tr>\n<td>Iteration<\/td>\n<td>4<\/td>\n<td>7<\/td>\n<td>12<\/td>\n<td>70<\/td>\n<td>71<\/td>\n<td>31<\/td>\n<td>6<\/td>\n<td>22<\/td>\n<td>41<\/td>\n<td>24<\/td>\n<td>14<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Huh&#8230;&#8230;with \u03bb = 3, 1 The steady states starts to alternate after 24 iterations at 0,7646 and 0,5580. For \u03bb = 3,3 the same thing : afte a few iterations it starts to alternate between 0,8236 and 0,4794.<\/p>\n<p>Okay&#8230;..I like to see that plotted. On the X-axis \u03bb on the y axis the steady state values:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-374 size-large\" src=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1-1024x646.png\" alt=\"Left=1; right=4; inrements=0,01\" width=\"1024\" height=\"646\" srcset=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1-1024x646.png 1024w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1-300x189.png 300w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1-768x485.png 768w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1-780x492.png 780w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_1.png 1502w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>This picture starts with \u03bb=1 on the x-axis. The stops at \u03bb=4. You can clearly see that the graph at a certain point forks. And somehwat later the fork forks. And very soon ther is just chaos.<\/p>\n<p>Let&#8217;s zoom in a little towards the right side. The X-axis starts at \u03bb=2.8 the increment is\u00a0 0.005. Some more detail is allready visible.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-376 size-large\" src=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2-1024x646.png\" alt=\"left=2,8; right=4; increments 0.005\" width=\"1024\" height=\"646\" srcset=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2-1024x646.png 1024w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2-300x189.png 300w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2-768x485.png 768w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2-780x492.png 780w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_2.png 1502w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>And zoom in even more.\u00a0 The X-axis starts at \u03bb=3.5 and ends on \u03bb=4. Iccrements are 0.001<\/p>\n<p>e<img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-377 size-large\" src=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3-1024x646.png\" alt=\"left=3.5; right=4; increments=0.001\" width=\"1024\" height=\"646\" srcset=\"https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3-1024x646.png 1024w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3-300x189.png 300w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3-768x485.png 768w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3-780x492.png 780w, https:\/\/maboc.nl\/wp-content\/uploads\/2021\/08\/bifurcation_3.png 1502w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>To me this image is mesmerizing and unbelievable at the same time. Why does this function starts very simple, and really fast changes to chaos. After about 4&#8230;5 forks chaos comes into the picture. But&#8230;why is there a complete white area. Among all the chaos ther is an area that has almost no points.<\/p>\n<p>To me this is just something to wonder about.<\/p>\n<p>If you have nothing to do, and you have python on your system, you can try this yourself : <a href=\"https:\/\/github.com\/maboc\/python\/blob\/master\/bifurcation.py\" target=\"_blank\" rel=\"noopener\">bifurcation.py<\/a> And if you are really bored &#8230;just take a look at the repository: <a href=\"https:\/\/github.com\/maboc\/python\" target=\"_blank\" rel=\"noopener\">github<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Let&#8217;s say I have the formula Y(n+1)= \u03bb*Y(n)(1-Y(n)) So the value of Y at time n+1 is some factor (\u03bb) times Y at time n times 1 minus Y at time n. Y is between 0 and 1.\u00a0 \u03bb can be anything. As a starting point I choose Y0 to be 0.5 and \u03bb=1. (In [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,69],"tags":[42,74,75,73],"class_list":["post-370","post","type-post","status-publish","format-standard","hentry","category-algorithm","category-python","tag-algorithm","tag-bifurcation","tag-math","tag-python"],"_links":{"self":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/370","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=370"}],"version-history":[{"count":8,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/maboc.nl\/index.php?rest_route=\/wp\/v2\/posts\/370\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/maboc.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}