{'fraction_non_alphanumeric': 0.05611084510414173, 'fraction_numerical': 0.015172372516159924, 'mean_word_length': 3.9594835262689227, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A kinetic equation for economic value estimation with irrationality and herding

A kinetic inhomogeneous Boltzmann-type equation is proposed to model the dynamics of the number of agents in a large market depending on the estimated value of an asset and the rationality of the agents. The interaction rules take into account the interplay of the agents with sources of public information, herding phenomena, and irrationality of the individuals. In the formal grazing collision limit, a nonlinear nonlocal Fokker-Planck equation with anisotropic (or incomplete) diffusion is derived. The existence of global-in-time weak solutions to the Fokker-Planck initial-boundary-value problem is proved. Numerical experiments for the Boltzmann equation highlight the importance of the reliability of public information in the formation of bubbles and crashes. The use of Bollinger bands in the simulations shows how herding may lead to strong trends with low volatility of the asset prices, but eventually also to abrupt corrections.


Introduction
Herding behavior and the formation of speculative bubbles (and subsequent crashes) are observed in many financial and commodity markets. There are many historical examples, from the so-called Dutch tulip bulb mania in 1637 to the recent credit crunch in the US housing market in 2007. Despite the obvious importance of these phenomena, herding behavior and bubble formation were investigated in the scientific literature only in the last two decades. The aim of this paper is to propose and investigate a kinetic model describing irrationality and herding of market agents, motivated by the works of Toscani [26] and Delitala and Lorenzi [13].
Herding in economic markets is characterized by a homogenization of the actions of the market participants, which behave at a certain time in the same way. Herding may lead to strong trends with low volatility of asset prices, but eventually also to abrupt corrections, so it promotes the occurence of bubbles and crashes. Numerous socio-economic papers [4,8,17,23,24] and research in biological sciences [1,19] show that herding interactions play a crucial role in social scenarios. Herding behavior is driven by emotions and usually occurs because of the social pressure of conformity. Another cause is the appeal to belief that it is unlikey that a large number of people could be wrong. A market participant might follow the herd in spite of another opinion. This phenomenon is known as an information cascade [5].
While most approaches to herding in the literature are based on agent models, our approach uses techniques from kinetic theory, similar to opinion-formation models [7,15,26]. These methods employ ideas from statistical mechanics to describe the behavior of a large number of individuals in a society [22]. Binary collisions between gas molecules are replaced by interactions of market individuals, and the phase-space variables are interpreted as socio-economic variables, in our case: the rationality x ∈ R and the estimated asset value w ∈ R + := [0, ∞), assigned to the asset by an individual. When x > 0, we say that the agent behaves rational, otherwise irrational. We refer to the review [14] for a discussion of rational herding models.
Denoting by f (x, w, t) the distribution of the agents at time t ≥ 0, its time evolution is given by the inhomogenous Boltzmann-type equation with the boundary condition f = 0 at w = 0 and initial condition f = f 0 at t = 0. The first term on the right-hand side describes an interaction that is soley based on economic fundamentals. After the interaction, the individuals change their estimated asset value influenced by sources of public information such as financial reports, balance sheet numbers, etc. The second term describes binary interactions of the agents modeling the exchange of information and possibly leading to herding and imitation phenomena. When the asset value lies within a certain range around the "fair" prize, determined by fundamentals, the agents may suffer from psychological biases like overconfidence and limited attention [21], and we assume that they behave more irrational. This means that the drift field Φ(x, w) is negative in that range. When the asset value becomes too low or too large compared to the "fair" prize the asset values are believed to be driven by speculation. We assume that the market agents recognize this fact at a certain point and are becoming more rational. In this case, the drift field Φ(x, w) is positive. We expect that the estimated asset value will in average be not too far from the "fair" price, and we confirm this expectation by computing the moment of f (x, w, t) with respect to w in Section 2.2. For details on the modeling, we refer to Section 2.
Our setting is influenced by the models investigated by Toscani [26] and Delitala and Lorenzi [13]. Toscani [26] described the interaction of individuals in the context of opinion formation. Our modeling of public information and herding is similar to [26]. The idea to include public information and herding is due to [13]. In contrast to [13], we allow for the drift field Φ(x, w), leading to the inhomogeneous Boltzmann-type equation (1). Such equations were also studied in [16] but using a different drift field. The relationship of rational herd behavior and asset values was investigated in [3] but no dynamics were analyzed. The novelty of the present work is the combination of dynamics, transport, public information, and herding.
Our main results are as follows. We derive formally in the grazing collision limit (as in [26]) the nonlinear Fokker-Planck equation Here, K[g] is a nonlocal operator related to the attitude of the agents to change their mind because of herding mechanisms, H(w) is an average of the compromise propensity, and D(w) models diffusion, which can be interpreted as a self-thinking process, and satisfies D(0) = 0. Again, we refer to Section 2 for details. A different herding diffusion model in the context of crowd motion was derived and analyzed in [9]. Other kinetic and macroscopic crowd models were considered in [12].
Equation (2) is nonlinear, nonlocal, degenerate in w, and anisotropic in x (incomplete diffusion). It is well known that partial diffusion may lead to singularity formation [20], and often the existence of solutions can be shown only in the class of very weak or entropy solutions [2,18]. Our situation is better than in [2,18], since the transport in x is linear. Exploiting the linear structure, we prove the existence of global weak solutions to (2)-(3). However, we need the assumption that D(w) is strictly positive to get rid of the degeneracy in w. Unfortunately, our estimates depend on inf D(w) and become useless when D(0) = 0.
Finally, we present some numerical experiments for the inhomogeneous Boltzmann-type equation (1) using a splitting scheme. The collisional part (i.e. (1) with Φ = 0) is approximated using the interaction rules and a modified Bird scheme. The transport part (i.e. (1) with Q I = Q H = 0) is discretized using a combination of an upwind and Lax-Wendroff scheme. The numerical experiments highlight the importance of the reliability of public information in the formation of bubbles and crashes. The use of Bollinger bands in the simulations shows how herding may lead to strong trends with low volatility of the asset prices, but eventually also to abrupt corrections.
The paper is organized as follows. In Section 2, the kinetic model is detailed and the grazing collision limit is performed. The resulting Fokker-Planck model (2)-(3) is analyzed in Section 3. Furthermore, we discuss the time evolution of the moments of g(x, w, t) in some specific examples. The numerical results are presented in Section 4.

Modeling
The aim of this section is to model the evolution of the distribution of the number of agents in a large market using a kinetic approach.
2.1. Public information and herding. We describe the behavior of the market agents by means of microscopic interactions among the agents. The state of the market is assumed to be characterized by two continuous variables: the estimated asset value w ∈ R + := [0, ∞) and the rationality x ∈ R. We say that the agent has a rational behavior if x > 0 and an irrational behavior if x < 0. The changes in asset valuation are based on binary interactions. We take into account two different types: the interaction with public sources, which characterizes a rational agent, and the effect of herding, characterizing an irrational agent. In the following, we define the corresponding interaction rules.
Let w be the estimated asset value of an arbitrary agent before the interaction and w * the asset value after exchanging information with the public source. Given the background W = W (t), which may be interpreted as a "fair" value, the interaction is given, similarly as in [10], by (4) w The function P measures the compromise propensity and takes values in [0, 1], and the parameter α > 0 is a measure of the strength of this effect. Furthermore, the function d with values in [0, 1] describes the modification of the asset value due to diffusion, and η is a random variable with distribution µ with variance σ 2 I and zero mean taking values on R, i.e. w = R wdµ(w) = 0 and w 2 = R w 2 dµ(w) = σ 2 I . An example for P is [26] where r > 0 and 1 A denotes the characteristic function on the set A. Thus, if the estimated asset value is too far from the value available from public sources (the "fair" value), the effect of public information will be discarded (selective perception). The idea behind (4) is that if a market agent trusts an information source, she will update her estimated asset value to make it closer to the one suggested by the public information. We expect that a rational investor follows such a strategy.
The interaction rule (4) has to ensure that the post-interaction value w * remains in the interval R + . We have to require that diffusion vanishes at the border w = 0, i.e. d(0) = 0. In the absence of diffusion, it follows that Therefore, the post-interaction value w * stays in the domain R + .
The second interaction rule aims to model the effect of herding, i.e., we take into account the interaction between a market agent and other investors. We suggest the interaction rule, similarly as in [26], The pairs (w, v) and (w * , v * ) denote the asset values of two arbitrary agents before and after the interaction, respectively. In (5), β ∈ (0, 1/2] is a constant which measures the attitude of the market participants to change their mind because of herding mechanisms. Furthermore, η 1 , η 2 are random variables, modeling diffusion effects, with the same distribution with variance σ 2 H and zero mean, and, to simplify, the function d is the same as in (4). The function γ with values in [0, 1] describes a socio-economic scenario where individuals are highly confident in the asset. An example, taken from [13], reads as where f is nonincreasing, f (0) = 1, and lim w→∞ f (w) = 0. If an agent has an asset value w smaller than v, the function γ will push this agent to assume a higher value w * than that one before the interaction. This means that the agent trusts other agents that assign a higher value. If w is larger than v, the agent hesitates to lower his asset value and nothing changes. Agents that assign a small value w tend to herd with a higher rate, i.e. f is nonincreasing. Another choice is given by γ(v, w) = 1 {|w−v|<r H } [13]. In this case, the interaction occurs only when the two interacting agents have asset values which are not too different from each other. The interaction does not take place if w * , v * are negative. In the absence of diffusion, adding both equations in (5) gives w * + v * = v + w which means that the total momentum is conserved. Subtracting both equations in (5) When diffusion is taken into account, we need to specify the range of values the random variables η 1 , η 2 in (5) can assume. This clearly depends on the choice of d(w), and we refer to [15, page 3691] for a more detailed discussion.
2.2. The kinetic equation. Instead of calculating the value x and w for each market agent, we prefer to investigate the evolution of the distribution f (x, w, t) of the estimated value and the rationality of the market participants. The integral B f (x, w, t)dz with z = (x, w) represents the number of agents with asset value and rationality in B ⊂ R × R + at time t ≥ 0. In analogy with classical kinetic theory of rarefied gases, we may identify the position variable with the rationality and the velocity with the asset value. Using standard methods of kinetic theory, f (x, w, t) evolves according to the inhomogeneous Boltzmann equation Here, Φ(x, w) is the drift term, Q I and Q H are interaction integrals modeling the public information and herding, respectively, and 1/τ I > 0, 1/τ H > 0 describe the interaction frequencies. This equation is supplemented by the boundary condition f (x, 0, t) = 0 (nobody believes that the asset has value zero) and the initial condition A simple model for Φ can be introduced as follows. If an agent gives an asset value that is much larger than the "fair" value W , she will recognize that the value is overestimated and it is believed that she will become more rational. The same holds true when the estimated value is too low compared to W . In this regime, the drift function Φ(x, w) should be positive since agents drift towards higher rationality x > 0. When the estimated value is not too far from the value W , agents may behave more irrational and drift towards the region x < 0, so the drift function is negative. An example for such a function is where δ, κ, R > 0. The constant R fixes the range |w − W | < R in which bubbles and crashes do not occur. More realistic models are obtained when R depends on time, and we consider such a case in Section 4). An alternative is to employ the mean asset value Next, we detail the choice of the interaction integrals. As pointed out in [10], the existence of a pre-interaction pair which returns the post-interaction pair (w * , v * ) through an interaction of the type (4) is not guaranteed, because of the boundary constraint. Therefore, we will give the interaction rule in the weak form. Let φ(w) := φ(x, w) be a regular test function and set Ω = R × R + , z = (x, w). The weak form reads as where · is the expectation value with respect to the random variable η in (4) and M(W ) ≥ 0 represents the fixed background satisfying R + M(W )dW = 1. The Boltzmann equation for this operator, Choosing φ(w) = 1, the right-hand side vanishes, which expresses conservation of the number of agents: The choice φ(w) = w gives the time evolution of the mean asset value m w (f ) = Ω f wdz: For instance, if P = 1 and denoting by ρ := Ω f dz the (conserved) number of agents, we obtain H(w) = τ −1 This shows that the mean asset value converges exponentially fast to the mean value of the background as t → ∞. The operator Q H (f, f ) models the binary interaction of the agents and, similary as in [26], we define where (w, v) is the pre-interaction pair that generates via (5) the post-interaction pair (w * , v * ). Choosing φ = 1 in the Boltzmann equation ∂ t f = Q H (f, f ), we see that this operator also conserves the number of agents. Taking φ(w) = w and using a symmetry argument, the interaction rule (5), and the fact that the random variables η 1 and η 2 have zero mean, we find that We infer that herding conserves the mean asset value. This is reasonable as the crowd may tend to any direction depending on the herding.
2.3. Grazing collision limit. The analysis of the Boltzmann equation (7) is rather involved, and it is common in kinetic theory to investigate certain asymptotics leading to simplified models of Fokker-Planck type. Our aim is to perform the formal limit (α, β, σ 2 H , σ 2 I ) → 0 (in a certain sense made precise below), where α, β appear in the interaction rules (4) and (5) and σ 2 H , σ 2 I are the variances of the random variables in these rules. The limit can be made rigorous using the techniques of [11,26], but we prefer to consider the formal limit only. In the following, we proceed along the lines of [11,26].
. After the change of variables (x, w) → (x s , t s ) and setting z s = (x s , w), the weak form of (7) reads as where Q I,s (g) = Q I (f ), Q H,s (g, g) = Q H (f, f ) are defined in weak form in (9), (11), respectively. In the following, we omit the index s.
Before performing the formal grazing collision limit, we rewrite the first term on the right-hand side of (12). By a Taylor expansion and the interaction rule (4), we can write 1]. Inserting this expression into (9), observing that η = 0, η 2 = σ 2 I , and taking into account definition (10) for H(w), it follows that 1 We wish to pass to the limit α → 0 and σ I → 0 such that λ I : where in the last step we integrated by parts. The boundary integrals vanish since g = 0 at w = 0 and d(0 The limit (α, σ H ) → 0 in the last term of (12) is performed in a similar way. Using a Taylor expansion and (5), we have (with a different w as above) We insert this expansion into (11) and find that where we recall that ρ = Ω f dz and we have set Therefore, the limit (α, σ I , σ H ) → 0 in (12) gives Since φ is an arbitrary test function, this is the weak form of the Fokker-Planck-type equation This equation is supplemented by the boundary condition g = 0 at w = 0 and the initial condition g(0) = g 0 in Ω.

Analysis
The aim of this section is to analyze the Fokker-Planck-type equation derived in the previous section. To this end, we set Then (13) simplifies to 3.1. Existence of weak solutions. We wish to show the existence of weak solutions to (3), (14) under the following hypotheses: , and there exists δ > 0 such that D(w) ≥ δ > 0 for w ∈ (0, ∞). H2: Γ ∈ L 2 ((R + ) 2 ), Γ ≥ 0, and Γ w (v, w) ≤ 0 for all v, w ≥ 0. H3: g 0 ∈ H 1 (0, ∞) and 0 ≤ g 0 ≤ M 0 for some M 0 > 0. Then the main result reads as follows. The idea of the proof is to regularize equation (2) by adding a second-order derivative with respect to x, to truncate the nonlinearity, and to solve the equation in the finite interval w ∈ (0, R). Then we pass to the deregularization limit. Let R > 0, 0 < ε < 1, M > 0, set where g is an integrable function, and introduce Ω R = (−R, R) × (0, R). We split the boundary ∂Ω R = ∂Ω D ∪ ∂Ω N into two parts: Finally, we set g + = max{0, g}. Consider the approximated nonlinear problem where ·, · is the dual product between H −1 D (Ω R ) and H 1 D (Ω R ). Proof of Theorem 1. We wish to apply the Leray-Schauder fixed-point theorem. For this, we split the proof in several steps.
The third integral on the right-hand side can be estimated by Young's inequality, Then, collecting the integrals involving M(g − M) + and ((g − M) + ) 2 and observing that Γ w ≤ 0 implies that K M [g] w ≤ 0, it follows that , the first integral on the right-hand side is nonpositive. The last integral is nonpositive too, and the second integral can be estimated by some constant C ε > 0. We conclude that Then Gronwall's lemma implies that (g − M) + = 0 and g ≤ M in Ω R , t > 0. In particular, we can write K[g] instead of K M [g] in (17). The L ∞ bound provides the desired bound for the fixed-point operator in L 2 (0, T ; L 2 (Ω R )), yielding the existence of a weak solution to (17).
Step 3: uniform H 1 bound. We wish to derive H 1 bounds independent of ε. To this end, we choose first the test function v = g ∈ L 2 (0, T ; H 1 D (Ω R )) in (17) (replacing T by t ∈ (0, T )): Applying Young's inequality to the second integral on the right-hand side, integrating by parts in the third integral, and observing that g = 0 at w ∈ {0, R} yields, for some constant C 1 > 0 which depends on the L ∞ norms of Φ x , H ′ , and D ′′ (we use again that K[g] w ≤ 0), Since C 1 > ε is possible, this does not give an estimate, and we need a further argument. Next, we differentiate (15) with respect to x in the sense of distributions and set h := g x : We observe that the boundary condition g = 0 on ∂Ω D implies that also g x = 0 holds on ∂Ω D and so, g x = 0 on ∂Ω R . Hence, equation (22) is complemented with homogeneous Dirichlet boundary conditions. Furthermore, h(x, w, 0) = g 0,x (x, w). The weak formulation of (22) reads as for all v ∈ L 2 (0, T ; H 1 0 (Ω R )). This is a linear nonlocal problem for h, with given g, and we verify that there exists a solution h ∈ L 2 (0, T ; H 1 0 (Ω R )) ∩ H 1 (0, T ; H −1 (Ω R )), using similar arguments as above. Therefore, we can choose v = h as a test function in (22): We integrate by parts and employ the inequalities K[g] w ≤ 0, D(w) ≥ δ: The first integral on the right-hand side is estimated by using Young's inequality: For the second integral on the right-hand side of (23), we observe that 0 ≤ g ≤ M and This shows that, for some C 2 (δ) > 0, We add (21) and (24) to find that, for some C 3 (δ) > 0, Gronwall's lemma provides uniform estimates for g and g x = h: where C > 0 depends on δ, M, and the L ∞ bounds for Φ, H, D ′ and their derivatives, but not on R and ε.

3.2.
Asymptotic behavior of the moments. We analyze the time evolution of the macroscopic moments where g is a (smooth) solution to (2)-(3), in the special situation that P = 1 and Φ(x, w) is given by (8). Observe that P = 1 implies that (recall (10)) The parameter W may be the same as in the definition of Φ(x, w) in (8). First, we compute ∂ t m w (g). Using g = 0 at w = 0 and integrating by parts with respect to w, we obtain where we have taken into account that K[g] ≥ 0 and ρ = Ω gdz. By Gronwall's lemma, m w (g(t)) converges exponentially fast to the mean value ρW as t → ∞. This result is similar to the convergence of the mean asset value for solutions to the Boltzmann equation, as shown in Section 2.2. Next, we compute ∂ t m x (g). Then This expression explains the role of the parameter δ. Indeed, assume that in some time interval, the number of agents with estimated asset value around W (|w − W | < R) is of the same order as those with asset value which differs significantly from W (|w − W | ≥ R). Then, for δ ≫ 1, the mean rationality is decreasing, and if δ ≪ 1, it is increasing. Thus, δ is a measure for the expected mean rationality. The variance of g with respect to w is given by V w (g) = Ω g(w − W ) 2 dz. We compute At this point, we need some simplifying assumptions. Let Γ(v, w) = Γ 0 and D(w) = w. Then K[g] = Γ 0 ρ and We infer from m w (g(t)) → ρW that the variance V w (g(t)) converges to 2ρW as t → ∞.

Numerical simulations
We illustrate the behavior of the solution to the kinetic model derived in Section 2.2 by numerical simulations.

4.1.
The numerical scheme. The kinetic equation (7) is originally posed in the unbounded spatial domain (x, w) ∈ R × R + . Numerically, we consider instead a bounded domain, similarly as for the approximate equation (15) in the existence analysis. For this, let (x, w) ∈ (−1, 1) × (0, 1). This means that agents with x = −1 are completely irrational and individuals with x = 1 are completely rational. The maximal possible asset value w is normalized to one. We choose uniform subdivisions (x 0 , . . . , x N ) for the variable x and (w 0 , . . . , w M ) for the variable w. We take N = M = 70 in the simulations. The function w j+1 ), and t k = k△t, where △t is the time step size (we choose △t = 10 −5 ).
For the numerical approximation, we make an operator splitting ansatz, i.e., we split the Boltzmann equation (7) into a collisional part and a drift part. The collisional part is numerically solved by using the interaction rules (4) or (5), respectively, and a slightly modified Bird scheme [6]. First, we describe the choice of the interaction rule. The stochastic process η is a point process with η = ±0.06 with probability 0.5. The total number of agents is normalized to one. We introduce the number of irrational agents I irr (w, t) = 0 −1 f (x, w, t)dx and the number of rational agents I rat (w, t) = 1 0 f (x, w, t)dx. If for fixed (w, t), the majority of the agents is rational (I rat > 0.6), we select the herding interaction rule (5). If the majority of the market participants is irrational (I rat < 0.4), we choose the interaction rule (4). In the intermediate case, the choice of the interaction rule is random. Clearly, this choice could be refined by relating it to the value of the ratio I rat /I irr . The pairs of individuals that interact are chosen randomly and at each step all the agents interact with the background and with another randomly chosen agent, respectively.
After the interaction part, we need to distribute the function f on the grid. The distribution at w * is defined by f (w * ) = f (w) − f (v). Then the part f (w * ) is distributed proportionally to the neighboring grid points w j and w j+1 . In order to avoid that the postinteraction values become negative, some restriction on the random variables are needed; we refer to [16, Section 2.1] for details.
At each time step, we solve the transport part using a flux-limited Lax-Wendroff/upwind scheme. More precisely, let △x = 1/N be the step size for the rationality variable, and recall that △t = 10 −5 is the time step size. The value f (x i , w j , t k ) is approximated by f k i for a fixed w j . We recall that the upwind scheme reads as and the Lax-Wendroff scheme is given by The Lax-Wendroff scheme has the advantage that it is of second order, while the first-order upwind scheme is employed close to discontinuities. The choice of the scheme depends on the smoothness of the data. In order to measure the smoothness, we compute the ratio θ k i of the consecutive differences and introduce a smooth van-Leer limiter function Ψ(θ k i ), defined by Our final scheme is defined by

4.2.
Choice of functions and parameters. We still need to specify the functions used in the simulations. We take τ H = τ I = 1, and Φ(x, w) is given by (8). The values of the parameters α, β, R, W , δ, and κ are specified below. With the simple setting P = 1, the interaction rule (4) becomes w * = (1 − α)w + αW + ηd(w). This means that α measures the influence of the public source: if α = 1, the agent adopts the asset value W , being the background value; if α = 0, the agent is not influenced by the public source. The random variables η is normally distributed with zero mean and standard deviation 0.06. The diffusion coefficient d(w) is chosen such that it vanishes at the boundary of the domain of definition of w, i.e. at w = 0 and w = 1, and that its maximal value is one.
The choice of γ(v, w) is similar to that one in [13,Formula (11)], and we explained its structure already in Section 2.1. In (6), we have chosen f (w) = 1 − w. This means that agents do not change their asset value due to herding when w is close to its maximal value. When the asset value is very low, w ≈ 0, we have w * ≈ βv + η 1 d(w), and the agent adopts the value βv.

4.3.
Numerical test 1: constant R, constant W . We choose R = 0.025 and W = 0.5. The aim is to understand the occurence of bubbles and crashes depending on the parameters α, β, and κ. We say that a bubble (crash) occurs at time t if the mean asset value m w (f (t)) is larger than W + R (smaller than W − R). This definition is certainly a strong simplification. However, there seems to be no commonly accepted scientific definition or classification of a bubble. Shiller [25, page 2] defines "a speculative bubble as a situation in which news of price increases spurs investor enthusiasm, which spreads by psychological contagion from person to person". Our definition may be different from the usual perception of a bubble or crash in real markets. Figure 1 (left) presents the percentage of bubbles and crashes for different values of α. More precisely, we count how often the mean asset value is larger than W + R (smaller than W − R) and how often it lies in the range [W − R, W + R]. The quotient defines the percentage of bubbles (crashes). The simulations were performed 200 times and the mean asset value is then averaged. We observe that bubbles occur more frequently when α is close to zero. This may be explained by the fact that α represents the reliability of the public information, and when this quantity is small, the agents do not trust the public source. If α is close to one, all the market participants rely on the public information. This means that they assume an asset value close to the "fair" prize W . This corresponds to a herding behavior, and the herding interaction rule, which tends to higher values, applies, leading to bubble formation. A market that does neither overestimate nor underestimate public information leads to the smallest bubble percentage, here with α being around 0.5. Interestingly, the results vary only slightly with repect to the parameter β.  The percentage of crashes is depicted in Figure 1 (right). Qualitatively, the percentage is small for values α not too far from 0.5, but the shape of the curves is more complex than those for bubbles. For instance, there is a local maximum at α = 0.1 and a local minimum at α = 0.85. The percentage of crashes is largest for α close to one. Again, the dependence on the parameter β is very weak.
In the above simulations, we have assumed a constant value for α, i.e., all market participants have the same attitude to change their mind when interacting with public sources, We wish to show that nonconstant values lead to similar conclusions. For this, we generate α from a normal distribution with standard deviation 0.45 and various means α . The result is shown in Figure 2 for β = 0.25 and β = 0.5. For comparison, the percentages for constant α and β = 0.05 are also shown. It turns out that the results for nonconstant or constant α are qualitatively similar which justifies the use of constant α.
The time evolution of the first moment m w (f (t)) = Ω 1 f (x, w, t)wdz is shown in Figure 3. We see that the mean asset value stays within the range [W (t) − R, W (t) + R] if α is small (except for increasing "fair" prices) and it has the tendency to take values larger than W (t) if α is large. Figure 4 illustrates the influence of the parameter δ which describes the strength of the drift in the region |w−W (t)| < R. The background value W (t) models a crash: It increases up to time t = 0.2 then decreases abruptly, and stays constant for t > 0.2. For small values of δ, the mean asset value decreases slowly while it adapts to W (t) more quickly when δ is large. Interestingly, we observe a (small) time delay for small δ although the equations do not contain any delay term. The delay is only caused by the slow drift term. The same phenomenon can be reproduced for abruptly increasing W (t).

4.5.
Numerical test 3: time-dependent R(t). The final numerical test is concerned with time-dependent bounds R(t). We distinguish the upper and lower bound and accordingly the boundaries w = W (t) + R + (t) and w = W (t) − R − (t). The functions R ± (t) are defined as the Bollinger bands which are volatility bands above and below a moving average. They are employed in technical chart analysis although its interpretation may be delicate. The definition reads as R ± (t k ) = M n (t k ) ± kσ(t k ),   where M n (t k ) is the n-period moving average (we take n = 30), k is a factor (usually k = 2), and σ(t k ) is the corrected sample standard deviation, M n (t k ) = 1 n n ℓ=1 m w (f (t k−ℓ )), σ(t k ) = 1 n − 1 n ℓ=1 m w (f (t k−ℓ )) − M n (t k−ℓ ) 2 1/2 . Figure 5 shows the time evolution of the mean asset value and the Bollinger bands for two different values of α and constant W . One may say that the market is overbought (or undersold) when the asset value is close to the upper (or lower) Bollinger band. For small values of α, the market participants are not much influenced by the public information and they tend to increase their estimated asset value due to herding. The mean asset value and the corresponding Bollinger bands for a discontinuous background value W (t) is displayed in Figure 6 (left column). We have chosen d(w) = w(1 − w) and η = ±0.06 (upper row) or η = ±0.18 (lower row). The value W (t) abruptly decreases at time t = 0.2. We are interested in the difference of the upper and lower Bollinger bands, more precisely in the Bollinger bandwidth B(t) = 100(R + (t) − R − (t))/W (t), measuring the relative difference between the upper and lower Bollinger bands. According to chart analysts, falling (increasing) bandwidths reflect decreasing (increasing) volatility. In our simulation, the jump of W (t) gives rise to a peak of the Bollinger bandwidth at t = 0.2; see Figure 6 (right column). Another small peak can be observed at t ≈ 0.38 (upper right figure) when η = ±0.06. For larger values of η (lower right figure), the fluctuations in the Bollinger bandwidth are larger.
In chart analysis, the bandwidth is employed to identify a band squeeze. When the asset value leaves the interval [R − , R + ], this situation may indicate a change of direction of the prices. Clearly, this interpretation cannot be directly applied to the present situation. On the other hand, the Bollinger bands are an additional tool to identify large changes in the mean asset value, for instance when the background value W (t) is no longer deterministic but driven by some stochastic process. We leave this generalization for future work.