DBCOLSCORRELATE(1)
π dbcolscorrelate(1) β find the coefficient of correlation over columns π
okay bestie, welcome to the dbcolscorrelate(1) manual from the User Contributed Perl Documentation crew β¨ this is the correlation girlie, and we're gonna make it make sense. π
πΈ NAME πΈ
dbcolscorrelate β find the coefficient of correlation over columns π
π¦ SYNOPSIS π¦
dbcolscorrelate column1 column2 [column3...]
β¨ DESCRIPTION β¨
So like, this computes the Pearson coefficient of correlation over two (or more) columns. Iconic. π
The output is literally one line of correlations.
With exactly two columns, a new column correlation is created. slay.
With more than two columns, correlations are computed for each pairwise combination of rows, and each output column gets a name that's the concatenation of the two source rows, joined with an underscore. periodt.
By default, we compute the population correlation coefficient (usually designated rho, Ο) and assume we see all members of the population. With the --sample option we instead compute the sample correlation coefficient, usually designated r. π«Ά
β οΈ Careful, bestie: the default here is full-population, and that is the opposite of the default in dbcolstats. not me warning you twice π
π§ Heads up: this program requires a complete copy of the input data on disk.
π OPTIONS π
--sampleβ selects the sample Pearson product-moment correlation coefficient (the βsample correlation coefficientβ, usually designatedr). π--no-sampleβ selects the Pearson product-moment correlation coefficient (the βcorrelation coefficientβ, usually designatedΟ). π--weight COLβ weights the correlation by columnCOL.-f FORMATor--format FORMATβ gives aprintf(3)-style format for output statistics. Defaults to"%.5g". β¨-T TmpDirβ where to put tmp files. Also uses environment variableTMPDIR, if-Tis not specified. Default is/tmp. π
This module also supports the standard fsdb options:
-dβ enable debugging output.-ior--input InputSourceβ read fromInputSource, typically a file name, or"-"for standard input, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.-oor--output OutputDestinationβ write toOutputDestination, typically a file name, or"-"for standard output, or (if in Perl) aIO::Handle,Fsdb::IOorFsdb::BoundedQueueobjects.--autorunor--noautorunβ by default, programs process automatically, butFsdb::Filterobjects in Perl do not run until you invoke therun()method. The"--(no)autorun"option controls that behavior within Perl.--helpβ show help.--manβ show full manual.
π SAMPLE USAGE π
π Input:
#fsdb i_x i_y
10.0 8.04
8.0 6.95
13.0 7.58
9.0 8.81
11.0 8.33
14.0 9.96
6.0 7.24
4.0 4.26
12.0 10.84
7.0 4.82
5.0 5.68
π Command:
cat TEST/anscombe_quartet.in | dbcolscorrelate i_x i_y
π« Output:
#fsdb correlation:d
0.81642
# | dbcolscorrelate i_x i_y
π₯ SEE ALSO π₯
go peek at these too, bestie:
Fsdbdbcolstatscoresdbcolsregressiondbrvstatdiff
π AUTHOR and COPYRIGHT π
Copyright (C) 1998-2024 by John Heidemann <johnh@isi.edu> π
This program is distributed under terms of the GNU general public license, version 2. See the file COPYING with the distribution for details.
made with π by the manual fairy β perl v5.32.1, dated 2024-08-02 β mwah! π«Ά
π¦ where this page comes from
- epel 9: perl-Fsdb 2:3.9-1.el9 Β· GPLv2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms