<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - Maple 2015 Posts and Questions</title>
    <link>http://www.mapleprimes.com/products/Maple/Maple 2015</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sun, 05 Apr 2026 17:20:57 GMT</lastBuildDate>
    <pubDate>Sun, 05 Apr 2026 17:20:57 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>Maple 2015 Questions and Posts on MaplePrimes</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - Maple 2015 Posts and Questions</title>
      <link>http://www.mapleprimes.com/products/Maple/Maple 2015</link>
    </image>
    <item>
      <title>PDF  of functions of univariate random variables</title>
      <link>http://www.mapleprimes.com/posts/234293-PDF--Of-Functions-Of-Univariate-Random-Variables?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Although the worksheets provided here have been developed under Maple 2015, they should work correctly with newer versions, except perhaps for commands that use the &amp;#39;op&amp;#39; function (&amp;#39;piecewise&amp;#39; mainly).&lt;br&gt;
&lt;br&gt;
In the sequel the acronym &amp;#39;pdf&amp;#39; stands for &amp;#39;probability density function&amp;#39;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;CONTEXT&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;This post originates from a recent&amp;nbsp;&lt;a href="https://www.mapleprimes.com/questions/242227-Trouble-With-The-PDF-Function"&gt;question&lt;/a&gt; by&amp;nbsp;&lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/users/JoyDivisionMan"&gt;@JoyDivisionMan&amp;nbsp;&lt;/a&gt;&lt;/span&gt;and the ensuing discussion.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;In a few words, the OP noticed Maple 2025 failed to return a result and asked why. In his reply,&amp;nbsp;&lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/242227-Trouble-With-The-PDF-Function#comment315570"&gt;@acer&lt;/a&gt;&lt;/span&gt;&amp;nbsp;identified a code regression somewhere in between Maple 2023 and Maple 2025.&lt;br&gt;
Like Maple 2023 &amp;quot;my&amp;quot;&amp;nbsp; Maple 2015 does not fail but provide... a wrong answer: Do versions in between 2015 and 2024 return wrong results too?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;In this post I explain how we can calculate the result by hand (only elementary maths required), why Maple 2015 (and likely newer versions) returns an incorrect result, why Maple generally fails in returning a result, and finally provide several examples to illustrate that even mathematically simple. &lt;/span&gt;&lt;br&gt;
The various test cases I present are all equally simple for a skilled human agent, but conversely all beyond the reach of Statistics:-PDF.&lt;br&gt;
This raises the question: Can a robust algorithm for calculating this PDF be developed without resorting to an expert system (I don&amp;#39;t like the term AI) that mimics human reasoning?&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;THE MAIN OBSERVATION&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Let &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; some continuous univariate random variable (CURV) and &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;a real valued function from defined over the support of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;. Let&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;the random variable defined by&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; =&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;br&gt;
&lt;br&gt;
&lt;span style="color:#0000ff;"&gt;The main observation about &lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&amp;nbsp;is that unless very specific situations, this procedure does not build the correct expression of pdf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;as soon as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;is not a strictly monotone function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Here are a fex exceptions to this claim:&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; any CURV&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;n&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp; , n positive integer (correct solution even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; is not monotone)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(-1, 1)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;arctanh(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;(no result returned even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; is strictly monotone).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;It is worth saying that, &lt;u&gt;only by chance&lt;/u&gt;, &lt;strong&gt;Statistics:-PDF &lt;/strong&gt;may sometimes return the correct result even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;is a non monotone function.&lt;br&gt;
For instance, in &lt;/span&gt;&lt;span class="mainBody document"&gt;&lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/users/JoyDivisionMan"&gt;@JoyDivisionMan&lt;/a&gt;&lt;/span&gt;&amp;#39;s question, the procedure was indeed capable to provide a correct result for the case&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ arctanh(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; but this was only because two errors balanced each other out. Replace&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;by&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;+2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;) and Maple is wrong (notice that the pdf of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;) remains unchanged whatever the value of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;A GOOD DRAWING WORTH A THOUSAND WORDS&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Here is a picture to help understand how to get the pdf of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; =&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:16px;"&gt;)&lt;/span&gt;&amp;nbsp;for a non monotone function&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; (the case of a monotone function directly comes from this latter).&lt;br&gt;
&lt;br&gt;
In this illustration&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;em&gt;sine&lt;/em&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;.&lt;br&gt;
To ease the explanation, I write&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;as a mixture of three uniform random variables &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;, whose supports are the intervals of the three branches of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;. More formally, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp; =&amp;nbsp;(1/4)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&amp;nbsp;+&amp;nbsp;(1/2)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&amp;nbsp;+&amp;nbsp;(1/4)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;.&lt;br&gt;
The restrictions&amp;nbsp; of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;to these three branches are denoted&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=234293_post/Napoleon.png" style="height: 400px; width: 800px;"&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The large rectangles below the horizontal axis represent the pdf of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;and the blue curve &lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;function.&lt;br&gt;
The image of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;interval [&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-d&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]&amp;nbsp; by the inverse functions&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;are&amp;nbsp;represented by the vertical rectangles&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] and&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] .&lt;br&gt;
These two intervals bring a contribution to the pdf of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(light gray blue on the right) represented by the horizontal violet rectangle on the right side of the picture.&lt;br&gt;
&lt;br&gt;
T&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;he probability Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]) that&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;belongs to the interval&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]) is simply the sum&amp;nbsp;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;])&amp;nbsp; =&amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]))&amp;nbsp; +&amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]))&lt;br&gt;
&lt;br&gt;
Let &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;#39;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;) denote the derivative of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;).&lt;br&gt;
Making&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;tends to 0 gives&lt;/span&gt;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;)&amp;nbsp; =&amp;nbsp;&amp;nbsp;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;) &amp;times;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;|&amp;nbsp;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;#39;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&amp;nbsp;&lt;strong&gt;|&lt;/strong&gt; +&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;) &amp;times;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;|&amp;nbsp;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;&amp;#39;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;&amp;nbsp;|&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;As I said before there is truly no big math behind this, Except maybe those absolute values?&lt;br&gt;
To understand where they come from zoom in on the rectangle &lt;span style="font-size:16px;"&gt;&lt;/span&gt; = [&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dx&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dx&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] ╳&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] and denote &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt; and &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt; the restrictions of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; and &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; to &lt;span style="font-size:16px;"&gt;&lt;/span&gt;.&lt;br&gt;
Locally&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&amp;nbsp;is proportional to &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;A+B&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;∙X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/sub&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;where constant &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;B =&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&amp;#39;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;)&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;and&amp;nbsp;&lt;span class="mainBody document"&gt;the value of constant &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;A&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;does not matter here.&lt;/span&gt;&lt;br&gt;
So the pdf of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;is (a classical result)&amp;nbsp;&amp;nbsp;&lt;/span&gt;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) = pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;(&lt;em&gt;y-A&lt;/em&gt;)/&lt;em&gt;C&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) / |&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;C&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;|.&lt;br&gt;
Few details can be found &lt;a href="https://en.wikipedia.org/wiki/Probability_density_function"&gt;Here&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;MAPLE FAILURES AND WEAKNESSES&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
So why did Maple, at last some versions, produce a wrong result and why some versions are not even capable to return one?&lt;br&gt;
The reason is that there is no big math only at first sight...because determining the inverse function of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;can be quite tricky as soon as &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;is not one-to-one map, for instance when &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is not strictly monotone&lt;/span&gt;&lt;/span&gt;.&lt;br&gt;
When it is so&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;must be defined for all the branches whose definition intervals intersect the support of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I spent a lot of time debugging the procedure &lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;to understand why it&amp;nbsp;&lt;span style="font-size:14px;"&gt;either fails or produces incorrec results.&lt;br&gt;
The&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;a href="/view.aspx?sf=234293_post/sine_debug_nodebugoutput.mw"&gt;sine_debug_nodebugoutput.mw&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;worksheet presents the &amp;quot;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;em&gt;sine&lt;/em&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&amp;quot; case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;(as Mapleprimes stubbornly refuses to upload the worksheet containing the debugger trace, I convert it to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/sine_debug.pdf"&gt;sine_debug.pdf&lt;/a&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt; to help you see this trace).&amp;nbsp;&lt;br&gt;
To orient the core development team correcting this procedure (assumming they care), the critical procedures are&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Statistics:-RandomVariables:-PDF:-Univariate:-GetValueTab[anything]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;Statistics:-RandomVariables:-GetInverse&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;A&lt;/span&gt;t the very end it is this second procedure&amp;nbsp;&lt;span style="font-size:14px;"&gt;which is truly responsible of Maple failing to provide a result or returning an incorrect on, because&lt;/span&gt;&amp;nbsp;it does not correctly build the inverse functions &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp; for all the branches b which matter.&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;I wrote above that &amp;quot;i&lt;/span&gt;&lt;span class="mainBody document"&gt;t is only by chance that Maple provided the correct result for the non monotone function&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;=&amp;nbsp;&lt;em&gt;&lt;strong&gt;cosine&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;span class="mainBody document"&gt;&amp;quot;. Indeed&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt; returns a wrong result when&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;+2) and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;is not a multiple of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;/2 (see&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/cosine.mw"&gt;cosine.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;br&gt;
&lt;br&gt;
Other important situations where Maple fails returning a result are those where &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;is a polynomial function with different zeros located in the support of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;.&lt;br&gt;
I did not trace them but it seems that &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;does not know how to build the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;in this case (even though it is quite simple, see &amp;quot;Polynomial&amp;quot; examples below&lt;/span&gt;).&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;A SELECTION OF EXAMPLES&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Here is a selection of examples to demonstrate that even in rather complex cases the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;pdfs of &lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) can be constructed quite easily (note that Maple either fails to compute them or to provide a correct result):&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Three examples where&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; is a uniform random variable and the restriction of&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;to the support of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is a&lt;/span&gt;&lt;/span&gt; non monotone polynomial function of increasing degree (the number of branches to consider is equal to the degree of&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;):&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_1.mw"&gt;Polynomial_function_of_a_random_variable_1.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;, &lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_2.mw"&gt;Polynomial_function_of_a_random_variable_2.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;, &lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_3.mw"&gt;Polynomial_function_of_a_random_variable_3.mw&lt;/a&gt;&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Two examples where the support o &lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is unbounded&lt;/span&gt;&lt;/span&gt;&amp;nbsp;examples and&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;=&amp;nbsp;&lt;em&gt;&lt;strong&gt;sine&lt;/strong&gt;&lt;/em&gt;. Here&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;an infinity number of branches must be accounted for, one of these two examples (&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; ~ Exponential) can be treated in a comple analytic way while the other&amp;nbsp;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; ~ Normal) cannot thus leading to a truncated approximation of &lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) pdf.&lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Infinte_support_sine.mw"&gt;Infinte_support_sine.mw&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;OPEN QUESTION&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Tracing&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;reveals an already complex algorithm designed to handle a broad variety of &amp;quot;canonical&amp;quot; situations. Even this the algorithm fails in almost all non-toy-problem such as this compilation proves &lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/Maple_failures.mw"&gt;Maple_failures.mw&lt;/a&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
&lt;span style="font-size:14px;"&gt;At first sight, there seems to be a contradiction between the (apparent?) simplicity with which one can obtain, by hand in sometimes in an ad hoc way, the expression of pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;)&lt;span style="font-size:14px;"&gt;), whether it is exact or truncated, and the complexity of the &lt;strong&gt;Statistics:-PDF&amp;nbsp;&lt;/strong&gt;algorithm, which results in failure in all non trivial cases.&lt;br&gt;
&lt;br&gt;
This observation leads to the important question &amp;quot;Is it possible to rewrite&amp;nbsp;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt; in order to enlarge its domain of success?&amp;quot;.&lt;br&gt;
I have the feeling that this means designing an algorithm which focuses more on mimicing the human reasoning than identifying &amp;quot;canonical&amp;quot; situations (as it is done today).&amp;nbsp;&lt;br&gt;
An AI-driven algorithm maybe?&lt;br&gt;
&lt;br&gt;
I repeat here that the maths are very simple, and all the more simple if you represent the random variable&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;as a mixture of components &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, ...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;B&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;both having the same (truncated) distribution than &lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, and whose supports identify to the intervals of definition of the B branches of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; over the whole support of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
The only difficulty lies in the identification of these branches and in the construction of the functions&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;over the supports of each&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
&lt;br&gt;
I have no answer to this question.&lt;/span&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;Although the worksheets provided here have been developed under Maple 2015, they should work correctly with newer versions, except perhaps for commands that use the &amp;#39;op&amp;#39; function (&amp;#39;piecewise&amp;#39; mainly).&lt;br&gt;
&lt;br&gt;
In the sequel the acronym &amp;#39;pdf&amp;#39; stands for &amp;#39;probability density function&amp;#39;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;CONTEXT&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;This post originates from a recent&amp;nbsp;&lt;a href="https://www.mapleprimes.com/questions/242227-Trouble-With-The-PDF-Function"&gt;question&lt;/a&gt; by&amp;nbsp;&lt;span id="answers_answers_ctrl0_ListView1_ctrl0_replies_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/users/JoyDivisionMan"&gt;@JoyDivisionMan&amp;nbsp;&lt;/a&gt;&lt;/span&gt;and the ensuing discussion.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;In a few words, the OP noticed Maple 2025 failed to return a result and asked why. In his reply,&amp;nbsp;&lt;span id="answers_answers_ctrl0_ListView1_ctrl4_replies_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/242227-Trouble-With-The-PDF-Function#comment315570"&gt;@acer&lt;/a&gt;&lt;/span&gt;&amp;nbsp;identified a code regression somewhere in between Maple 2023 and Maple 2025.&lt;br&gt;
Like Maple 2023 &amp;quot;my&amp;quot;&amp;nbsp; Maple 2015 does not fail but provide... a wrong answer: Do versions in between 2015 and 2024 return wrong results too?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;In this post I explain how we can calculate the result by hand (only elementary maths required), why Maple 2015 (and likely newer versions) returns an incorrect result, why Maple generally fails in returning a result, and finally provide several examples to illustrate that even mathematically simple. &lt;/span&gt;&lt;br&gt;
The various test cases I present are all equally simple for a skilled human agent, but conversely all beyond the reach of Statistics:-PDF.&lt;br&gt;
This raises the question: Can a robust algorithm for calculating this PDF be developed without resorting to an expert system (I don&amp;#39;t like the term AI) that mimics human reasoning?&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;THE MAIN OBSERVATION&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Let &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; some continuous univariate random variable (CURV) and &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;a real valued function from defined over the support of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;. Let&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;the random variable defined by&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; =&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;br&gt;
&lt;br&gt;
&lt;span style="color:#0000ff;"&gt;The main observation about &lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&amp;nbsp;is that unless very specific situations, this procedure does not build the correct expression of pdf&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;as soon as&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;is not a strictly monotone function&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Here are a fex exceptions to this claim:&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; any CURV&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;n&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp; , n positive integer (correct solution even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; is not monotone)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(-1, 1)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;arctanh(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;(no result returned even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:12px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; is strictly monotone).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;It is worth saying that, &lt;u&gt;only by chance&lt;/u&gt;, &lt;strong&gt;Statistics:-PDF &lt;/strong&gt;may sometimes return the correct result even if&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;is a non monotone function.&lt;br&gt;
For instance, in &lt;/span&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span id="answers_answers_ctrl0_ListView1_ctrl0_replies_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/users/JoyDivisionMan"&gt;@JoyDivisionMan&lt;/a&gt;&lt;/span&gt;&amp;#39;s question, the procedure was indeed capable to provide a correct result for the case&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ arctanh(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; but this was only because two errors balanced each other out. Replace&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;by&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;+2&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;) and Maple is wrong (notice that the pdf of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;) remains unchanged whatever the value of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;a&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;A GOOD DRAWING WORTH A THOUSAND WORDS&lt;/strong&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Here is a picture to help understand how to get the pdf of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;Y&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; =&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;(X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:16px;"&gt;)&lt;/span&gt;&amp;nbsp;for a non monotone function&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; (the case of a monotone function directly comes from this latter).&lt;br&gt;
&lt;br&gt;
In this illustration&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;em&gt;sine&lt;/em&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;.&lt;br&gt;
To ease the explanation, I write&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;as a mixture of three uniform random variables &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;, whose supports are the intervals of the three branches of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;. More formally, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp; =&amp;nbsp;(1/4)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&amp;nbsp;+&amp;nbsp;(1/2)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&amp;nbsp;+&amp;nbsp;(1/4)∙&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;.&lt;br&gt;
The restrictions&amp;nbsp; of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;to these three branches are denoted&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=234293_post/Napoleon.png" style="height: 400px; width: 800px;"&gt;&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The large rectangles below the horizontal axis represent the pdf of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;3&lt;/sub&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;and the blue curve &lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;the &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;function.&lt;br&gt;
The image of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;interval [&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-d&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]&amp;nbsp; by the inverse functions&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;are&amp;nbsp;represented by the vertical rectangles&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;1&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] and&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;2&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] .&lt;br&gt;
These two intervals bring a contribution to the pdf of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(light gray blue on the right) represented by the horizontal violet rectangle on the right side of the picture.&lt;br&gt;
&lt;br&gt;
T&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;he probability Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]) that&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;belongs to the interval&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]) is simply the sum&amp;nbsp;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;])&amp;nbsp; =&amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]))&amp;nbsp; +&amp;nbsp;Prob(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;span style="font-size:16px;"&gt;∊&lt;/span&gt;&lt;/strong&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;]))&lt;br&gt;
&lt;br&gt;
Let &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;#39;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;) denote the derivative of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;).&lt;br&gt;
Making&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&amp;nbsp;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;tends to 0 gives&lt;/span&gt;&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;)&amp;nbsp; =&amp;nbsp;&amp;nbsp;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;) &amp;times;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;|&amp;nbsp;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;#39;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&amp;nbsp;&lt;strong&gt;|&lt;/strong&gt; +&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;) &amp;times;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;|&amp;nbsp;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;&amp;#39;2&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;&amp;nbsp;|&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;As I said before there is truly no big math behind this, Except maybe those absolute values?&lt;br&gt;
To understand where they come from zoom in on the rectangle &lt;span style="font-size:16px;"&gt;&lt;/span&gt; = [&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dx&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dx&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] ╳&amp;nbsp;[&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;-&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;+&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;dy&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;] and denote &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt; and &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt; the restrictions of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; and &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; to &lt;span style="font-size:16px;"&gt;&lt;/span&gt;.&lt;br&gt;
Locally&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&amp;nbsp;is proportional to &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;A+B&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;∙X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/sub&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;where constant &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;B =&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&amp;#39;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;sub&gt;1&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;)&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;and&amp;nbsp;&lt;span class="mainBody document"&gt;the value of constant &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;A&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;does not matter here.&lt;/span&gt;&lt;br&gt;
So the pdf of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;is (a classical result)&amp;nbsp;&amp;nbsp;&lt;/span&gt;pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;Y&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;y&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) = pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;sub&gt;&lt;span style="font-size:16px;"&gt;&lt;/span&gt;&lt;/sub&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;=&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;(&lt;em&gt;y-A&lt;/em&gt;)/&lt;em&gt;C&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) / |&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;C&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;|.&lt;br&gt;
Few details can be found &lt;a href="https://en.wikipedia.org/wiki/Probability_density_function"&gt;Here&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;MAPLE FAILURES AND WEAKNESSES&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
So why did Maple, at last some versions, produce a wrong result and why some versions are not even capable to return one?&lt;br&gt;
The reason is that there is no big math only at first sight...because determining the inverse function of&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;can be quite tricky as soon as &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;is not one-to-one map, for instance when &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is not strictly monotone&lt;/span&gt;&lt;/span&gt;.&lt;br&gt;
When it is so&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;must be defined for all the branches whose definition intervals intersect the support of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;strong&gt;X&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I spent a lot of time debugging the procedure &lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;to understand why it&amp;nbsp;&lt;span style="font-size:14px;"&gt;either fails or produces incorrec results.&lt;br&gt;
The&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;a href="/view.aspx?sf=234293_post/sine_debug_nodebugoutput.mw"&gt;sine_debug_nodebugoutput.mw&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;worksheet presents the &amp;quot;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(0, 2)&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt; ,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; : &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ⟼ &lt;em&gt;sine&lt;/em&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;)&amp;quot; case&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&amp;nbsp;(as Mapleprimes stubbornly refuses to upload the worksheet containing the debugger trace, I convert it to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/sine_debug.pdf"&gt;sine_debug.pdf&lt;/a&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt; to help you see this trace).&amp;nbsp;&lt;br&gt;
To orient the core development team correcting this procedure (assumming they care), the critical procedures are&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Statistics:-RandomVariables:-PDF:-Univariate:-GetValueTab[anything]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;and&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#0000ff;"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;Statistics:-RandomVariables:-GetInverse&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;A&lt;/span&gt;t the very end it is this second procedure&amp;nbsp;&lt;span style="font-size:14px;"&gt;which is truly responsible of Maple failing to provide a result or returning an incorrect on, because&lt;/span&gt;&amp;nbsp;it does not correctly build the inverse functions &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp; for all the branches b which matter.&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;I wrote above that &amp;quot;i&lt;/span&gt;&lt;span class="mainBody document"&gt;t is only by chance that Maple provided the correct result for the non monotone function&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;=&amp;nbsp;&lt;em&gt;&lt;strong&gt;cosine&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&amp;quot;. Indeed&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt; returns a wrong result when&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt; ~ Uniform(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;, &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;+2) and&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;z&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;is not a multiple of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;/2 (see&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/cosine.mw"&gt;cosine.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;).&lt;br&gt;
&lt;br&gt;
Other important situations where Maple fails returning a result are those where &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;is a polynomial function with different zeros located in the support of &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;.&lt;br&gt;
I did not trace them but it seems that &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;does not know how to build the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;in this case (even though it is quite simple, see &amp;quot;Polynomial&amp;quot; examples below&lt;/span&gt;).&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;A SELECTION OF EXAMPLES&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Here is a selection of examples to demonstrate that even in rather complex cases the&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;pdfs of &lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) can be constructed quite easily (note that Maple either fails to compute them or to provide a correct result):&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Three examples where&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; is a uniform random variable and the restriction of&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;to the support of&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is a&lt;/span&gt;&lt;/span&gt; non monotone polynomial function of increasing degree (the number of branches to consider is equal to the degree of&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;):&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_1.mw"&gt;Polynomial_function_of_a_random_variable_1.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;, &lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_2.mw"&gt;Polynomial_function_of_a_random_variable_2.mw&lt;/a&gt;&lt;span style="font-size:14px;"&gt;, &lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Polynomial_function_of_a_random_variable_3.mw"&gt;Polynomial_function_of_a_random_variable_3.mw&lt;/a&gt;&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Two examples where the support o &lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;is unbounded&lt;/span&gt;&lt;/span&gt;&amp;nbsp;examples and&amp;nbsp;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&amp;nbsp;=&amp;nbsp;&lt;em&gt;&lt;strong&gt;sine&lt;/strong&gt;&lt;/em&gt;. Here&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;an infinity number of branches must be accounted for, one of these two examples (&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; ~ Exponential) can be treated in a comple analytic way while the other&amp;nbsp;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; ~ Normal) cannot thus leading to a truncated approximation of &lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) pdf.&lt;/span&gt;&lt;br&gt;
	&lt;a href="/view.aspx?sf=234293_post/Infinte_support_sine.mw"&gt;Infinte_support_sine.mw&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;OPEN QUESTION&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;Tracing&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:14px;"&gt;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt;&lt;/span&gt;&amp;nbsp;reveals an already complex algorithm designed to handle a broad variety of &amp;quot;canonical&amp;quot; situations. Even this the algorithm fails in almost all non-toy-problem such as this compilation proves &lt;/span&gt;&lt;a href="/view.aspx?sf=234293_post/Maple_failures.mw"&gt;Maple_failures.mw&lt;/a&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
