<?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 This quote is from http://en in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023891#M19813</link>
    <description>&lt;P&gt;This quote is from&amp;nbsp;http://en.wikipedia.org/wiki/Positive-definite_matrix under "Connections".&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In statistics, the covariance matrix of a multivariate probability distribution is always positive semi-definite; and it is positive definite unless one variable is an exact linear combination of the others. Conversely, every positive semi-definite matrix is the covariance matrix of some multivariate distribution.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;You can easily check whether your specific matrix is positive definite or not. Hand it to the Cholesky factorization routine. If the routine fails, the matrix is either semi-definite or indefinite. In the former case, adding λ&lt;STRONG&gt;I&amp;nbsp;&lt;/STRONG&gt;with different trial values of the multiplier &lt;SPAN style="font-size: 21.1380004882813px;"&gt;λ&amp;nbsp;&lt;/SPAN&gt;can be tried, or your client could investigate whether the model variables were properly selected. The latter case (indefinite matrix) should not occur if the covariance matrix was properly calculated (years ago, some versions of Excel sometimes yielded negative values for a computed variance).&lt;/P&gt;</description>
    <pubDate>Fri, 27 Feb 2015 13:09:00 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2015-02-27T13:09:00Z</dc:date>
    <item>
      <title>Modified Cholesky factorisation</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023888#M19810</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm using MKL to calculate Cholesky factorisation of a covariance matrix. MKL (?POTRF function) is of course much faster than my own naiive implementation (input: 6500x6500 matrix), however there is a problem. Our client requires a *modified* version of the algorithm (below - custom minimum conditions) and therefore MKL gives different results.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;After I remove the custom minimum conditions (&amp;lt;0.001) from my implementation, both algorithms give *perfectly* equal results.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Is it possible to force MKL to respect these custom conditions somehow? Thanks for any help.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="cholesky.png"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/7335iF655CEC92ADC10A8/image-size/large?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="cholesky.png" alt="cholesky.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 10:25:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023888#M19810</guid>
      <dc:creator>Bartłomiej_K_</dc:creator>
      <dc:date>2015-02-26T10:25:47Z</dc:date>
    </item>
    <item>
      <title>These "custom conditions" are</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023889#M19811</link>
      <description>&lt;P&gt;These "custom conditions" are arbitrary and capricious, and you can satisfy them by simply rescaling the matrix with a constant multiplier if the matrix is positive definite. To inflict an arbitrary change such as this upon the unsuspecting users of a widely used library such as MKL would not be acceptable.&lt;/P&gt;

&lt;P&gt;Before forcing MKL to "respect" these conditions, one has to establish that the conditions deserve respect.&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Please give a logical justification for the criterion, if possible, along with references.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Cholesky factorization applies only to positive definite matrices, whereas covariance matrices &lt;/SPAN&gt;&lt;IMG alt=" \Sigma \," class="mwe-math-fallback-image-inline tex" src="http://upload.wikimedia.org/math/c/b/4/cb4efae84f23aaf41fa73a2bf19e9068.png" style="border-style: none; vertical-align: middle; display: inline-block; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 22.75px; line-height: 29.1200008392334px;" /&gt;&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;are only positive semi-definite. If you can justify using &lt;/SPAN&gt;&lt;IMG alt=" \Sigma \," class="mwe-math-fallback-image-inline tex" src="http://upload.wikimedia.org/math/c/b/4/cb4efae84f23aaf41fa73a2bf19e9068.png" style="border-style: none; vertical-align: middle; display: inline-block; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 22.75px; line-height: 29.1200008392334px;" /&gt;&amp;nbsp;+ λ&amp;nbsp;I in your application, simply add&amp;nbsp;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 21.1380004882813px;"&gt;λ&lt;/SPAN&gt;&lt;SPAN style="font-size: 21.1380004882813px;"&gt;&amp;nbsp;&lt;/SPAN&gt;to the diagonal elements of&amp;nbsp;&lt;IMG alt=" \Sigma \," class="mwe-math-fallback-image-inline tex" src="http://upload.wikimedia.org/math/c/b/4/cb4efae84f23aaf41fa73a2bf19e9068.png" style="border-style: none; vertical-align: middle; display: inline-block; color: rgb(37, 37, 37); font-family: sans-serif; font-size: 22.75px; line-height: 29.1200008392334px;" /&gt;&amp;nbsp;before calling &lt;STRONG&gt;?potrf&lt;/STRONG&gt;. Such a correction is, in fact, used with justification in optimization algorithms.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Feb 2015 18:44:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023889#M19811</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-02-26T18:44:00Z</dc:date>
    </item>
    <item>
      <title>Thank you for responding.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023890#M19812</link>
      <description>&lt;P&gt;Thank you for responding.&lt;/P&gt;

&lt;P&gt;These conditions are required by the Client, to "assure the numerical stability" of the results. We cannot change them. Perhaps it will become more clear if I present the entire problem.&lt;/P&gt;

&lt;P&gt;There are 2 input matrices 80rows x 90columns. First one, "R", represents the strength of rain in each cells, with values &amp;lt;0;50&amp;gt;. The second one, "QI", the quality of measurement from range &amp;lt;0;1&amp;gt;.&lt;/P&gt;

&lt;P&gt;The first step of the algorithm calculates the errors of the rain field D, using the equation: D[i,j] = R[i,j] * (1-Q[i,j])&lt;/P&gt;

&lt;P&gt;Second step: we calculate matrix "A" (80*90 x 80*90), representing the covariance of the rain field errors. The equations are:&lt;/P&gt;

&lt;P&gt;A[i,j] = var(di) when i = j, cov(di,dj) when i &amp;lt;&amp;gt; j&lt;BR /&gt;
	di is the cell of matrix D, however calculated as row-wise index from the beginning (like in memory index).&lt;/P&gt;

&lt;P&gt;This matrix is the input to the Cholesky part. As far as I understand it, it is always positive definite.&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 09:02:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023890#M19812</guid>
      <dc:creator>Bartłomiej_K_</dc:creator>
      <dc:date>2015-02-27T09:02:20Z</dc:date>
    </item>
    <item>
      <title>This quote is from http://en</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023891#M19813</link>
      <description>&lt;P&gt;This quote is from&amp;nbsp;http://en.wikipedia.org/wiki/Positive-definite_matrix under "Connections".&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;In statistics, the covariance matrix of a multivariate probability distribution is always positive semi-definite; and it is positive definite unless one variable is an exact linear combination of the others. Conversely, every positive semi-definite matrix is the covariance matrix of some multivariate distribution.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;You can easily check whether your specific matrix is positive definite or not. Hand it to the Cholesky factorization routine. If the routine fails, the matrix is either semi-definite or indefinite. In the former case, adding λ&lt;STRONG&gt;I&amp;nbsp;&lt;/STRONG&gt;with different trial values of the multiplier &lt;SPAN style="font-size: 21.1380004882813px;"&gt;λ&amp;nbsp;&lt;/SPAN&gt;can be tried, or your client could investigate whether the model variables were properly selected. The latter case (indefinite matrix) should not occur if the covariance matrix was properly calculated (years ago, some versions of Excel sometimes yielded negative values for a computed variance).&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2015 13:09:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Modified-Cholesky-factorisation/m-p/1023891#M19813</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2015-02-27T13:09:00Z</dc:date>
    </item>
  </channel>
</rss>

