Home » date » 2009 » Nov » 24 »

*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: Tue, 24 Nov 2009 12:18:22 -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/Nov/24/t12590905193j3xytlrtjk8sjq.htm/, Retrieved Tue, 24 Nov 2009 20:22:01 +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/Nov/24/t12590905193j3xytlrtjk8sjq.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 «
111,4 87,4 96,8 114,1 110,3 103,9 101,6 94,6 95,9 104,7 102,8 98,1 113,9 80,9 95,7 113,2 105,9 108,8 102,3 99 100,7 115,5 100,7 109,9 114,6 85,4 100,5 114,8 116,5 112,9 102 106 105,3 118,8 106,1 109,3 117,2 92,5 104,2 112,5 122,4 113,3 100 110,7 112,8 109,8 117,3 109,1 115,9 96 99,8 116,8 115,7 99,4 94,3 91 93,2 103,1 94,1 91,8 102,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.1843821.44010.07748
2-0.108061-0.8440.200988
30.062720.48990.312995
40.0364470.28470.388435
50.2670162.08550.020609
60.2744982.14390.018018
70.1091230.85230.198696
8-0.086283-0.67390.251464
9-0.060259-0.47060.319788
10-0.225612-1.76210.041532
11-0.001372-0.01070.495744
120.5006383.91010.000117
13-0.057407-0.44840.327741
14-0.278035-2.17150.016895
15-0.165825-1.29510.100077
16-0.100767-0.7870.217159
170.1092230.85310.198483
180.0740580.57840.282558
19-0.014618-0.11420.454738
20-0.178312-1.39270.084389
21-0.111285-0.86920.194083
22-0.230739-1.80210.038233
23-0.056723-0.4430.32966
240.2784032.17440.016782
25-0.073004-0.57020.285324
26-0.295539-2.30820.012196
27-0.228202-1.78230.039837
28-0.058965-0.46050.323385
290.0397440.31040.378654
30-0.004529-0.03540.48595
31-0.042367-0.33090.370928
32-0.178323-1.39270.084376
33-0.087695-0.68490.247995
34-0.091136-0.71180.239653
35-0.087286-0.68170.248997
360.1621.26530.105295
37-0.026025-0.20330.419804
38-0.189118-1.47710.072402
39-0.122088-0.95350.172041
400.0292820.22870.409933
410.0527350.41190.340938
420.0574580.44880.327596
430.0193870.15140.440072
44-0.036985-0.28890.386833
450.0369970.2890.386798
460.0360790.28180.389532
470.0341410.26670.395318
480.1582841.23620.110555
490.0462280.36110.359653
50-0.051591-0.40290.344202
510.0007520.00590.497667
520.0484620.37850.353187
530.0422690.33010.371216
540.0410450.32060.374817
55-0.008131-0.06350.474785
56-0.017821-0.13920.444881
570.0508250.3970.346391
580.0339690.26530.395833
59-0.009324-0.07280.471093
60-0.00274-0.02140.491499


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1843821.44010.07748
2-0.147057-1.14860.127612
30.1192340.93120.177698
4-0.019877-0.15520.43857
50.3077862.40390.009638
60.1673841.30730.098007
70.1308851.02220.155352
8-0.131518-1.02720.154193
9-0.037446-0.29250.385463
10-0.42738-3.33790.000721
11-0.021401-0.16710.433904
120.4379993.42090.00056
13-0.150392-1.17460.12236
14-0.065343-0.51030.305827
15-0.105059-0.82050.207552
160.0142820.11150.455776
17-0.090158-0.70420.242008
18-0.06843-0.53450.297483
190.0997190.77880.219546
20-0.052348-0.40890.342041
210.0184250.14390.443027
22-0.109849-0.8580.197139
23-0.027135-0.21190.416433
24-0.096302-0.75210.227428
250.0204590.15980.436788
26-0.138793-1.0840.141314
27-0.025767-0.20120.420588
280.0407360.31820.375727
29-0.074229-0.57970.282111
30-0.053777-0.420.337977
31-0.00973-0.0760.469838
32-0.005263-0.04110.483672
33-0.044045-0.3440.366013
340.1086920.84890.199626
35-0.174723-1.36460.088691
36-0.051535-0.40250.344362
37-0.117636-0.91880.180919
380.0555120.43360.333068
39-0.021159-0.16530.434643
40-0.002272-0.01770.49295
410.0149480.11670.453722
420.041230.3220.374271
43-0.042941-0.33540.369244
440.0883370.68990.246425
45-0.04141-0.32340.373742
46-0.006107-0.04770.481056
470.0584450.45650.324836
48-0.072448-0.56580.28679
49-0.079316-0.61950.268955
50-0.012787-0.09990.460389
51-0.001153-0.0090.496423
52-0.109608-0.85610.197656
53-0.048171-0.37620.354027
540.0259010.20230.42018
55-0.0615-0.48030.316357
560.0174290.13610.446084
570.0420480.32840.371864
580.0749840.58560.280139
59-0.120592-0.94190.174991
60-0.071753-0.56040.288626
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590905193j3xytlrtjk8sjq/1wf6g1259090300.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590905193j3xytlrtjk8sjq/1wf6g1259090300.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t12590905193j3xytlrtjk8sjq/2c8tq1259090300.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t12590905193j3xytlrtjk8sjq/2c8tq1259090300.ps (open in new window)


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