Home » date » 2010 » Dec » 16 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 16 Dec 2010 20:50:05 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6.htm/, Retrieved Thu, 16 Dec 2010 21:48:11 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
655362 873127 1107897 1555964 1671159 1493308 2957796 2638691 1305669 1280496 921900 867888 652586 913831 1108544 1555827 1699283 1509458 3268975 2425016 1312703 1365498 934453 775019 651142 843192 1146766 1652601 1465906 1652734 2922334 2702805 1458956 1410363 1019279 936574 708917 885295 1099663 1576220 1487870 1488635 2882530 2677026 1404398 1344370 936865 872705 628151 953712 1160384 1400618 1661511 1495347 2918786 2775677 1407026 1370199 964526 850851 683118 847224 1073256 1514326 1503734 1507712 2865698 2788128 1391596 1366378 946295 859626
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.067835-0.52540.300604
20.1599391.23890.110106
30.2475491.91750.029969
4-0.096469-0.74720.228917
50.1274060.98690.163831
6-0.112407-0.87070.193694
7-0.202835-1.57120.060703
8-0.030078-0.2330.408283
9-0.176185-1.36470.088718
10-0.194355-1.50550.068726
11-0.037405-0.28970.386506
12-0.465521-3.60590.000317
130.0189370.14670.441936
140.0234640.18180.428194
15-0.033775-0.26160.397255
160.0305770.23680.40679
170.0674250.52230.301703
180.2397671.85720.034094
190.0110740.08580.465965
200.1283670.99430.162028
210.0965520.74790.228725
220.0122230.09470.462443
230.2625352.03360.023211
24-0.072803-0.56390.287451
250.0224740.17410.431192
26-0.042441-0.32870.371745
27-0.14926-1.15620.126099
280.0441530.3420.366771
29-0.074503-0.57710.283018
30-0.246165-1.90680.03067
310.0858050.66460.254412
32-0.036537-0.2830.389069
33-0.109341-0.8470.200194
340.1063640.82390.206632
35-0.173183-1.34150.092412
360.124660.96560.169057
37-0.012441-0.09640.461774
389.1e-057e-040.499721
390.0770450.59680.276447
40-0.02772-0.21470.415357
41-0.010705-0.08290.467097
420.086040.66650.253834
43-0.03532-0.27360.392669
44-0.047022-0.36420.358484
450.0566950.43920.331062
46-0.042974-0.33290.370194
470.0268710.20810.417912
48-0.037898-0.29360.385054
49-0.009297-0.0720.471416
500.0109970.08520.466201
51-0.011984-0.09280.463174
52-0.007381-0.05720.477299
53-0.000511-0.0040.498427
540.0001860.00140.499429
55-0.001239-0.00960.496188
56-0.000338-0.00260.498961
57-0.002922-0.02260.49101
580.001810.0140.494429
59-0.000155-0.00120.499522
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.067835-0.52540.300604
20.1560561.20880.11574
30.275232.13190.018559
4-0.089655-0.69450.245035
50.0282020.21840.41391
6-0.151136-1.17070.123175
7-0.231032-1.78960.039285
8-0.085424-0.66170.255351
9-0.047364-0.36690.357501
10-0.132525-1.02650.15438
11-0.006664-0.05160.479501
12-0.428202-3.31680.000775
13-0.072993-0.56540.286954
140.1247770.96650.168832
150.2405991.86370.033632
16-0.112397-0.87060.193714
17-0.022202-0.1720.432017
180.1251790.96960.168062
19-0.164109-1.27120.104285
20-0.035472-0.27480.39222
210.0658880.51040.305835
22-0.083873-0.64970.25919
230.256421.98620.025791
24-0.218633-1.69350.047771
25-0.002953-0.02290.490912
26-0.07169-0.55530.290375
270.0525620.40710.342676
28-0.002514-0.01950.492263
290.1643171.27280.104001
30-0.048993-0.37950.352828
31-0.07599-0.58860.279164
32-0.001798-0.01390.494467
330.0069470.05380.478632
34-0.008352-0.06470.474315
350.1476891.1440.128585
36-0.111687-0.86510.195208
37-0.118322-0.91650.181532
38-0.094252-0.73010.234093
390.0192270.14890.441054
40-0.020765-0.16080.436376
41-0.001146-0.00890.496474
420.0248210.19230.424092
43-0.055283-0.42820.335013
440.0005660.00440.498259
45-0.016781-0.130.448506
46-0.136503-1.05740.147295
470.1292971.00150.160297
48-0.002856-0.02210.491212
49-0.080549-0.62390.267519
50-0.014553-0.11270.455312
51-0.03153-0.24420.403944
52-0.117389-0.90930.183417
530.0446760.34610.365255
540.046490.36010.360014
550.0174740.13540.446394
56-0.042906-0.33230.370393
57-0.069069-0.5350.29731
58-0.017454-0.13520.446453
590.0718830.55680.289866
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/1m6sa1292532600.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/1m6sa1292532600.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/2xg9v1292532600.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/2xg9v1292532600.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/3xg9v1292532600.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292532491z3ykhxi2s9z7vf6/3xg9v1292532600.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 2 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 0.0 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = MA ; 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