Home » date » 2010 » Dec » 29 »

Paper

*Unverified author*
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:48:19 +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/t1293637592o4ntavat4smui1r.htm/, Retrieved Wed, 29 Dec 2010 16:46:32 +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/t1293637592o4ntavat4smui1r.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 «
235243 230354 227184 221678 217142 219452 256446 265845 248624 241114 229245 231805 219277 219313 212610 214771 211142 211457 240048 240636 230580 208795 197922 194596 194581 185686 178106 172608 167302 168053 202300 202388 182516 173476 166444 171297 169701 164182 161914 159612 151001 158114 186530 187069 174330 169362 166827 178037 186413 189226 191563 188906 186005 195309 223532 226899 214126 206903 204442 220375 214320 212588 205816 202196 195722 198563 229139 229527 211868 203555 195770
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8823657.43490
20.7203616.06990
30.6238945.2571e-06
40.5997595.05372e-06
50.6038585.08821e-06
60.5801814.88873e-06
70.5109584.30542.6e-05
80.4087193.44390.000483
90.3406762.87060.002698
100.3273662.75840.00369
110.3782033.18680.00107
120.3794153.1970.001037
130.2411042.03160.02297
140.0692580.58360.280678
15-0.034361-0.28950.38651
16-0.078234-0.65920.255946
17-0.092147-0.77640.220032
18-0.131146-1.10510.136434
19-0.212034-1.78660.039133
20-0.303359-2.55620.006362
21-0.363251-3.06080.001558
22-0.355993-2.99960.001863
23-0.292497-2.46460.008069
24-0.262421-2.21120.015122
25-0.353188-2.9760.001995
26-0.451397-3.80350.00015
27-0.484167-4.07975.8e-05
28-0.464335-3.91260.000103
29-0.42383-3.57130.000321
30-0.404106-3.40510.000546
31-0.418912-3.52980.000367
32-0.440879-3.71490.000201
33-0.431894-3.63920.000258
34-0.377632-3.1820.001085
35-0.282249-2.37830.010044
36-0.222944-1.87860.032205
37-0.249397-2.10150.019576
38-0.279163-2.35230.010718
39-0.263085-2.21680.014921
40-0.215864-1.81890.036571
41-0.148134-1.24820.10803
42-0.106779-0.89970.185651
43-0.095097-0.80130.212816
44-0.091762-0.77320.220986
45-0.068068-0.57350.284043
46-0.011348-0.09560.462047
470.0631180.53180.298247
480.1070460.9020.185057


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8823657.43490
2-0.262859-2.21490.014989
30.2577532.17190.016604
40.1616191.36180.088779
50.0904670.76230.224206
6-0.048401-0.40780.342313
7-0.089355-0.75290.226994
8-0.143375-1.20810.115509
90.0802890.67650.250452
100.0477020.40190.344466
110.2615182.20360.015399
12-0.250191-2.10810.019275
13-0.4659-3.92579.9e-05
14-0.07514-0.63310.264338
150.0200360.16880.433207
16-0.165762-1.39670.083422
170.0322850.2720.393192
18-0.13004-1.09570.138449
19-0.017417-0.14680.441868
200.0129160.10880.456822
21-0.035307-0.29750.383475
220.0694950.58560.280009
230.0731310.61620.269862
240.0096420.08120.467738
25-0.170334-1.43530.077802
260.1202951.01360.157101
270.0026910.02270.490986
28-0.041212-0.34730.364712
29-0.010906-0.09190.46352
300.0389120.32790.371984
31-0.015845-0.13350.447083
320.0551510.46470.32178
33-0.035743-0.30120.382081
34-0.046113-0.38860.349386
35-0.053059-0.44710.328088
360.0217060.18290.4277
37-0.009641-0.08120.467742
380.0254590.21450.415379
39-0.106917-0.90090.185344
40-0.029742-0.25060.401421
410.0636870.53660.296599
42-0.054867-0.46230.322635
430.0446570.37630.353912
44-0.026451-0.22290.412136
450.0028610.02410.490418
468.2e-057e-040.499727
47-0.068944-0.58090.281563
480.0319940.26960.39413
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/1ztbz1293637696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/1ztbz1293637696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/292sk1293637696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/292sk1293637696.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/392sk1293637696.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293637592o4ntavat4smui1r/392sk1293637696.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 1 ; par3 = 0 ; par4 = 12 ;
 
Parameters (R input):
par1 = 48 ; 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 (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