Home » date » 2009 » Dec » 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: Thu, 17 Dec 2009 15:48:39 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/17/t1261090158uaspbbvi6h78k1l.htm/, Retrieved Thu, 17 Dec 2009 23:49:20 +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/2009/Dec/17/t1261090158uaspbbvi6h78k1l.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
0.8 1.1 1.3 1.2 1.3 1.1 1.3 1.2 1.6 1.7 1.5 0.9 1.5 1.4 1.6 1.7 1.4 1.8 1.7 1.4 1.2 1 1.7 2.4 2 2.1 2 1.8 2.7 2.3 1.9 2 2.3 2.8 2.4 2.3 2.7 2.7 2.9 3 2.2 2.3 2.8 2.8 2.8 2.2 2.6 2.8 2.5 2.4 2.3 1.9 1.7 2 2.1 1.7 1.8 1.8 1.8 1.3 1.3 1.3 1.2 1.4 2.2 2.9 3.1 3.5 3.6 4.4 4.1 5.1 5.8 5.9 5.4 5.5 4.8 3.2 2.7 2.1 1.9 0.6 0.7 -0.2 -1 -1.7 -0.7
 
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' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9028788.42150
20.7695447.17780
30.6360065.93230
40.498614.65076e-06
50.3503543.26790.000776
60.1896361.76880.040216
70.0490060.45710.324372
8-0.091879-0.8570.196903
9-0.217783-2.03130.022636
10-0.308899-2.88120.002494
11-0.359068-3.34926e-04
12-0.411102-3.83450.000119
13-0.396748-3.70060.000188
14-0.347099-3.23750.000854
15-0.290454-2.70920.004061
16-0.247724-2.31060.01161
17-0.213641-1.99270.024714
18-0.148044-1.38090.085429
19-0.092714-0.86480.194769
20-0.046504-0.43380.332769
210.0005580.00520.497928
220.0371580.34660.364868
230.0567770.52960.298875
240.0764480.71310.238857
250.0855610.79810.213504
260.0851720.79440.214553
270.0783920.73120.233313
280.0743350.69330.244969
290.0906860.84590.199976
300.0908690.84760.199501
310.077570.72350.235649
320.0709160.66150.255033
330.0681230.63540.263415
340.0586770.54730.292787
350.036510.34050.367136
360.0236870.22090.412831
370.0121220.11310.455119
380.0041290.03850.484683
390.0019530.01820.492755
400.0054060.05040.479951
41-0.008806-0.08210.467364
42-0.031854-0.29710.383543
43-0.032323-0.30150.38188
44-0.036148-0.33720.3684
45-0.046551-0.43420.332609
46-0.065438-0.61040.271605
47-0.075287-0.70220.242205
48-0.071029-0.66250.254698
49-0.068976-0.64340.260838
50-0.07019-0.65470.257197
51-0.079003-0.73690.231586
52-0.09243-0.86210.195493
53-0.103657-0.96680.168151
54-0.09686-0.90350.184391
55-0.097707-0.91130.182316
56-0.102683-0.95780.170419
57-0.101685-0.94850.172762
58-0.095797-0.89350.187019
59-0.084211-0.78550.217156
60-0.095115-0.88720.188716


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9028788.42150
2-0.246985-2.30370.011811
3-0.042687-0.39820.345746
4-0.110411-1.02980.152969
5-0.14701-1.37120.086916
6-0.167331-1.56080.061105
70.0016460.01540.493892
8-0.18045-1.68310.047968
9-0.044252-0.41280.340401
100.027930.26050.397543
110.0538270.50210.308446
12-0.201678-1.88110.03165
130.3488293.25370.000812
14-0.060301-0.56250.287627
15-0.030481-0.28430.388426
16-0.141575-1.32050.095061
17-0.025788-0.24050.405242
180.0188240.17560.430517
19-0.023213-0.21650.414547
20-0.044622-0.41620.339142
210.0625360.58330.280601
22-0.067746-0.63190.264556
230.0782190.72960.233804
24-0.023882-0.22280.412125
250.0107430.10020.460206
26-0.035776-0.33370.369704
270.0620190.57850.28222
28-0.034541-0.32220.374047
290.0637770.59490.276737
30-0.026176-0.24410.403845
31-0.019102-0.17820.429501
320.0171160.15960.436766
330.0463240.43210.333377
34-0.102588-0.95690.170641
35-0.01636-0.15260.439536
360.0623750.58180.281105
37-0.040969-0.38210.351648
380.0686160.640.261924
390.040510.37790.35323
40-0.006821-0.06360.474709
41-0.071076-0.6630.254555
42-5e-05-5e-040.499815
430.0536380.50030.309063
44-0.11488-1.07150.143447
450.0016340.01520.493937
46-0.006365-0.05940.476397
47-0.060516-0.56450.286947
480.1100651.02660.153723
49-0.000404-0.00380.498502
50-0.032414-0.30230.381557
51-0.097184-0.90650.183595
520.0198230.18490.426872
53-0.065503-0.6110.271406
54-0.000237-0.00220.499122
55-0.03744-0.34920.363887
560.0013470.01260.495004
57-0.006693-0.06240.475182
58-0.007797-0.07270.471095
59-0.028744-0.26810.394626
60-0.098122-0.91520.181302
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261090158uaspbbvi6h78k1l/10v7a1261090118.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261090158uaspbbvi6h78k1l/10v7a1261090118.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261090158uaspbbvi6h78k1l/2qutp1261090118.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261090158uaspbbvi6h78k1l/2qutp1261090118.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = 0.0 ; par3 = 2 ; par4 = 0 ; par5 = 1 ; par6 = 2 ; par7 = 0 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ; par8 = 0 ; par9 = 1 ; par10 = FALSE ;
 
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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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