Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

@wikipedia


For sample sets of two statistical variables 

LaTeX Math Inline
body--uriencoded--x=\%7Bx_i \, %7C \, i=1..n \%7D
 and 
LaTeX Math Inline
body--uriencoded--y=\%7By_i \, %7C \, i=1..n \%7D
:

LaTeX Math Block
anchor8S722
alignmentleft
\rho_P(x,y) = \frac{{\rm cov}(x,y)}{\sigma(x) \sigma(y)} =  \frac{ \sum\limits^n_{i=1} (x_i - \bar x)( y_i - \bar y)}{\sqrt{\sum\limits_i (x_i - \bar x)} \cdot \sqrt{\sum\limits_i (y_i - \bar y)}}  

where

where

LaTeX Math Inline
body--uriencoded--\displaystyle \bar x = \frac%7B1%7D%7Bn%7D \sum\limits_%7Bi=1%7D%5en x_i

sample mean of variable 

LaTeX Math Inline
bodyx

LaTeX Math Inline
body--uriencoded--\displaystyle \bar y = \frac%7B1%7D%7Bn%7D \sum\limits_%7Bi=1%7D%5en y_i

sample mean of variable 

LaTeX Math Inline
bodyy

LaTeX Math Inline
bodyx=\{ x_1, \, x_2, \, ... x_n \}
and
LaTeX Math Inline
bodyy=\{ y_1, \, y_2, \, ... y_n \}

finite arrays of

LaTeX Math Inline
bodyx
-variable and
LaTeX Math Inline
bodyy
-variable values

LaTeX Math Inline
body{\rm cov}(x,y)

covariance between

LaTeX Math Inline
bodyx
-variable and
LaTeX Math Inline
bodyy
-variable

LaTeX Math Inline
body\sigma(x)
,
LaTeX Math Inline
body\sigma(y)

standard deviation of

LaTeX Math Inline
bodyx
-variable and
LaTeX Math Inline
bodyy
-variable

...