Home » date » 2010 » Dec » 22 »

Paper

*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 10:04: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/22/t1293012147n7stmf4n1xo09im.htm/, Retrieved Wed, 22 Dec 2010 11:02: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/t1293012147n7stmf4n1xo09im.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:
Paper Tom Aerts Julie Loockx
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5745 4549 5074 3602 2732 2589 2148 2330 2752 3241 4517 6550 6778 6240 5570 3558 3299 2447 2380 2378 2947 3651 4816 6436 7090 4682 4198 3860 3056 2563 2568 2472 2821 4015 4686 5418 5649 4572 4695 3766 2900 2528 2549 2478 2828 4139 5390 5621 5291 5272 4677 3520 2842 2723 2581 2429 2606 3787 4630 5505 5577 4911 4701 3557 2921 2734 2636 2433 2640 3794 4745 5698 5909 5119 5200 3876 3104 2251 2386 2794 2967 3392 4741 5909 5901 4962 4751 3909 3130 2860 2568 2540 2894 4216 4530 5144 6206 5645 4601 3645 3140 2264 2557 2431 2747 4587 4512 5313 6011 5328 5014 3630 3102 2739 2877 2659 2957 3785 4785 5757 5458 5427 5018 3498 3204 2763 2589 2591 2805 3278 4615 5524 6167 5380 5377 3603 2774 2470 2407 2512 2451 3134 4210 4859 5022 4584 4267 3022 2777 2428 2389 2496 2820 3854 4748 5666 5293 4905 4920 3854 2659 2491 2455 2472 3030 3987 4453 5417
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3703514.62574e-06
20.0621520.77630.219379
30.1796332.24360.013133
40.0848821.06020.145351
50.0153970.19230.423877
60.0243680.30440.380633
7-0.031635-0.39510.346646
80.0114910.14350.443033
90.0078230.09770.461143
10-0.03764-0.47010.319461
11-0.075163-0.93880.174646
12-0.357797-4.46898e-06
13-0.249314-3.11390.001099
14-0.101904-1.27280.102494
15-0.139259-1.73930.041973
16-0.008459-0.10570.457997
170.0378360.47260.318589
18-0.011582-0.14470.442585
19-0.012217-0.15260.439459
20-0.020886-0.26090.39727
21-0.022457-0.28050.389735
220.0449910.56190.287484
23-0.081964-1.02370.153775
24-0.123415-1.54150.062616
250.0922831.15260.125416
260.0575760.71910.236572
27-0.010029-0.12530.450237
28-0.075985-0.9490.172032
29-0.018677-0.23330.407929
300.0060610.07570.469879
31-0.032522-0.40620.342579
32-0.039925-0.49870.309358
330.0480970.60070.274445
340.0169360.21150.416373
35-0.041702-0.52090.301604
360.0114780.14340.443094
37-0.017652-0.22050.412895
38-0.061049-0.76250.223455
39-0.038894-0.48580.313902
400.0213690.26690.39495
410.0370330.46250.322171
420.0468510.58520.279641
430.0735410.91850.179881
440.0064480.08050.467959
45-0.006378-0.07970.468306
46-0.038563-0.48170.315363
47-0.028677-0.35820.360349
48-0.057456-0.71760.23703


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3703514.62574e-06
2-0.086931-1.08580.139629
30.2181532.72470.003585
4-0.074508-0.93060.176747
50.0296540.37040.355799
6-0.021243-0.26530.395553
7-0.048829-0.60990.271416
80.0565530.70630.240514
9-0.034944-0.43650.331555
10-0.009892-0.12350.450915
11-0.078528-0.98080.164101
12-0.379916-4.74512e-06
130.0521070.65080.258063
14-0.086359-1.07860.14121
150.0411950.51450.303807
160.1288411.60920.054795
17-0.020021-0.25010.401434
180.0443810.55430.290078
19-0.100539-1.25570.105545
200.0018030.02250.491033
210.0205510.25670.39888
220.0399890.49950.309077
23-0.129334-1.61540.054125
24-0.233592-2.91760.002025
250.1414091.76620.03966
26-0.094892-1.18520.118869
270.036290.45330.325495
28-0.079241-0.98970.161923
290.0887181.10810.134765
30-0.000973-0.01210.495161
31-0.073606-0.91930.179668
320.0303220.37870.352706
330.053160.6640.253844
340.0140560.17560.430434
35-0.136815-1.70880.044737
36-0.136763-1.70820.044797
370.080071.00010.159412
38-0.147446-1.84160.033717
390.0497020.62080.267826
400.0055530.06940.472398
410.0884131.10430.135585
420.0462750.5780.282057
43-0.049625-0.61980.268141
44-0.004476-0.05590.477743
450.0640780.80030.212367
46-0.08496-1.06120.14513
47-0.110748-1.38320.084284
48-0.160439-2.00390.023407
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293012147n7stmf4n1xo09im/1ikqj1293012255.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293012147n7stmf4n1xo09im/1ikqj1293012255.ps (open in new window)


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


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


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