Home » date » 2010 » Dec » 19 »

*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: Sun, 19 Dec 2010 07:13:34 +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/19/t1292742831cteqje2dknxgasn.htm/, Retrieved Sun, 19 Dec 2010 08:13:52 +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/19/t1292742831cteqje2dknxgasn.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 «
5 4 5 6 6 6 7 8 7 8 7 8 8 9 9 8 9 9 10 11 12 13 13 13 14 14 15 15 16 16 17 18 19 20 22 20 22 25 24 25 28 26 27 26 25 27 28 30 31 32 34 34 33 32 34 36 37 40 38 38 36 40 40 42 44 45 47 49 47 49 52 50 50 57 58 58 58 61 61 64 68 40 34 46 36 34 45 55 50 56 72 76 78 77 90 88 97 93 84 67 72 75 71 75 90 78 73 62 65 61 58 33 39 56 79 82 79 73 87 85 83 82 83 92 95 97 87 84 84 89 103 106 109 106 105 115 120 124 121 131 139 133 119 123 120 128 134 126 115 106 99 100 99 99 100 100 108 109 115 114 108 113 118 122 118 121 118 121 121 112 119 116 110 111 106 108
 
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
10.106121.40380.08107
2-0.150541-1.99150.023992
3-0.117414-1.55320.061086
40.0665840.88080.189811
5-0.044538-0.58920.278251
60.0475070.62850.265264
7-0.073463-0.97180.166241
8-0.111384-1.47350.07121
9-0.073302-0.96970.166767
100.1380511.82620.034759
11-0.047571-0.62930.264985
12-0.086204-1.14040.127845
13-0.146297-1.93530.027281
140.0168660.22310.411854
15-0.141278-1.86890.031651
160.0111490.14750.441459
170.1174851.55420.060974
180.0780271.03220.151702
19-0.161531-2.13690.016999
20-0.116738-1.54430.062161
210.0808681.06980.143096
220.1079331.42780.077563
230.0241050.31890.3751
240.0083730.11080.455965
25-0.021607-0.28580.387671
260.0721930.9550.170441
270.1687172.23190.013445
28-0.031576-0.41770.338337
29-0.0728-0.96310.168424
300.0045210.05980.476187
310.0799281.05730.145906
32-0.112344-1.48620.069517
33-0.061033-0.80740.210269
34-0.148455-1.96390.025564
350.0084870.11230.455365
36-0.01667-0.22050.412863
37-0.070832-0.9370.175019
38-0.010307-0.13640.44585
390.0487690.64520.259836
400.078691.0410.149663
410.0107970.14280.443295
42-0.002695-0.03570.485801
430.1375751.81990.035238
440.0183810.24320.404086
450.0755150.9990.159593
46-0.047912-0.63380.263513
47-0.025098-0.3320.370138
48-0.044326-0.58640.279189
490.0874581.1570.124432
500.0386180.51090.305045
51-0.064299-0.85060.198078
520.008850.11710.453469
530.0372770.49310.311269
54-0.064656-0.85530.196774
55-0.077611-1.02670.152989
56-0.071628-0.94760.172331
570.0335390.44370.32891
58-0.04789-0.63350.263607
59-0.093867-1.24170.107996
600.0080850.1070.457473


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.106121.40380.08107
2-0.163646-2.16480.015878
3-0.084653-1.11990.132154
40.0684330.90530.183281
5-0.094769-1.25370.105817
60.0770591.01940.15471
7-0.099592-1.31750.094701
8-0.099919-1.32180.093979
9-0.051467-0.68080.248436
100.0961451.27190.102553
11-0.105508-1.39570.082281
12-0.051629-0.6830.247757
13-0.138699-1.83480.034115
14-0.010958-0.1450.442453
15-0.201954-2.67160.004131
16-0.016398-0.21690.414261
170.089111.17880.120036
180.0035570.04710.48126
19-0.145016-1.91840.028346
20-0.162415-2.14850.016522
210.0616660.81580.207871
22-0.004301-0.05690.477347
230.0025160.03330.486744
24-0.029763-0.39370.347132
250.0245760.32510.372743
260.0449480.59460.276437
270.0875931.15870.124069
28-0.151154-1.99960.023546
290.0734840.97210.166172
300.055930.73990.23018
310.0292990.38760.349393
32-0.170319-2.25310.012747
33-0.023145-0.30620.379914
34-0.175671-2.32390.01064
350.0035990.04760.481042
36-0.054852-0.72560.234518
37-0.121788-1.61110.054479
380.0822141.08760.139135
39-0.062419-0.82570.205042
400.0752630.99560.160401
41-0.085194-1.1270.13064
420.1212341.60380.055283
430.1199691.5870.057154
44-0.02229-0.29490.384221
450.0654490.86580.193891
460.0130060.17210.431797
47-0.065382-0.86490.194132
48-0.100495-1.32940.092719
490.0371720.49170.311759
500.0734680.97190.166225
51-0.030348-0.40150.344281
52-0.006361-0.08410.466518
53-0.037401-0.49480.310694
54-0.07947-1.05130.147287
550.0323020.42730.33484
56-0.120575-1.59510.056252
570.054240.71750.237003
580.0254830.33710.368218
59-0.089049-1.1780.120196
600.004680.06190.47535
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/1z13b1292742810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/1z13b1292742810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/2aakw1292742810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/2aakw1292742810.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/3aakw1292742810.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292742831cteqje2dknxgasn/3aakw1292742810.ps (open in new window)


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