<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: can we extend the trapezoidal rule to cover bivariate pdf in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500642#M4383</link>
    <description>&lt;P&gt;It is&amp;nbsp; bivariate Lomax distribution (see attachment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Tue, 02 Oct 2018 07:55:11 GMT</pubDate>
    <dc:creator>Salah</dc:creator>
    <dc:date>2018-10-02T07:55:11Z</dc:date>
    <item>
      <title>can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499851#M4379</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw the&amp;nbsp;code below written by you&lt;SPAN&gt;.&amp;nbsp;&amp;nbsp;I wounder if there is an extension to cover a bivariate case f(x,y)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="text"&gt;start TrapIntegral(x,y);
   N = nrow(x);
   dx    =   x[2:N] - x[1:N-1];
   meanY = ( y[2:N] + y[1:N-1] )/2;
   return( dx` * meanY );
finish;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Thank you&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Majdi&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499851#M4379</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2018-09-28T12:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499855#M4380</link>
      <description>&lt;P&gt;Yes, but you have to work with triangles instead of rectangles.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The trapezoidal rule is a piecewise&amp;nbsp;linear method that approximates the area under a 1-D curve on [a,b] by using the function evaluated at the endpoints. You use the two endpoints because "two points determine a line."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the volume&amp;nbsp;under a surface, you can use the fact that "three points determine a plane." Chop the domain of integration into triangles and approximate the&amp;nbsp;volume under the surface on each triangle ABC as&amp;nbsp;the volume&amp;nbsp;under the plane defined by f(A), f(B), and F(C).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the domain is polygonal, you can always decompose it exactly into a union of triangles. For nonpolygonal domains (for example, a surface),&amp;nbsp;you can approximate the regions&amp;nbsp;to arbitrary closeness by using triangles.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499855#M4380</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-28T12:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499866#M4381</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the reply. I am kind of lost her.&lt;/P&gt;&lt;P&gt;Have you posted any code that is similar&amp;nbsp;to this case. I may look at it and try to mimic it for my pdf.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Salah&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499866#M4381</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2018-09-28T12:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499869#M4382</link>
      <description>&lt;P&gt;No, I have not posted any code.&amp;nbsp;If you have a PDF, I suggest that you use more careful&amp;nbsp;integration techniques. A crude linear approximation will not be an efficient way to compute probabilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the name (or formula) for your bivariate pdf?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 12:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/499869#M4382</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-09-28T12:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500642#M4383</link>
      <description>&lt;P&gt;It is&amp;nbsp; bivariate Lomax distribution (see attachment).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 07:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500642#M4383</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2018-10-02T07:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500659#M4384</link>
      <description>&lt;P&gt;It seems to me that this function has an exact integral, so you don't need to use numerical methods at all. Just integrate w/r/t x from 0 to s and then integrate y from 0 to t to get&amp;nbsp;an analytic expression for the bivariate CDF.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 10:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500659#M4384</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2018-10-02T10:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: can we extend the trapezoidal rule to cover bivariate pdf</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500708#M4385</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 12:30:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/can-we-extend-the-trapezoidal-rule-to-cover-bivariate-pdf/m-p/500708#M4385</guid>
      <dc:creator>Salah</dc:creator>
      <dc:date>2018-10-02T12:30:42Z</dc:date>
    </item>
  </channel>
</rss>

