Home » date » 2011 » May » 27 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 27 May 2011 08:36:10 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd.htm/, Retrieved Fri, 27 May 2011 10:32:16 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
505,7 55,7 735,7 575,9 545,8 905,8 765,8 945,7 15,7 645,7 155,9 416 825,8 725,9 925,9 556 116,1 876,3 336,2 186,1 286,1 26 915,8 405,7 965,7 395,6 425,8 545,6 65,6 445,6 895,5 175,4 715,4 865,5 57,4 145,4 315,3 635,4 5,2 515,2 515,1 955 955 634,9 205 275 425 84,9 534,7 4,8 704,7 684,7 884,6 994,6 294,7 524,7 914,5 564,4 984,5 934,4 514,6 474,5 784,4 504,5 824,4 414,6 964,7 64,6 244,7 344,7 34,7 685 425 484,8 785,1 704,9 245,4 285,6 218,8 706,1 856,2 456,6 606,8 527,3 657,8 948,2 486,6 238,9 289,4 969,5 589,5 189,7 639,8 9710,1 969,9 939,9 859,7 679,9 879,9 329,8 349,6 39,5 849,5 449,6 749,6 249,7 649,8 619,4 939 778,9
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.4775-4.98521e-06
2-0.030721-0.32070.374512
30.0021680.02260.490991
40.0244520.25530.39949
50.0170280.17780.429612
6-0.051047-0.53290.297579
70.00350.03650.48546
8-0.017034-0.17780.429588
90.0501940.5240.300656
10-0.029928-0.31250.377647
110.0479720.50080.308745
12-0.089072-0.92990.177228
130.0711250.74260.229671
14-0.02468-0.25770.398573
150.0143230.14950.440702
16-0.007943-0.08290.467032
17-0.035835-0.37410.354518
180.0321630.33580.368837
190.017240.180.428749
20-0.010129-0.10580.457986
21-0.015982-0.16690.433894
220.032040.33450.369319
23-0.032473-0.3390.36762
240.0212840.22220.412283
25-0.008178-0.08540.466058
26-0.050306-0.52520.300253
270.0741840.77450.220156
28-0.049668-0.51850.302565
290.0426010.44480.328684
30-0.032299-0.33720.368303
310.027710.28930.386451
32-0.020525-0.21430.415361
33-0.018626-0.19450.423088
340.0313730.32750.371944
350.0048950.05110.479666
36-0.025798-0.26930.394088
370.0304790.31820.375467
38-0.007152-0.07470.470306
39-0.036897-0.38520.350414
400.0302220.31550.376482
410.0027230.02840.488685
42-0.001662-0.01740.493095
430.0249220.26020.397603
44-0.047962-0.50070.308782
450.0381370.39820.345644
46-0.037681-0.39340.347397
470.0290950.30380.380946
48-0.010634-0.1110.455901


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.4775-4.98521e-06
2-0.335142-3.4990.000339
3-0.25894-2.70340.003982
4-0.176728-1.84510.033869
5-0.095485-0.99690.160512
6-0.12167-1.27030.103347
7-0.127686-1.33310.092642
8-0.163855-1.71070.044991
9-0.104089-1.08670.139779
10-0.109634-1.14460.127438
11-0.020947-0.21870.413651
12-0.117651-1.22830.110987
13-0.064227-0.67050.251963
14-0.080155-0.83680.202256
15-0.05225-0.54550.293261
16-0.043311-0.45220.326019
17-0.0924-0.96470.168419
18-0.092014-0.96070.169425
19-0.053401-0.55750.289156
20-0.047633-0.49730.309989
21-0.048787-0.50930.305768
22-0.010095-0.10540.458128
23-0.034458-0.35980.359864
24-0.026561-0.27730.391036
25-0.013995-0.14610.442051
26-0.101735-1.06210.14526
27-0.032843-0.34290.36617
28-0.077373-0.80780.210485
29-0.036184-0.37780.353168
30-0.054302-0.56690.285966
31-0.02139-0.22330.411851
32-0.042696-0.44580.328329
33-0.090061-0.94030.174582
34-0.070404-0.7350.231946
35-0.040666-0.42460.335995
36-0.06396-0.66780.252849
37-0.015289-0.15960.436736
38-0.020703-0.21610.414637
39-0.061762-0.64480.260201
40-0.070777-0.73890.230766
41-0.04609-0.48120.315671
42-0.04541-0.47410.31819
430.0227910.23790.406185
44-0.018295-0.1910.424437
450.0190430.19880.421389
46-0.027364-0.28570.387828
470.0002490.00260.498965
480.0018410.01920.492349
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/156px1306485367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/156px1306485367.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/2fren1306485367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/2fren1306485367.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/3bac31306485367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/27/t1306485132tsto0eyl3yqautd/3bac31306485367.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
if (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 2:(par1+1)) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(abs(mytstat),lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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