Home » date » 2009 » Dec » 07 »

*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: Mon, 07 Dec 2009 12:27:06 -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/07/t1260214060cgzhkokclj6b0ez.htm/, Retrieved Mon, 07 Dec 2009 20:27:42 +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/07/t1260214060cgzhkokclj6b0ez.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 «
17 18 23.8 25.5 25.6 23.7 22 21.3 20.7 20.4 20.3 20.4 19.8 19.5 23.1 23.5 23.5 22.9 21.9 21.5 20.5 20.2 19.4 19.2 18.8 18.8 22.6 23.3 23 21.4 19.9 18.8 18.6 18.4 18.6 19.9 19.2 18.4 21.1 20.5 19.1 18.1 17 17.1 17.4 16.8 15.3 14.3 13.4 15.3 22.1 23.7 22.2 19.5 16.6 17.3 19.8 21.2 21.5 20.6 19.1 19.6 23.5 24
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3602652.85950.002874
2-0.165067-1.31020.097446
3-0.369386-2.93190.002345
4-0.356492-2.82960.003123
5-0.023798-0.18890.425393
60.1907681.51420.067491
70.115550.91720.18128
8-0.127134-1.00910.158394
9-0.201917-1.60270.057005
10-0.192571-1.52850.065699
110.100230.79560.214639
120.5422974.30433e-05
130.1374591.0910.139704
14-0.058883-0.46740.320923
15-0.078969-0.62680.266528
16-0.124248-0.98620.163906
17-0.018074-0.14350.443193
18-0.005642-0.04480.48221
19-0.081656-0.64810.259629
20-0.168833-1.34010.092518
21-0.119478-0.94830.173294
22-0.044551-0.35360.362405
230.1662661.31970.095856
240.4366553.46580.000479
250.0606360.48130.315991
26-0.125747-0.99810.161028
27-0.149777-1.18880.119487
28-0.147538-1.1710.122995
29-0.026253-0.20840.417805
300.0279540.22190.412564
31-0.011532-0.09150.463679
32-0.079392-0.63020.265436
33-0.071054-0.5640.287386
34-0.032639-0.25910.398216
350.1037860.82380.206587
360.2941112.33440.011387
370.0080030.06350.474775
38-0.123087-0.9770.166161
39-0.104935-0.83290.204026
40-0.074919-0.59460.277104
410.0312280.24790.402523
420.0305590.24260.40457
43-0.056239-0.44640.328426
44-0.159958-1.26960.104444
45-0.146841-1.16550.124102
46-0.031644-0.25120.401252
470.1643131.30420.098456
480.3244162.5750.006193
490.068670.5450.293822
50-0.105615-0.83830.202517
51-0.143002-1.1350.130329
52-0.103528-0.82170.207166
530.0265530.21080.416879
540.0899380.71390.238974
550.0448820.35620.361425
56-0.036735-0.29160.385784
57-0.082577-0.65540.257288
58-0.051486-0.40870.342089
590.0340680.27040.393864
600.1128830.8960.186837


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3602652.85950.002874
2-0.338837-2.68940.004575
3-0.217703-1.7280.044447
4-0.225866-1.79280.038906
50.0848860.67380.251463
6-0.012809-0.10170.459672
7-0.11082-0.87960.191208
8-0.223822-1.77650.040237
9-0.056519-0.44860.327629
10-0.188912-1.49940.069377
110.1180160.93670.17624
120.412713.27580.000858
13-0.433521-3.4410.000517
140.3212982.55020.006605
150.2043191.62170.054928
160.007570.06010.476138
17-0.088534-0.70270.242411
18-0.066339-0.52650.300179
19-0.015022-0.11920.452735
20-0.09966-0.7910.215949
21-0.125283-0.99440.161915
220.0637850.50630.307214
230.0153370.12170.451749
240.0832860.66110.255493
250.0149370.11860.453001
26-0.103722-0.82330.206731
27-0.075775-0.60140.274851
280.0187360.14870.441129
29-0.135211-1.07320.143637
30-0.038225-0.30340.38129
31-0.086453-0.68620.247553
320.0395840.31420.377209
330.0264230.20970.417278
340.0292610.23230.408547
35-0.001532-0.01220.495169
36-0.015414-0.12230.451509
37-0.072634-0.57650.28316
38-0.072037-0.57180.284754
39-0.050539-0.40110.344838
40-0.026889-0.21340.415843
410.068870.54660.293279
42-0.05474-0.43450.33271
43-0.033208-0.26360.396481
44-0.129984-1.03170.153075
45-0.098821-0.78440.217882
46-0.052884-0.41980.338045
47-0.048171-0.38230.351745
48-0.108972-0.86490.195178
490.0112950.08970.464423
50-0.006378-0.05060.479894
510.0026830.02130.491538
520.0250650.19890.421471
53-0.016806-0.13340.447152
540.0717460.56950.285532
55-0.017913-0.14220.443696
560.080570.63950.262406
570.018210.14450.442768
58-0.017572-0.13950.444761
59-0.046783-0.37130.355821
60-0.096603-0.76680.223043
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260214060cgzhkokclj6b0ez/1fn041260214024.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260214060cgzhkokclj6b0ez/1fn041260214024.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/07/t1260214060cgzhkokclj6b0ez/2u5z61260214024.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/07/t1260214060cgzhkokclj6b0ez/2u5z61260214024.ps (open in new window)


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