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, 13 Dec 2010 20:08:58 +0000
Cite this page as followsStatistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?v=date/2010/Dec/13/t1292270920zkc8kzgsegzcxz6.htm/, Retrieved Mon, 06 May 2024 19:39:05 +0000
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL https://freestatistics.org/blog/index.php?pk=109147, Retrieved Mon, 06 May 2024 19:39:05 +0000
QR Codes:

Original text written by user:
IsPrivate?No (this computation is public)
User-defined keywords
Estimated Impact111
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
-       [Cross Correlation Function] [] [2010-12-13 20:08:58] [81d69fb83507cea26168920232cdff1b] [Current]
Feedback Forum

Post a new message
Dataseries X:
76.14
75.93
74.49
74.73
75.56
84.19
79.30
74.70
77.09
74.88
77.56
74.08
68.38
71.63
64.65
69.13
58.10
50.28
46.95
41.76
43.91
41.53
54.04
72.69
99.29
114.57
132.55
131.52
122.77
109.05
101.84
93.75
90.82
89.43
91.27
82.15
76.91
70.13
73.67
68.19
65.10
65.10
60.60
57.58
53.40
61.00
58.13
57.95
61.97
71.81
72.51
68.29
68.61
68.00
60.93
59.71
62.36
56.47
Dataseries Y:
113
95,4
86,2
111,7
97,5
99,7
111,5
91,8
86,3
88,7
95,1
105,1
104,5
89,1
82,6
102,7
91,8
94,1
103,1
93,2
91
94,3
99,4
115,7
116,8
99,8
96
115,9
109,1
117,3
109,8
112,8
110,7
100
113,3
122,4
112,5
104,2
92,5
117,2
109,3
106,1
118,8
105,3
106
102
112,9
116,5
114,8
100,5
85,4
114,6
109,9
100,7
115,5
100,7
99
102,3




Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk

\begin{tabular}{lllllllll}
\hline
Summary of computational transaction \tabularnewline
Raw Input & view raw input (R code)  \tabularnewline
Raw Output & view raw output of R engine  \tabularnewline
Computing time & 4 seconds \tabularnewline
R Server & 'RServer@AstonUniversity' @ vre.aston.ac.uk \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=109147&T=0

[TABLE]
[ROW][C]Summary of computational transaction[/C][/ROW]
[ROW][C]Raw Input[/C][C]view raw input (R code) [/C][/ROW]
[ROW][C]Raw Output[/C][C]view raw output of R engine [/C][/ROW]
[ROW][C]Computing time[/C][C]4 seconds[/C][/ROW]
[ROW][C]R Server[/C][C]'RServer@AstonUniversity' @ vre.aston.ac.uk[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=109147&T=0

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=109147&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 Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk







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)12
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series1
Degree of seasonal differencing (D) of Y series1
krho(Y[t],X[t+k])
-130.021285112778702
-12-0.0262594817382612
-110.0296913250338689
-10-0.0157451713528591
-90.0199542153230302
-80.0181397278436628
-70.00274973608331562
-60.0436994710731059
-50.0787112238834366
-40.0289689112923315
-30.0778950831541213
-20.0292171866492645
-10.0540483968946604
00.0152334202469023
1-0.0111473346651947
2-0.0401203155922098
3-0.106565278619166
4-0.138448694346208
5-0.143681134535595
6-0.161706372807394
7-0.13405379273365
8-0.13261213457081
9-0.109745430336968
10-0.0771062149003077
11-0.10431928059381
12-0.0522204416920775
13-0.0370307106655767

