Free Statistics

of Irreproducible Research!

Author's title

Author*The author of this computation has been verified*
R Software Modulerwasp_cross.wasp
Title produced by softwareCross Correlation Function
Date of computationMon, 05 Jul 2021 04:28:02 +0200
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2021/Jul/05/t16254523076tl4hsmytbkg8ol.htm/, Retrieved Sat, 04 May 2024 14:24:17 +0200
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=, Retrieved Sat, 04 May 2024 14:24:17 +0200
QR Codes:

Original text written by user:Mstx vs spot basis in JJAS, since 2014
IsPrivate?This computation is/was private until YYYY-MM-DD
User-defined keywords
Estimated Impact0
Dataseries X:
849.46
911.93
984.20
946.65
969.18
899.54
988.84
880.13
836.42
876.78
868.84
863.87
885.55
792.98
785.66
729.56
672.49
493.21
576.50
679.14
739.60
710.26
719.43
786.23
832.74
833.73
821.45
764.06
807.42
828.93
804.86
766.85
758.54
711.30
795.33
745.38
703.52
695.08
729.65
741.11
778.90
953.28
1029.75
784.60
890.59
919.01
883.12
781.78
670.40
686.87
649.08
565.85
1279.62
1240.37
1232.59
1269.13
1132.67
1116.30
1201.30
1302.47
1314.46
1242.01
1187.80
1111.50
1092.00
997.42
965.39
949.20
933.82
888.22
1248.47
1249.77
1290.07
1406.03
1446.90
1494.10
1494.48
1427.50
1431.89
1345.15
1283.16
1382.74
1309.63
1265.04
1123.16
1012.05
939.90
988.92
763.31
796.35
914.30
994.83
977.79
956.73
908.42
932.47
913.67
915.07
895.93
826.27
876.35
853.76
827.65
816.91
739.92
754.61
876.80
1030.65
1093.61
1111.43
1062.86
1082.70
1074.12
1083.63
1140.90
1228.01
1313.60
1347.50
1342.30
1256.90
1265.07
1297.37
943.73
1043.49
1201.53
1149.40
914.00
Dataseries Y:
65.0
55.3
53.0
31.3
27.7
62.3
42.7
18.3
33.3
-8.7
7.3
-12.3
31.7
20.0
13.3
418.7
448.3
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
20.0
100.0
93.3
150.0
160.0
115.0
100.0
110.0
111.7
90.0
86.7
60.0
75.0
76.7
221.7
250.0
286.7
370.0
400.0
-13.3
0.0
-1.7
-10.0
-8.3
-11.7
-16.7
-20.0
-25.8
-1.7
5.0
6.7
15.0
43.3
66.7
86.7
95.0
111.7
-95.0
-108.3
-143.3
-108.3
-131.7
-70.0
-76.7
-125.0
-106.7
-90.0
-81.7
-35.0
50.0
90.0
91.7
123.3
98.3
110.0
23.3
6.7
-21.7
-30.0
-51.7
-56.7
-40.0
-31.7
-31.7
-30.0
-25.0
-10.0
36.7
55.0
63.3
55.0
61.7
-140.0
-150.0
-153.3
-145.0
-101.7
-60.0
-25.0
1.7
26.7
28.3
-27.5
-53.3
-58.3
-60.0
-75.0
-53.3
-50.0
-53.3
-90.0
-45.0
-36.7
-48.3




Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input view raw input (R code)  \tabularnewline
Raw Outputview raw output of R engine  \tabularnewline
Computing time0 seconds \tabularnewline
R ServerBig Analytics Cloud Computing Center \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&T=0

[TABLE]
[ROW]
Summary of computational transaction[/C][/ROW] [ROW]Raw Input[/C] view raw input (R code) [/C][/ROW] [ROW]Raw Output[/C]view raw output of R engine [/C][/ROW] [ROW]Computing time[/C]0 seconds[/C][/ROW] [ROW]R Server[/C]Big Analytics Cloud Computing Center[/C][/ROW] [/TABLE] Source: https://freestatistics.org/blog/index.php?pk=&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&T=0

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Summary of computational transaction
Raw Input view raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R ServerBig Analytics Cloud Computing Center







