Home » date » 2010 » Dec » 22 »

Statistiek Paper 7

*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, 22 Dec 2010 14:16:49 +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/22/t1293027485k84pi113kafprd8.htm/, Retrieved Wed, 22 Dec 2010 15:18:09 +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/22/t1293027485k84pi113kafprd8.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 «
5732 6938 6660 6695 6484 7716 5927 4768 7081 6947 7723 7319 6285 6655 7331 6468 7653 7330 5907 5257 7029 8885 9477 6822 8595 8738 11380 9831 10560 10336 8872 7598 9713 10858 10430 7516 8344 8623 9238 10350 9415 9550 8301 6405 10251 10082 8683 7829 6712 7354 8402 8211 8377 9133 8301 5932 9080 9459 9647 8646 7503 10000 10441 6435 8102 9983 8662 6575 9088 9336 9089
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.6355284.88164e-06
20.580584.45951.9e-05
30.5631364.32553e-05
40.4260033.27220.000893
50.4186383.21560.001057
60.2977432.2870.0129
70.1946251.49490.07013
80.1220730.93770.176122
9-0.059965-0.46060.323389
10-0.059824-0.45950.323775
11-0.098194-0.75420.226853
12-0.13963-1.07250.143927
13-0.143886-1.10520.136777
14-0.167303-1.28510.101894
15-0.153248-1.17710.121938
16-0.284913-2.18850.016304
17-0.209041-1.60570.056842
18-0.188568-1.44840.076397
19-0.294686-2.26350.013648
20-0.255829-1.96510.027061
21-0.273994-2.10460.019798
22-0.287363-2.20730.015598
23-0.213082-1.63670.053507
24-0.32032-2.46040.008412
25-0.176896-1.35880.089696
26-0.145883-1.12050.133511
27-0.136448-1.04810.149438
28-0.024943-0.19160.42436
29-0.037616-0.28890.386821
30-0.035664-0.27390.392543
310.0086160.06620.473728
320.0599270.46030.323492
330.0767120.58920.278975
340.0588520.45210.326445
350.0395130.30350.381285
360.0227260.17460.43101
37-0.020005-0.15370.439201
38-0.030965-0.23780.406413
39-0.030211-0.23210.40865
400.0223760.17190.432062
41-0.037123-0.28510.388264
42-0.076653-0.58880.279127
43-0.038823-0.29820.383296
44-0.051249-0.39360.34763
45-0.012714-0.09770.461269
460.0022190.0170.493229
47-0.020131-0.15460.43882
48-0.019397-0.1490.441036
49-0.015461-0.11880.452934
500.0129340.09930.460599
510.0074070.05690.477411
52-0.000373-0.00290.498863
530.0061260.04710.481315
54-0.005415-0.04160.483482
550.0061870.04750.481128
560.0003780.00290.498845
570.0046560.03580.485796
58-0.00114-0.00880.496522
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6355284.88164e-06
20.2963992.27670.013224
30.2117841.62670.05456
4-0.081168-0.62350.267692
50.0683740.52520.30071
6-0.131137-1.00730.158956
7-0.116107-0.89180.188053
8-0.113631-0.87280.19315
9-0.25502-1.95880.027431
100.0219740.16880.43327
110.0393380.30220.381795
120.0852810.65510.257488
130.0298910.22960.4096
140.0606660.4660.321472
150.0322990.24810.402462
16-0.320736-2.46360.008345
170.0339830.2610.397489
18-0.06736-0.51740.303405
19-0.198762-1.52670.066087
20-0.063137-0.4850.314748
210.032430.24910.402074
220.0329020.25270.40068
230.1433541.10110.137658
24-0.115036-0.88360.190247
250.1410331.08330.141543
260.0548110.4210.337637
270.0570080.43790.331534
28-0.039038-0.29990.382671
29-0.09643-0.74070.230908
30-0.172858-1.32780.094687
31-0.1079-0.82880.20528
320.0378790.2910.386053
33-0.027389-0.21040.417048
340.0891090.68450.248182
35-0.04019-0.30870.379318
360.0266870.2050.419144
37-0.019587-0.15040.440462
38-0.086991-0.66820.25331
390.018180.13960.44471
40-0.035145-0.270.394069
41-0.034229-0.26290.396765
42-0.092794-0.71280.2394
43-0.029652-0.22780.410309
440.0273070.20970.417294
450.085130.65390.257859
46-0.044582-0.34240.366619
470.0388680.29850.383167
48-0.04046-0.31080.378533
490.0624250.47950.31668
500.0391170.30050.382439
51-0.082677-0.63510.263924
52-0.009525-0.07320.470961
53-0.050635-0.38890.349361
54-0.092651-0.71170.239738
55-0.037124-0.28520.388261
560.070530.54180.295015
57-0.067213-0.51630.303798
58-0.029693-0.22810.410188
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/1yvmz1293027403.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/1yvmz1293027403.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/2rmmk1293027403.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/2rmmk1293027403.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/3rmmk1293027403.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293027485k84pi113kafprd8/3rmmk1293027403.ps (open in new window)


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