&lt;span style="font-size:14px;"&gt;At first sight, there seems to be a contradiction between the (apparent?) simplicity with which one can obtain, by hand in sometimes in an ad hoc way, the expression of pdf(&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;(&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;)&lt;span style="font-size:14px;"&gt;), whether it is exact or truncated, and the complexity of the &lt;strong&gt;Statistics:-PDF&amp;nbsp;&lt;/strong&gt;algorithm, which results in failure in all non trivial cases.&lt;br&gt;
&lt;br&gt;
This observation leads to the important question &amp;quot;Is it possible to rewrite&amp;nbsp;&lt;strong&gt;Statistics:-PDF&lt;/strong&gt; in order to enlarge its domain of success?&amp;quot;.&lt;br&gt;
I have the feeling that this means designing an algorithm which focuses more on mimicing the human reasoning than identifying &amp;quot;canonical&amp;quot; situations (as it is done today).&amp;nbsp;&lt;br&gt;
An AI-driven algorithm maybe?&lt;br&gt;
&lt;br&gt;
I repeat here that the maths are very simple, and all the more simple if you represent the random variable&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;as a mixture of components &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;1&lt;/sub&gt;, ...&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;B&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;both having the same (truncated) distribution than &lt;/span&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;, and whose supports identify to the intervals of definition of the B branches of&amp;nbsp;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span style="font-size:16px;"&gt;&lt;span class="mainBody document"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; over the whole support of &lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
The only difficulty lies in the identification of these branches and in the construction of the functions&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;sup&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;(-1)&lt;/span&gt;&lt;/span&gt;&lt;/sup&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&amp;nbsp;over the supports of each&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;strong&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span class="mainBody document"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;span class="mainBody document"&gt;&lt;sub&gt;b&lt;/sub&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;.&lt;br&gt;
&lt;br&gt;
I have no answer to this question.&lt;/span&gt;&lt;/p&gt;
</description>
      <guid>234293</guid>
      <pubDate>Tue, 03 Mar 2026 09:04:46 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
    <item>
      <title>A Maple 2015 bug </title>
      <link>http://www.mapleprimes.com/questions/242114-A-Maple-2015-Bug-?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p&gt;This is a report of a Maple_2015&amp;#39;s bug, apparently fixed in more recent versions, but which may have persisted for a few versions beyond 2015.&lt;br&gt;
