GBACORR(1)
π NAME π
gbacorr β bestie, it computes auto/cross-correlation coefficients. that's the whole job. she's booked, she's busy, she's doing math β¨
π SYNOPSIS π
gbacorr [options]
π¦ DESCRIPTION π¦
okay so. gbacorr computes auto/cross-correlation coefficients. she's not complicated, she's just precise. π
If your input is a single column x_1...X_T, then the autocorrelation function c(t) gets printed, and it's defined as:
c_{t} = 1/(T-t-1) \sum_i (x_i-m) (x_{i+t}-m) /s^2
where m is the sample average and s is the standard deviation. (yes we're doing real stats, no cap π«Ά)
Now if you bring a second column y_1...y_T, the cross-correlation gets printed instead:
c_{t} = 1/(T-t-1) \sum_i (x_i-mx) (y_{i+t}-my) /(sx sy)
where mx and my are the average values of the two columns and sx and sy are their standard deviations. iconic, honestly.
β¨ but wait β with-M 1it'smx=my=0, the st.dev. is computed accordingly, and in the previous formulaT-t-1is replaced byT-t. yes, the formula lowkey changes shape. read that twice bestie.
The range of t is set by option -t.
And then we got options. here we go:
β¨ OPTIONS β¨
-Mβ choose the method (default'0'):
0 β auto/cross-correlation with mean removal,
1 β auto/cross-correlation without mean removal
-tβ set range oft(default'0,10'), accept negative integers-pβ specify the confidence level in(0,1). Intervalac_low,ac_hihas a probability1-confidenceto contain the true value. With this option the output becomes:lag ac ac_low ac_hi.-Fβ specify the input fields separators (default" \t")-hβ this help
π EXAMPLES π
okay so these are the moments where it all comes together π
gbacorr -t 0,2 'file(1)'
first three a.c. coeff. of the first data column. periodt. π
gbacorr -p 0.05 'file(1:2)' x-corr of the first two columns together with
their 5% confidence intervals π (yes, that example line wraps exactly like that, we don't make the rules)
πΈ AUTHOR πΈ
Written by Giulio Bottazzi π
π REPORTING BUGS π
Report bugs to <gbutils@googlegroups.com>
Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>
π COPYRIGHT π
Copyright Β© 2001-2018 Giulio Bottazzi This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
π bestie the all-caps warranty disclaimer is not me being dramatic, that's literally how it's written. no warranty fr fr.
and that's the whole page!! π this was gbacorr 6.2, from June 2021 β mwah, take care of her, she's a classic πβ¨
π¦ where this page comes from
- debian bookworm: gbutils 6.3-1 Β· GPL-2.0-or-later
- debian trixie: gbutils 6.3-1+b1 Β· GPL-2.0-or-later
- ubuntu noble: gbutils 6.3-1 Β· GPL-2.0-or-later
- ubuntu questing: gbutils 6.3-1build1
- ubuntu resolute: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- ubuntu stonking: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms