Home » date » 2008 » Jan » 11 » attachments

Paper: Residu's

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 11 Jan 2008 08:18:04 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Jan/11/t12000645748xkr9ghpm517mkd.htm/, Retrieved Fri, 11 Jan 2008 16:16:16 +0100
 
User-defined keywords:
autocorrelatie Tinne Van der Eycken
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-5.97140410767898 -3.6691753651635 3.22573243778312 8.46994742622872 2.36104613837392 2.27810301334516 -1.89643356409454 -5.57048190071753 1.59306810529995 -1.15395525058041 -6.72929075561101 5.66399576285171 0.880403851972294 0.0619490573441767 8.08456537817682 -6.2448790022095 -2.24567792980042 2.59166701507407 0.601813487319091 4.8272769098794 5.09668174354169 -3.33658622020570 5.34417316066118 1.99609666699276 0.415333303125725 -0.900878021038933 -3.09016502696032 -1.53443811684522 5.61627406480226 -0.498380340378351 -0.443356334553083 -2.97096557941350 0.937268288719855 0.471804866159551 -0.0743614606905861 -6.83970786794111 -0.673055658412168 2.52156302681157 -8.65114003996448 -3.54390202061101 -4.50157864426839 -3.61584164436451 -1.48647635742622 1.68874294472572 -6.24526584517324 3.14185515887046 0.155104567902546 -4.48946146647238 1.49426292301859 1.98654130204668 0.431007250964857 2.85327171343702 -1.23006362910736 -0.75554804367637 3.22445276875476 2.02542762552591 -1.38175229238826 0.876881445756102 1.30437448773787 3.669076904569 3.85445968797453
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.81020
10.0296170.23130.408921
2-0.07947-0.62070.73144
30.1975961.54330.063968
4-0.198817-1.55280.937179
50.0939130.73350.233036
60.2938262.29490.012598
7-0.326288-2.54840.993322
80.1510591.17980.121329
90.3152882.46250.008319
10-0.132299-1.03330.847226
110.0444420.34710.364855
12-0.120729-0.94290.82528
13-0.283825-2.21670.984811
140.0817160.63820.26286
150.0196530.15350.439258
16-0.150401-1.17470.877654
170.091420.7140.238971
18-0.141254-1.10320.86287
19-0.174722-1.36460.911308
20-0.019355-0.15120.55983
21-0.153628-1.19990.882586
22-0.195984-1.53070.934491
230.0710980.55530.290363
24-0.20372-1.59110.941622
250.0443610.34650.365092
260.1172020.91540.181799
27-0.170741-1.33350.906342
28-0.034429-0.26890.605542
290.1024110.79990.213449
30-0.107558-0.84010.79792
310.1631441.27420.103713
320.0710460.55490.2905
33-0.165325-1.29120.899252
340.1093830.85430.198139
35-0.000457-0.00360.501418
36-0.147401-1.15120.872937
370.1135540.88690.189311
380.0389910.30450.380879
39-0.051147-0.39950.654528
400.1627711.27130.104227
410.0129580.10120.459861
42-0.02156-0.16840.566584
430.0510310.39860.345802
44-0.06456-0.50420.692043
45-0.040685-0.31780.624124
460.1207610.94320.174657
470.0342060.26720.395124
48-0.00059-0.00460.501832
49-0.009828-0.07680.530466
50-0.049741-0.38850.650496
510.0077250.06030.476043
520.0235140.18360.42745
53-0.042958-0.33550.630806
54-0.023454-0.18320.572369
550.0290910.22720.41051
560.0591730.46220.322806
570.0412620.32230.374175
58-0.010559-0.08250.532726
59-0.043169-0.33720.631422


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0296170.23130.408921
1-0.080418-0.62810.733854
20.2040181.59340.058116
3-0.232654-1.81710.962941
40.1757521.37270.087441
50.2073931.61980.055218
6-0.312962-2.44430.991291
70.2399691.87420.032846
80.2308681.80310.038153
9-0.041183-0.32160.62559
10-0.163613-1.27790.896929
11-0.160442-1.25310.892523
12-0.00574-0.04480.517805
13-0.20638-1.61190.943924
140.0155280.12130.451936
150.0381650.29810.383328
16-0.015396-0.12020.547658
17-0.216273-1.68910.951851
18-0.126265-0.98620.836025
19-0.00861-0.06720.526697
20-0.034681-0.27090.606296
21-0.17881-1.39660.916196
220.0965650.75420.226817
23-0.219532-1.71460.954253
240.0947040.73970.23117
25-0.018665-0.14580.557713
26-0.010814-0.08450.533516
270.0270910.21160.416568
280.0946560.73930.231284
290.0630410.49240.312114
30-0.02714-0.2120.583583
310.0343160.2680.394795
32-0.025434-0.19860.578398
33-0.170458-1.33130.905981
34-0.116709-0.91150.817197
35-0.146555-1.14460.871583
36-0.019458-0.1520.560144
37-0.030306-0.23670.593157
38-0.084805-0.66240.74488
39-0.068978-0.53870.703984
400.0657110.51320.304825
410.0147440.11520.454352
42-0.102949-0.80410.787756
43-0.013115-0.10240.540624
440.1456341.13740.129902
45-0.093939-0.73370.767026
460.0320360.25020.401633
47-0.048245-0.37680.646187
480.0359970.28110.389774
49-0.087403-0.68260.751289
500.0003220.00250.499
510.0385390.3010.382219
52-0.0041-0.0320.512721
53-0.118399-0.92470.820624
54-0.061829-0.48290.684552
55-0.009507-0.07430.529474
56-0.050377-0.39350.652324
57-0.044893-0.35060.636462
58-0.006261-0.04890.519422
59-0.102947-0.8040.787753
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/11/t12000645748xkr9ghpm517mkd/1w1b91200064682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/11/t12000645748xkr9ghpm517mkd/1w1b91200064682.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/11/t12000645748xkr9ghpm517mkd/2gtb81200064682.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jan/11/t12000645748xkr9ghpm517mkd/2gtb81200064682.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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 1:par1) {
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(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-1,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(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