Home » date » 2010 » Dec » 20 »

Olie-ACF

*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, 20 Dec 2010 12:23:54 +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/20/t1292847719ywf9lt7h78kdrcy.htm/, Retrieved Mon, 20 Dec 2010 13:22:02 +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/20/t1292847719ywf9lt7h78kdrcy.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 «
25.64 27.97 27.62 23.31 29.07 29.58 28.63 29.92 32.68 31.54 32.43 26.54 25.85 27.60 25.71 25.38 28.57 27.64 25.36 25.90 26.29 21.74 19.20 19.32 19.82 20.36 24.31 25.97 25.61 24.67 25.59 26.09 28.37 27.34 24.46 27.46 30.23 32.33 29.87 24.87 25.48 27.28 28.24 29.58 26.95 29.08 28.76 29.59 30.70 30.52 32.67 33.19 37.13 35.54 37.75 41.84 42.94 49.14 44.61 40.22 44.23 45.85 53.38 53.26 51.80 55.30 57.81 63.96 63.77 59.15 56.12 57.42 63.52 61.71 63.01 68.18 72.03 69.75 74.41 74.33 64.24 60.03 59.44 62.50 55.04 58.34 61.92 67.65 67.68 70.30 75.26 71.44 76.36 81.71 92.60 90.60 92.23 94.09 102.79 109.65 124.05 132.69 135.81 116.07 101.42 75.73 55.48 43.80 45.29 44.01 47.48 51.07 57.84 69.04 65.61 72.87 68.41 73.25 77.43 75.28 77.33 74.31 79.70 85.47 77.98 75.69 75.20 77.21 77.85 83.53 85.99
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4520215.15380
20.2946973.36010.000512
30.0462120.52690.299582
4-0.068723-0.78360.217362
5-0.195225-2.22590.013871
6-0.274239-3.12680.00109
7-0.188552-2.14980.01671
8-0.177957-2.0290.022249
9-0.174862-1.99370.024137
10-0.049684-0.56650.286019
110.0133620.15230.439574
12-0.063479-0.72380.235251
13-0.108593-1.23810.108947
14-0.042323-0.48260.315111
150.0340160.38780.349383
16-0.063215-0.72080.236176
17-0.089825-1.02420.153831
18-0.05278-0.60180.274185
190.027750.31640.376105
20-0.0248-0.28280.388903
210.0989951.12870.130549
220.0823250.93870.174825
230.073920.84280.200439
240.000940.01070.495732
250.1069721.21970.1124
260.0718220.81890.207173
27-0.004516-0.05150.479505
28-0.012255-0.13970.444546
29-0.040695-0.4640.321716
30-0.004205-0.04790.480916
31-0.09068-1.03390.151548
32-0.038203-0.43560.331931
33-0.013083-0.14920.440828
34-0.005788-0.0660.47374
350.0670670.76470.222924
360.0684330.78030.218329
370.065160.74290.229431
38-0.037666-0.42950.334151
39-0.033422-0.38110.351889
400.0035720.04070.483788
41-0.026505-0.30220.381491
42-0.036394-0.4150.339428
43-0.074419-0.84850.198857
44-0.003771-0.0430.482883
450.0135590.15460.438688
460.0351670.4010.344553
470.0487940.55630.28947
48-0.001291-0.01470.494141
49-0.087774-1.00080.159398
50-0.020675-0.23570.407007
51-0.001856-0.02120.491575
52-0.02079-0.2370.4065
53-0.023057-0.26290.396527
54-0.10185-1.16130.123829
55-0.002497-0.02850.488665
560.0187620.21390.415473
57-0.000905-0.01030.495891
580.0352060.40140.344388
59-0.012307-0.14030.444313
60-0.00222-0.02530.489923


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4520215.15380
20.1135821.2950.098803
3-0.156871-1.78860.038004
4-0.090262-1.02910.15266
5-0.132171-1.5070.06712
6-0.148103-1.68860.046843
70.0396890.45250.325823
8-0.063581-0.72490.234898
9-0.134029-1.52820.064451
100.0667570.76110.223973
110.0082280.09380.4627
12-0.203201-2.31680.011038
13-0.117965-1.3450.090482
140.0437650.4990.309312
150.0455950.51990.302023
16-0.165827-1.89070.030444
17-0.134748-1.53640.06344
18-0.030856-0.35180.362772
190.0720010.82090.206591
20-0.104441-1.19080.11795
210.0495570.5650.286511
22-0.060718-0.69230.244994
23-0.028133-0.32080.374452
24-0.05058-0.57670.282569
250.0885481.00960.157279
26-0.062745-0.71540.237822
27-0.042848-0.48850.312993
280.0490190.55890.288594
29-0.101277-1.15470.125159
30-0.005505-0.06280.475024
31-0.042765-0.48760.313329
320.0064790.07390.470612
33-3.3e-05-4e-040.499848
340.0066710.07610.469742
350.0901361.02770.152998
36-0.054939-0.62640.266074
37-0.018609-0.21220.41615
38-0.055516-0.6330.26393
390.0538360.61380.270201
400.0009090.01040.495872
41-0.007527-0.08580.465868
42-0.011001-0.12540.45019
43-0.074415-0.84850.198869
440.0391860.44680.327887
450.0712160.8120.20914
46-0.019591-0.22340.4118
47-0.032238-0.36760.356894
48-0.018852-0.2150.415071
49-0.128751-1.4680.072262
500.0836710.9540.170927
510.0180530.20580.41862
52-0.047042-0.53640.296313
530.0132330.15090.440151
54-0.171595-1.95650.026276
550.031680.36120.359266
560.0651970.74340.229302
57-0.084698-0.96570.167992
58-0.024088-0.27460.392011
590.0007930.0090.496398
60-0.10598-1.20840.114553
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/1yqd01292847831.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/1yqd01292847831.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/28zc31292847831.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/28zc31292847831.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/38zc31292847831.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292847719ywf9lt7h78kdrcy/38zc31292847831.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 2 ; 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 (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