\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) & 12 \tabularnewline
Box-Cox transformation parameter (lambda) of Y series & 1 \tabularnewline
Degree of non-seasonal differencing (d) of Y series & 1 \tabularnewline
Degree of seasonal differencing (D) of Y series & 1 \tabularnewline
k & rho(Y[t],X[t+k]) \tabularnewline
-13 & 0.021285112778702 \tabularnewline
-12 & -0.0262594817382612 \tabularnewline
-11 & 0.0296913250338689 \tabularnewline
-10 & -0.0157451713528591 \tabularnewline
-9 & 0.0199542153230302 \tabularnewline
-8 & 0.0181397278436628 \tabularnewline
-7 & 0.00274973608331562 \tabularnewline
-6 & 0.0436994710731059 \tabularnewline
-5 & 0.0787112238834366 \tabularnewline
-4 & 0.0289689112923315 \tabularnewline
-3 & 0.0778950831541213 \tabularnewline
-2 & 0.0292171866492645 \tabularnewline
-1 & 0.0540483968946604 \tabularnewline
0 & 0.0152334202469023 \tabularnewline
1 & -0.0111473346651947 \tabularnewline
2 & -0.0401203155922098 \tabularnewline
3 & -0.106565278619166 \tabularnewline
4 & -0.138448694346208 \tabularnewline
5 & -0.143681134535595 \tabularnewline
6 & -0.161706372807394 \tabularnewline
7 & -0.13405379273365 \tabularnewline
8 & -0.13261213457081 \tabularnewline
9 & -0.109745430336968 \tabularnewline
10 & -0.0771062149003077 \tabularnewline
11 & -0.10431928059381 \tabularnewline
12 & -0.0522204416920775 \tabularnewline
13 & -0.0370307106655767 \tabularnewline
\hline
\end{tabular}
%Source: https://freestatistics.org/blog/index.php?pk=109147&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]12[/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]1[/C][/ROW]
[ROW][C]Degree of seasonal differencing (D) of Y series[/C][C]1[/C][/ROW]
[ROW][C]k[/C][C]rho(Y[t],X[t+k])[/C][/ROW]
[ROW][C]-13[/C][C]0.021285112778702[/C][/ROW]
[ROW][C]-12[/C][C]-0.0262594817382612[/C][/ROW]
[ROW][C]-11[/C][C]0.0296913250338689[/C][/ROW]
[ROW][C]-10[/C][C]-0.0157451713528591[/C][/ROW]
[ROW][C]-9[/C][C]0.0199542153230302[/C][/ROW]
[ROW][C]-8[/C][C]0.0181397278436628[/C][/ROW]
[ROW][C]-7[/C][C]0.00274973608331562[/C][/ROW]
[ROW][C]-6[/C][C]0.0436994710731059[/C][/ROW]
[ROW][C]-5[/C][C]0.0787112238834366[/C][/ROW]
[ROW][C]-4[/C][C]0.0289689112923315[/C][/ROW]
[ROW][C]-3[/C][C]0.0778950831541213[/C][/ROW]
[ROW][C]-2[/C][C]0.0292171866492645[/C][/ROW]
[ROW][C]-1[/C][C]0.0540483968946604[/C][/ROW]
[ROW][C]0[/C][C]0.0152334202469023[/C][/ROW]
[ROW][C]1[/C][C]-0.0111473346651947[/C][/ROW]
[ROW][C]2[/C][C]-0.0401203155922098[/C][/ROW]
[ROW][C]3[/C][C]-0.106565278619166[/C][/ROW]
[ROW][C]4[/C][C]-0.138448694346208[/C][/ROW]
[ROW][C]5[/C][C]-0.143681134535595[/C][/ROW]
[ROW][C]6[/C][C]-0.161706372807394[/C][/ROW]
[ROW][C]7[/C][C]-0.13405379273365[/C][/ROW]
[ROW][C]8[/C][C]-0.13261213457081[/C][/ROW]
[ROW][C]9[/C][C]-0.109745430336968[/C][/ROW]
[ROW][C]10[/C][C]-0.0771062149003077[/C][/ROW]
[ROW][C]11[/C][C]-0.10431928059381[/C][/ROW]
[ROW][C]12[/C][C]-0.0522204416920775[/C][/ROW]
[ROW][C]13[/C][C]-0.0370307106655767[/C][/ROW]
[/TABLE]
Source: https://freestatistics.org/blog/index.php?pk=109147&T=1

Globally Unique Identifier (entire table): ba.freestatistics.org/blog/index.php?pk=109147&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)12
Box-Cox transformation parameter (lambda) of Y series1
Degree of non-seasonal differencing (d) of Y series1
Degree of seasonal differencing (D) of Y series1
krho(Y[t],X[t+k])
-130.021285112778702
-12-0.0262594817382612
-110.0296913250338689
-10-0.0157451713528591
-90.0199542153230302
-80.0181397278436628
-70.00274973608331562
-60.0436994710731059
-50.0787112238834366
-40.0289689112923315
-30.0778950831541213
-20.0292171866492645
-10.0540483968946604
00.0152334202469023
1-0.0111473346651947
2-0.0401203155922098
3-0.106565278619166
4-0.138448694346208
5-0.143681134535595
6-0.161706372807394
7-0.13405379273365
8-0.13261213457081
9-0.109745430336968
10-0.0771062149003077
11-0.10431928059381
12-0.0522204416920775
13-0.0370307106655767



Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ; par5 = 1 ; par6 = 1 ; par7 = 1 ;
Parameters (R input):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ; par5 = 1 ; par6 = 1 ; par7 = 1 ;
R code (references can be found in the software module):
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 (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)
x
y
bitmap(file='test1.png')
(r <- ccf(x,y,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')