Questions tagged [correlation-matrix]

A $k\times k$ matrix of correlations between all pairs of $k$ random variables. All its diagonal elements are equal to one.

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

How can one derive the original data from the correlation- or covariance matrix of that data?

How can one derive the original data from the correlation- or covariance matrix of that data? I know the way a new, reduced dataset can be calculated from the correlationmatrix and it’s eigenvectors ...
1
vote
1answer
29 views

Clustering data based on correlation

I have a dataset where each row represents a sample and each sample is described by its chemical composition. You can see the 10 first rows of the dataset in figure 1. Figure 1 - Each row represent a ...
0
votes
0answers
15 views

Optimization of a Correlation Matrix with constraints

I have 4 loss distributions (A,B,C,D) with a certain dependence structure described by a 4x4 correlation matrix. As I'm interested in observing extreme losses behaviour, I calculate, for each ...
4
votes
1answer
52 views

Bounds for common correlation of uncorrelated random variables with another random variable

Suppose we have a random variable $y$ and a collection $(x_1,\dots,x_n)$ of $n$ random variables that are all uncorrelated: $\operatorname{corr}(x_i,x_j) = 0$ $\forall i \ne j$ and that all have the ...
0
votes
1answer
24 views

Correlation matrix: decline in correlation

I performed a correlation matrix with Python. The following variables were included total_equity,net_income,...
1
vote
0answers
24 views

Calculate unbiased standard errors for a regression from latent factor correlations

I have a SEM where various latent variables are correlated with each other. I want to use a subset of these correlations to run a regression. This can be done easily enough to find point estimates, ...
0
votes
0answers
37 views

Correlation Matrix Low Correlations, and Factorability of Data

I’m undertaking doctoral research about behaviours in relationships, for the purpose of developing a new scale. My intention is to undertake Exploratory Factor Analysis to consolidate a large initial ...
0
votes
1answer
163 views

How to determine mse of estimate from correlation matrix of estimate error?

I have a model of an information transmission system Y = XH + N, where X is a diagonal matrix with the transmitted "symbols" (known), H is a column vector which distorts the transmitted symbols and N ...
2
votes
1answer
696 views

Eigenvectors for correlation and covariance matrix PCA

I know the generally reasons of using correlation matrix vs a covariance matrix when doing PCA (and visa versa) however when thinking about the eigenvectors (principal components of the data) of each ...
1
vote
0answers
86 views

Change in eigenvalues due to perturbation to a correlation matrix

Let $A$ be a $m \times n$ matrix defined as $ A = \Big[\frac{a_1}{\|a_1\|} \cdots \frac{a_n}{\|a_n\|}\Big]$ and $a_k \in \mathbb{R}^{m\times 1}$ where $k \in [1,\dots,n]$. Now, we define a ...
1
vote
0answers
37 views

How to simulate random correlation matrix containing off diagonal structures

I want to simulate a correlation matrix which has some off-diagonal structures and also should have some hierarchical structures. For simulating correlation matrices which contain hierarchical ...
1
vote
0answers
104 views

Simulate correlation matrix using a given structure

I want to generate correlation matrix such that it follows the below structure $$\Sigma = B \Lambda B^T $$ where $\Lambda$ is a diagonal matrix containing positive elements, $\Sigma \in R^{n \times n}...
5
votes
1answer
222 views

How do I simulate a random valid correlation matrix of ordinal variables given a list of marginal probabilities?

I am trying to use R to simulate random variations in a real dataset with a known number of categorical and continuous predictor variables, as well as known marginal probabilities for each ordinal/...
16
votes
4answers
2k views

Is it possible that 3 vectors have all negative pairwise correlations?

Given three vectors $a$, $b$, and $c$, is it possible that correlations between $a$ and $b$, $a$ and $c$, and $b$ and $c$ are all negative? I.e. is this possible? \begin{align} \text{corr}(a,b) < ...
3
votes
0answers
2k views

What is the best way to Show a Correlation Matrix as a Cluster/Network Graph in Python? [closed]

I'm struggling because while I want to show the interrelationship of correlation between my fields, I realize that trying to plot nodes in terms of distance away from each other based on correlation ...
2
votes
0answers
165 views

Method to generate random correlation matrices with specified structure.

Within the social sciences there is a popular technique called Factor Analysis and I am interested in generating random correlation matrices that uniformly sample all the space parameterized by one ...
0
votes
1answer
671 views

Help needed with intuition of eigenvalue spectrum of correlation matrix