I don&amp;#39;t think it&amp;#39;s necessary to fill out an RCS form.&lt;/p&gt;

&lt;p&gt;All started with an error in my code which was balanced by a maple 2015 bug. So I didn&amp;#39;t see any error until I sent my code to&amp;nbsp;&lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/242075-Symbolic-Regression-Canhas-This-Be#comment314066"&gt;@C_R&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;who uses a newer Maple version.&lt;br&gt;
More precisely, in my Maple 2015 code I defined a NxN matrix B, a vector A of length N, &lt;u&gt;that I mistakenly defined as a vector column&lt;/u&gt;, and finally computed the quantity R = A . B . A&lt;sup&gt;+&lt;/sup&gt;.&lt;br&gt;
Of course Maple should have fire an error.&lt;br&gt;
&lt;br&gt;
The bug is that Maple 2015 doesn&amp;#39;t fire an error if A is a float vector and B a float matrix.&lt;/p&gt;

&lt;form name="worksheet_form"&gt;&lt;input name="md.ref" type="hidden" value="FD665B54F93FB7826EC6E0A2B1FE0388"&gt;
&lt;table align="center" width="768"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;restart&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;kernelopts(version)&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="`Maple 2015.2, APPLE UNIVERSAL OSX, Dec 20 2015, Build ID 1097895`" height="23" src="/view.aspx?sf=242114_question/cdb29f12beaae5d194254400216627d8.gif" style="vertical-align:-6px" width="455"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(1)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := Vector(2, symbol=a):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := Matrix(2$2, symbol=b):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;a href="http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20(in%20LinearAlgebra%3A-Multiply)%20cannot%20multiply%20a%20column%20Vector%20and%20a%20Matrix"&gt;&lt;span style="color:#ff00ff;font-size: 100%;font-family: Courier New,monospace;font-weight:normal;font-style:normal;"&gt;&lt;u&gt;Error, (in LinearAlgebra:-Multiply) cannot multiply a column Vector and a Matrix&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;&amp;nbsp;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := Vector(2, i -&amp;gt; i):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := Matrix(2$2, (i, j) -&amp;gt; i+j):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;a href="http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20(in%20LinearAlgebra%3A-Multiply)%20cannot%20multiply%20a%20column%20Vector%20and%20a%20Matrix"&gt;&lt;span style="color:#ff00ff;font-size: 100%;font-family: Courier New,monospace;font-weight:normal;font-style:normal;"&gt;&lt;u&gt;Error, (in LinearAlgebra:-Multiply) cannot multiply a column Vector and a Matrix&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;&amp;nbsp;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := evalf(Vector(2, i -&amp;gt; i)):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := evalf(Matrix(2$2, (i, j) -&amp;gt; i+j)):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="30." height="23" src="/view.aspx?sf=242114_question/5eaa3f5c52f45e9eb992ed7fe370aa22.gif" style="vertical-align:-6px" width="53"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(2)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A^+.B.A&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="30." height="23" src="/view.aspx?sf=242114_question/49e8df5a0d3b6a740aff3f19db8eae20.gif" style="vertical-align:-6px" width="53"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(3)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;input name="sequence" type="hidden" value="1"&gt; &lt;input name="cmd" type="hidden" value="none"&gt;&lt;/form&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=242114_question/Maple_2015_Bug.mw"&gt;Download Maple_2015_Bug.mw&lt;/a&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;This is a report of a Maple_2015&amp;#39;s bug, apparently fixed in more recent versions, but which may have persisted for a few versions beyond 2015.&lt;br&gt;
I don&amp;#39;t think it&amp;#39;s necessary to fill out an RCS form.&lt;/p&gt;

