You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jb...@apache.org on 2019/10/07 22:01:10 UTC

[lucene-solr] branch SOLR-13105-visual updated: SOLR-13105: Inprove correlation docs

This is an automated email from the ASF dual-hosted git repository.

jbernste pushed a commit to branch SOLR-13105-visual
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/SOLR-13105-visual by this push:
     new 0577ecc  SOLR-13105: Inprove correlation docs
0577ecc is described below

commit 0577eccb02ca2848a6912e2bdfba455cc2e62a26
Author: Joel Bernstein <jb...@apache.org>
AuthorDate: Mon Oct 7 18:00:51 2019 -0400

    SOLR-13105: Inprove correlation docs
---
 .../src/images/math-expressions/corrmatrix.png     | Bin 0 -> 364527 bytes
 solr/solr-ref-guide/src/statistics.adoc            |  45 ++++++++++++---------
 2 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/solr/solr-ref-guide/src/images/math-expressions/corrmatrix.png b/solr/solr-ref-guide/src/images/math-expressions/corrmatrix.png
new file mode 100644
index 0000000..786cb0c
Binary files /dev/null and b/solr/solr-ref-guide/src/images/math-expressions/corrmatrix.png differ
diff --git a/solr/solr-ref-guide/src/statistics.adoc b/solr/solr-ref-guide/src/statistics.adoc
index 4cad295..245f370 100644
--- a/solr/solr-ref-guide/src/statistics.adoc
+++ b/solr/solr-ref-guide/src/statistics.adoc
@@ -357,11 +357,35 @@ has a steeper slope. The higher standard deviation creates a steeper slope
 because the percentile values are are dispersed farther from the mean.
 
 
-== Covariance and Correlation
+== Correlation and Covariance
 
 Covariance and Correlation measure how random variables fluctuate
 together.
 
+=== Correlation and Correlation Matrices
+
+Correlation is covariance that has been scaled between
+-1 and 1.
+
+Three correlation types are supported:
+
+* *pearsons* (default)
+* *kendalls*
+* *spearmans*
+
+The type of correlation is specified by adding the *type* named parameter in the
+function call. The example below demonstrates the use of the `corr` function with
+the *type* named parameter.
+
+image::images/math-expressions/correlation.png[]
+
+Like the `cov` function, the `corr` function automatically builds a correlation matrix
+if a matrix is passed as a parameter. The correlation matrix is built by correlating the columns
+of the matrix passed in.
+
+image::images/math-expressions/corrmatrix.png[]
+
+
 === Covariance and Covariance Matrices
 
 The `cov` function calculates the covariance of two vectors of data.
@@ -430,26 +454,7 @@ in the following format:
 
 The covariance matrix is always square. So a covariance matrix created from 3 vectors will produce a 3 x 3 matrix.
 
-=== Correlation and Correlation Matrices
-
-Correlation is covariance that has been scaled between
--1 and 1.
 
-Three correlation types are supported:
-
-* *pearsons* (default)
-* *kendalls*
-* *spearmans*
-
-The type of correlation is specified by adding the *type* named parameter in the
-function call. The example below demonstrates the use of the `corr` function with
-the *type* named parameter.
-
-image::images/math-expressions/correlation.png[]
-
-Like the `cov` function, the `corr` function automatically builds a correlation matrix
-if a matrix is passed as a parameter. The correlation matrix is built by correlating the columns
-of the matrix passed in.
 
 == Statistical Inference Tests