Home » date » 2007 » Nov » 26 » attachments

Q5. Compute the Cross Correlation Function between (at least) one Yt

R Software Module: rwasp_cross.wasp (opens new window with default values)
Title produced by software: Cross Correlation Function
Date of computation: Mon, 26 Nov 2007 03:52:08 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/26/t11960738318dfolrtllv9weng.htm/, Retrieved Mon, 26 Nov 2007 11:43:51 +0100
 
User-defined keywords:
Q5. Compute the Cross Correlation Function between (at least) one Yt (endogenous) and one Xt (exogenous) variable. Interpret the results.
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105,5227475 99,96697807 99,29276788 97,61994679 92,62666004 90,32801498 85,52083209 92,71339449 96,51595626 103,9418082 106,9973474 113,2595822 109,7190934 98,37704602 95,34417091 93,02005401 98,46060437 96,29026019 92,64756809 102,3220594 101,3264016 114,6738496 102,9524431 109,4774482 101,6334513 98,57578752 104,3007445 107,9441506 101,8381511 106,7241893 89,66204355 90,05567866 113,30134 112,3883223 95,92201437 95,67776984 100,917002 98,97327054 110,0791791 110,1929871 103,5780994 111,7920977 96,78877956 95,98442935 118,9305845 111,295244 102,4709069 97,82438647 98,25590457 95,1971819 99,19646064 104,468676 100,7123022 110,6990195 83,40207273 93,32671353 110,4355427 101,1594271 100,544762 95,47333016 102,4522505 97,88019225 108,7308777 103,6509173 109,6167435 110,1027949 86,96544074 97,61994679 114,0177893 112,2889515 103,5302866 98,02882615 108,7979443 104,5380327 112,8720892 109,2730085 110,7425924 109,3078289 92,55126085 102,8331586
 
Dataseries Y:
» Textbox « » Textfile « » CSV «
101,6041349 96,48530635 101,0183779 100,9789536 103,1498368 106,0353826 86,54664403 102,2333505 110,6722524 115,6839132 99,88333999 101,8152182 102,531556 96,48530635 98,65371554 105,1602767 104,1803047 102,2941156 91,65431482 99,8290897 111,7027203 115,1916413 98,18078306 105,3693429 113,9697497 102,39257 106,5043947 112,1639929 101,9132753 108,1029249 99,22123452 106,8328059 127,6749728 122,9695384 106,5989812 127,4258224 103,6650707 102,6879332 113,8821414 112,3730591 106,0351469 123,6587192 101,6804834 113,7319891 132,3120783 119,2282714 113,030863 134,5340717 112,0118607 103,8693859 113,3146225 116,3453161 113,9697497 118,2437275 92,2218338 112,5821252 131,1785637 115,38855 113,3146225 121,4674369 114,3819369 110,6627391 123,529964 114,0455883 122,4195865 121,9849945 96,09988014 117,9133122 131,8998912 127,5968949 118,9898122 124,9170285 119,225136 111,8441918 122,6786856 117,0770476 120,3586507 124,3478999 106,7881542 121,1538377
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


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 series1
krho(Y[t],X[t+k])
-15-0.145053772375437
-140.0324789366082915
-130.428852881196256
-12-0.375148136232122
-11-0.195763962709013
-100.293390192673532
-9-0.102540119859827
-8-0.0949541448579465
-70.249995005523389
-6-0.198685663726885
-50.00336964494792187
-40.152855419870542
-3-0.249642694182971
-20.145187756727366
-10.558697781062267
0-0.572631999091446
1-0.146700257144615
20.248546831769132
3-0.157352622027792
4-0.000112802237635372
50.193879770485007
6-0.266801920629453
70.099138341396598
80.109216083916216
9-0.272782261482346
100.205549587293035
110.372864281588813
12-0.452683366124496
13-0.0365854446369496
140.143451802078459
15-0.142122844422988
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/26/t11960738318dfolrtllv9weng/1yqoj1196074324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/26/t11960738318dfolrtllv9weng/1yqoj1196074324.ps (open in new window)


 
Parameters:
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 1 ; par5 = 1 ; par6 = 0 ; 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) x <- diff(y,lag=par4,difference=par7)
x
y
bitmap(file='test1.png')
(r <- ccf(x,y,main='Cross Correlation Function',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')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by