Skip to content

Commit 2aa0d1a

Browse files
authored
added 2 definitions
1 parent 795d433 commit 2aa0d1a

2 files changed

Lines changed: 84 additions & 0 deletions

File tree

D/corr-samp.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
layout: definition
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2021-12-14 07:23:00
9+
10+
title: "Sample correlation coefficient"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Correlation"
14+
definition: "Sample correlation coefficient"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2021
19+
title: "Pearson correlation coefficient"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2021-12-14"
22+
url: "https://en.wikipedia.org/wiki/Pearson_correlation_coefficient#For_a_sample"
23+
24+
def_id: "D168"
25+
shortcut: "corr-samp"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Definition:** Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ and $y = \left\lbrace y_1, \ldots, y_n \right\rbrace$ be [samples](/D/samp) from [random variables](/D/rvar) $X$ and $Y$. Then, the sample correlation coefficient of $x$ and $y$ is given by
31+
32+
$$ \label{eq:corr-samp}
33+
r_{xy} = \frac{\sum_{i=1}^n (x_i-\bar{x}) (y_i-\bar{y})}{\sqrt{\sum_{i=1}^n (x_i-\bar{x})^2} \sqrt{\sum_{i=1}^n (y_i-\bar{y})^2}}
34+
$$
35+
36+
where $\bar{x}$ and $\bar{y}$ are the [sample means](/D/mean-samp).

D/corrmat-samp.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
layout: definition
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2021-12-14 07:45:00
9+
10+
title: "Sample correlation matrix"
11+
chapter: "General Theorems"
12+
section: "Probability theory"
13+
topic: "Correlation"
14+
definition: "Sample correlation matrix"
15+
16+
sources:
17+
18+
def_id: "D169"
19+
shortcut: "corrmat-samp"
20+
username: "JoramSoch"
21+
---
22+
23+
24+
**Definition:** Let $x = \left\lbrace x_1, \ldots, x_n \right\rbrace$ be a [sample](/D/samp) from a [random vector](/D/rvec) $X \in \mathbb{R}^{p \times 1}$. Then, the sample correlation matrix of $x$ is the matrix whose entries are the [sample correlation coefficients](/D/corr-samp) between pairs of entries of $x_1, \ldots, x_n$:
25+
26+
$$ \label{eq:corrmat-samp-v1}
27+
\mathrm{R}_{xx} =
28+
\begin{bmatrix}
29+
r_{x^{(1)},x^{(1)}} & \ldots & r_{x^{(1)},x^{(n)}} \\
30+
\vdots & \ddots & \vdots \\
31+
r_{x^{(n)},x^{(1)}} & \ldots & r_{x^{(n)},x^{(n)}}
32+
\end{bmatrix}
33+
$$
34+
35+
where the $r_{x^{(j)},x^{(k)}}$ is the [sample correlation](/D/corr-samp) between the $j$-th and the $k$-th entry of $X$ given by
36+
37+
$$ \label{eq:corrmat-samp-v2}
38+
r_{x^{(j)},x^{(k)}} = \frac{\sum_{i=1}^n (x_{ij}-\bar{x}^{(j)}) (x_{ik}-\bar{x}^{(k)})}{\sqrt{\sum_{i=1}^n (x_{ij}-\bar{x}^{(j)})^2} \sqrt{\sum_{i=1}^n (x_{ik}-\bar{x}^{(k)})^2}}
39+
$$
40+
41+
in which $\bar{x}^{(j)}$ and $\bar{x}^{(k)}$ are the [sample means](/D/mean-samp)
42+
43+
$$ \label{eq:mean-samp}
44+
\begin{split}
45+
\bar{x}^{(j)} &= \frac{1}{n} \sum_{i=1}^n x_{ij} \\
46+
\bar{x}^{(k)} &= \frac{1}{n} \sum_{i=1}^n x_{ik} \; .
47+
\end{split}
48+
$$

0 commit comments

Comments
 (0)