Home » date » 2011 » Apr » 12 »

autocorrelation 2 - 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:58:35 +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/t13026417008v3ioc7t3pqmx2z.htm/, Retrieved Tue, 12 Apr 2011 22:55:03 +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.3524174.68863e-06
20.0178470.23740.406296
3-0.198198-2.63690.004556
4-0.230974-3.07290.001228
5-0.15361-2.04370.021235
6-0.0494-0.65720.255946
70.124061.65050.050306
8-0.02332-0.31030.378366
90.0653490.86940.192899
10-0.025543-0.33980.367193
110.0041960.05580.47777
12-0.014496-0.19290.423645
13-0.064057-0.85220.197621
14-0.054288-0.72230.235546
15-0.077337-1.02890.152465
16-0.004367-0.05810.47687
17-0.056044-0.74560.228443
180.0858321.14190.127516
190.0266710.35480.361567
20-0.094678-1.25960.104733
21-0.112881-1.50180.067468
22-0.088021-1.1710.121578
230.1566882.08460.019271
240.1223761.62810.05264
250.13921.85190.03285
260.1052761.40060.081541
270.0387110.5150.30359
28-0.064427-0.85710.196262
29-0.079087-1.05220.147076
30-0.084306-1.12160.131771
31-0.101952-1.35640.088352
320.0360320.47940.31613
330.0145360.19340.423436
340.0291160.38740.349476
350.0065720.08740.465213
36-0.02494-0.33180.370214
37-0.022541-0.29990.382306
380.0282010.37520.353982
390.0222790.29640.383636
40-0.046285-0.61580.269415
41-0.058386-0.77680.219165
42-0.061662-0.82040.206556
43-0.066394-0.88330.189131
440.0191540.25480.399578
45-0.004807-0.0640.474539
46-0.028132-0.37430.354327
470.0135060.17970.428804
48-0.042807-0.56950.284866
49-0.014538-0.19340.42343
500.0404640.53830.295511
510.0284150.3780.352929
52-0.067406-0.89680.185529
53-0.022359-0.29750.38323
54-0.071259-0.9480.172201
55-0.021521-0.28630.387487
560.0535740.71280.238468
570.0620840.8260.204965
580.0277230.36880.356346
59-0.025853-0.3440.365645
600.0311460.41440.33955


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3524174.68863e-06
2-0.121433-1.61560.053986
3-0.188271-2.50480.006578
4-0.108116-1.43840.076044
5-0.05093-0.67760.249463
6-0.02469-0.32850.371468
70.1063991.41550.079334
8-0.187994-2.50110.006645
90.1222471.62640.052822
10-0.081965-1.09050.138495
110.0452530.60210.273955
12-0.026463-0.35210.362605
13-0.067921-0.90360.183711
14-0.040222-0.53510.296619
15-0.018261-0.24290.404163
16-0.037883-0.5040.307446
17-0.058841-0.78280.217388
180.0846921.12680.130686
19-0.06989-0.92980.176864
20-0.135496-1.80270.036572
21-0.044395-0.59060.277759
22-0.028924-0.38480.350422
230.2035392.70790.003717
24-0.043792-0.58260.280445
250.011470.15260.439445
260.1338041.78010.038384
270.021030.27980.389985
28-0.037769-0.50250.307977
290.0432870.57590.28271
30-0.136744-1.81930.03528
310.0310030.41250.340248
320.0496220.66020.254999
33-0.094574-1.25820.104984
34-0.005459-0.07260.47109
350.0002120.00280.498878
36-0.075901-1.00980.156985
370.0506580.6740.250607
380.0574390.76420.222889
39-0.046167-0.61420.269934
400.047040.62580.266116
41-0.127365-1.69450.045966
42-0.025594-0.34050.366938
430.0244570.32540.372637
440.0073570.09790.461069
45-0.0873-1.16150.123511
46-0.033056-0.43980.330317
47-0.002121-0.02820.488758
48-0.079073-1.0520.147118
490.0027740.03690.485303
50-0.043563-0.57960.281469
51-0.049357-0.65670.256127
52-0.095853-1.27520.101948
530.0400750.53320.297293
54-0.089869-1.19560.116721
550.0358480.47690.317
56-0.002554-0.0340.486467
57-0.000644-0.00860.496589
58-0.047837-0.63640.262661
590.0139190.18520.426649
600.0635740.84580.199403
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/12/t13026417008v3ioc7t3pqmx2z/156411302641912.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/12/t13026417008v3ioc7t3pqmx2z/156411302641912.ps (open in new window)


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


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


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