Logistic Mapping ロジスティック写像
Let’s look at a very simple example called the logistic map. What this equation does is simply update the value of at each iteration by multiplying the previous step by and .
ロジスティック写像と呼ばれるとてもシンプルな例をみてみましょう。この式が行うのは、繰り返しごとにの値を前のステップに と を掛けたものに更新するだけです。
// Parameter r:
// If 2.0, converges to a single point (order)
// If 3.2, oscillates between two values (periodic)
// If 3.9, exhibits unpredictable behavior (chaos)
let r = 3.9;
let x = 0.5; // Initial value
for (let i = 0; i < 50; i++) {
// This is the nonlinear update equation that simultaneously performs "stretching" and "folding"
x = r * x * (1 - x);
console.log(x.toFixed(4)); // Display the change in value
}
With just this logic, depending on the value of , you can get a sequence that looks very random. You can find a sample here that displays the values directly, but to visualize the behavior more intuitively, let’s use a technique called the Cobweb plot.
これだけのロジックですが、 の値によっては非常にランダムに見える数列が得られます。値を直接表示したものはここにサンプルを置いておきますが、より視覚的に挙動を見るために、Cobweb plot という手法を使ってみましょう。
In the Cobweb plot, we map the current value on the x-axis to the next value on the y-axis, then project that result back to the diagonal to find the new starting point. The faint horizontal lines are auxiliary lines that return the end of the plot to the next starting point on the diagonal. When drawn this way, we can clearly see the feedback loop where the value of jumps around relative to a certain curve (the Logistic Curve). Try changing the value of r to see how the behavior changes.
Cobweb plot では現在のの値()をx軸に、次のの値()をy軸にマッピングし、その結果を対角線に投影して新しい出発点を見つけます。薄く描かれた水平線はプロットの終端を対角線上の次の出発点に戻す補助線です。このように表示すると、 の値があるカーブ(Logistic Curve)を基準にして飛び回るフィードバックループがはっきりとみて取れます。r の値を変更して動きがどう変わるかを試してみましょう。
In the Cobweb plot, we observed the changes in when was fixed at a specific value, but now let’s see how the overall behavior changes when we vary .
Cobweb plot では を特定の値に固定した時も の変化を見ましたが、今度は を変化させた時に全体の動きがどう変わるかを見てみましょう。
In the demo below, is plotted on the horizontal axis and on the vertical axis, plotting the settled values of after the initial transients have died out. This reveals the destination of the system for each .
下のデモでは を横軸、 を縦軸にプロットし、初期の過渡状態が収まった後に落ち着いた の値をプロットしています。これにより、それぞれの に対するシステムの行き先が明らかになります。
In the logistic map, when is a small value, converges to a single stable solution, but beyond a certain point it bifurcates into two branches, then four branches, and so on. This is called period-doubling bifurcation.
ロジスティック写像では が小さい値の場合は が安定した一つの解に収束しますが、ある点を境に二本、四本…と枝分かれしていきます。これを周期倍分岐と呼びます。
Around , the bifurcations occur infinitely fast, and the system enters a state that appears completely random. This is the chaotic region.
を超えたあたりで、枝分かれは無限に速くなり、完全にランダムに見える状態になります。ここがカオス領域です。
What’s interesting is that even within this chaos, periodic windows (white gaps) occasionally appear. In the midst of disorder, periodicity suddenly reemerges. If you zoom in on the white window sections, you can see a self-similar (fractal) structure, where the same structure as the entire figure appears in miniature.
面白いのは、このカオスの中にも、時折白い隙間(周期的窓)が現れることです。混沌とした世界の中に、突然に周期性が復活します。白い窓の部分を拡大してみると、図全体と同じ構造がそこにミニチュアとして現れる自己相似(フラクタル)構造が見られます。
What is randomness?
ランダムさとは
We’ve been using the phrase “appears random” somewhat casually, but to analyze chaos, it’s helpful to define randomness mathematically. On the next page, we’ll examine the concept of randomness from the perspective of information theory.
ここまで「ランダムに見える」という言葉を何となく使ってきましたが、カオスの性質を分析するにはランダムさを数学的に扱えるように定義することが役立ちます。次のページでは情報理論の観点からランダムさという概念について詳しくみていきます。