Home » date » 2011 » May » 17 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 17 May 2011 12:12:50 +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/17/t1305634158pqft4m3w2p5z5xe.htm/, Retrieved Tue, 17 May 2011 14:09:18 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.41 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.42 0.43 0.43 0.44 0.44 0.44 0.44 0.44 0.44 0.44 0.44 0.44 0.44 0.44 0.43 0.44 0.44 0.46 0.46 0.46 0.46 0.46 0.45 0.45 0.46 0.46 0.46 0.47 0.47 0.47 0.47 0.47 0.47 0.47 0.47 0.47 0.47 0.47
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.131749-1.11010.135343
20.1286591.08410.140994
3-0.132992-1.12060.133116
4-0.046603-0.39270.347864
5-0.308254-2.59740.005706
6-0.047846-0.40320.344022
70.0385430.32480.373157
80.0379210.31950.375132
90.03730.31430.37711
100.0366780.30910.379091
11-0.13061-1.10050.137408
120.1297981.09370.138892
13-0.218862-1.84420.034666
140.3099282.61150.005496
15-0.038732-0.32640.372554
160.2143231.80590.037585
17-0.047328-0.39880.345621
18-0.047949-0.4040.343703
19-0.135581-1.14240.128558
20-0.049192-0.41450.339878
21-0.027755-0.23390.407881
22-0.028376-0.23910.405858
230.0653650.55080.291758
240.0573910.48360.315084
25-0.03024-0.25480.399804
260.0561480.47310.318792
27-0.118493-0.99840.160729
280.0549050.46260.322518
29-0.032726-0.27580.39177
300.1406721.18530.11992
31-0.033969-0.28620.38777
32-0.03459-0.29150.385775
33-0.035211-0.29670.383783
34-0.035833-0.30190.381794
35-0.108758-0.91640.181277
36-0.02237-0.18850.425516
370.0787250.66330.254628
38-0.008906-0.0750.470194
39-0.009528-0.08030.468119
400.0768610.64760.259653
41-0.010771-0.09080.463972
42-0.011392-0.0960.4619
43-0.012013-0.10120.459828
44-0.012635-0.10650.457758
45-0.013256-0.11170.455689
46-0.013877-0.11690.453622
47-0.014499-0.12220.451555
48-0.022473-0.18940.425175


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.131749-1.11010.135343
20.1132680.95440.171557
3-0.106221-0.8950.186897
4-0.091243-0.76880.222272
5-0.311298-2.6230.005329
6-0.144333-1.21620.113974
70.0601810.50710.306829
8-0.003403-0.02870.488601
9-0.046076-0.38820.349499
10-0.083258-0.70150.242628
11-0.21967-1.8510.034166
120.128381.08180.141511
13-0.169136-1.42520.079245
140.2598732.18970.015916
150.0549630.46310.322345
160.0865570.72930.234096
170.0882050.74320.229898
18-0.139145-1.17250.122466
190.0252090.21240.416195
200.0849020.71540.238355
210.0399270.33640.368771
220.0120320.10140.459765
23-0.05195-0.43770.331453
24-0.052588-0.44310.329515
250.0679310.57240.28443
26-0.036557-0.3080.379478
270.0159040.1340.446886
28-0.072166-0.60810.272538
29-0.011801-0.09940.460535
300.1026780.86520.194926
31-0.074786-0.63020.265306
32-0.110286-0.92930.177944
33-0.029023-0.24460.403754
340.0187770.15820.437368
35-0.060695-0.51140.305321
36-0.066245-0.55820.289235
37-0.019184-0.16160.436021
38-0.054377-0.45820.324109
39-0.064291-0.54170.294851
40-0.006064-0.05110.479697
410.0150760.1270.449636
42-0.010132-0.08540.466101
430.0291210.24540.403437
44-0.108281-0.91240.182325
45-0.041985-0.35380.362279
46-0.020821-0.17540.430617
470.0293790.24750.402599
480.025510.21490.415212
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/1qjeh1305634367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/1qjeh1305634367.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/2gcpk1305634367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/2gcpk1305634367.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/3j53v1305634367.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/17/t1305634158pqft4m3w2p5z5xe/3j53v1305634367.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