Home » date » 2010 » Jul » 07 »

Kelly Janbroers - 2de zit - Stap 20/A

*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, 07 Jul 2010 17:58:46 +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/Jul/07/t1278525533sfs5jrd4yqxdezc.htm/, Retrieved Wed, 07 Jul 2010 19:58:53 +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/Jul/07/t1278525533sfs5jrd4yqxdezc.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 «
33 32 31 29 49 48 33 23 24 24 25 27 24 21 15 21 49 48 35 36 51 50 61 63 61 62 58 65 93 94 86 88 102 107 121 127 125 128 117 127 160 162 153 160 177 178 196 212 212 211 204 216 248 250 240 249 275 277 286 302 290 290 277 285 311 300 291 299 332 337 343 360 353 351 341 348 381 358 353 358 399 409 407 419 418 421 414 424 463 437 430 436 474 489 482 492 502 500 493 504 538 516 502 501 541 571 559 569 576 573 562 570 597 573 562 556 600 630 624 634
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9758910.69030
20.95172310.42560
30.92885610.17510
40.9085759.95290
50.891129.76170
60.8714939.54670
70.8508559.32060
80.8265799.05470
90.8028638.79490
100.7799728.54420
110.7578458.30180
120.7349688.05120
130.7069997.74480
140.6788757.43670
150.6511917.13340
160.6264726.86270
170.6048516.62580
180.581326.3680
190.5564936.09610
200.5292435.79760
210.504115.52220
220.4799225.25730
230.4569445.00561e-06
240.4334914.74873e-06
250.4062834.45061e-05
260.3791454.15333.1e-05
270.3527573.86439.1e-05
280.3281233.59440.000236
290.3066063.35870.000525
300.2838913.10990.001169
310.260622.85490.002537
320.2349362.57360.005641
330.21212.32340.010919
340.1905512.08740.019485
350.1699721.8620.032528
360.1494781.63750.052078
370.1253061.37270.086209
380.1016111.11310.133947
390.0785450.86040.195636
400.0568830.62310.267194
410.038940.42660.335229
420.0200010.21910.413474
430.0004970.00540.497831
44-0.020595-0.22560.410947
45-0.03879-0.42490.335826
46-0.056135-0.61490.269882
47-0.072887-0.79840.213098
48-0.089501-0.98040.164423
49-0.109296-1.19730.11678
50-0.128173-1.40410.081442
51-0.145704-1.59610.056548
52-0.162217-1.7770.039051
53-0.175735-1.92510.028293
54-0.189812-2.07930.01986
55-0.204959-2.24520.013293
56-0.220525-2.41570.008606
57-0.233081-2.55330.005962
58-0.244653-2.680.004198
59-0.256548-2.81030.002891
60-0.268231-2.93830.001979


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9758910.69030
2-0.013379-0.14660.441861
30.0149080.16330.435274
40.0423520.46390.321764
50.0493660.54080.294831
6-0.052298-0.57290.283894
7-0.025952-0.28430.38834
8-0.084063-0.92090.179485
9-0.003479-0.03810.484833
10-0.00654-0.07160.471502
11-0.003648-0.040.484095
12-0.034037-0.37290.354955
13-0.112168-1.22870.110787
14-0.017385-0.19040.42464
15-0.009386-0.10280.459139
160.032120.35190.362779
170.0398730.43680.331524
18-0.0438-0.47980.316119
19-0.028338-0.31040.378388
20-0.044927-0.49210.311757
210.0247860.27150.39323
22-0.012273-0.13440.446638
23-0.002004-0.0220.491262
24-0.028381-0.31090.378211
25-0.072368-0.79270.214744
26-0.013899-0.15230.439622
27-0.004079-0.04470.482217
28-0.00832-0.09110.463764
290.0311690.34140.366684
30-0.030491-0.3340.369479
31-0.0117-0.12820.449114
32-0.045127-0.49430.310984
330.0358160.39230.347748
34-0.009451-0.10350.458858
35-0.00902-0.09880.460729
36-0.01682-0.18420.427064
37-0.06523-0.71460.238133
38-0.009808-0.10740.457307
39-0.008209-0.08990.464248
40-0.020888-0.22880.409702
410.0382410.41890.338017
42-0.027444-0.30060.382105
43-0.014472-0.15850.437151
44-0.026282-0.28790.386959
450.0343420.37620.353717
46-0.020464-0.22420.411504
47-0.017041-0.18670.426115
48-0.019321-0.21170.416369
49-0.050852-0.55710.289264
50-0.005411-0.05930.476416
510.0073960.0810.467779
52-0.031094-0.34060.366994
530.0216210.23680.406591
54-0.016596-0.18180.428025
55-0.026054-0.28540.38791
56-0.004295-0.04710.481276
570.0345540.37850.352857
58-0.016966-0.18590.426438
59-0.033965-0.37210.355248
60-0.014692-0.16090.436204
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525533sfs5jrd4yqxdezc/1m23a1278525523.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525533sfs5jrd4yqxdezc/1m23a1278525523.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525533sfs5jrd4yqxdezc/2wclv1278525523.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/07/t1278525533sfs5jrd4yqxdezc/2wclv1278525523.ps (open in new window)


 
Parameters (Session):
par1 = 0.1 ; par2 = 0.99 ; par3 = 0.01 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; 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