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/07/02 17:44:59 UTC
[lucene-solr] branch SOLR-13105-visual updated: SOLR-13105: Curve
fitting WIP3
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 f7f9751 SOLR-13105: Curve fitting WIP3
f7f9751 is described below
commit f7f9751730448d44eb29be17660fc627f4617d6f
Author: Joel Bernstein <jb...@apache.org>
AuthorDate: Tue Jul 2 13:44:53 2019 -0400
SOLR-13105: Curve fitting WIP3
---
solr/solr-ref-guide/src/curve-fitting.adoc | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/solr/solr-ref-guide/src/curve-fitting.adoc b/solr/solr-ref-guide/src/curve-fitting.adoc
index 03b594f..c82d8fd 100644
--- a/solr/solr-ref-guide/src/curve-fitting.adoc
+++ b/solr/solr-ref-guide/src/curve-fitting.adoc
@@ -71,13 +71,16 @@ One of the interesting use cases for `gaussfit` is to visualize how well a regre
model's residuals fit a normal distribution.
One of the characteristics of a well
-fit regression model is that its residuals will ideally fit a normal distribution. In
-the example below the residuals from a `polyfit` regression are modeled with the
+fit regression model is that its residuals will ideally fit a normal distribution. We can
+test this by building a histogram of the residuals and then fitting a gaussian curve to the
+curve of the histogram.
+
+In the example below the residuals from a `polyfit` regression are modeled with the
`hist` function to return a histogram with 32 bins. The `hist` function returns
a list of tuples with statistics about each bin. In the example the `col` function is
-used to return a vector with the `N` column for each bin, which is the number of
+used to return a vector with the `N` column for each bin, which is the count of
observations in the
-bin. If the residuals are normally disitributed we would expect the bin counts
+bin. If the residuals are normally distributed we would expect the bin counts
to roughly follow a gaussian curve to the data.
The bin count vector is then passed to `gaussfit` as the *y* axis. `gaussfit` generates