Home » date » 2010 » Dec » 29 »

Paper: ACF (18t/m24)

*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: Wed, 29 Dec 2010 15:07:58 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu.htm/, Retrieved Wed, 29 Dec 2010 16:05:44 +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/2010/Dec/29/t129363514326r98529xh8o6pu.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
49915 47469 45652 43492 41087 42931 67256 72316 65624 59450 52851 51214 44092 43752 40320 40551 38329 39530 59648 61031 55560 43877 38510 36085 35994 32617 30001 27894 26083 28817 48742 49915 40264 34276 30426 30793 29855 28081 26820 25782 22654 27373 43675 45096 38145 34017 31537 33814 36531 36935 36497 35110 33137 37407 53963 56602 49694 43957 41723 45599 42503 42153 39098 37449 34748 36548 53639 55289 47774 42156 38019
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.068946-0.52510.300766
20.1904651.45050.076148
3-0.086052-0.65540.257416
40.1977091.50570.068784
50.0324580.24720.402816
60.0389330.29650.383951
70.1034790.78810.216931
8-0.097331-0.74120.230767
90.0869290.6620.255285
10-0.052799-0.40210.344542
110.2637552.00870.024616
12-0.271785-2.06990.021465
13-0.005818-0.04430.482405
14-0.044745-0.34080.367254
150.0711150.54160.295086
16-0.269555-2.05290.022303
170.0027280.02080.491747
18-0.023328-0.17770.429805
19-0.076939-0.5860.280091
20-0.050058-0.38120.352212
21-0.045582-0.34710.364872
220.0203030.15460.438829
23-0.099959-0.76130.224792
24-0.059889-0.45610.32501
25-0.089828-0.68410.248316
26-0.023044-0.17550.430651
27-0.277741-2.11520.019359
280.0984730.750.228158
29-0.116147-0.88460.190026
30-0.132195-1.00680.159115
31-0.118439-0.9020.185392
32-0.003406-0.02590.489696
330.0922660.70270.242534
34-0.020228-0.15410.439052
350.085920.65430.257738
36-0.079883-0.60840.272659
370.017590.1340.446949
38-0.047787-0.36390.358615
390.1076240.81960.207888
400.0104910.07990.468297
410.0024760.01890.492512
420.0725360.55240.291393
430.0717750.54660.293368
440.0562580.42850.334955
45-0.020818-0.15850.437289
460.0333540.2540.400191
47-0.012768-0.09720.461437
480.015510.11810.45319
490.026230.19980.421181
50-0.011982-0.09130.463803
510.0319420.24330.404331
52-0.010183-0.07760.469226
530.0069210.05270.479071
54-0.001681-0.01280.494915
55-0.017457-0.13290.447347
560.0105450.08030.468133
57-0.011416-0.08690.465507
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.068946-0.52510.300766
20.1865991.42110.080322
3-0.06507-0.49560.311041
40.1616231.23090.111667
50.079920.60870.272566
6-0.024448-0.18620.426474
70.1210230.92170.180256
8-0.124942-0.95150.172641
90.0285110.21710.414432
10-0.002294-0.01750.49306
110.2020551.53880.064645
12-0.242065-1.84350.035182
13-0.116798-0.88950.188703
140.0776160.59110.278372
15-0.009672-0.07370.470768
16-0.290582-2.2130.015423
170.0558330.42520.336128
180.055590.42340.336799
19-0.077193-0.58790.279445
20-0.045256-0.34470.3658
210.039360.29980.382717
22-0.028125-0.21420.415572
230.0796710.60680.273189
24-0.14992-1.14180.129123
25-0.138294-1.05320.148305
260.0468540.35680.361258
27-0.169503-1.29090.100931
28-0.047585-0.36240.359187
29-0.054653-0.41620.339391
30-0.157407-1.19880.117745
31-0.02299-0.17510.43081
32-0.071457-0.54420.294194
330.1416791.0790.142528
340.0966610.73620.232303
350.0749510.57080.285166
36-0.054254-0.41320.340497
37-0.088702-0.67550.25101
380.0737120.56140.288353
39-0.053357-0.40640.342989
40-0.080958-0.61660.26997
410.0660260.50280.308492
420.0332160.2530.400596
43-0.131422-1.00090.16052
44-0.02244-0.17090.432449
45-0.005083-0.03870.484627
46-0.127319-0.96960.168127
470.0490470.37350.355058
48-0.04038-0.30750.379773
49-0.001735-0.01320.49475
500.0355520.27080.39377
51-0.002109-0.01610.49362
52-0.042824-0.32610.372747
53-0.064422-0.49060.312772
54-0.045807-0.34890.364232
55-0.056106-0.42730.335376
56-0.092469-0.70420.242057
57-0.012359-0.09410.462669
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/16lsf1293635274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/16lsf1293635274.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/2ycsi1293635274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/2ycsi1293635274.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/3ycsi1293635274.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363514326r98529xh8o6pu/3ycsi1293635274.ps (open in new window)


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