lass="p">,</span> <span class="n">p</span><span class="p">)</span><span class="o">.</span><span class="n">T</span>
    <span class="k">return</span> <span class="n">rho</span> <span class="o">**</span> <span class="nb">abs</span><span class="p">(</span><span class="n">a</span> <span class="o">-</span> <span class="n">b</span><span class="p">)</span>


<span class="k">def</span> <span class="nf">simulate_y_c_X</span><span class="p">(</span><span class="n">cov_y_c</span><span class="p">,</span>
              