&lt;p&gt;All started with an error in my code which was balanced by a maple 2015 bug. So I didn&amp;#39;t see any error until I sent my code to&amp;nbsp;&lt;span id="answers_CommentList_comments_ctrl6_commentItem_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/242075-Symbolic-Regression-Canhas-This-Be#comment314066"&gt;@C_R&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;who uses a newer Maple version.&lt;br&gt;
More precisely, in my Maple 2015 code I defined a NxN matrix B, a vector A of length N, &lt;u&gt;that I mistakenly defined as a vector column&lt;/u&gt;, and finally computed the quantity R = A . B . A&lt;sup&gt;+&lt;/sup&gt;.&lt;br&gt;
Of course Maple should have fire an error.&lt;br&gt;
&lt;br&gt;
The bug is that Maple 2015 doesn&amp;#39;t fire an error if A is a float vector and B a float matrix.&lt;/p&gt;

&lt;form name="worksheet_form"&gt;&lt;input name="md.ref" type="hidden" value="FD665B54F93FB7826EC6E0A2B1FE0388"&gt;
&lt;table align="center" width="768"&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;
			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;restart&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;kernelopts(version)&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="`Maple 2015.2, APPLE UNIVERSAL OSX, Dec 20 2015, Build ID 1097895`" height="23" src="/view.aspx?sf=242114_question/cdb29f12beaae5d194254400216627d8.gif" style="vertical-align:-6px" width="455"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(1)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := Vector(2, symbol=a):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := Matrix(2$2, symbol=b):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;a href="http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20(in%20LinearAlgebra%3A-Multiply)%20cannot%20multiply%20a%20column%20Vector%20and%20a%20Matrix"&gt;&lt;span style="color:#ff00ff;font-size: 100%;font-family: Courier New,monospace;font-weight:normal;font-style:normal;"&gt;&lt;u&gt;Error, (in LinearAlgebra:-Multiply) cannot multiply a column Vector and a Matrix&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;&amp;nbsp;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := Vector(2, i -&amp;gt; i):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := Matrix(2$2, (i, j) -&amp;gt; i+j):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;a href="http://www.maplesoft.com/support/help/errors/view.aspx?path=Error,%20(in%20LinearAlgebra%3A-Multiply)%20cannot%20multiply%20a%20column%20Vector%20and%20a%20Matrix"&gt;&lt;span style="color:#ff00ff;font-size: 100%;font-family: Courier New,monospace;font-weight:normal;font-style:normal;"&gt;&lt;u&gt;Error, (in LinearAlgebra:-Multiply) cannot multiply a column Vector and a Matrix&lt;/u&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;&amp;nbsp;&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;A := evalf(Vector(2, i -&amp;gt; i)):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;B := evalf(Matrix(2$2, (i, j) -&amp;gt; i+j)):&lt;/span&gt;&lt;br&gt;
						&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A.B.A^+&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="30." height="23" src="/view.aspx?sf=242114_question/5eaa3f5c52f45e9eb992ed7fe370aa22.gif" style="vertical-align:-6px" width="53"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(2)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;R := A^+.B.A&lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;
						&lt;p align="center" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;img alt="30." height="23" src="/view.aspx?sf=242114_question/49e8df5a0d3b6a740aff3f19db8eae20.gif" style="vertical-align:-6px" width="53"&gt;&lt;/p&gt;
						&lt;/td&gt;
						&lt;td align="right" style="color:#000000; font-family:Times, serif; font-weight:bold; font-style:normal;"&gt;(3)&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;

			&lt;table style="margin-left:0px;margin-right:0px"&gt;
				&lt;tbody&gt;
					&lt;tr valign="baseline"&gt;
						&lt;td&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
						&lt;td&gt;
						&lt;p align="left" style="margin:0 0 0 0; padding-top:0px; padding-bottom:0px"&gt;&lt;span style="color:#78000e;font-size: 100%;font-family: Courier New,monospace;font-weight:bold;font-style:normal;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
						&lt;/td&gt;
					&lt;/tr&gt;
				&lt;/tbody&gt;
			&lt;/table&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;input name="sequence" type="hidden" value="1"&gt; &lt;input name="cmd" type="hidden" value="none"&gt;&lt;/form&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=242114_question/Maple_2015_Bug.mw"&gt;Download Maple_2015_Bug.mw&lt;/a&gt;&lt;/p&gt;
</description>
      <guid>242114</guid>
      <pubDate>Mon, 22 Dec 2025 16:37:35 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
    <item>
      <title>A solve/parametric example, with assumptions</title>
      <link>http://www.mapleprimes.com/questions/241896-A-Solveparametric-Example-With-Assumptions?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family: Verdana, Geneva, sans-serif;"&gt;At the beginning was this problem asked to 11th-12th Grade students:&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); margin-left: 40px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Let C a vertical cylinder of radius R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;= 10,&amp;nbsp;and S a steel sphere of radius R = 4.&lt;br&gt;
