Home » date » 2011 » Feb » 02 »

*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, 02 Feb 2011 17:44:43 +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/Feb/02/t1296669884fthvoiym05cn4wz.htm/, Retrieved Wed, 02 Feb 2011 19:04:47 +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/2011/Feb/02/t1296669884fthvoiym05cn4wz.htm/},
    year = {2011},
}
@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 = {2011},
    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 «
5393 5147 4846 3995 4491 4676 5461 4758 5302 5066 3491 4944 5148 5351 5178 4025 4449 4594 4603 4911 5236 4652 3479 4556 4815 4949 4499 3865 3657 4814 4614 4539 4492 4779 3193 3894 4531 4008 3764 3290 3644 3438 3833 3922 3524 3493 2814 3899 3653 3969 3427 3067 3301 3211 3382 3613 3783 3971 2842 4161
 
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.5758294.46041.8e-05
20.4093.16810.001207
30.3689522.85790.002927
40.4355423.37370.000652
50.5663974.38732.4e-05
60.5878424.55341.3e-05
70.5521114.27663.5e-05
80.3427382.65480.005073
90.2046591.58530.05908
100.2002911.55140.063027
110.3429342.65640.005052
120.527874.08896.5e-05
130.2929672.26930.013429
140.1090020.84430.20092
150.0286250.22170.412639
160.0921880.71410.238971
170.1670881.29430.100267
180.16071.24480.109027
190.125750.97410.16697
20-0.031128-0.24110.405143
21-0.156435-1.21170.115181
22-0.162078-1.25550.107091
23-0.029699-0.23010.409417
240.0956160.74060.230901
25-0.113536-0.87940.191334
26-0.23944-1.85470.034278
27-0.2265-1.75450.042229
28-0.213575-1.65430.05164
29-0.139979-1.08430.14129
30-0.134475-1.04160.150879
31-0.140502-1.08830.140403
32-0.262659-2.03450.023161
33-0.330706-2.56160.006474
34-0.307486-2.38180.010209
35-0.231893-1.79620.038746
36-0.129545-1.00350.159836
37-0.27944-2.16450.017206
38-0.318962-2.47070.008172
39-0.321584-2.4910.007762
40-0.285339-2.21020.015457
41-0.220527-1.70820.046385
42-0.215159-1.66660.050402
43-0.172485-1.33610.093286
44-0.262097-2.03020.023388
45-0.270442-2.09480.020208
46-0.243602-1.88690.032005
47-0.174015-1.34790.091376
48-0.098262-0.76110.224779
49-0.153295-1.18740.119871
50-0.169124-1.310.09759
51-0.13772-1.06680.145173
52-0.146019-1.13110.131266
53-0.100384-0.77760.219938
54-0.072239-0.55960.288932
55-0.032585-0.25240.400796
56-0.052905-0.40980.341705
57-0.053072-0.41110.341233
58-0.055401-0.42910.334681
59-0.001807-0.0140.494439
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5758294.46041.8e-05
20.1158270.89720.186601
30.1425731.10440.136922
40.2383841.84650.034876
50.339622.63070.005407
60.2389391.85080.034561
70.2019041.56390.061546
8-0.160776-1.24540.10892
9-0.272578-2.11140.019457
10-0.294584-2.28180.01303
11-0.075521-0.5850.280377
120.3049342.3620.010719
13-0.135609-1.05040.148868
14-0.141976-1.09970.137919
15-0.079408-0.61510.270409
160.0710260.55020.292124
17-0.000709-0.00550.497817
18-0.141592-1.09680.138562
19-0.12256-0.94930.173127
20-0.020714-0.16040.436533
210.0041650.03230.487185
22-0.022528-0.17450.43103
23-0.004671-0.03620.485628
240.0974140.75460.226731
25-0.115505-0.89470.187262
26-0.030073-0.23290.408298
270.1658341.28450.101945
28-0.03495-0.27070.393766
29-0.033041-0.25590.399438
30-0.06216-0.48150.315959
310.0206290.15980.43679
32-0.021343-0.16530.434623
33-0.015349-0.11890.45288
34-0.061737-0.47820.317117
35-0.156404-1.21150.115227
36-0.036626-0.28370.388808
37-0.034662-0.26850.394622
380.1167460.90430.184724
39-0.021308-0.16510.434729
40-0.016353-0.12670.449813
410.0608790.47160.319472
420.0837670.64890.259454
430.0809840.62730.266422
44-0.056653-0.43880.33118
45-0.01184-0.09170.463615
46-0.040378-0.31280.377771
47-0.046203-0.35790.360843
48-0.005551-0.0430.482922
490.1192910.9240.179587
50-0.007912-0.06130.475668
510.0446390.34580.365363
52-0.062259-0.48230.31569
53-0.007522-0.05830.476864
54-0.058322-0.45180.326537
55-0.076828-0.59510.277006
56-0.002828-0.02190.491297
570.0133870.10370.45888
58-0.028227-0.21860.413834
590.0832570.64490.260724
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/1j9941296668682.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/1j9941296668682.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/26shj1296668682.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/26shj1296668682.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/3josn1296668682.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/02/t1296669884fthvoiym05cn4wz/3josn1296668682.ps (open in new window)


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