A single simulated run consisted of 100,000 sequential trials; for each trial, the underlying probability
p could take one of two values,
p 0 or
p 1, with transitions between these values occurring randomly with an average frequency
f. We updated
q at each trial according to
Equation 3 and calculated the standard deviation
σ of the prediction error (
q −
p), over the entire run, as a measure of overall performance. To find an optimum value for
λ for a particular set of parameters (
p 0,
p 1,
f), we performed runs for values of
λ from .0 through 1.0 in .01 steps and then took the value for
λ that returned the lowest standard deviation
σ. The results of these simulations are shown in
Figures 9 and
10 and show that for a given (
p 0,
p 1), the optimum
λ had a monotonically increasing relation to
f; in other words, the more frequently the underlying probability changed, the larger
λ had to be to achieve the best performance. This relationship between optimum
λ and
f is shown in
Figure 10A: Its shape appears roughly constant (for convenience, we model it with a cube root function), with a scaling factor
k that chiefly depends on the size of the step in probability (
p 0 −
p 1): The larger the changes in probability, the larger
λ needs to be for optimum performance. This relationship is shown in
Figure 10B:
k is an accelerating function of (
p 0 −
p 1), which can be approximated quite well with an exponential. We attach no particular meaning to this empirical fit, however, but simply note that it economically describes the functional relationship we observe. Finally, we simulated a (more realistic) situation in which
p 0 and
p 1 are not fixed but are themselves randomly determined at each transition, with a uniform distribution between
p = 0 and
p = 1. As might have been anticipated, this resulted in very similar behavior to the case when (
p 0 −
p 1) = .5 (
Figure 10A) and suggests that in the absence of any other information, we might expect to find
λ having values between 0 and .18; as it happens, our observed values (
Figure 4) do indeed lie in the middle of this range.