<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Random Correlation Matrices</title>
	<atom:link href="http://www.algorithm-forge.com/techblog/2009/08/random-correlation-matrices/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.algorithm-forge.com/techblog/2009/08/random-correlation-matrices/</link>
	<description>Java, R, Statistics, Algorithms and other stuff</description>
	<lastBuildDate>Thu, 20 Oct 2011 18:02:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jorge Durango</title>
		<link>http://www.algorithm-forge.com/techblog/2009/08/random-correlation-matrices/comment-page-1/#comment-565</link>
		<dc:creator>Jorge Durango</dc:creator>
		<pubDate>Mon, 11 Oct 2010 05:23:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=56#comment-565</guid>
		<description>Can you help me to improve this algorithm did in R

&lt;code&gt;
# Descriptive measures of multivariate scatter and linear dependence
 hp = function(p){
 #x&lt;-seq(0.01,2.99,length=30)
 #malla&lt;-expand.grid(x,x) ### Malla (0,3)^2
 ### Parametros de la distribución beta (ai,Bi)
 alfa1&lt;-runif(900,0,3)
 beta2&lt;-runif(900,0,3)
 malla&lt;-cbind(alfa1,beta2) ### (0,3)^2
 bet&lt;-function(x) rbeta(p,x[1],x[2])  ### Generación aleatoria de la distribución Beta
 vp&lt;-apply(malla,1,bet) ### Valores propios 
 sumas&lt;-apply(vp,2,sum)
 vpN&lt;-p*vp/matrix(sumas,ncol=900,nrow=p,byrow=T)   ### Valores propios normalizados
 dete&lt;-apply(vpN,2,prod)
 De&lt;- 1-(dete)^(1/p)
 f1=0.7)/p  ### escogencia del numero de componentes principales
 propor&lt;-apply(vpN,2,f1)
 list(&quot;De&quot; = De, &quot;hsp&quot; = propor)
 }
 hsp&lt;-De&lt;-numeric(0)
 for(i in seq(40,440,40)){
  hspi&lt;-hp(i)
  hsp&lt;-c(hsp,hspi$hsp)
  De&lt;-c(De,hspi$De)
 }
hsp; De
plot(hsp~De, pch=20,ylab=&quot;h/p&quot;,xlab=&quot;De(X)&quot;) ### se observa que la relacion emtre h/p y De es un Sigmoideo
### La función sigmoide: Su gráfica tiene una típica forma de &quot;S&quot;. 
### A menudo la función sigmoide se refiere al caso particular de la función logística 
### Aproximacion del modelo lineal
AML&lt;-aov(hsp~De)
AML$coefficients
summary(AML)
plot(De,hsp,pch=20, ylab=&quot;h/p&quot;,xlab=&quot;De(X)&quot;,xlim=c(0.1,0.9))
abline(lm(hsp~De),v=c(0.1,0.9))
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Can you help me to improve this algorithm did in R</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># Descriptive measures of multivariate scatter and linear dependence<br />
&nbsp;hp = function(p){<br />
&nbsp;#x&amp;lt;-seq(0.01,2.99,length=30)<br />
&nbsp;#malla&amp;lt;-expand.grid(x,x) ### Malla (0,3)^2<br />
&nbsp;### Parametros de la distribución beta (ai,Bi)<br />
&nbsp;alfa1&amp;lt;-runif(900,0,3)<br />
&nbsp;beta2&amp;lt;-runif(900,0,3)<br />
&nbsp;malla&amp;lt;-cbind(alfa1,beta2) ### (0,3)^2<br />
&nbsp;bet&amp;lt;-function(x) rbeta(p,x[1],x[2]) &nbsp;### Generación aleatoria de la distribución Beta<br />
&nbsp;vp&amp;lt;-apply(malla,1,bet) ### Valores propios <br />
&nbsp;sumas&amp;lt;-apply(vp,2,sum)<br />
&nbsp;vpN&amp;lt;-p*vp/matrix(sumas,ncol=900,nrow=p,byrow=T) &nbsp; ### Valores propios normalizados<br />
&nbsp;dete&amp;lt;-apply(vpN,2,prod)<br />
&nbsp;De&amp;lt;- 1-(dete)^(1/p)<br />
&nbsp;f1=0.7)/p &nbsp;### escogencia del numero de componentes principales<br />
&nbsp;propor&amp;lt;-apply(vpN,2,f1)<br />
&nbsp;list(&amp;quot;De&amp;quot; = De, &amp;quot;hsp&amp;quot; = propor)<br />
&nbsp;}<br />
&nbsp;hsp&amp;lt;-De&amp;lt;-numeric(0)<br />
&nbsp;for(i in seq(40,440,40)){<br />
&nbsp; hspi&amp;lt;-hp(i)<br />
&nbsp; hsp&amp;lt;-c(hsp,hspi$hsp)<br />
&nbsp; De&amp;lt;-c(De,hspi$De)<br />
&nbsp;}<br />
hsp; De<br />
plot(hsp~De, pch=20,ylab=&amp;quot;h/p&amp;quot;,xlab=&amp;quot;De(X)&amp;quot;) ### se observa que la relacion emtre h/p y De es un Sigmoideo<br />
### La función sigmoide: Su gráfica tiene una típica forma de &amp;quot;S&amp;quot;. <br />
### A menudo la función sigmoide se refiere al caso particular de la función logística <br />
### Aproximacion del modelo lineal<br />
AML&amp;lt;-aov(hsp~De)<br />
AML$coefficients<br />
summary(AML)<br />
plot(De,hsp,pch=20, ylab=&amp;quot;h/p&amp;quot;,xlab=&amp;quot;De(X)&amp;quot;,xlim=c(0.1,0.9))<br />
abline(lm(hsp~De),v=c(0.1,0.9))</div></div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kornelius Rohmeyer</title>
		<link>http://www.algorithm-forge.com/techblog/2009/08/random-correlation-matrices/comment-page-1/#comment-522</link>
		<dc:creator>Kornelius Rohmeyer</dc:creator>
		<pubDate>Thu, 23 Sep 2010 12:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=56#comment-522</guid>
		<description>Take a look at HOLMES or BENDEL AND MICKEY which are proposing the following:

