GBACORR(1) User Commands GBACORR(1)

# NAME¶

gbacorr - Compute auto/cross-correlation coefficients

# SYNOPSIS¶

gbacorr [options]

# DESCRIPTION¶

Compute auto/cross-correlation coefficients

If the input is a single columns x_1...X_T, the autocorrelation function c(t) is printed, 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 the standard deviation. With a second column y_1...y_T, the cross-correlation

c_{t} = 1/(T-t-1) \sum_i (x_i-mx) (y_{i+t}-my) /(sx sy)

is printed where mx and my are the average values of the two columns and sx and sy their standard deviations. With -M 1 it is mx=my=0, the st.dev. is computed accordingly and in the previous formula T-t-1 is replaced by T-t. The range of t is set by option -t. Options

-M
choose the method (default '0'):
0
auto/cross-correlation with mean removal,
1
auto/cross-correlation without mean removal
-t
set range of t (default '0,10'), accept negative integers
-p
specify the confidence level in (0,1). Interval ac_low,ac_hi has a probability 1-confidence to 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¶

gbacorr -t 0,2 'file(1)'
first three a.c. coeff. of the first data column
gbacorr -p 0.05 'file(1:2)' x-corr of the first two columns together with
their 5% confidence intervals

# AUTHOR¶

Written by Giulio Bottazzi
{"ft_lang_label":"__label__en","ft_lang_prob":0.6708542,"math_prob":0.8977881,"size":2114,"snap":"2021-31-2021-39","text_gpt3_token_len":609,"char_repetition_ratio":0.102843605,"word_repetition_ratio":0.00625,"special_character_ratio":0.27010408,"punctuation_ratio":0.10948905,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9933664,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-07-29T17:42:59Z\",\"WARC-Record-ID\":\"<urn:uuid:00e77c52-9a36-4ef1-a2b4-baaee0a1b9b8>\",\"Content-Length\":\"23126\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c4212f6d-ab12-4930-8cf9-b1b1e700da71>\",\"WARC-Concurrent-To\":\"<urn:uuid:7f913470-749b-4152-a578-92776cfbc9ce>\",\"WARC-IP-Address\":\"128.31.0.62\",\"WARC-Target-URI\":\"https://manpages.debian.org/testing/gbutils/gbacorr.1.en.html\",\"WARC-Payload-Digest\":\"sha1:JRJF3OUDFIOXYCUQRKBS3E6OILAFZAL4\",\"WARC-Block-Digest\":\"sha1:2PASJ63MKC3VRMS6BTPEPVKGPZAET5S5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-31/CC-MAIN-2021-31_segments_1627046153892.74_warc_CC-MAIN-20210729172022-20210729202022-00127.warc.gz\"}"}