{"data":{"markdownRemark":{"html":"<p>This model simulates a synthetic financial market and is based on the Extended Chiarella Model, described in the following publication:</p>\n<p><a href=\"https://www.sciencedirect.com/science/article/pii/S0165188919301885\">Majewski, A. A., Ciliberti, S., &#x26; Bouchaud, J. P. (2020). Co-existence of trend and value in financial markets: Estimating an extended Chiarella model. <em>Journal of Economic Dynamics and Control</em>, <em>112</em>, 103791.</a>)</p>\n<p>Here we present an implementation of this model in the Simudyne SDK.</p>\n<a href=\"https://simudynecontent.blob.core.windows.net/$web/2.5.2/chiarella_calibration_tutorial_2.5.2.zip\" class=\"ui button primary\" download>\nDownload Model Files\n</a>\n<p>The code for this model is available as a zip download, containing a complete model as a Maven project. This project should be able to be run from Maven or any Java IDE environment.</p>\n<h2 id=\"abstract-from-original-paper\"><a href=\"#abstract-from-original-paper\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Abstract (from original paper)</h2>\n<p>Trend and Value are pervasive anomalies, common to all financial markets. We address the problem of their co-existence and interaction within the framework of Heterogeneous Agent Based Models (HABM). More specifically, we extend the Chiarella (1992) model by adding noise traders and a non-linear demand of fundamentalists. We use Bayesian filtering techniques to estimate the model on monthly time series of prices across a variety of asset classes since 1800. The fundamental value is an output of the estimation, and does not require the use of an external pricing model. Our extended model reproduces many empirical observations, including the non-monotonic relation between past trends and future returns. The destabilizing activity of trend-followers leads to a qualitative change of mispricing distribution, from unimodal to bimodal, meaning that some markets tend to be over- (or under-) valued for long periods of time.</p>\n<h2 id=\"model-overview\"><a href=\"#model-overview\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Model overview</h2>\n<p>This model simulates a synthetic market, including all relevant contributing participants. This simulation is set up to model the price changes of an asset. These price dynamics are caused by the actions of the contributing agents.\nIn a nutshell, this model contains trader agents and an exchange agent.</p>\n<p>The traders submit buy and sell orders on each step. The exchange calculates the overall demand and supply from the cumulative buy and sell orders, based on which the asset price is updated. This updated price is then fed back to the traders so that they can adjust their behavior in the next step.</p>\n<p>The market shows evolving price dynamics based on this recurrent interaction and the specified trading strategies. Changes in the specific contribution of different trading strategies will affect the behavior of the simulated market.</p>\n<h2 id=\"agents--network\"><a href=\"#agents--network\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Agents &#x26; Network</h2>\n<p>There are 4 types of agents in this model: (1) an Exchange agent, (2) three different types of trader agents.</p>\n<p>The three kind of traders in this model differ in their strategies based on what they decide to buy or sell:</p>\n<ol>\n<li>Fundamental traders base their investments on the perceived intrinsic (or fundamental) value of the asset. A fundamental trader will buy an asset whenever it is underpriced, according to her beliefs, and otherwise she will sell.</li>\n<li>Momentum traders use a trend (or momentum) signal, which indicates the recent change in prices. This signal indicates whether the price has changed in upwards or downwards direction.</li>\n<li>Noise traders represent traders who either have different investment horizon than we are considering (months) or are following investment strategies different than trend-following or value investing strategy. Their behavioral choices are implemented as random choices. This group of traders contributes price volatility that can not be explained by either fundamental value or momentum.</li>\n</ol>\n<h3 id=\"exchange\"><a href=\"#exchange\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Exchange</h3>\n<p>The exchange aggregates all buy and sell orders and updates the asset price accordingly. In this model, it is assumed  that the price dynamics is governed by a linear price impact mechanism: the price change from t to t + ∆ is linear in the cumulative demand imbalance (total net demand: demand - supply) in the same period, which we denote as D (t, t + ∆). This can be written as</p>\n<p><em>P(t+∆) − P(t) = λD(t, t+∆)</em></p>\n<p>where λ is ‘Kyle’s lambda’ which is assumed to be inversely proportional to the liquidity of the market in real-world scenarios. λ is used as weighting parameter to control the influence of supply and demand on the price. Specifically, λ is a linear approximation of the market impact we would observed on the buy and sell limit orderbooks as traders submits limit and market orders.</p>\n<h3 id=\"traders\"><a href=\"#traders\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Traders</h3>\n<p>The aggregated demand depends on the investment strategies of market participants, which we assume are heterogeneous in their investment decisions (as explained above). The total demand of all three trader types is given by the following equation:</p>\n<h4 id=\"equation-32-from-paper\"><a href=\"#equation-32-from-paper\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Equation 3.2 from paper</h4>\n<p>\n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block; padding: 20px; max-width: 690px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 8.568904593639576%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAYAAABYBvyLAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAaElEQVQI1x2NSw7EIAxDe/9LdjYtICDi2yKBcMdZWIqe7fgYY6D3jvd9EGNECAG1VpWIqGeNQc5ZfTKRqHdrTcUOmbUWBwHDhN57zDmRUlLmnEMpBb/zxN5bn7DEnPmPMEd2XTfWWso+M7CX5/vlud0AAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <picture>\n        <source\n          srcset=\"/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-8e416.webp 173w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-0b506.webp 345w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-58be5.webp 690w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-59b8d.webp 1035w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-6f3a0.webp 1132w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/webp\"\n        />\n        <source\n          srcset=\"/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-7e3fa.png 173w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-7f1d4.png 345w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-13856.png 690w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-045bb.png 1035w,\n/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-66856.png 1132w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/png\"\n        />\n        <img\n          class=\"gatsby-resp-image-image\"\n          style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n          src=\"/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-13856.png\"\n          alt=\"equation 3 2\"\n          title=\"\"\n          src=\"/static/equation_3_2-8d679ec616bfb2fb6b9fdd6cfa8b6f63-13856.png\"\n        />\n      </picture>\n      </span>\n  </span>\n  </p>\n<p>whereby the total demand is a combination of the demand of fundamental traders (first component) weighted by <em>κ</em>, the demand of momentum traders (second component) weighted by <em>β</em>, and the noise trader influence (last component) weighted by <em>σ<sub>N</sub></em>. The parameters  <em>κ</em>, <em>β</em>, <em>σ<sub>N</sub></em> are therefore a way of tuning the overall influence of each trader group on the total demand.</p>\n<h3 id=\"fundamental-traders\"><a href=\"#fundamental-traders\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Fundamental traders</h3>\n<p>As explained above, fundamental traders will buy and sell based on a discrepancy between a perceived fundamental Value (<em>Vt</em>) and the market price (<em>Pt</em>), whereby the fundamental trader buys if there an asset is underpriced (<em>Vt</em> - <em>Pt</em> > 0). The demand is directly proportional to the price distortion, i.e. fundamental traders will place larger buy or sell orders if an asset is heavily under- or over-priced. The fundamental value <em>Vt</em> is assumed to be driven by a diffusion process with volatility <em>σV</em> and average growth <em>g</em>:</p>\n<p><em>dV(t) ~ N(g , σ<sub>V</sub>)</em></p>\n<p>Since the overall demand of all fundamental traders is controlled by the parameter <em>κ</em>, each individual traders demand is scaled by:</p>\n<p><em>κ<sub>i</sub> = <span class=\"katex\"><span class=\"katex-mathml\"><math><semantics><mrow><mfrac><mi>κ</mi><mrow><mi>n</mi><mi>u</mi><mi>m</mi><mi>b</mi><mi>e</mi><mi>r</mi><mtext> </mtext><mi>o</mi><mi>f</mi><mtext> </mtext><mi>f</mi><mi>u</mi><mi>n</mi><mi>d</mi><mi>a</mi><mi>m</mi><mi>e</mi><mi>n</mi><mi>t</mi><mi>a</mi><mi>l</mi><mtext> </mtext><mi>t</mi><mi>r</mi><mi>a</mi><mi>d</mi><mi>e</mi><mi>r</mi><mi>s</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{κ}{number \\ of \\ fundamental \\ traders}</annotation></semantics></math></span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:1.1764999999999999em;vertical-align:-0.481108em;\"></span><span class=\"mord\"><span class=\"mopen nulldelimiter\"></span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.695392em;\"><span style=\"top:-2.6550000000000002em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">u</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">b</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.10764em;\">f</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.10764em;\">f</span><span class=\"mord mathdefault mtight\">u</span><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">a</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">t</span><span class=\"mord mathdefault mtight\">a</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.01968em;\">l</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">t</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">a</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">s</span></span></span></span><span style=\"top:-3.23em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"frac-line\" style=\"border-bottom-width:0.04em;\"></span></span><span style=\"top:-3.394em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">κ</span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.481108em;\"><span></span></span></span></span></span><span class=\"mclose nulldelimiter\"></span></span></span></span></span></em></p>\n<h3 id=\"momentum-traders\"><a href=\"#momentum-traders\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Momentum traders</h3>\n<p>Momentum traders calculate a trend signal as an exponentially moving average over recent changes in the price, <em>M(t)</em>. Here, a decay rate <em>α</em> scales the influence of past versus recent changes in market price.\nThe current momentum is hereby calculated as follows:</p>\n<p><em>M(t) = α * (P(t) - P(t-1)) + (1 - α) * M(t-1)</em></p>\n<p>The total demand of momentum traders is derived by the function:</p>\n<p><em>β * tanh(γ * M(t))</em></p>\n<p>indicating that the demand will increase with increased momentum, but will be bounded for extreme momentum values.</p>\n<p>As for the fundamental traders, the overall demand of all momentum traders is controlled by the parameter β, therefore the demand for each single momentum trader is defined by:</p>\n<p><em>β<sub>i</sub> = <span class=\"katex\"><span class=\"katex-mathml\"><math><semantics><mrow><mfrac><mi>β</mi><mrow><mi>n</mi><mi>u</mi><mi>m</mi><mi>b</mi><mi>e</mi><mi>r</mi><mtext> </mtext><mi>o</mi><mi>f</mi><mtext> </mtext><mi>m</mi><mi>o</mi><mi>m</mi><mi>e</mi><mi>n</mi><mi>t</mi><mi>u</mi><mi>m</mi><mtext> </mtext><mi>t</mi><mi>r</mi><mi>a</mi><mi>d</mi><mi>e</mi><mi>r</mi><mi>s</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{β}{number \\ of \\ momentum \\ traders}</annotation></semantics></math></span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:1.4133239999999998em;vertical-align:-0.481108em;\"></span><span class=\"mord\"><span class=\"mopen nulldelimiter\"></span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.9322159999999999em;\"><span style=\"top:-2.6550000000000002em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">u</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">b</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.10764em;\">f</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">t</span><span class=\"mord mathdefault mtight\">u</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">t</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">a</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">s</span></span></span></span><span style=\"top:-3.23em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"frac-line\" style=\"border-bottom-width:0.04em;\"></span></span><span style=\"top:-3.446108em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\" style=\"margin-right:0.05278em;\">β</span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.481108em;\"><span></span></span></span></span></span><span class=\"mclose nulldelimiter\"></span></span></span></span></span></em></p>\n<h3 id=\"noise-traders\"><a href=\"#noise-traders\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Noise traders</h3>\n<p>Noise traders cover all other trading strategies that are not captured in the fundamental or momentum strategy. The cumulative demand of noise traders is described by Brownian Motion, with volatility <em>σ<sub>N</sub></em>, which describes the contribution of noise traders in the market.</p>\n<p>Since <em>σ<sub>N</sub></em> controls the overall volatility induced by all noise traders, the individual contribution of each noise trader needs to decompose the overall volatility. To achieve this, each noise trader has a probability, <em>p<sub>order</sub></em> to engage with trading activities on a given step:</p>\n<p><em>p<sub>order</sub> = <span class=\"katex\"><span class=\"katex-mathml\"><math><semantics><mrow><mfrac><mn>1</mn><mrow><mi>n</mi><mi>u</mi><mi>m</mi><mi>b</mi><mi>e</mi><mi>r</mi><mtext> </mtext><mi>o</mi><mi>f</mi><mtext> </mtext><mi>n</mi><mi>o</mi><mi>i</mi><mi>s</mi><mi>e</mi><mtext> </mtext><mi>t</mi><mi>r</mi><mi>a</mi><mi>d</mi><mi>e</mi><mi>r</mi><mi>s</mi></mrow></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{1}{number \\ of \\ noise \\ traders}</annotation></semantics></math></span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:1.326216em;vertical-align:-0.481108em;\"></span><span class=\"mord\"><span class=\"mopen nulldelimiter\"></span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.845108em;\"><span style=\"top:-2.6550000000000002em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">u</span><span class=\"mord mathdefault mtight\">m</span><span class=\"mord mathdefault mtight\">b</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.10764em;\">f</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">n</span><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\">i</span><span class=\"mord mathdefault mtight\">s</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mspace mtight\"><span class=\"mtight\"> </span></span><span class=\"mord mathdefault mtight\">t</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">a</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">s</span></span></span></span><span style=\"top:-3.23em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"frac-line\" style=\"border-bottom-width:0.04em;\"></span></span><span style=\"top:-3.394em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\">1</span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.481108em;\"><span></span></span></span></span></span><span class=\"mclose nulldelimiter\"></span></span></span></span></span></em></p>\n<p>If the trader decides to engage in trading activities on a given step, it randomly decides whether to buy or sell (50:50 chance).</p>\n<p>This generates a trinomial lattice of a noise trader submitting a buy of volume <em>+σ<sub>N</sub></em> with a probability of <em><span class=\"katex\"><span class=\"katex-mathml\"><math><semantics><mrow><mfrac><msub><mi>p</mi><mrow><mi>o</mi><mi>r</mi><mi>d</mi><mi>e</mi><mi>r</mi></mrow></msub><mn>2</mn></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{p_{order}}{2}</annotation></semantics></math></span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:1.0925em;vertical-align:-0.345em;\"></span><span class=\"mord\"><span class=\"mopen nulldelimiter\"></span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.7475em;\"><span style=\"top:-2.6550000000000002em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\">2</span></span></span></span><span style=\"top:-3.23em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"frac-line\" style=\"border-bottom-width:0.04em;\"></span></span><span style=\"top:-3.446108em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">p</span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.3448em;\"><span style=\"top:-2.3487714285714287em;margin-left:0em;margin-right:0.07142857142857144em;\"><span class=\"pstrut\" style=\"height:2.5em;\"></span><span class=\"sizing reset-size3 size1 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.15122857142857138em;\"><span></span></span></span></span></span></span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.345em;\"><span></span></span></span></span></span><span class=\"mclose nulldelimiter\"></span></span></span></span></span></em> and a sell of volume <em>-σ<sub>N</sub></em> with a probability <em><span class=\"katex\"><span class=\"katex-mathml\"><math><semantics><mrow><mfrac><msub><mi>p</mi><mrow><mi>o</mi><mi>r</mi><mi>d</mi><mi>e</mi><mi>r</mi></mrow></msub><mn>2</mn></mfrac></mrow><annotation encoding=\"application/x-tex\">\\frac{p_{order}}{2}</annotation></semantics></math></span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"strut\" style=\"height:1.0925em;vertical-align:-0.345em;\"></span><span class=\"mord\"><span class=\"mopen nulldelimiter\"></span><span class=\"mfrac\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.7475em;\"><span style=\"top:-2.6550000000000002em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\">2</span></span></span></span><span style=\"top:-3.23em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"frac-line\" style=\"border-bottom-width:0.04em;\"></span></span><span style=\"top:-3.446108em;\"><span class=\"pstrut\" style=\"height:3em;\"></span><span class=\"sizing reset-size6 size3 mtight\"><span class=\"mord mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">p</span><span class=\"msupsub\"><span class=\"vlist-t vlist-t2\"><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.3448em;\"><span style=\"top:-2.3487714285714287em;margin-left:0em;margin-right:0.07142857142857144em;\"><span class=\"pstrut\" style=\"height:2.5em;\"></span><span class=\"sizing reset-size3 size1 mtight\"><span class=\"mord mtight\"><span class=\"mord mathdefault mtight\">o</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span><span class=\"mord mathdefault mtight\">d</span><span class=\"mord mathdefault mtight\">e</span><span class=\"mord mathdefault mtight\" style=\"margin-right:0.02778em;\">r</span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.15122857142857138em;\"><span></span></span></span></span></span></span></span></span></span></span><span class=\"vlist-s\">​</span></span><span class=\"vlist-r\"><span class=\"vlist\" style=\"height:0.345em;\"><span></span></span></span></span></span><span class=\"mclose nulldelimiter\"></span></span></span></span></span></em> of and a probability <em>1-p<sub>order</sub></em> of doing nothing at each step, which converges to the Brownian Motion given in Equation 3.2 of the total demand of all noise traders.</p>\n<h2 id=\"calibration\"><a href=\"#calibration\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Calibration</h2>\n<p>In this model, multiple parameters control the agents' behaviors and thus the overall model dynamics. In order to derive realistic model predictions, these parameters should be calibrated based on real-world data. This model is focused on predicting the price dynamics of an asset. Therefore, historic data of price changes can be used to estimate the hidden parameters (fitting parameters that have most likely produced the observed price changes). The changes in price of an asset can be described with the following equation:</p>\n<h4 id=\"equation-37-from-paper\"><a href=\"#equation-37-from-paper\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Equation 3.7 from paper</h4>\n<p>\n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block; padding: 20px; max-width: 690px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 9.35672514619883%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAACCAYAAABYBvyLAAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAZElEQVQI1z1NSQrAIBDr/78pLohYFXeFlMmhhyEhk+WpteLei3MOWmtYaxFTStTnnCilYO+NnDNijAghkItH8mMM+iT7aK357L3DGEN83wTnHIulwFr7jwhXSrHUe8+TvIyK9gG0B5jhQnIwcwAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <picture>\n        <source\n          srcset=\"/static/equation_3_7-0caad6be3c030130c329608363864acf-8e416.webp 173w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-0b506.webp 345w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-58be5.webp 690w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-59b8d.webp 1035w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-e5e79.webp 1197w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/webp\"\n        />\n        <source\n          srcset=\"/static/equation_3_7-0caad6be3c030130c329608363864acf-7e3fa.png 173w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-7f1d4.png 345w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-13856.png 690w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-045bb.png 1035w,\n/static/equation_3_7-0caad6be3c030130c329608363864acf-e89cb.png 1197w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/png\"\n        />\n        <img\n          class=\"gatsby-resp-image-image\"\n          style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n          src=\"/static/equation_3_7-0caad6be3c030130c329608363864acf-13856.png\"\n          alt=\"equation 3 7\"\n          title=\"\"\n          src=\"/static/equation_3_7-0caad6be3c030130c329608363864acf-13856.png\"\n        />\n      </picture>\n      </span>\n  </span>\n  </p>\n<p>Utilizing historic data and using optimization techniques such as an expectation maximization algorithm, we can find the model parameters that have most likely produced historic data, thus calibrating our model to existing data and ensuring that the agents behaviors are as realistic as possible. One of the main challenges for calibrating this model is the fact that the behavior of fundamental traders depends on the fundamental value signal, which itself is an unobserved (i.e. hidden) variable. However, it has been shown that this fundamental can be directly inferred from the observed price changes and thus can be jointly estimated with the model parameters.</p>\n<p>\n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block; padding: 20px; max-width: 690px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 42.921146953405014%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAB7klEQVQoz32SX2jOYRTH3ytcCqVwYYvMjbDIn1jLhWRIXIiLld1IZKuVG21lccEQubAZ00xKayaluVCWwvzdyPynkNGId97N++4553yc5/fmRm9OfXuec87T95zzfE+K/9ivjPFpUBGxxE8PjzL4Jc3nwWGGvo0kseC5sZBHcKRiIMLMEDVyY3k/2r1+5WiL8PSlsmyT0N6lHhVUs0k+vv/XUlt2K9v3Cp3dgcpaZWu1sq1avCI8e6W0dQrvPnisRrh133jwJFB7IEdPbyQ3zl8WDjV54TPKyTYhNXE+TCk1Gk8H5qwypi6G2eXCz7Tw4q1y9pIw9N3o7hEyI8rhZiU1zqg9KEm3yzc7yQxjfIkxc0UgVVyGkxgnzgUWbTCmL8HPwNehUfoGlOaLgTuPlAklQmuH0n7F73ONfY1CLjtMRZUybSnMWwOl6528yAlnlRvHWwPFZcakBVC0UsnmfOTXyqkLgR9po+euE4wpR1q8w8lG3bHYobJxh/hExsIKo3SdE+6qV6obhO6bQk2DsrNO2bNfEtUG3nhHXcKAE6+uFK7eMO880HHtN+8/WvKH/c+V2w81maL3sReLwcKA3j7/s6aQEK6tcuGu51XOZvMqayGVfVsohGhxhTIj+ZX6WygICWIu+pE07mkCv/8ByLNo75f/EHEAAAAASUVORK5CYII='); background-size: cover; display: block;\"\n    >\n      <picture>\n        <source\n          srcset=\"/static/diagram-554129cc336999f8aac5ae760b1c3729-8e416.webp 173w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-0b506.webp 345w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-58be5.webp 690w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-59b8d.webp 1035w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-4a474.webp 1380w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-bc809.webp 2070w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-ccc7d.webp 2232w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/webp\"\n        />\n        <source\n          srcset=\"/static/diagram-554129cc336999f8aac5ae760b1c3729-7e3fa.png 173w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-7f1d4.png 345w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-13856.png 690w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-045bb.png 1035w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-f46ab.png 1380w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-ea5f6.png 2070w,\n/static/diagram-554129cc336999f8aac5ae760b1c3729-e6c1d.png 2232w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/png\"\n        />\n        <img\n          class=\"gatsby-resp-image-image\"\n          style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n          src=\"/static/diagram-554129cc336999f8aac5ae760b1c3729-13856.png\"\n          alt=\"diagram\"\n          title=\"\"\n          src=\"/static/diagram-554129cc336999f8aac5ae760b1c3729-13856.png\"\n        />\n      </picture>\n      </span>\n  </span>\n  </p>\n<p>After having conducted this calibration effort, the derived model parameters can be injected into the agent-based simulation, which enables to reproduce realistic price dynamics of an asset of interest.</p>\n<h2 id=\"input-parameters\"><a href=\"#input-parameters\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Input parameters</h2>\n<p>After having conducted a calibration we can input the derived parameters in our model to closely resemble the price dynamics of an asset of interest. A list of all relevant parameters can be found below:</p>\n<ul>\n<li>Number of fundamental traders</li>\n<li>Number of momentum traders</li>\n<li>Number of noise traders</li>\n<li>Kyle's lambda controlling the impact of demand on price changes (<em>λ</em>)</li>\n<li>Initial fundamental value (<em>V<sub>0</sub></em>)</li>\n<li>Initial price distortion (<em>V<sub>0</sub> - P<sub>0</sub></em>)</li>\n<li>Initial momentum (<em>M<sub>0</sub></em>)</li>\n<li>Average drift of the fundamental value (<em>g</em>)</li>\n<li>Volatility of the fundamental value (<em>σ<sub>V</sub></em>)</li>\n<li>Influence of fundamental traders on the overall demand (<em>κ</em>)</li>\n<li>Decay rate for momentum calculation, i.e. horizon over which the momentum is calculated (<em>α</em>)</li>\n<li>Saturation factor with which momentum is mapped to demand (<em>γ</em>)</li>\n<li>Influence of momentum traders on the overall demand (<em>β</em>)</li>\n<li>Influence/volatility induced by noise traders (<em>σ<sub>N</sub></em>)</li>\n</ul>\n<h2 id=\"model-outputs\"><a href=\"#model-outputs\" aria-hidden=\"true\" class=\"anchor\"><svg aria-hidden=\"true\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Model outputs</h2>\n<p>The figure below provides an example of a model simulation, showcasing the produced model outputs. As mentioned, the main focus of this model is the simulation of price dynamics. In order to understand the driving forces behind the observed price dynamics there are also outputs for the fundamental value signal, the momentum and overall demand.</p>\n<p>In this example, we used the model to reproduce results from the original paper (Figure 2A&#x26;C of the <em>Ciliberti et al.</em> paper) where no noise traders are included and the model produces an oscillatory behavior based on the interaction between value and trend dynamics. Here, the momentum drives the price up until the asset is so overpriced that fundamental traders correct the price towards the fundamental value. This then creates negative momentum leading to an oscillation in the opposite direction. Through this mechanism of interaction between fundamental and momentum traders the prices oscillates periodically around the fundamental value.</p>\n<p>\n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block; padding: 20px; max-width: 690px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 47.02226825479027%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAACXBIWXMAABcRAAAXEQHKJvM/AAABrklEQVQoz21S2Y7bMAz0J6SWdViWryTA7hb9hzT3OnXsyNmrB9D//4rpSNlF+9AHYkxSHJJDJ9J6qGaEXnhIN0AXI0w5QuYX+ozPL8jygf6AvPIxL+0Fqgo4IDPvNRXf2xGJoiOKR2Sug7BEmixOUPYK7XoIc0SqDrQjvw8k6CO5yEN8j09yH+NCB+tvhLPs683kB2441YhmeUVW7OivkdX7mFflmROF6Ulo9zfjmzCErV8/CFd/Sd8tM2e4huuWOxZtucWWhRuYuo+EqdpipjZIDTFb882BW3kScu+UE8wEicQqYhonHFC1nsQ7CMcpxRqy2sVGihpmmkTp6lZDDBxCn5DYakJ1T5GbDrLuIjYPPupUzpl7uESN5fyEvO3hFhOM82i+THz/yNwRenlC0Z7jMRPjJpTL70x0xB/UrGPRa7xYQU00r+cWb1x1gG2fqZPnEXosPv9GQfL27icbeczvf3GIb0h0cY0dw/nzcooYfFV4dpygeJwQD9KEeHzDX6pmU1tdUbKJpgTN8i3+TokJhe4pCqpy/1+U//o0bcMAlMlObPDCTZ55wJfY4A+kDAuPnb5nYgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <picture>\n        <source\n          srcset=\"/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-8e416.webp 173w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-0b506.webp 345w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-58be5.webp 690w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-59b8d.webp 1035w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-4a474.webp 1380w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-a60c9.webp 1931w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/webp\"\n        />\n        <source\n          srcset=\"/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-7e3fa.png 173w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-7f1d4.png 345w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-13856.png 690w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-045bb.png 1035w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-f46ab.png 1380w,\n/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-74a36.png 1931w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/png\"\n        />\n        <img\n          class=\"gatsby-resp-image-image\"\n          style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n          src=\"/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-13856.png\"\n          alt=\"console view\"\n          title=\"\"\n          src=\"/static/console_view-753b0be8b80043f3ec3c5e4c24ae7896-13856.png\"\n        />\n      </picture>\n      </span>\n  </span>\n  </p>\n<p>Now we will introduce noise traders into the system. Notice that we still see the oscillation in price however the signal has become noisier.</p>\n<p>\n  <span\n    class=\"gatsby-resp-image-wrapper\"\n    style=\"position: relative; display: block; padding: 20px; max-width: 690px; margin-left: auto; margin-right: auto;\"\n  >\n    <span\n      class=\"gatsby-resp-image-background-image\"\n      style=\"padding-bottom: 47.4585635359116%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAJCAYAAAAywQxIAAAACXBIWXMAABcRAAAXEQHKJvM/AAABvUlEQVQoz01SW3KbQBDkBrZgH7DA8lAiWfnKCSxbQkqQQEBkOanEqcr9L9HpXVypfHTNbM9jd3onkFkHvRygygtE0iEpBuiMfnyBtB1k0SNSJ57PiC055siENjt7zsWk6RDnPc8nBMK0iNIvMxLCHJnApunEpA4LffB8qI+0jKW83Iy8rEWoDjMfE7Q6HRFEusFd+Ii7aPuORyxkA82i9GOPMN1B1mya7xEVeyQfRh8T+ZGxBlFG5M4eYMorglCxodjiXjx5ON835AsTy5HKBqHZQz98hagaCNVSkpE5OyxiQr1D7/jKniPHByxco9Bh6303is4mGOoUsdm9eGYxX5jsIVikOJrQ5KOnGawN5TP1PCKoNi8wKyZVJ4903aNYX31htbkhWw0c+QzJWL6ZkK+uXsPl5xs/rPW8LFvYNSWqBwR5/ROKv6rtCFO9QqRnOC7kaHb55vlq/QZhTihWv6jT4Edbfvrjf71++M3NuPgczY0JYurh1kD5n539OJ+4QiMSWsdn5QtXovc2La4+Zqubz7f1DTHlyXlW3IDA2O8MuDG+eWgz+/9zMpnPzqp//uStsT+IV15O6ewNfwESUAugl8NCLgAAAABJRU5ErkJggg=='); background-size: cover; display: block;\"\n    >\n      <picture>\n        <source\n          srcset=\"/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-8e416.webp 173w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-0b506.webp 345w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-58be5.webp 690w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-59b8d.webp 1035w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-4a474.webp 1380w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-dee10.webp 1810w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/webp\"\n        />\n        <source\n          srcset=\"/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-7e3fa.png 173w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-7f1d4.png 345w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-13856.png 690w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-045bb.png 1035w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-f46ab.png 1380w,\n/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-bb4c1.png 1810w\"\n          sizes=\"(max-width: 690px) 100vw, 690px\"\n          type=\"image/png\"\n        />\n        <img\n          class=\"gatsby-resp-image-image\"\n          style=\"width: 100%; height: 100%; margin: 0; vertical-align: middle; position: absolute; top: 0; left: 0; box-shadow: inset 0px 0px 0px 400px white;\"\n          src=\"/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-13856.png\"\n          alt=\"console view 2\"\n          title=\"\"\n          src=\"/static/console_view_2-e27efe02aa8a87a45fd37b964fe72bb5-13856.png\"\n        />\n      </picture>\n      </span>\n  </span>\n  </p>","headings":[{"value":"Abstract (from original paper)","depth":2},{"value":"Model overview","depth":2},{"value":"Agents & Network","depth":2},{"value":"Exchange","depth":3},{"value":"Traders","depth":3},{"value":"Equation 3.2 from paper","depth":4},{"value":"Fundamental traders","depth":3},{"value":"Momentum traders","depth":3},{"value":"Noise traders","depth":3},{"value":"Calibration","depth":2},{"value":"Equation 3.7 from paper","depth":4},{"value":"Input parameters","depth":2},{"value":"Model outputs","depth":2}],"frontmatter":{"title":"Chiarella Calibration Tutorial","toc":true,"experimental":null}},"site":{"siteMetadata":{"title":"Simudyne Docs","latestVersion":"2.6"}}},"pageContext":{"absolutePath":"/home/vsts/work/1/s/content/2.6/docs/tutorials/extended_chiarella.md","versioned":false,"version":"2.6","kind":"docs","pagePath":"/tutorials/extended_chiarella","chronology":{"prev":{"name":"Forest Fire Tutorial","path":"/tutorials/forestfire"},"next":{"name":"Challenges","path":"/challenges"}},"lastUpdated":"2026-04-21T13:56:54.867Z"}}