s="c1"># poisition of median rounded up</span>
    <span class="n">z</span> <span class="o">=</span> <span class="n">np</span><span class="o">.</span><span class="n">sort</span><span class="p">(</span><span class="n">yf</span><span class="p">)</span>  <span class="c1"># Ordered Observations</span>

    <span class="c1"># Finding smallest difference</span>
    <span class="c1"># breaks x into two arrays for finding minimum difference</span>
    <span class="n">z0</span><span class="p">,</span> <span class="n