Home » date » 2011 » Apr » 12 »

autocorrelation - geboortes - Katja Coppens

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 12 Apr 2011 20:43:58 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3.htm/, Retrieved Tue, 12 Apr 2011 22:40:59 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
131676 135050 129070 137792 139762 142917 144198 142648 152170 136022 138142 138135 135027 132911 133976 137012 119610 118106 120383 133185 131416 134248 134397 127728 131837 125955 134187 143291 145074 149812 144668 147253 145568 155564 155872 156323 158010 155598 154785 157294 162938 157283 166074 169282 172552 174055 175409 173696 171283 173322 170717 174229 175339 173511 175839 173816 173990 174777 174819 176726 176199 180952 176663 182346 180605 182497 187856 190020 190108 193288 193230 199068 195076 191563 191067 186665 185508 184371 183046 175714 175768 171029 170465 170102 156389 124291 99360 86675 85056 128236 164257 162401 152779 156005 153387 153190 148840 144211 145953 145542 150271 147489 143824 134754 131736 126304 125511 125495 130133 126257 110323 98417 105749 120665 124075 127245 146731 144979 148210 144670 142970 142524 146142 146522 148128 148798 150181 152388 1556 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.95267812.71030
20.87527411.67760
30.7947310.6030
40.7320039.76610
50.6888069.18980
60.6591578.79430
70.6346558.46740
80.59937.99570
90.566867.56290
100.5268027.02840
110.4896066.53220
120.4518756.02880
130.4147555.53350
140.3831945.11240
150.3575464.77032e-06
160.3400484.53685e-06
170.3209554.28211.5e-05
180.3061094.0843.3e-05
190.2833753.78070.000107
200.2595573.46290.000335
210.2434323.24780.000695
220.2374513.1680.000903
230.2384343.18110.000866
240.2252533.00520.001518
250.2023232.69930.003809
260.1672092.23080.01347
270.1250461.66830.048505
280.080681.07640.141601
290.0418730.55870.288547
300.0101570.13550.446182
31-0.015014-0.20030.420732
32-0.031237-0.41680.338679
33-0.051118-0.6820.248065
34-0.070063-0.93480.17559
35-0.090038-1.20130.115625
36-0.109355-1.4590.073167
37-0.12519-1.67020.048314
38-0.138911-1.85330.032747
39-0.15527-2.07160.019875
40-0.173156-2.31020.011012
41-0.185187-2.47070.007213
42-0.191757-2.55840.005675
43-0.190823-2.54590.005874
44-0.182393-2.43340.007973
45-0.175728-2.34450.010078
46-0.169375-2.25970.012525
47-0.15948-2.12770.017368
48-0.151645-2.02320.022275
49-0.13919-1.8570.03248
50-0.12639-1.68630.046749
51-0.118248-1.57760.058214
52-0.11266-1.50310.067296
53-0.101403-1.35290.088903
54-0.088614-1.18230.11934
55-0.069716-0.93010.176782
56-0.049317-0.6580.255704
57-0.034436-0.45940.323242
58-0.024773-0.33050.370698
59-0.017138-0.22860.409704
60-0.006184-0.08250.467168


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.95267812.71030
2-0.349781-4.66673e-06
30.0300670.40110.344398
40.1610262.14840.016519
50.0679120.90610.183064
60.0288760.38530.350255
70.0079360.10590.457897
8-0.130423-1.74010.041789
90.1448731.93290.027421
10-0.141164-1.88340.030641
110.05260.70180.241868
12-0.055146-0.73570.231429
13-0.030385-0.40540.342841
140.0514620.68660.246617
150.0256370.3420.36636
160.0022860.03050.487851
17-0.019074-0.25450.39971
180.0379720.50660.30653
19-0.086667-1.15630.124557
200.039790.53090.298088
210.0881791.17650.120491
220.0362490.48360.314623
23-0.003257-0.04350.482695
24-0.189097-2.52290.006258
25-0.001003-0.01340.494671
26-0.033732-0.450.326614
27-0.126864-1.69260.046143
28-0.033677-0.44930.32688
29-0.012533-0.16720.433699
30-0.042615-0.56860.285186
310.0629190.83940.201172
32-0.012609-0.16820.433301
33-0.079812-1.06480.1442
340.0528190.70470.24096
350.0005010.00670.497339
36-0.003323-0.04430.482346
370.0455410.60760.272114
38-0.056687-0.75630.225234
39-0.086744-1.15730.124349
400.0350230.46730.32044
41-0.026465-0.35310.362218
420.0719090.95940.169333
430.0341530.45570.324595
440.0040740.05430.478359
45-0.048063-0.64120.261096
460.0553190.7380.230729
470.0702570.93730.174927
48-0.056262-0.75060.226935
490.1163221.55190.061227
50-0.038829-0.5180.302537
51-0.00482-0.06430.474397
520.0726310.9690.166925
530.0557380.74360.229038
54-0.050586-0.67490.250307
550.0965411.2880.099706
56-0.053057-0.70790.239974
570.0022090.02950.488259
580.0122050.16280.435417
590.0013430.01790.492865
600.0170050.22690.410391
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/1zt261302641035.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/1zt261302641035.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/2q6sj1302641035.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/2q6sj1302641035.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/3pyhy1302641035.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t130264085660h45tde2pt2ps3/3pyhy1302641035.ps (open in new window)


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