Cross Correlation Function
ParameterValue
Box-Cox transformation parameter (lambda) of X series1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series0
Seasonal Period (s)1
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series0
krho(Y[t],X[t+k])
-18-0.343712414694079
-17-0.312034521884802
-16-0.315671971304314
-15-0.30469640948659
-14-0.25512578023966
-13-0.215859913414152
-12-0.194704432171378
-11-0.177357270014104
-10-0.136648029613481
-9-0.09478511568414
-8-0.132999389162764
-7-0.143343309896967
-6-0.145267833294909
-5-0.18119984767328
-4-0.227114372572859
-3-0.303627183838493
-2-0.391351043804607
-1-0.469959466628099
0-0.566568573124102
1-0.549894487891444
2-0.493647535076806
3-0.391558791876734
4-0.275191557225505
5-0.199852254464656
6-0.175238444954356
7-0.130986117562863
8-0.0875241939024854
9-0.0643231597301152
10-0.0513972554341843
11-0.0495518152713357
12-0.043528501334916
13-0.0329276106822311
14-0.0315992730761671
15-0.0429066909758558
16-0.0512029093342333
17-0.0700867258488418
18-0.0842358701284353

\begin{tabular}{lllllllll}
\hline
Cross Correlation Function \tabularnewline
Parameter & Value \tabularnewline
Box-Cox transformation parameter (lambda) of X series & 1 \tabularnewline
Degree of non-seasonal differencing (d) of X series & 0 \tabularnewline
Degree of seasonal differencing (D) of X series & 0 \tabularnewline
Seasonal Period (s) & 1 \tabularnewline
Box-Cox transformation parameter (lambda) of Y series & 1 \tabularnewline
Degree of non-seasonal differencing (d) of Y series & 0 \tabularnewline
Degree of seasonal differencing (D) of Y series & 0 \tabularnewline
k & rho(Y[t],X[t+k]) \tabularnewline
-18 & -0.343712414694079 \tabularnewline
-17 & -0.312034521884802 \tabularnewline
-16 & -0.315671971304314 \tabularnewline
-15 & -0.30469640948659 \tabularnewline
-14 & -0.25512578023966 \tabularnewline
-13 & -0.215859913414152 \tabularnewline
-12 & -0.194704432171378 \tabularnewline
-11 & -0.177357270014104 \tabularnewline
-10 & -0.136648029613481 \tabularnewline
-9 & -0.09478511568414 \tabularnewline
-8 & -0.132999389162764 \tabularnewline
-7 & -0.143343309896967 \tabularnewline
-6 & -0.145267833294909 \tabularnewline
-5 & -0.18119984767328 \tabularnewline
-4 & -0.227114372572859 \tabularnewline
-3 & -0.303627183838493 \tabularnewline
-2 & -0.391351043804607 \tabularnewline
-1 & -0.469959466628099 \tabularnewline
0 & -0.566568573124102 \tabularnewline
1 & -0.549894487891444 \tabularnewline
2 & -0.493647535076806 \tabularnewline
3 & -0.391558791876734 \tabularnewline
4 & -0.275191557225505 \tabularnewline
5 & -0.199852254464656 \tabularnewline
6 & -0.175238444954356 \tabularnewline
7 & -0.130986117562863 \tabularnewline
8 & -0.0875241939024854 \tabularnewline
9 & -0.0643231597301152 \tabularnewline
10 & -0.0513972554341843 \tabularnewline
11 & -0.0495518152713357 \tabularnewline
12 & -0.043528501334916 \tabularnewline
13 & -0.0329276106822311 \tabularnewline
14 & -0.0315992730761671 \tabularnewline
15 & -0.0429066909758558 \tabularnewline
16 & -0.0512029093342333 \tabularnewline
17 & -0.0700867258488418 \tabularnewline
18 & -0.0842358701284353 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=&T=1

