Home » date » 2010 » Aug » 04 »

Tijdreeks B stap 18

*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, 04 Aug 2010 15:06:28 +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/Aug/04/t1280934417ey2iimtfv0f9z90.htm/, Retrieved Wed, 04 Aug 2010 17:06:59 +0200
 
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/Aug/04/t1280934417ey2iimtfv0f9z90.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:
Bogaerts Yannik
 
Dataseries X:
» Textbox « » Textfile « » CSV «
83 82 81 79 77 76 77 79 80 80 81 83 83 76 77 72 64 70 69 78 84 91 96 101 99 98 98 97 92 106 100 107 111 115 117 120 117 108 111 118 113 129 122 135 146 151 147 151 156 144 151 159 148 170 163 179 184 192 197 199 205 194 200 211 211 230 229 236 239 250 254 254 264 258 264 277 274 284 279 290 287 297 302 294
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.356104-3.24430.000849
20.2738722.49510.007287
30.1028210.93670.175804
4-0.161437-1.47080.072569
50.0757510.69010.24602
6-0.153424-1.39780.082955
70.1435181.30750.097324
8-0.232615-2.11920.01853
90.1070930.97570.166033
100.3441263.13510.001188
11-0.345566-3.14830.001141
120.7085556.45520
13-0.300778-2.74020.003758
140.1610391.46710.073059
150.0169830.15470.438709
16-0.11492-1.0470.149077
17-0.016624-0.15140.439995
18-0.198933-1.81240.036773
190.1680721.53120.064761
20-0.20426-1.86090.03315
210.0848130.77270.220951
220.3280842.9890.001841
23-0.320236-2.91750.002269
240.5048034.5998e-06
25-0.212968-1.94020.027874
260.1058360.96420.168869
27-0.083691-0.76250.223973
28-0.096942-0.88320.189844
29-0.036762-0.33490.369266
30-0.168748-1.53740.064004
310.1542731.40550.081803
32-0.132312-1.20540.115733
330.0213690.19470.423059
340.2299192.09470.019625
35-0.197221-1.79680.038005
360.2646882.41140.009048
37-0.119531-1.0890.139657
380.0271980.24780.402456
39-0.116795-1.06410.145194
40-0.086113-0.78450.217482
41-0.010701-0.09750.461288
42-0.144804-1.31920.095361
430.0756050.68880.246438
44-0.066717-0.60780.272484
45-0.006972-0.06350.474752
460.1323211.20550.115717
47-0.093023-0.84750.199583
480.0940150.85650.197089
49-0.10138-0.92360.179181
50-0.006596-0.06010.476113
51-0.077224-0.70350.241842
52-0.05399-0.49190.312055
53-0.013277-0.1210.452008
54-0.101145-0.92150.179738
550.0123250.11230.455436
56-0.027199-0.24780.402452
57-0.020673-0.18830.425536
580.042840.39030.34866
59-0.064462-0.58730.279307
600.017010.1550.438612


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.356104-3.24430.000849
20.1684191.53440.06437
30.2874722.6190.005241
4-0.119593-1.08950.139534
5-0.148-1.34830.090608
6-0.151786-1.38280.085212
70.1816141.65460.050893
8-0.107475-0.97910.165177
9-0.074562-0.67930.249421
100.5456724.97132e-06
11-0.076081-0.69310.245081
120.4449814.0545.6e-05
13-0.080443-0.73290.232851
14-0.105813-0.9640.168923
15-0.071888-0.65490.257163
16-0.045942-0.41860.338313
17-0.147897-1.34740.090758
18-0.036727-0.33460.369387
190.002280.02080.49174
200.0451980.41180.340785
210.0183590.16730.433788
220.0037160.03390.486538
230.0032450.02960.488242
240.0115050.10480.458387
250.0408490.37220.355364
260.0215480.19630.422424
27-0.071808-0.65420.257395
28-0.094332-0.85940.196295
29-0.018061-0.16450.434852
300.1325651.20770.115292
31-0.048198-0.43910.330862
32-0.028795-0.26230.396856
33-0.053052-0.48330.315069
34-0.160014-1.45780.074335
350.0866930.78980.215945
36-0.156406-1.42490.078964
370.0934640.85150.198473
380.043320.39470.347052
390.032790.29870.382947
40-0.102018-0.92940.177681
410.0209870.19120.424416
42-0.011318-0.10310.459063
43-0.060021-0.54680.292987
44-0.084329-0.76830.222252
450.0004610.00420.498329
46-0.004788-0.04360.482657
47-0.009185-0.08370.466755
48-0.070342-0.64080.261694
49-0.060771-0.55360.290655
500.0467120.42560.335763
510.0546340.49770.309991
520.0783290.71360.238736
53-0.009131-0.08320.466952
54-0.087113-0.79360.214836
55-0.03842-0.350.363605
56-0.100658-0.9170.180889
57-0.0767-0.69880.243323
580.0455490.4150.339618
59-0.083565-0.76130.224315
600.0505560.46060.32315
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/04/t1280934417ey2iimtfv0f9z90/1q7up1280934386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t1280934417ey2iimtfv0f9z90/1q7up1280934386.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/04/t1280934417ey2iimtfv0f9z90/20gbs1280934386.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/04/t1280934417ey2iimtfv0f9z90/20gbs1280934386.ps (open in new window)


 
Parameters (Session):
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; 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 (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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 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