Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 20:01:15 +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/29/t1293652743f99lxcope2uce0t.htm/, Retrieved Wed, 29 Dec 2010 20:59:06 +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/29/t1293652743f99lxcope2uce0t.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 «
16198.90 16554.20 19554.20 15903.80 18003.80 18329.60 16260.70 14851.90 18174.10 18406.60 18466.50 16016.50 17428.50 17167.20 19630.00 17183.60 18344.70 19301.40 18147.50 16192.90 18374.40 20515.20 18957.20 16471.50 18746.80 19009.50 19211.20 20547.70 19325.80 20605.50 20056.90 16141.40 20359.80 19711.60 15638.60 14384.50 13721.40 14134.30 15021.70 14212.60 13635.00 15446.90 14762.10 12521.00 16236.80 16065.00 16032.10 15794.30 15160.00 15692.10 18908.90 17424.50 17014.20 19790.40 17681.20 16006.90 19601.70
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.846155.67610
20.7900515.29982e-06
30.7267534.87527e-06
40.5234843.51160.000513
50.4025362.70030.004864
60.2385771.60040.058251
70.0233680.15680.438068
8-0.087652-0.5880.279741
9-0.24011-1.61070.057119
10-0.36673-2.46010.008898
11-0.442218-2.96650.002404
12-0.500995-3.36080.000796
13-0.513656-3.44570.000622
14-0.492758-3.30550.000934
15-0.466606-3.13010.001533
16-0.434039-2.91160.002788
17-0.370522-2.48550.008359
18-0.302841-2.03150.024067
19-0.248033-1.66390.051545
20-0.174608-1.17130.123821
21-0.130029-0.87230.193849
22-0.0923-0.61920.269463
23-0.025673-0.17220.432018
24-0.030544-0.20490.419288
25-0.000171-0.00110.499544
260.0229590.1540.439143
270.0067150.0450.482136
280.0421370.28270.389365
290.0566330.37990.3529
300.0348740.23390.408046
310.0678950.45550.325487
320.0684680.45930.324115
330.0620530.41630.339598
340.0798330.53550.297458
350.0856780.57470.284164
360.0631850.42390.336844
370.0653880.43860.331512
380.0626150.420.33823
390.0396180.26580.395818
400.034370.23060.409349
410.0316070.2120.416523
420.0164110.11010.456415
430.0170880.11460.454626
440.011040.07410.470646
45NANANA
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.846155.67610
20.2608221.74960.043498
30.045020.3020.382022
4-0.546779-3.66790.000322
5-0.168405-1.12970.132295
6-0.190826-1.28010.103535
7-0.222761-1.49430.071035
80.0662270.44430.32949
90.0275880.18510.427004
100.0667690.44790.328188
11-0.119499-0.80160.213492
120.0809830.54320.29482
130.0745150.49990.309804
140.0527850.35410.362462
15-0.065774-0.44120.330581
16-0.264218-1.77240.041547
17-0.140762-0.94430.175039
18-0.069739-0.46780.321085
190.0089090.05980.476303
200.0458570.30760.379897
21-0.052665-0.35330.36276
22-0.084221-0.5650.28745
230.0519040.34820.364662
24-0.108962-0.73090.234302
250.0687210.4610.323512
26-0.043205-0.28980.386641
27-0.065536-0.43960.331154
28-0.030002-0.20130.420701
290.054090.36280.359208
30-0.040202-0.26970.394318
31-0.060076-0.4030.344427
32-0.034284-0.230.409572
33-0.100382-0.67340.252075
34-0.075162-0.50420.30829
350.0789330.52950.299531
36-0.103781-0.69620.244947
37-0.116682-0.78270.218943
38-0.011759-0.07890.468739
390.0674690.45260.326507
400.0484590.32510.373317
410.0534790.35870.360731
420.0331350.22230.412553
43-0.142286-0.95450.172469
44-0.114723-0.76960.222784
45NANANA
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/1k2t81293652874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/1k2t81293652874.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/2ctsc1293652874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/2ctsc1293652874.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/3ctsc1293652874.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293652743f99lxcope2uce0t/3ctsc1293652874.ps (open in new window)


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