[TABLE]
[ROW][C]Cross Correlation Function[/C][/ROW]
[ROW][C]Parameter[/C][C]Value[/C][/ROW]
[ROW][C]Box-Cox transformation parameter (lambda) of X series[/C][C]1[/C][/ROW]
[ROW][C]Degree of non-seasonal differencing (d) of X series[/C][C]0[/C][/ROW]
[ROW][C]Degree of seasonal differencing (D) of X series[/C][C]0[/C][/ROW]
[ROW][C]Seasonal Period (s)[/C][C]1[/C][/ROW]
[ROW][C]Box-Cox transformation parameter (lambda) of Y series[/C][C]1[/C][/ROW]
[ROW][C]Degree of non-seasonal differencing (d) of Y series[/C][C]0[/C][/ROW]
[ROW][C]Degree of seasonal differencing (D) of Y series[/C][C]0[/C][/ROW]
[ROW][C]k[/C][C]rho(Y[t],X[t+k])[/C][/ROW]
[ROW][C]-18[/C][C]-0.343712414694079[/C][/ROW]
[ROW][C]-17[/C][C]-0.312034521884802[/C][/ROW]
[ROW][C]-16[/C][C]-0.315671971304314[/C][/ROW]
[ROW][C]-15[/C][C]-0.30469640948659[/C][/ROW]
[ROW][C]-14[/C][C]-0.25512578023966[/C][/ROW]
[ROW][C]-13[/C][C]-0.215859913414152[/C][/ROW]
[ROW][C]-12[/C][C]-0.194704432171378[/C][/ROW]
[ROW][C]-11[/C][C]-0.177357270014104[/C][/ROW]
[ROW][C]-10[/C][C]-0.136648029613481[/C][/ROW]
[ROW][C]-9[/C][C]-0.09478511568414[/C][/ROW]
[ROW][C]-8[/C][C]-0.132999389162764[/C][/ROW]
[ROW][C]-7[/C][C]-0.143343309896967[/C][/ROW]
[ROW][C]-6[/C][C]-0.145267833294909[/C][/ROW]
[ROW][C]-5[/C][C]-0.18119984767328[/C][/ROW]
[ROW][C]-4[/C][C]-0.227114372572859[/C][/ROW]
[ROW][C]-3[/C][C]-0.303627183838493[/C][/ROW]
[ROW][C]-2[/C][C]-0.391351043804607[/C][/ROW]
[ROW][C]-1[/C][C]-0.469959466628099[/C][/ROW]
[ROW][C]0[/C][C]-0.566568573124102[/C][/ROW]
[ROW][C]1[/C][C]-0.549894487891444[/C][/ROW]
[ROW][C]2[/C][C]-0.493647535076806[/C][/ROW]
[ROW][C]3[/C][C]-0.391558791876734[/C][/ROW]
[ROW][C]4[/C][C]-0.275191557225505[/C][/ROW]
[ROW][C]5[/C][C]-0.199852254464656[/C][/ROW]
[ROW][C]6[/C][C]-0.175238444954356[/C][/ROW]
[ROW][C]7[/C][C]-0.130986117562863[/C][/ROW]
[ROW][C]8[/C][C]-0.0875241939024854[/C][/ROW]
[ROW][C]9[/C][C]-0.0643231597301152[/C][/ROW]
[ROW][C]10[/C][C]-0.0513972554341843[/C][/ROW]
[ROW][C]11[/C][C]-0.0495518152713357[/C][/ROW]
[ROW][C]12[/C][C]-0.043528501334916[/C][/ROW]
[ROW][C]13[/C][C]-0.0329276106822311[/C][/ROW]
[ROW][C]14[/C][C]-0.0315992730761671[/C][/ROW]
[ROW][C]15[/C][C]-0.0429066909758558[/C][/ROW]
[ROW][C]16[/C][C]-0.0512029093342333[/C][/ROW]
[ROW][C]17[/C][C]-0.0700867258488418[/C][/ROW]
[ROW][C]18[/C][C]-0.0842358701284353[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=&T=1

As an alternative you can also use a QR Code:  

The GUIDs for individual cells are displayed in the table below:

Cross Correlation Function
ParameterValue
Box-Cox transformation parameter (lambda) of X series1
Degree of non-seasonal differencing (d) of X series0
Degree of seasonal differencing (D) of X series0
Seasonal Period (s)1
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series0
Degree of seasonal differencing (D) of Y series0
krho(Y[t],X[t+k])
-18-0.343712414694079
-17-0.312034521884802
-16-0.315671971304314
-15-0.30469640948659
-14-0.25512578023966
-13-0.215859913414152
-12-0.194704432171378
-11-0.177357270014104
-10-0.136648029613481
-9-0.09478511568414
-8-0.132999389162764
-7-0.143343309896967
-6-0.145267833294909
-5-0.18119984767328
-4-0.227114372572859
-3-0.303627183838493
-2-0.391351043804607
-1-0.469959466628099
0-0.566568573124102
1-0.549894487891444
2-0.493647535076806
3-0.391558791876734
4-0.275191557225505
5-0.199852254464656
6-0.175238444954356
7-0.130986117562863
8-0.0875241939024854
9-0.0643231597301152
10-0.0513972554341843
11-0.0495518152713357
12-0.043528501334916
13-0.0329276106822311
14-0.0315992730761671
15-0.0429066909758558
16-0.0512029093342333
17-0.0700867258488418
18-0.0842358701284353



Parameters (Session):
Parameters (R input):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; par7 = 0 ; par8 = na.fail ;
R code (references can be found in the software module):
par8 <- 'na.fail'
par7 <- '0'
par6 <- '0'
par5 <- '1'
par4 <- '1'
par3 <- '0'
par2 <- '0'
par1 <- '1'
par1 <- as.numeric(par1)
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
par6 <- as.numeric(par6)
par7 <- as.numeric(par7)
if (par8=='na.fail') par8 <- na.fail else par8 <- na.pass
ccf <- function (x, y, lag.max = NULL, type = c('correlation', 'covariance'), plot = TRUE, na.action = na.fail, ...) {
type <- match.arg(type)
if (is.matrix(x) || is.matrix(y))
stop('univariate time series only')
X <- na.action(ts.intersect(as.ts(x), as.ts(y)))
colnames(X) <- c(deparse(substitute(x))[1L], deparse(substitute(y))[1L])
acf.out <- acf(X, lag.max = lag.max, plot = FALSE, type = type, na.action=na.action)
lag <- c(rev(acf.out$lag[-1, 2, 1]), acf.out$lag[, 1, 2])
y <- c(rev(acf.out$acf[-1, 2, 1]), acf.out$acf[, 1, 2])
acf.out$acf <- array(y, dim = c(length(y), 1L, 1L))
acf.out$lag <- array(lag, dim = c(length(y), 1L, 1L))
acf.out$snames <- paste(acf.out$snames, collapse = ' & ')
if (plot) {
plot(acf.out, ...)
return(invisible(acf.out))
}
else return(acf.out)
}
if (par1 == 0) {
x <- log(x)
} else {
x <- (x ^ par1 - 1) / par1
}
if (par5 == 0) {
y <- log(y)
} else {
y <- (y ^ par5 - 1) / par5
}
if (par2 > 0) x <- diff(x,lag=1,difference=par2)
if (par6 > 0) y <- diff(y,lag=1,difference=par6)
if (par3 > 0) x <- diff(x,lag=par4,difference=par3)
if (par7 > 0) y <- diff(y,lag=par4,difference=par7)
print(x)
print(y)
bitmap(file='test1.png')
(r <- ccf(x,y,na.action=par8,main='Cross Correlation Function',ylab='CCF',xlab='Lag (k)'))
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Cross Correlation Function',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Box-Cox transformation parameter (lambda) of X series',header=TRUE)
a<-table.element(a,par1)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of non-seasonal differencing (d) of X series',header=TRUE)
a<-table.element(a,par2)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of seasonal differencing (D) of X series',header=TRUE)
a<-table.element(a,par3)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Seasonal Period (s)',header=TRUE)
a<-table.element(a,par4)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Box-Cox transformation parameter (lambda) of Y series',header=TRUE)
a<-table.element(a,par5)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of non-seasonal differencing (d) of Y series',header=TRUE)
a<-table.element(a,par6)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Degree of seasonal differencing (D) of Y series',header=TRUE)
a<-table.element(a,par7)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'k',header=TRUE)
a<-table.element(a,'rho(Y[t],X[t+k])',header=TRUE)
a<-table.row.end(a)
mylength <- length(r$acf)
myhalf <- floor((mylength-1)/2)
for (i in 1:mylength) {
a<-table.row.start(a)
a<-table.element(a,i-myhalf-1,header=TRUE)
a<-table.element(a,r$acf[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')