Start with a diagonal matrix with the eigenvalues you are looking for:

D &lt;- diag(rbeta(p,a,b))

Then take a random orthogonal matrix M and create B=MDM&#039;. This matrix will be unfortunately no correlation matrix. Therefore determine a product of elementary orthogonal rotation matrices P such that PBP&#039; has only &#039;ones&#039; along the diagonal. This is then a random correlation matrix with the wanted spectrum.</description>
		<content:encoded><![CDATA[<p>Take a look at HOLMES or BENDEL AND MICKEY which are proposing the following:</p>
<p>Start with a diagonal matrix with the eigenvalues you are looking for:</p>
<p>D <- diag(rbeta(p,a,b))</p>
<p>Then take a random orthogonal matrix M and create B=MDM&#8217;. This matrix will be unfortunately no correlation matrix. Therefore determine a product of elementary orthogonal rotation matrices P such that PBP&#8217; has only &#8216;ones&#8217; along the diagonal. This is then a random correlation matrix with the wanted spectrum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jorge Durango Borja</title>
		<link>http://www.algorithm-forge.com/techblog/2009/08/random-correlation-matrices/comment-page-1/#comment-516</link>
		<dc:creator>Jorge Durango Borja</dc:creator>
		<pubDate>Sun, 19 Sep 2010 04:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.algorithm-forge.com/techblog/?p=56#comment-516</guid>
		<description>Excuse my Englishman I am of colombia believe that you can help me with this:
We want to study the relationship between the De of the sample and the proportion of components, h/p; needed to explain 90% of the total variability. We carried out a simulation study by generating random correlation matrices of dimension p as follows:

1. the eigenvalues of the correlation matrix are drawn from a Beta(a, b)  distribution, with  a and b chosen froma grid in the interval (0,3)^2; obtaining 900 pairs of parameters a, b.

2. The values are normalized so that their sum is p: For each fixed value p; we generated 900 matrices. This process was performed for p=40, 80...440; so that 9900 correlation matrices were generated in total.

For each one of these matrices, we calculate (h/p)e[0,1] and the De(X): We observed that the relation between (h/p) and De(X)  is a sigmoid, but in the interval De(X)e[0.1; 0.9]  we can approximate it by the linear relation
h/p= 0.8230 -0.492De(X)</description>
		<content:encoded><![CDATA[<p>Excuse my Englishman I am of colombia believe that you can help me with this:<br />
We want to study the relationship between the De of the sample and the proportion of components, h/p; needed to explain 90% of the total variability. We carried out a simulation study by generating random correlation matrices of dimension p as follows:</p>
<p>1. the eigenvalues of the correlation matrix are drawn from a Beta(a, b)  distribution, with  a and b chosen froma grid in the interval (0,3)^2; obtaining 900 pairs of parameters a, b.</p>
<p>2. The values are normalized so that their sum is p: For each fixed value p; we generated 900 matrices. This process was performed for p=40, 80&#8230;440; so that 9900 correlation matrices were generated in total.</p>
<p>For each one of these matrices, we calculate (h/p)e[0,1] and the De(X): We observed that the relation between (h/p) and De(X)  is a sigmoid, but in the interval De(X)e[0.1; 0.9]  we can approximate it by the linear relation<br />
h/p= 0.8230 -0.492De(X)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

