Home » date » 2009 » Dec » 11 »

Paper: ACF & PACF

*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: Fri, 11 Dec 2009 07:11:12 -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/11/t1260540884jps71oklhikay29.htm/, Retrieved Fri, 11 Dec 2009 15:14:46 +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/11/t1260540884jps71oklhikay29.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:
bhschhwsstpaper
 
Dataseries X:
» Textbox « » Textfile « » CSV «
128.6 128.9 129.06 129.23 129.27 129.33 129.35 129.31 129.4 129.49 129.47 129.46 129.45 129.28 129.2 129.25 129.14 129.11 129.02 129.08 128.99 129.11 129.08 129.19 129.23 129.25 129.31 129.33 129.39 129.55 129.43 129.45 129.57 129.76 129.92 130.08 130.41 130.84 131.24 131.49 131.74 132.34 133.5 134.43 136.5 137.41 138.02 138.15 138.24 138.2 138.31 138.65 139.3 139.8 140.52 141.57 141.77 141.66 141.36 141.17
 
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.9566467.41020
20.9052677.01220
30.8458846.55220
40.7819736.05710
50.7166385.55110
60.6569025.08832e-06
70.5999224.6479e-06
80.5433164.20854.4e-05
90.4879093.77930.000182
100.4312333.34030.000722
110.3710192.87390.0028
120.3064592.37380.010412
130.239971.85880.033981
140.1721271.33330.093738
150.1077820.83490.20355
160.0496980.3850.350815
170.0058750.04550.481926
18-0.031998-0.24790.402546
19-0.062531-0.48440.314945
20-0.089152-0.69060.246249
21-0.11465-0.88810.189024
22-0.138269-1.0710.144223
23-0.159152-1.23280.111233
24-0.176745-1.36910.088041
25-0.191587-1.4840.071519
26-0.20507-1.58850.058719
27-0.217061-1.68130.048947
28-0.227567-1.76270.041519
29-0.236829-1.83450.035772
30-0.245364-1.90060.031082
31-0.25501-1.97530.02642
32-0.263291-2.03940.022908
33-0.270796-2.09760.020082
34-0.277711-2.15110.017751
35-0.283898-2.19910.01587
36-0.289682-2.24390.014272
37-0.29447-2.2810.013058
38-0.297234-2.30240.0124
39-0.299103-2.31680.011972
40-0.29956-2.32040.011869
41-0.300368-2.32660.011689
42-0.299471-2.31970.011889
43-0.29613-2.29380.012659
44-0.290847-2.25290.013968
45-0.280262-2.17090.016953
46-0.26674-2.06620.021569
47-0.252099-1.95280.027759
48-0.238466-1.84720.034829
49-0.224713-1.74060.043438
50-0.211363-1.63720.053411
51-0.198104-1.53450.065081
52-0.183481-1.42120.080213
53-0.166518-1.28980.101028
54-0.148602-1.15110.127136
55-0.128524-0.99550.161735
56-0.104679-0.81080.210332
57-0.079812-0.61820.269385
58-0.053936-0.41780.338798
59-0.027776-0.21520.415189
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9566467.41020
2-0.116769-0.90450.184678
3-0.114184-0.88450.189988
4-0.071972-0.55750.289632
5-0.038772-0.30030.382484
60.0388230.30070.382334
7-0.009506-0.07360.470774
8-0.046356-0.35910.3604
9-0.033214-0.25730.398924
10-0.058479-0.4530.326099
11-0.07792-0.60360.274203
12-0.086007-0.66620.253915
13-0.059087-0.45770.324416
14-0.05572-0.43160.333788
15-0.006661-0.05160.479512
160.012680.09820.461042
170.1000420.77490.220714
18-0.011397-0.08830.464975
190.0059480.04610.481701
20-0.020356-0.15770.437619
21-0.036938-0.28610.387887
22-0.003088-0.02390.4905
230.0046190.03580.485789
240.007390.05720.47727
25-0.005097-0.03950.484319
26-0.039132-0.30310.381427
27-0.040221-0.31160.378231
28-0.038861-0.3010.382221
29-0.034265-0.26540.395799
30-0.03568-0.27640.391606
31-0.045951-0.35590.361568
32-0.00634-0.04910.480498
33-0.002577-0.020.492071
34-0.018915-0.14650.442004
35-0.017811-0.1380.445366
36-0.031094-0.24090.405244
37-0.020202-0.15650.438088
380.0026260.02030.49192
39-0.010191-0.07890.46867
40-0.000389-0.0030.498804
41-0.02587-0.20040.420926
42-0.006123-0.04740.481163
430.0034020.02640.489532
44-0.007727-0.05990.476236
450.0343270.26590.395615
460.0031330.02430.49036
47-0.019457-0.15070.440353
48-0.033173-0.2570.399046
49-0.016585-0.12850.449105
50-0.012806-0.09920.460656
51-0.008204-0.06350.474771
520.0028540.02210.491218
530.0137190.10630.457861
54-0.001515-0.01170.495338
550.010570.08190.46751
560.0358540.27770.39109
570.0019260.01490.494072
580.0135960.10530.458238
590.0142470.11040.456248
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260540884jps71oklhikay29/1pxm91260540671.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260540884jps71oklhikay29/1pxm91260540671.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/11/t1260540884jps71oklhikay29/2iur71260540671.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/11/t1260540884jps71oklhikay29/2iur71260540671.ps (open in new window)


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