The logistic map is a very simple quadratic map, which also is capable of highly chaotic behavior. It’s equation is like the following:
The constant r is also known as biotic potential, from the fact that this equation is also used as the idealistic population growth model in the field of theoretical ecology. Being idealistic, the model only considers intraspecific interaction based on population density and assumes generations don’t overlap.
The logistic map is chaotic. Its behaviour significantly varies depending on the value of r. For 0 < r < 1, the population will die eventually, but, for 1 < r ≤ 3, the population will converge to . Beyond 3 ≤ r < 4, it will not converge mostly, and further beyond r ≥ 4, it will diverge.
Let’s see what exactly happens:
In[1]:=
In[2]:=
Out[2]=
For r = 0.6, the population died quickly. For r = 1.3, the population converges quickly, but, for r = 2.95, converges slowly. For r = 3.3, you can observe the oscillation between 2 values, and between 4 values for r = 3.5. Finally, for r = 4, there’s just no pattern.
Since the population diverges for r ≥ 4, a different approach should be used to clearly see what happens. The below plots (n, ):
In[3]:=
Out[3]=
While it’s certainly not impossible to poke into the details of logistics map with the above approach, we certainly need a better view on the subject. This is where “Bifurcation Diagram” kicks in. From Wikipedia:
a bifurcation diagram shows the values visited or approached asymptotically (fixed points, periodic orbits, or chaotic attractors) of a system
In simpler words, given a system F, a bifurcation diagram plots all possible values of F(x; σ) for bifurcation parameter x and initial condition σ. That is, to plot the bifurcation diagram of the logistic map, we have to
In[4]:=
In[6]:=
In[14]:=
The following function returns the population values of n-th generations, where skip < n ≤ skip + depth.
In[15]:=
In[16]:=
In[18]:=
In[19]:=
Out[20]=
In[21]:=
Out[22]=
In[23]:=