Home » date » 2011 » May » 20 »

KDGP2W12

*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, 20 May 2011 00:05:17 +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/20/t1305849703mx5ary7sv37t2jq.htm/, Retrieved Fri, 20 May 2011 02:01:45 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7,24 7,52 7,57 7,59 7,58 7,55 7,52 7,55 7,62 7,64 7,68 7,69 7,7 7,6 7,51 7,66 7,69 7,66 7,7 7,72 7,74 7,76 7,72 7,73 7,75 8,1 8,22 8,32 8,07 8,18 8,33 8,34 8,25 8,36 8,36 8,34 8,41 8,39 8,43 8,44 8,49 8,47 8,53 8,52 8,51 8,53 8,54 8,53 8,47 8,63 8,67 8,73 8,57 8,55 8,63 8,65 8,44 8,62 8,37 8,59 8,84 8,72 8,8 8,69 8,68 8,57 8,85 8,85 8,85 8,93 8,75 8,78 8,77 9,03 9,01 9,07 8,99 9,02 8,99 8,98 8,94 8,94 8,75 8,86
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.225695-2.05620.021453
2-0.00964-0.08780.465112
3-0.174795-1.59250.057542
4-0.027761-0.25290.400481
5-0.017581-0.16020.436566
60.097630.88940.188167
70.0788440.71830.237293
8-0.127562-1.16210.124255
90.1047530.95430.171341
10-0.073956-0.67380.251164
110.0266370.24270.404428
12-0.060293-0.54930.292138
13-0.048895-0.44550.328576
140.0281640.25660.399066
150.0644180.58690.27944
16-0.09803-0.89310.187193
170.0366450.33380.369668
180.0510670.46520.321487
19-0.031-0.28240.389161
20-0.008194-0.07470.470335
21-0.08484-0.77290.22088
22-0.065663-0.59820.275662
23-0.073723-0.67170.251835
240.4019783.66220.000219
25-0.126803-1.15520.125655
260.0970780.88440.189511
27-0.16479-1.50130.068535
280.0263190.23980.405549
290.0042860.03910.484472
300.1451611.32250.094821
31-0.161849-1.47450.072063
32-0.040422-0.36830.356809
330.00540.04920.480442
340.0546970.49830.309789
350.1117781.01840.155735
36-0.034596-0.31520.376708
370.0111220.10130.459769
38-0.12985-1.1830.120095
390.0815040.74250.229929
40-0.058258-0.53080.298503
410.0477010.43460.332497
420.079290.72240.236051
43-0.038149-0.34760.364528
440.0523150.47660.317447
45-0.102503-0.93380.176546
46-0.053813-0.49030.312623
47-0.006589-0.060.476138
480.1429261.30210.098239


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.225695-2.05620.021453
2-0.06383-0.58150.281233
3-0.20262-1.8460.034232
4-0.131075-1.19410.117911
5-0.089173-0.81240.209441
60.0266660.24290.404326
70.086620.78910.216139
8-0.103667-0.94450.17384
90.0929730.8470.199708
100.0019710.0180.492859
11-0.000361-0.00330.498692
12-0.046339-0.42220.336998
13-0.111735-1.0180.155829
14-0.007905-0.0720.471379
150.0396060.36080.359571
16-0.145402-1.32470.094457
170.0034440.03140.487523
180.0659350.60070.274839
19-0.001299-0.01180.495291
20-0.014347-0.13070.448162
21-0.113977-1.03840.151055
22-0.104987-0.95650.170803
23-0.153156-1.39530.083322
240.2995632.72920.003875
25-0.001212-0.0110.495609
260.0935680.85240.198209
27-0.001026-0.00930.496282
280.0605070.55120.291473
290.0617150.56230.28773
300.1341071.22180.112626
31-0.204277-1.86110.033139
32-0.066369-0.60470.27353
33-0.121708-1.10880.135357
340.0719560.65550.256964
350.0660160.60140.274594
360.0517280.47130.319344
370.1294651.17950.120787
38-0.052427-0.47760.317084
390.0279860.2550.39969
400.0471510.42960.334313
41-0.065321-0.59510.276697
420.0928230.84570.200088
43-0.050376-0.45890.323736
440.0228550.20820.417786
450.0452250.4120.340693
46-0.022914-0.20880.417576
470.0993180.90480.184086
48-0.031167-0.28390.388579
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305849703mx5ary7sv37t2jq/1np8w1305849916.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305849703mx5ary7sv37t2jq/1np8w1305849916.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305849703mx5ary7sv37t2jq/24v1t1305849916.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305849703mx5ary7sv37t2jq/24v1t1305849916.ps (open in new window)


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