I wish to get a better understanding of the meaning of the eigenvalues of a correlation matrix I am studying. I have a correlation matrix of noise levels for 10 cells in a wireless network over time....
1
vote
0answers
50 views

How to generate a set of random variables with specific correlations and correlational distributions

I apologize if this question is a bit confusing. Suppose we get to generate an $n \times n$ matrix, $M$, whose values are all between 0 and 1. How can we generate a set of $n$ random variables, $\{...
9
votes
1answer
4k views

Do the Determinants of Covariance and Correlation Matrices and/or Their Inverses Have Useful Interpretations?

While learning to calculate covariance and correlation matrices and their inverses in VB and T-SQL a few years ago, I learned that the various entries have interesting properties that can make them ...
1
vote
2answers
163 views

Cluster analysis using the posterior distribution of a Bayesian correlation matrix

Background and Problem I recently ran a Bayesian multivariate epidemiological meta-analysis on prevalence estimates for several disorders. This analysis included a probit-based model to deal with the ...
1
vote
2answers
2k views

Does using a covariance matrix of scaled and centered variables compare with using a correlation matrix?

I have some data with features which have different units of measurements. Here, by data, I'm trying to say that the row represents the observations and column the features. There are correlations ...
2
votes
1answer
95 views

Correlation matrix for biostatistics [closed]

I want to convert the expression of the genes from an array to a gene correlation matrix, to know the correlation of each gene with the other genes. I have 6 samples, 3 controls and 3 test, is it ...
1
vote
0answers
302 views

correlation matrix test: is this code correct or is it missing a multiple comparisons correction?

I have $m$ variables $x_1,\dots,x_m$, measured in $N$ independent tests $\{x_{i1},\dots,x_{im}\}_{i=1}^N$, leading to the design matrix $X$. I noted that the demo function ...
2
votes
0answers
53 views

Check whether a sample correlation matrix is valid [duplicate]

Is it possible to have the following sample correlation matrix for $x$, $y$, $z$? $\begin{pmatrix} 1 & 0.8 & 0.2 \\ 0.8 & 1 & 0.7\\ 0.2 & 0.7 & 1\end{pmatrix}$ Where a 3 by 3 ...
3
votes
1answer
773 views

Reporting Fisher-transformed Pearson's correlations when the magnitude of difference is relevant

My field regularly demonstrates a certain type of result with pairwise Pearson's correlation matrices between predicted and measured data. As soon as such correlations become high, Fisher-transforming ...
12
votes
3answers
3k views

Is there a serious problem with dropping observations with missing values when computing correlation matrix?

I have this huge data set with like 2500 variables and like 142 observations. I want to run a correlation between Variable X and the rest of the variables. But for many columns, there are entries ...
1
vote
0answers
486 views

How to compare diagonal elements of precision matrix (the inverted correlation matrix)?

Let $$C=\begin{pmatrix}C_{11} & C_{12}\\ C_{21} & C_{22}\end{pmatrix}$$ be a $p\times p$ correlation matrix with positive entries, where $C_{11}$ is a $q\times q$ matrix. Define $D=C^{-1}=(d_{...
4
votes
1answer
125 views

How to randomly generate a positive semidefinite matrix subject to Loewner constraint?

For real, symmetric, positive semidefinite matrices $A$ and $B$, let $\leq_L$ denote the Loewner partial order: $A \leq_L B$ iff $B-A$ is positive semidefinite. Suppose $A$ and $B$ are fixed PSD ...
21
votes
6answers
4k views

Completing a 3x3 correlation matrix: two coefficients of the three given

I was asked this question in an interview. Lets say we have a correlation matrix of the form \begin{bmatrix}1&0.6&0.8\\0.6&1&\gamma\\0.8&\gamma&1\end{bmatrix} I was asked to ...
5
votes
2answers
550 views

With an R function that expects a covariance matrix, can I give it a correlation matrix?

The R function mvrnorm from the MASS package generates random numbers from a multivariate normal distribution. It expects a ...
1
vote
1answer
226 views

Is there a way to reconstitute the unit of measurement in PCA?

I have a data set composed of changes in financial asset prices. Because they are on different levels, e.g., one asset is trading in the 100s, the other in the 5s, the change their prices have vastly ...
3
votes
1answer
316 views

Exact meaning of correlation coefficient

What is the exact meaning of the entries of a correlation coefficients matrix? I have spent time researching this, but could find only approximate interpretations which give me no good understanding ...
2
votes
0answers
704 views

How the Correlation Matrix is built for PCA in Weka?

Just to give a context, I want to use PCA (Principal Component Analysis) to identify which attributes are similar to others, so I can use just one (or a subset) of them. The correlation matrix of n ...
2
votes
1answer
409 views

Covariance Matrix and Correlation Matrix - Singularity

If a covariance matrix is non-singular, does this implies that correlation matrix is also non-singular. My guess is it depends on mean vector in $K_{X} = R_{X} - m_X.{m_X}^H$ Not sure though.
1
vote
0answers
185 views

Correlation Matrix from given R output of Factor Analysis

I carried out a factor analysis of 5 variables using a single factor. How do I estimate the correlation matrix assuming the one factor model holds? The R output is:
4
votes
1answer
1k views

Does it make sense to use PCA when the determinant of the correlation matrix is (almost) zero?

I'm running a PCA over a data set of $N \times p$ size ($N\approx 1000$ being the number of measurements and $p\approx 200$ being the number of dimensions/predictors). I expect many of the predictors ...
3
votes
1answer
1k views

Off-diagonal elements of a correlation matrix after removing the first principal component

I have some data with more variables than observations, that I'd like to subject to a principal components analysis. For didactic reasons (to give an intuition for factor retention criteria under ...
11
votes
3answers
9k views

Is every correlation matrix positive definite?

I'm talking here about matrices of Pearson correlations. I've often heard it said that all correlation matrices must be positive semidefinite. My understanding is that positive definite matrices must ...
2
votes
1answer
722 views

Fisher z-transformation and normality

I have 100 50x50 correlation matrices, which I have all Fisher z-transformed. I understood that this results in the all the entries of one matrix being approximately normally distributed. Questions ...
2
votes
1answer
2k views

Matrix multiplication to find correlation matrix

In this book on matrix factorizations, the author states the following, which I don't find to be true empirically. Is it true and under what conditions? ADD: Trying to recreate the answer in R, what ...
9
votes
2answers
3k views

Does a correlation matrix of two variables always have the same eigenvectors?

I perform Principal Component Analysis using two variables that are standardized. This is done by applying a SVD on the correlation matrix of the concerned variates. However, the SVD gives me the same ...
9
votes
2answers
964 views

Generate symmetric positive definite matrix with a pre-specified sparsity pattern

I am trying to generate a correlation matrix $p\times p$ (symmetric p.s.d) with a pre-specified sparsity structure (specified by a graph on $p$ nodes). The nodes that are connected in the graph have ...
6
votes
2answers
2k views

Is a weighted average of two correlation matrices again a correlation matrix?

Let $R$ and $Q$ be two correlation matrices of the same size and let $p\in[0,1]$. I'm trying to show that $pR+(1-p)Q$ is still a correlation matrix. I claim that $\sqrt pX+\sqrt{1-p}Y$ is a random ...
6
votes
3answers
3k views

Is every correlation matrix positive semi-definite?

I am generating correlation matrix by some new algorithm. Generated matrix is non positive semi-definite matrix. I'm getting a few negative eigenvalues. The rest of eigenvalues are quite equal to the ...
25
votes
5answers
12k views

How to generate a large full-rank random correlation matrix with some strong correlations present?

I would like to generate a random correlation matrix $\mathbf C$ of $n \times n$ size such that there are some moderately strong correlations present: square real symmetric matrix of $n \times n$ ...
6
votes
1answer
935 views

Diagonal elements of the inverted correlation matrix

Is it true that the diagonal elements of the inverted correlation matrix will always be larger than 1? Why?
9
votes
1answer
974 views

Quantifying how much “more correlation” a correlation matrix A contains compared to a correlation matrix B

I have 2 correlation matrices $A$ and $B$ (using the Pearson's linear correlation coefficient through Matlab's corrcoef()). I would like to quantify how much "more correlation" $A$ contains compared ...
1
vote
2answers
926 views

Permutation tests of correlation matrix in R , which correlations are significant?

As in the title, I have a correlation matrix available with cor() function: corMatrix <- cor(mydata) ...
33
votes
4answers
14k views

Bound for the correlation of three random variables

There are three random variables, $x,y,z$. The three correlations between the three variables are the same. That is, $$\rho=\textrm{cor}(x,y)=\textrm{cor}(x,z)=\textrm{cor}(y,z)$$ What is the ...
39
votes
3answers
43k views

Why does correlation matrix need to be positive semi-definite and what does it mean to be or not to be positive semi-definite?

I have been researching the meaning of positive semi-definite property of correlation or covariance matrices. I am looking for any information on Definition of positive semi-definiteness; Its ...