Home » date » 2010 » Dec » 22 »

Statistiek Paper 8

*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:37:44 +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/t1293028766dn78usz2ckoibzn.htm/, Retrieved Wed, 22 Dec 2010 15:39:27 +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/t1293028766dn78usz2ckoibzn.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 time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.423142-3.22260.001043
2-0.05232-0.39850.345878
30.1743631.32790.094705
4-0.185413-1.41210.081637
50.165421.25980.106393
6-0.03731-0.28410.388657
7-0.05971-0.45470.325497
80.1937351.47540.072751
9-0.249293-1.89860.031301
100.03370.25670.399178
110.008460.06440.474426
12-0.05493-0.41830.338623
130.0094130.07170.471549
14-0.062184-0.47360.318789
150.2097371.59730.057815
16-0.282659-2.15270.017758
170.0714160.54390.294301
180.168061.27990.102837
19-0.212745-1.62020.055305
200.0915520.69720.244219
21-0.010867-0.08280.467163
22-0.12436-0.94710.17376
230.2726522.07650.021146
24-0.36836-2.80530.003415
250.165741.26220.105958
260.0477060.36330.358845
27-0.164804-1.25510.107236
280.1815461.38260.086042
29-0.023276-0.17730.429959
30-0.06311-0.48060.316292
310.009230.07030.4721
320.0159950.12180.451733
330.0717880.54670.293335
340.0023750.01810.492815
350.0030810.02350.49068
360.0423270.32240.374171
37-0.03325-0.25320.400494
38-0.008789-0.06690.473431
39-0.072592-0.55280.291247
400.1609391.22570.112638
41-0.027714-0.21110.416789
42-0.108557-0.82670.205885
430.0759520.57840.282604
44-0.06128-0.46670.321232
450.0112810.08590.465916
460.0516050.3930.347876
47-0.062129-0.47320.318938
480.0195850.14920.440973
49-0.035351-0.26920.394355
500.0261950.19950.421287
510.0154220.11740.453456
52-0.02784-0.2120.416418
530.0187910.14310.443351
54-0.014775-0.11250.455399
550.0084040.0640.474593
56-0.003466-0.02640.489515
570.0037580.02860.488633
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.423142-3.22260.001043
2-0.28183-2.14640.01802
30.0353710.26940.394298
4-0.121029-0.92170.180245
50.0888750.67680.250596
60.0384890.29310.385236
70.0014730.01120.495543
80.168671.28460.102027
9-0.107724-0.82040.207674
10-0.126459-0.96310.169752
11-0.168363-1.28220.102435
12-0.091121-0.6940.245239
13-0.147271-1.12160.133331
14-0.132083-1.00590.159318
150.2250181.71370.045964
16-0.155636-1.18530.120369
17-0.005393-0.04110.483689
180.128430.97810.166045
19-0.044594-0.33960.367685
20-0.11681-0.88960.188678
21-0.08689-0.66170.25538
22-0.213141-1.62320.054981
230.0184350.14040.444417
24-0.234121-1.7830.039909
25-0.116377-0.88630.189558
26-0.129874-0.98910.163363
27-0.03159-0.24060.405363
280.0448370.34150.366993
290.1157980.88190.190737
300.0346420.26380.396425
31-0.108816-0.82870.205331
32-0.046678-0.35550.361755
33-0.137882-1.05010.149019
34-0.022793-0.17360.431397
35-0.069917-0.53250.298218
36-0.035689-0.27180.393371
370.0421940.32130.374554
38-0.073392-0.55890.289177
390.0137080.10440.458607
400.0070920.0540.478557
410.0413550.3150.376964
42-0.018233-0.13890.445021
43-0.104719-0.79750.214202
44-0.126295-0.96180.170063
45-0.018222-0.13880.445056
46-0.082581-0.62890.265937
47-0.000108-8e-040.499672
48-0.095843-0.72990.23419
49-0.060854-0.46350.322387
500.0511510.38960.349147
51-0.022588-0.1720.432008
520.0074780.05690.477391
530.0434560.33090.370938
54-0.016836-0.12820.449208
55-0.113076-0.86120.196349
560.0267090.20340.419762
57-0.020516-0.15620.438192
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293028766dn78usz2ckoibzn/1yvmz1293028660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293028766dn78usz2ckoibzn/1yvmz1293028660.ps (open in new window)


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


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


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