We place S into C and fill it with water up to the moment the water reaches the top of S.&lt;br&gt;
Let V the volume of the water we used.&lt;br&gt;
We then remove S and replaces it by another steel sphere S&amp;#39; with radius R&amp;#39; &amp;lt;&amp;gt; 4. Could it be that the free surface of the water reaches exactly the top of S&amp;#39;?&lt;br&gt;
If it is so what is then the value of R&amp;#39;?&lt;br&gt;
&lt;br&gt;
Mathematically does the equation (R&lt;sub&gt;C&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;)&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;⨯ (2R) - (4 R&lt;sub&gt;S&lt;/sub&gt;&lt;sup&gt;3&lt;/sup&gt;/3) = (R&lt;sub&gt;C&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;)&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;⨯ (2R&amp;#39;) - (4/3 R&lt;sup&gt;&amp;#39;3&lt;/sup&gt;), where R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;= 10 and R = 4, have other strictly positive solutions than the trivial one R&amp;#39; = R?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;br&gt;
&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The answer here is yes: R&amp;#39; = 552&lt;sup&gt;1/2&lt;/sup&gt;&amp;nbsp;-2 &amp;cong; 9.7473.. .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;When I read this problem, I immediately asked myself the following question &amp;quot;Does a second sphere S&amp;#39; always exists whatever the values R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;&amp;gt; 0 and R &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;∊&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; (0, R&lt;sub&gt;C&lt;/sub&gt;]?&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In the attached worksheet I used two different Maple tools to answer this question: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;firstly&amp;nbsp;&lt;strong&gt;solve+assumptions&lt;/strong&gt;&amp;nbsp;plus&amp;nbsp;&lt;strong&gt;plots:-inequal&lt;/strong&gt;&amp;nbsp;to visualize the (R&lt;sub&gt;C&lt;/sub&gt;, R) domain where S&amp;#39; exists,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;next&amp;nbsp;&lt;strong&gt;solve/parametric &lt;/strong&gt;to present another way to get the characterization of&amp;nbsp;this same domain.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The problem is that &lt;strong&gt;solve+assumptions&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;plots:-inequal&lt;/strong&gt;&amp;nbsp;both give the same correct result but &lt;strong&gt;solve/parametric&amp;nbsp;&lt;/strong&gt;does not.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;a href="/view.aspx?sf=241896_question/PlotsInequal_vs_SolveParametric.mw"&gt;PlotsInequal_vs_SolveParametric.mw&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For this specific problem &lt;strong&gt;solve/parametric&amp;nbsp;&lt;/strong&gt;fails finding the correct result.&lt;br&gt;
Is that a bug or did I misuse it?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Thanks in advance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family: Verdana, Geneva, sans-serif;"&gt;At the beginning was this problem asked to 11th-12th Grade students:&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); margin-left: 40px;"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Let C a vertical cylinder of radius R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;= 10,&amp;nbsp;and S a steel sphere of radius R = 4.&lt;br&gt;
We place S into C and fill it with water up to the moment the water reaches the top of S.&lt;br&gt;
Let V the volume of the water we used.&lt;br&gt;
We then remove S and replaces it by another steel sphere S&amp;#39; with radius R&amp;#39; &amp;lt;&amp;gt; 4. Could it be that the free surface of the water reaches exactly the top of S&amp;#39;?&lt;br&gt;
If it is so what is then the value of R&amp;#39;?&lt;br&gt;
&lt;br&gt;
Mathematically does the equation (R&lt;sub&gt;C&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;)&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;⨯ (2R) - (4 R&lt;sub&gt;S&lt;/sub&gt;&lt;sup&gt;3&lt;/sup&gt;/3) = (R&lt;sub&gt;C&lt;/sub&gt;&lt;sup&gt;2&lt;/sup&gt;)&lt;sup&gt;&amp;nbsp;&lt;/sup&gt;⨯ (2R&amp;#39;) - (4/3 R&lt;sup&gt;&amp;#39;3&lt;/sup&gt;), where R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;= 10 and R = 4, have other strictly positive solutions than the trivial one R&amp;#39; = R?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;br&gt;
&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The answer here is yes: R&amp;#39; = 552&lt;sup&gt;1/2&lt;/sup&gt;&amp;nbsp;-2 &amp;cong; 9.7473.. .&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;When I read this problem, I immediately asked myself the following question &amp;quot;Does a second sphere S&amp;#39; always exists whatever the values R&lt;sub&gt;C&lt;/sub&gt;&amp;nbsp;&amp;gt; 0 and R &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:16px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;∊&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; (0, R&lt;sub&gt;C&lt;/sub&gt;]?&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In the attached worksheet I used two different Maple tools to answer this question: &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;firstly&amp;nbsp;&lt;strong&gt;solve+assumptions&lt;/strong&gt;&amp;nbsp;plus&amp;nbsp;&lt;strong&gt;plots:-inequal&lt;/strong&gt;&amp;nbsp;to visualize the (R&lt;sub&gt;C&lt;/sub&gt;, R) domain where S&amp;#39; exists,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
	&lt;li style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-size:14px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;next&amp;nbsp;&lt;strong&gt;solve/parametric &lt;/strong&gt;to present another way to get the characterization of&amp;nbsp;this same domain.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document" id="ctl00_MainContent_body"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The problem is that &lt;strong&gt;solve+assumptions&lt;/strong&gt;&amp;nbsp;and&amp;nbsp;&lt;strong&gt;plots:-inequal&lt;/strong&gt;&amp;nbsp;both give the same correct result but &lt;strong&gt;solve/parametric&amp;nbsp;&lt;/strong&gt;does not.&lt;/span&gt;&lt;/span&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;a href="/view.aspx?sf=241896_question/PlotsInequal_vs_SolveParametric.mw"&gt;PlotsInequal_vs_SolveParametric.mw&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For this specific problem &lt;strong&gt;solve/parametric&amp;nbsp;&lt;/strong&gt;fails finding the correct result.&lt;br&gt;
Is that a bug or did I misuse it?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p style="font-family: -apple-system-font; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -moz-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none; caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"&gt;&lt;span style="font-size:14px;"&gt;&lt;span class="mainBody document"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Thanks in advance&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
</description>
      <guid>241896</guid>
      <pubDate>Mon, 20 Oct 2025 19:53:07 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
    <item>
      <title>modified Bessel function of the third kind with index 1 </title>
      <link>http://www.mapleprimes.com/questions/240850-Modified-Bessel-Function-Of-The-Third?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p&gt;I&amp;#39;m not sure of the Maple function I have to use to represent the&amp;nbsp;&lt;strong&gt;modified Bessel function of the third kind with index 1&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The&amp;nbsp;&lt;strong&gt;Bessel function of the third kind&lt;/strong&gt; is also named the &lt;strong&gt;Hankel&lt;/strong&gt; function.&lt;/p&gt;

&lt;p&gt;I mistakenly started to use&amp;nbsp;&lt;strong&gt;&lt;u&gt;HankelH1&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;or&amp;nbsp;&lt;strong&gt;&lt;u&gt;HankelH2&lt;/u&gt;&lt;/strong&gt; but quickly realized they are both complex-valued functions while the paper I&amp;#39;m working on uses a real-valued&amp;nbsp;&lt;strong&gt;modified Bessel function of the third kind&lt;/strong&gt;: finally,&amp;nbsp;does this latter exist&amp;nbsp;in Maple 2015?&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I&amp;#39;m not sure of the Maple function I have to use to represent the&amp;nbsp;&lt;strong&gt;modified Bessel function of the third kind with index 1&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The&amp;nbsp;&lt;strong&gt;Bessel function of the third kind&lt;/strong&gt; is also named the &lt;strong&gt;Hankel&lt;/strong&gt; function.&lt;/p&gt;

&lt;p&gt;I mistakenly started to use&amp;nbsp;&lt;strong&gt;&lt;u&gt;HankelH1&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;or&amp;nbsp;&lt;strong&gt;&lt;u&gt;HankelH2&lt;/u&gt;&lt;/strong&gt; but quickly realized they are both complex-valued functions while the paper I&amp;#39;m working on uses a real-valued&amp;nbsp;&lt;strong&gt;modified Bessel function of the third kind&lt;/strong&gt;: finally,&amp;nbsp;does this latter exist&amp;nbsp;in Maple 2015?&lt;/p&gt;

&lt;p&gt;Thanks in advance&lt;/p&gt;
</description>
      <guid>240850</guid>
      <pubDate>Sun, 05 Oct 2025 16:58:09 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
    <item>
      <title>A note on Monte-Carlo integration</title>
      <link>http://www.mapleprimes.com/posts/232095-A-Note-On-MonteCarlo-Integration?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I must thank &lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code#comment301525"&gt;@Scot Gould&lt;/a&gt;&lt;/span&gt; for having asked this &lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code"&gt;question&lt;/a&gt; more than a year ago and thus, without meaning to, having been the driving force behind this post.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;There is an enormous literature about Monte-Carlo integration (MCI for short) and you might legitimately ask &amp;quot;Why another one?&amp;quot;.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;A personal experience.&lt;/strong&gt;&lt;br&gt;
Maybe if I tell you about my experience you will better understand why I believe that something is missing in the traditional courses and textbooks, even the most renowned ones.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For several years, I led training seminars in statistics for engineers working in the field of numerical simulation.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At some point I always came to speak about MCI and (as anyone does today) I introduced the subject by presenting the estimation of the area of a disk by randomly picking points in its circumscribed square and assessing its area from the proportion of points it contained.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=232095_post/Disk_within_square.png" style="height: 300px; width: 300px; margin-left: 250px; margin-right: 250px;"&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Once done I switched (still as anybody does) to the Monte-Carlo summation formula (see &lt;a href="https://en.wikipedia.org/wiki/Monte_Carlo_integration"&gt;Wikipedia&lt;/a&gt; for instance).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;One day an attendee asked me this question &amp;quot;&lt;em&gt;Why do you say that this&lt;/em&gt; [1D] &lt;em&gt;summation formula is the same thing that the&lt;/em&gt; [2D] &lt;em&gt;counting of points in the &lt;/em&gt;[circle within a box] &lt;em&gt;example you have just presented?&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I have to say I was surprised by this question for it seemed to me quite evident that these two ways of assessing the area were nothing but two different points of view of, roughly, the same thing.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So I gave a quick, mostly informal, explanation (that I am not proud of) and, because the clock was running, I kept teaching the class.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;But this question really puzzled me and I thought for a simple but rigourous way to prove these two approaches were (were they?) equivalent, at least in some reasonable sense.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The thing is that trying to derive simple explanations based on couting is not enough, and that you have to resort to certain probabilistic arguments to get out of it. Indeed, sticking to the counting approach leads to the more reasonable position that these two approaches are not equivalent.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The end of the story is that I spent more time on these two approaches of MCI during the trainings that followed.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Saying that, yes, the summation formula seems to be the reference today, but that the old counting strategy still has some advantages and can even gives access to information that the summation formula cannot.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;About this post.&lt;/strong&gt;&lt;br&gt;
This post focuses mainly on what I call the &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt; &lt;/em&gt;viewpoint (counting points), and is aimed, in its first part, to answer the question &amp;quot;Is this point of view equivalent or not to the &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt; &lt;/em&gt;(summation formula) one?&amp;quot; (And if it is, in what sense is it so?).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Let me illustrate this with the example &lt;/span&gt;&lt;span style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code#comment301525"&gt;@Scot Gould&lt;/a&gt;&amp;nbsp;&lt;/span&gt; presented in its question.&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; The brown bold curve on the left figure is the graph of the function&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt; func&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) (whose expression has no interest here) and the brown area represents the area we want to assess using MCI.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In the &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt;&lt;/em&gt; approach I picked unifomly at random N=100 points within the gray box (of area 2.42), found 26 of them were in the brown region and said the area of this latter is 2.42 &lt;span style="font-size:10px;"&gt;x&lt;/span&gt; 26/100 = 0.6292. The &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approach consists in picking uniformly N random points in the range x= [0.8, 3],&amp;nbsp; and using the blue formula &lt;span style="font-size:14px;"&gt;to get an estimation of this same area&lt;/span&gt; ((&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:18px;"&gt;Lbox&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; is the x-length of the gray box, here equal to 2.2).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The quesion is: Am I assessing the same thing when I apply either method? And, perhaps more importantly, do my estimators have the same properties?&lt;/span&gt;&lt;br&gt;
&lt;img src="/view.aspx?sf=232095_post/fig.png"&gt;&lt;img src="/view.aspx?sf=232095_post/sum.png"&gt;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;And here apppears a first problem: &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Whatever the number of times you repeat the &lt;/span&gt;&lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; sampling method, even with different points, you will always get a number &lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;of points in the brown region between 0 and N included, meaning that if S is the area of the gray box, the estimation of the brown area is always one of these numbers {0, S/N, 2.S/N, ..., S}.&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At the opposite repetitions of the &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; approach will lead to a continuum of values for this brown area.&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, saying the two approaches might be equivalent simply means that a discrete set is equivalent to a non countable one.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;If we remain at the elementary counting level, &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt;&lt;/em&gt; and &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; viewpoints then are not equivalent.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Towards a probabilistic model of the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; Process:&lt;/strong&gt;&lt;br&gt;
This goes against everything you may have heard or read: so, are the authors of these statements all wrong?&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Yes, from a strict &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; point of view, but happily not if we interpret the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; approach in a more loose and probabilistic manner (although this still needs to be considered carefully as it is shown in the main worksheet).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;This probabilistic manner relies upon a probabilistic model of the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; process, where the event &amp;quot;K points out of N belong to the brown area&amp;quot; is to be interpreted as the realization of a very special random variable named &lt;a href="https://en.wikipedia.org/wiki/Poisson_binomial_distribution"&gt;Poisson-Binomial&lt;/a&gt; (do not worry if you never heard about it: a lot of statisticians did not neither).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In a few words, whereas a &lt;a href="https://en.wikipedia.org/wiki/Binomial_distribution"&gt;Binomial&lt;/a&gt; random variable is the sum of several independent and identically distributed &lt;a href="https://en.wikipedia.org/wiki/Bernoulli_distribution"&gt;Bernoulli&lt;/a&gt; random variables, a Poisson-Binomial random variable is the sum of several independent &lt;u&gt;&lt;strong&gt;but not&lt;/strong&gt;&lt;/u&gt; &lt;u&gt;&lt;strong&gt;necessarily&lt;/strong&gt;&lt;/u&gt; identically distributed Bernoulli random variables. Thus the Poisson-Binomial distribution generalizes the Binomial one.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Using the properties of Poisson-Binomial random variables we must prove in a rigorous way that the expectations of the area estimators for both the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; and &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; approaches are identical.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, given this &amp;quot;trick&amp;quot; the two methods are thus equivalent, are they not? And that settles it.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In fact, no, the matter of equivalence still remains.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;When uncertainty enters the picture.&lt;/strong&gt;&lt;br&gt;
Generally one cannot satisfy ourselves with the sole estimation of the area and we would like to have information about the reliability of this estimation. For instance if I find this value is 0.6292, am I ready to bet my salary that I am right? Of course not, unless I am insane, but the things would change if I were capable of saying for instance that &amp;quot;I am 95% sure that the true value of the area is between 0.6 and 0.67&amp;quot;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; vewpoint the Poisson-Binomial model makes possible to assess &lt;strong&gt;an&lt;/strong&gt; uncertainty (not &lt;strong&gt;the&lt;/strong&gt; uncertainty!) of the area estimation. But things are subtle, because there are different ways to compute an uncertainty: &lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At the elementary level the height of the gray box is an essential parameter, but it does not necessarily gives a good estimation of this uncertainty (one can easily reduced this latter arbitrarily close to 0!).&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;To get reliable uncertainty estimation the call to a probability theory related to&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/Extreme_value_theory"&gt;Extreme Value Theory&lt;/a&gt; (EVT for short) necessary (all of this is explained in the attached worksheet).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For the &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; point of view it is enough to observe that there is no concept of &amp;quot;box height&amp;quot; and that it is then impossible to assess any uncertainty. Question: &amp;quot;If it is so, how can (all the) MCI procedures return an uncertainty value?&amp;quot;&lt;br&gt;
The answer is simple: they consider a virtual encapsulating box whose eight is the maximum of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;func&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;). This trick enables providing an uncertainty, but this is a non-conservative estimation (an over-optimistic one if you prefer, in other terms an estimation we must regard very carefully).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, at the end &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; and &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approaches are equivalent only if we restrict to the estimation of the area, but no longer as soon as we are interested in the quality of this estimation.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;What does the attached file contain?&lt;/strong&gt;&lt;br&gt;
The attached file speaks a lot to the estimation of the estimator uncertainty.&lt;br&gt;
The core theory is named&amp;nbsp;&lt;a href="https://arxiv.org/pdf/1412.3972"&gt;(Right) EndPoint Theory&lt;/a&gt; (I found nothing on Wikipedia nor any easy-to-read papers about this theory, so I more or less arbitrarilly decided to refer to this one). Basically it enables assessing the (usually right) end-point of a distribution known only through (right) censored data.&lt;br&gt;
The simplest example is those of a New York pedestrian who looks to the taxi numbers and asks himself how to assess the highest number a taxi has. Here we know this number exists (meaning that some related distribution is bounded), but the situation can be more complex if one does not ever know if this distribution is bounded or not (in which cas one seeks for a right end-point whose probability to be overpassed is less than some small value).&lt;br&gt;
A conservative, and thus reliable, uncertainty on the area estimator&amp;nbsp; can only be derived in the framework of the end-point theory.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Once the basis of this theory are understood it becomes relatively simple to enhance the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; approach to get estimators with lessen uncertainties.&lt;br&gt;
I present different ways to do this: one (even if derived otherwise) is named &lt;a href="https://en.wikipedia.org/wiki/Importance_sampling"&gt;Importance Sampling&lt;/a&gt;, and the other leads in a straightforward way to algorithms which are quite close to some used in the &lt;a href="https://arxiv.org/abs/hep-ph/0404043"&gt;CUBA library&lt;/a&gt; (partially accessible through &lt;strong&gt;evalf/Int&lt;/strong&gt;).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The last important, if not fundamental, concept discussed in this article concerns the distinction between dispersion interval and confidence interval, concepts that are unfortunately not properly distinguished due to the imprecision of the English language (I apologize to native English speakers for these somewhat harsh words, but this is the reality here).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Some references are provided in attached (main) worksheet, but please, if you don&amp;#39;t want to end up even more confused than you were before, avoid Wikipedia.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;To sum up.&lt;/strong&gt;&lt;br&gt;
This note is a non-orthodox presentation of MCI centered arround the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; viewpoint which, I am convinced of that, deserves a little more attention than the disk-in-the-square picture commonly displayed in MCI courses and textbooks.&lt;br&gt;
An I am even more convinced of that then this old-fashion (antiquated?) approach is an open door to some high level probability theories such than the EndPoint and the EVT one.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Of course this post is not an advocacy agaist the &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approach, and does not mean that you have to ignore classical texts or that the &lt;a href="https://simple.wikipedia.org/wiki/Law_of_large_numbers"&gt;Law of Large Numbers (LLN)&lt;/a&gt; or the&amp;nbsp;&lt;a href="https://simple.wikipedia.org/wiki/Central_limit_theorem"&gt;Central limit theorms&lt;/a&gt; are useless stuff in MCI.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;Maple, but not just Maple.&lt;/strong&gt;&lt;br&gt;
A part of the attached worksheet is devoted base presents results I got with &lt;a href="https://en.wikipedia.org/wiki/R_(programming_language)"&gt;R&lt;/a&gt;&amp;nbsp; (a programming language for statistical computing and data visualization), simply because Maple 2015 (and it is still true for Maple 2025) did not contain the functions I needed.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For instance &lt;span style="color:#3498db;"&gt;&lt;strong&gt;R&lt;/strong&gt;&lt;/span&gt; implements the Cuba library in a far more complete way than Maple (I give a critical discussion about the way Maple does it), enabling for instance the change of the random seed&lt;/span&gt;.&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Main worksheet (I apologize in advance for typos that could remain in the texts)&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/A_note_on_Monte-Carlo_Integration.mw"&gt;A_note_on_Monte-Carlo_Integration.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The main worksheet refers to this one&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/How_does_the_variance_of_f_impact_the_estimator_dispersion.mw"&gt;How_does_the_variance_of_f_impact_the_estimator_dispersion.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Extra worksheet: An introduction to Importance Sampling&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/Importance_Sampling.mw"&gt;Importance_Sampling.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I must thank &lt;span id="answers_answers_ctrl0_ListView1_ctrl1_replies_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code#comment301525"&gt;@Scot Gould&lt;/a&gt;&lt;/span&gt; for having asked this &lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code"&gt;question&lt;/a&gt; more than a year ago and thus, without meaning to, having been the driving force behind this post.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;There is an enormous literature about Monte-Carlo integration (MCI for short) and you might legitimately ask &amp;quot;Why another one?&amp;quot;.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;A personal experience.&lt;/strong&gt;&lt;br&gt;
Maybe if I tell you about my experience you will better understand why I believe that something is missing in the traditional courses and textbooks, even the most renowned ones.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For several years, I led training seminars in statistics for engineers working in the field of numerical simulation.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At some point I always came to speak about MCI and (as anyone does today) I introduced the subject by presenting the estimation of the area of a disk by randomly picking points in its circumscribed square and assessing its area from the proportion of points it contained.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;img src="/view.aspx?sf=232095_post/Disk_within_square.png" style="height: 300px; width: 300px; margin-left: 250px; margin-right: 250px;"&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Once done I switched (still as anybody does) to the Monte-Carlo summation formula (see &lt;a href="https://en.wikipedia.org/wiki/Monte_Carlo_integration"&gt;Wikipedia&lt;/a&gt; for instance).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;One day an attendee asked me this question &amp;quot;&lt;em&gt;Why do you say that this&lt;/em&gt; [1D] &lt;em&gt;summation formula is the same thing that the&lt;/em&gt; [2D] &lt;em&gt;counting of points in the &lt;/em&gt;[circle within a box] &lt;em&gt;example you have just presented?&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;I have to say I was surprised by this question for it seemed to me quite evident that these two ways of assessing the area were nothing but two different points of view of, roughly, the same thing.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So I gave a quick, mostly informal, explanation (that I am not proud of) and, because the clock was running, I kept teaching the class.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;But this question really puzzled me and I thought for a simple but rigourous way to prove these two approaches were (were they?) equivalent, at least in some reasonable sense.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The thing is that trying to derive simple explanations based on couting is not enough, and that you have to resort to certain probabilistic arguments to get out of it. Indeed, sticking to the counting approach leads to the more reasonable position that these two approaches are not equivalent.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The end of the story is that I spent more time on these two approaches of MCI during the trainings that followed.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Saying that, yes, the summation formula seems to be the reference today, but that the old counting strategy still has some advantages and can even gives access to information that the summation formula cannot.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;About this post.&lt;/strong&gt;&lt;br&gt;
This post focuses mainly on what I call the &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt; &lt;/em&gt;viewpoint (counting points), and is aimed, in its first part, to answer the question &amp;quot;Is this point of view equivalent or not to the &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt; &lt;/em&gt;(summation formula) one?&amp;quot; (And if it is, in what sense is it so?).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Let me illustrate this with the example &lt;/span&gt;&lt;span id="answers_answers_ctrl0_ListView1_ctrl1_replies_body" style="word-wrap: break-word;"&gt;&lt;a href="https://www.mapleprimes.com/questions/238193-Mma-To-Maple-Of-Monte-Carlo-Integration-Code#comment301525"&gt;@Scot Gould&lt;/a&gt;&amp;nbsp;&lt;/span&gt; presented in its question.&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; The brown bold curve on the left figure is the graph of the function&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt; func&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;) (whose expression has no interest here) and the brown area represents the area we want to assess using MCI.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In the &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt;&lt;/em&gt; approach I picked unifomly at random N=100 points within the gray box (of area 2.42), found 26 of them were in the brown region and said the area of this latter is 2.42 &lt;span style="font-size:10px;"&gt;x&lt;/span&gt; 26/100 = 0.6292. The &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approach consists in picking uniformly N random points in the range x= [0.8, 3],&amp;nbsp; and using the blue formula &lt;span style="font-size:14px;"&gt;to get an estimation of this same area&lt;/span&gt; ((&lt;/span&gt;&lt;em&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;span style="font-size:18px;"&gt;Lbox&lt;/span&gt;&lt;/span&gt;&lt;/em&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt; is the x-length of the gray box, here equal to 2.2).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The quesion is: Am I assessing the same thing when I apply either method? And, perhaps more importantly, do my estimators have the same properties?&lt;/span&gt;&lt;br&gt;
&lt;img src="/view.aspx?sf=232095_post/fig.png"&gt;&lt;img src="/view.aspx?sf=232095_post/sum.png"&gt;&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;And here apppears a first problem: &lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Whatever the number of times you repeat the &lt;/span&gt;&lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; sampling method, even with different points, you will always get a number &lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;of points in the brown region between 0 and N included, meaning that if S is the area of the gray box, the estimation of the brown area is always one of these numbers {0, S/N, 2.S/N, ..., S}.&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At the opposite repetitions of the &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; approach will lead to a continuum of values for this brown area.&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, saying the two approaches might be equivalent simply means that a discrete set is equivalent to a non countable one.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;If we remain at the elementary counting level, &lt;em&gt;&lt;u&gt;Historical&lt;/u&gt;&lt;/em&gt; and &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; viewpoints then are not equivalent.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Towards a probabilistic model of the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; Process:&lt;/strong&gt;&lt;br&gt;
This goes against everything you may have heard or read: so, are the authors of these statements all wrong?&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Yes, from a strict &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; point of view, but happily not if we interpret the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; approach in a more loose and probabilistic manner (although this still needs to be considered carefully as it is shown in the main worksheet).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;This probabilistic manner relies upon a probabilistic model of the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; process, where the event &amp;quot;K points out of N belong to the brown area&amp;quot; is to be interpreted as the realization of a very special random variable named &lt;a href="https://en.wikipedia.org/wiki/Poisson_binomial_distribution"&gt;Poisson-Binomial&lt;/a&gt; (do not worry if you never heard about it: a lot of statisticians did not neither).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In a few words, whereas a &lt;a href="https://en.wikipedia.org/wiki/Binomial_distribution"&gt;Binomial&lt;/a&gt; random variable is the sum of several independent and identically distributed &lt;a href="https://en.wikipedia.org/wiki/Bernoulli_distribution"&gt;Bernoulli&lt;/a&gt; random variables, a Poisson-Binomial random variable is the sum of several independent &lt;u&gt;&lt;strong&gt;but not&lt;/strong&gt;&lt;/u&gt; &lt;u&gt;&lt;strong&gt;necessarily&lt;/strong&gt;&lt;/u&gt; identically distributed Bernoulli random variables. Thus the Poisson-Binomial distribution generalizes the Binomial one.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Using the properties of Poisson-Binomial random variables we must prove in a rigorous way that the expectations of the area estimators for both the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; and &lt;em&gt;&lt;u&gt;Modern&lt;/u&gt;&lt;/em&gt; approaches are identical.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, given this &amp;quot;trick&amp;quot; the two methods are thus equivalent, are they not? And that settles it.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;In fact, no, the matter of equivalence still remains.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;When uncertainty enters the picture.&lt;/strong&gt;&lt;br&gt;
Generally one cannot satisfy ourselves with the sole estimation of the area and we would like to have information about the reliability of this estimation. For instance if I find this value is 0.6292, am I ready to bet my salary that I am right? Of course not, unless I am insane, but the things would change if I were capable of saying for instance that &amp;quot;I am 95% sure that the true value of the area is between 0.6 and 0.67&amp;quot;.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; vewpoint the Poisson-Binomial model makes possible to assess &lt;strong&gt;an&lt;/strong&gt; uncertainty (not &lt;strong&gt;the&lt;/strong&gt; uncertainty!) of the area estimation. But things are subtle, because there are different ways to compute an uncertainty: &lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;At the elementary level the height of the gray box is an essential parameter, but it does not necessarily gives a good estimation of this uncertainty (one can easily reduced this latter arbitrarily close to 0!).&lt;/span&gt;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;To get reliable uncertainty estimation the call to a probability theory related to&amp;nbsp;&lt;a href="https://en.wikipedia.org/wiki/Extreme_value_theory"&gt;Extreme Value Theory&lt;/a&gt; (EVT for short) necessary (all of this is explained in the attached worksheet).&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For the &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; point of view it is enough to observe that there is no concept of &amp;quot;box height&amp;quot; and that it is then impossible to assess any uncertainty. Question: &amp;quot;If it is so, how can (all the) MCI procedures return an uncertainty value?&amp;quot;&lt;br&gt;
The answer is simple: they consider a virtual encapsulating box whose eight is the maximum of the&amp;nbsp;&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;func&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;(&lt;/span&gt;&lt;span style="font-size:18px;"&gt;&lt;span style="font-family:Times New Roman,Times,serif;"&gt;&lt;em&gt;x&lt;sub&gt;i&lt;/sub&gt;&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;). This trick enables providing an uncertainty, but this is a non-conservative estimation (an over-optimistic one if you prefer, in other terms an estimation we must regard very carefully).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So, at the end &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; and &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approaches are equivalent only if we restrict to the estimation of the area, but no longer as soon as we are interested in the quality of this estimation.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;What does the attached file contain?&lt;/strong&gt;&lt;br&gt;
The attached file speaks a lot to the estimation of the estimator uncertainty.&lt;br&gt;
The core theory is named&amp;nbsp;&lt;a href="https://arxiv.org/pdf/1412.3972"&gt;(Right) EndPoint Theory&lt;/a&gt; (I found nothing on Wikipedia nor any easy-to-read papers about this theory, so I more or less arbitrarilly decided to refer to this one). Basically it enables assessing the (usually right) end-point of a distribution known only through (right) censored data.&lt;br&gt;
The simplest example is those of a New York pedestrian who looks to the taxi numbers and asks himself how to assess the highest number a taxi has. Here we know this number exists (meaning that some related distribution is bounded), but the situation can be more complex if one does not ever know if this distribution is bounded or not (in which cas one seeks for a right end-point whose probability to be overpassed is less than some small value).&lt;br&gt;
A conservative, and thus reliable, uncertainty on the area estimator&amp;nbsp; can only be derived in the framework of the end-point theory.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Once the basis of this theory are understood it becomes relatively simple to enhance the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; approach to get estimators with lessen uncertainties.&lt;br&gt;
I present different ways to do this: one (even if derived otherwise) is named &lt;a href="https://en.wikipedia.org/wiki/Importance_sampling"&gt;Importance Sampling&lt;/a&gt;, and the other leads in a straightforward way to algorithms which are quite close to some used in the &lt;a href="https://arxiv.org/abs/hep-ph/0404043"&gt;CUBA library&lt;/a&gt; (partially accessible through &lt;strong&gt;evalf/Int&lt;/strong&gt;).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The last important, if not fundamental, concept discussed in this article concerns the distinction between dispersion interval and confidence interval, concepts that are unfortunately not properly distinguished due to the imprecision of the English language (I apologize to native English speakers for these somewhat harsh words, but this is the reality here).&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Some references are provided in attached (main) worksheet, but please, if you don&amp;#39;t want to end up even more confused than you were before, avoid Wikipedia.&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;To sum up.&lt;/strong&gt;&lt;br&gt;
This note is a non-orthodox presentation of MCI centered arround the &lt;u&gt;&lt;em&gt;Historical&lt;/em&gt;&lt;/u&gt; viewpoint which, I am convinced of that, deserves a little more attention than the disk-in-the-square picture commonly displayed in MCI courses and textbooks.&lt;br&gt;
An I am even more convinced of that then this old-fashion (antiquated?) approach is an open door to some high level probability theories such than the EndPoint and the EVT one.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Of course this post is not an advocacy agaist the &lt;u&gt;&lt;em&gt;Modern&lt;/em&gt;&lt;/u&gt; approach, and does not mean that you have to ignore classical texts or that the &lt;a href="https://simple.wikipedia.org/wiki/Law_of_large_numbers"&gt;Law of Large Numbers (LLN)&lt;/a&gt; or the&amp;nbsp;&lt;a href="https://simple.wikipedia.org/wiki/Central_limit_theorem"&gt;Central limit theorms&lt;/a&gt; are useless stuff in MCI.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;strong&gt;Maple, but not just Maple.&lt;/strong&gt;&lt;br&gt;
A part of the attached worksheet is devoted base presents results I got with &lt;a href="https://en.wikipedia.org/wiki/R_(programming_language)"&gt;R&lt;/a&gt;&amp;nbsp; (a programming language for statistical computing and data visualization), simply because Maple 2015 (and it is still true for Maple 2025) did not contain the functions I needed.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;For instance &lt;span style="color:#3498db;"&gt;&lt;strong&gt;R&lt;/strong&gt;&lt;/span&gt; implements the Cuba library in a far more complete way than Maple (I give a critical discussion about the way Maple does it), enabling for instance the change of the random seed&lt;/span&gt;.&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Main worksheet (I apologize in advance for typos that could remain in the texts)&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/A_note_on_Monte-Carlo_Integration.mw"&gt;A_note_on_Monte-Carlo_Integration.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The main worksheet refers to this one&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/How_does_the_variance_of_f_impact_the_estimator_dispersion.mw"&gt;How_does_the_variance_of_f_impact_the_estimator_dispersion.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Extra worksheet: An introduction to Importance Sampling&lt;br&gt;
&lt;a href="/view.aspx?sf=232095_post/Importance_Sampling.mw"&gt;Importance_Sampling.mw&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
</description>
      <guid>232095</guid>
      <pubDate>Sat, 06 Sep 2025 13:36:39 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
    <item>
      <title>Multinomial, Dirichlet and related multivariate random variables</title>
      <link>http://www.mapleprimes.com/posts/232052-Multinomial-Dirichlet-And-Related-Multivariate?ref=Feed:MaplePrimes:Version Maple 2015</link>
      <itunes:summary>&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Under the name of &lt;span style="color:#3498db;"&gt;mmcdara&lt;/span&gt; (unfortunately inaccessible since the major July 2025 Mapleprimes outage, and probably lost forever, God rest his soul.) I published two years ago a post about &lt;a href="https://www.mapleprimes.com/posts/223562-How-To-Build-A-Multivariate-Random-Variable"&gt;Multivariate Normal Distribution&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
The current post continues in the same vein and presents the construction of a few new Multivariate Random Variables (MRV for short) named &lt;strong&gt;Multinomial&lt;/strong&gt; (see for instance this recent &lt;a href="https://www.mapleprimes.com/questions/240606-Displaying-Diagram-For-Multinomial-Distribution"&gt;question&lt;/a&gt;), &lt;strong&gt;Dirichlet&lt;/strong&gt;, &lt;strong&gt;Categorical&lt;/strong&gt; and related &lt;strong&gt;compound distributions&lt;/strong&gt;.&lt;br&gt;
I advice the interested readers to give a quick look to these names on Wikipedia (more specific references are given at the top of the wotksheet).&lt;br&gt;
&lt;br&gt;
As I explained (in fact as my alter ego did) in &lt;a href="https://www.mapleprimes.com/posts/223562-How-To-Build-A-Multivariate-Random-Variable"&gt;Multivariate Normal Distribution&lt;/a&gt;, the &lt;strong&gt;Statistics&lt;/strong&gt; package is limited to univariate random variables&amp;nbsp; and thus implementing MRVs requires a little cunning.&lt;br&gt;
Here is a list of a few problems you face:&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Whereas the expectation (sometimes named &amp;quot;mean&amp;quot;) of a univariate random variable is a number or an expression, the expectation of a MRV is a vector (or a list, a n-uple, ...) of numbers or expressions.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So far, so good, except that the &lt;strong&gt;Mean&lt;/strong&gt; attribute of &lt;strong&gt;Distribution&lt;/strong&gt; can only be a scalar quantity. So if you want to assign a vector to &lt;strong&gt;Mean&lt;/strong&gt; you have to code it some way and do something like &lt;strong&gt;&lt;em&gt;Decode&lt;/em&gt;(Mean(My_MRV))&lt;/strong&gt; to get the expectation in a vector form.&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The &lt;strong&gt;Variance&lt;/strong&gt; case is even more tricky because MRVs variance are matrices.&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Beyond this some very useful attributes like &lt;strong&gt;ParentName&lt;/strong&gt; and &lt;strong&gt;Parameters&lt;/strong&gt; cannot be instanciated in the definition of user random variables (whether there are MRVs or not), implying here again some bit of gymnastics in order that, if not really instantiate these attributes, be able at least to retrieve them when needed.&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Finally, last but not least, the &lt;strong&gt;RandomSample&lt;/strong&gt; is not appropriated to sample MRVs for reasons which are explained in the attached worksheet.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The file below contains more than 20 procedures enabling the definition of the studied MRVs, the decoding of the coded attributes, the visualization (which is not that immediate because the supports of the MRVs I foccus on are simplexes), the parameter estimations against empirical observations (frequentist and bayesian points of view), and so on.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;a href="/view.aspx?sf=232052_post/Multinomial_Dirichlet_and_so_on.mw"&gt;Multinomial_Dirichlet_and_so_on.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Nevertheless, there is still a lot missing, but at some point I believe we need to decide that the work is over.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Under the name of &lt;span style="color:#3498db;"&gt;mmcdara&lt;/span&gt; (unfortunately inaccessible since the major July 2025 Mapleprimes outage, and probably lost forever, God rest his soul.) I published two years ago a post about &lt;a href="https://www.mapleprimes.com/posts/223562-How-To-Build-A-Multivariate-Random-Variable"&gt;Multivariate Normal Distribution&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
The current post continues in the same vein and presents the construction of a few new Multivariate Random Variables (MRV for short) named &lt;strong&gt;Multinomial&lt;/strong&gt; (see for instance this recent &lt;a href="https://www.mapleprimes.com/questions/240606-Displaying-Diagram-For-Multinomial-Distribution"&gt;question&lt;/a&gt;), &lt;strong&gt;Dirichlet&lt;/strong&gt;, &lt;strong&gt;Categorical&lt;/strong&gt; and related &lt;strong&gt;compound distributions&lt;/strong&gt;.&lt;br&gt;
I advice the interested readers to give a quick look to these names on Wikipedia (more specific references are given at the top of the wotksheet).&lt;br&gt;
&lt;br&gt;
As I explained (in fact as my alter ego did) in &lt;a href="https://www.mapleprimes.com/posts/223562-How-To-Build-A-Multivariate-Random-Variable"&gt;Multivariate Normal Distribution&lt;/a&gt;, the &lt;strong&gt;Statistics&lt;/strong&gt; package is limited to univariate random variables&amp;nbsp; and thus implementing MRVs requires a little cunning.&lt;br&gt;
Here is a list of a few problems you face:&lt;/span&gt;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Whereas the expectation (sometimes named &amp;quot;mean&amp;quot;) of a univariate random variable is a number or an expression, the expectation of a MRV is a vector (or a list, a n-uple, ...) of numbers or expressions.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p style="margin-left: 40px;"&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;So far, so good, except that the &lt;strong&gt;Mean&lt;/strong&gt; attribute of &lt;strong&gt;Distribution&lt;/strong&gt; can only be a scalar quantity. So if you want to assign a vector to &lt;strong&gt;Mean&lt;/strong&gt; you have to code it some way and do something like &lt;strong&gt;&lt;em&gt;Decode&lt;/em&gt;(Mean(My_MRV))&lt;/strong&gt; to get the expectation in a vector form.&lt;/span&gt;&lt;br&gt;
&amp;nbsp;&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The &lt;strong&gt;Variance&lt;/strong&gt; case is even more tricky because MRVs variance are matrices.&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Beyond this some very useful attributes like &lt;strong&gt;ParentName&lt;/strong&gt; and &lt;strong&gt;Parameters&lt;/strong&gt; cannot be instanciated in the definition of user random variables (whether there are MRVs or not), implying here again some bit of gymnastics in order that, if not really instantiate these attributes, be able at least to retrieve them when needed.&lt;/span&gt;&lt;br&gt;
	&amp;nbsp;&lt;/li&gt;
	&lt;li&gt;&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;Finally, last but not least, the &lt;strong&gt;RandomSample&lt;/strong&gt; is not appropriated to sample MRVs for reasons which are explained in the attached worksheet.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;The file below contains more than 20 procedures enabling the definition of the studied MRVs, the decoding of the coded attributes, the visualization (which is not that immediate because the supports of the MRVs I foccus on are simplexes), the parameter estimations against empirical observations (frequentist and bayesian points of view), and so on.&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span style="font-family:Verdana,Geneva,sans-serif;"&gt;&lt;a href="/view.aspx?sf=232052_post/Multinomial_Dirichlet_and_so_on.mw"&gt;Multinomial_Dirichlet_and_so_on.mw&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Nevertheless, there is still a lot missing, but at some point I believe we need to decide that the work is over.&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description>
      <guid>232052</guid>
      <pubDate>Tue, 02 Sep 2025 19:38:15 Z</pubDate>
      <itunes:author>sand15</itunes:author>
      <author>sand15</author>
    </item>
  </channel>
</rss>