Home » date » 2011 » Apr » 26 »

Opdracht 6 bis IKO - Autocorrelatie trend Bouwvergunningen - Nathan Jacobs

*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, 26 Apr 2011 14:59: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/26/t1303829818cdcef50k0kfmam1.htm/, Retrieved Tue, 26 Apr 2011 16:57:21 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1394 1657 2411 3595 3336 3249 2920 2113 2040 1853 1832 2093 2164 2368 2072 2521 1819 1947 2226 1754 1787 2072 1846 2137 2467 2154 2289 2628 2074 2798 2194 2442 2565 2063 2069 2539 1898 2139 2408 2725 2201 2311 2548 2276 2351 2280 2057 2479 2379 2295 2456 2546 2844 2260 2981 2678 3440 2842 2450 2669 2570 2540 2318 2930 2947 2799 2695 2498 2260 2160 2058 2533 2150 2172 2155 3016 2333 2355 2825 2214 2360 2299 1746 2069 2267 1878 2266 2282 2085 2277 2251 1828 1954 1851 1570 1852 2187 1855 2218
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.330042-3.26730.000749
20.0112210.11110.45589
30.1629871.61350.054927
4-0.205331-2.03270.022395
5-0.12677-1.2550.106239
60.0296060.29310.38504
7-0.123855-1.22610.111548
80.0050390.04990.480157
90.1728521.71120.045108
10-0.062599-0.61970.268448
11-0.071502-0.70780.240365
120.2553082.52740.006545
13-0.182104-1.80270.037251
14-0.022567-0.22340.411843
150.1404961.39080.083712
16-0.174828-1.73070.043325
170.0291460.28850.386774
18-0.016761-0.16590.434278
19-0.014864-0.14710.441659
20-0.089228-0.88330.189614
210.2145052.12350.018116
22-0.137524-1.36140.088252
23-0.014533-0.14390.44295
240.152611.51080.067033
25-0.026279-0.26010.397647
26-0.027747-0.27470.39207
270.0913920.90470.183913
28-0.076841-0.76070.224335
290.0257570.2550.399636
30-0.009497-0.0940.462643
31-0.135361-1.340.091672
320.0713120.7060.240946
330.0170510.16880.43315
340.0029280.0290.488467
35-0.116727-1.15550.125341
360.2121042.09970.019161
37-0.040088-0.39690.346169
38-0.133832-1.32490.094147
390.1359611.34590.090713
40-0.051565-0.51050.305435
41-0.03627-0.35910.360162
420.0365770.36210.359032
43-0.057571-0.56990.285016
440.0196430.19450.423109
45-0.054192-0.53650.296422
460.1193171.18120.120194
47-0.173856-1.72110.044195
480.1032791.02240.154553


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.330042-3.26730.000749
2-0.109651-1.08550.140183
30.1486971.4720.072109
4-0.114534-1.13380.129816
5-0.263792-2.61140.005217
6-0.155632-1.54070.063309
7-0.14531-1.43850.07674
8-0.087491-0.86610.194271
90.0994490.98450.163649
100.0027270.0270.489259
11-0.201457-1.99430.024448
120.0904840.89570.186293
13-0.016435-0.16270.435547
14-0.048425-0.47940.316369
150.0549810.54430.29374
16-0.052944-0.52410.30069
17-0.0358-0.35440.361899
18-0.129861-1.28560.100813
190.0102170.10110.459823
20-0.132146-1.30820.096937
210.0927810.91850.18031
22-0.051677-0.51160.305048
23-0.108354-1.07260.143032
24-0.042236-0.41810.338387
250.1300041.2870.100567
260.0727980.72070.236417
270.0091890.0910.463853
280.0161830.16020.436526
290.0419810.41560.33931
300.0183650.18180.428055
31-0.106243-1.05170.147751
320.0841230.83280.203498
33-0.02022-0.20020.420882
340.0676850.670.252203
35-0.18448-1.82630.035428
360.0420140.41590.33919
370.1066051.05530.146933
38-0.122558-1.21330.113973
390.0106230.10520.458229
400.0023190.0230.490864
410.0551840.54630.293053
42-0.084929-0.84080.201265
430.0448520.4440.329006
440.0076610.07580.469851
45-0.144817-1.43360.077432
460.0860120.85150.19829
47-0.084515-0.83670.202411
48-0.086206-0.85340.197761
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/1n49o1303829995.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/1n49o1303829995.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/28tu51303829995.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/28tu51303829995.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/390t71303829995.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829818cdcef50k0kfmam1/390t71303829995.ps (open in new window)


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