Home » date » 2011 » Apr » 26 »

Opdracht 6 bis IKO - Autocorrelatie 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:57:27 +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/t1303829664amhde3mwuxpini7.htm/, Retrieved Tue, 26 Apr 2011 16:54:25 +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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5151245.12541e-06
20.3449653.43240.000437
30.2114582.1040.018957
4-0.002146-0.02140.491504
5-0.044339-0.44120.330028
60.026720.26590.395448
70.0524060.52140.301613
80.1428041.42090.079247
90.2268692.25730.013092
100.1418011.41090.080705
110.1112681.10710.135467
120.1626571.61840.054377
13-0.015278-0.1520.439741
14-0.017031-0.16950.432892
15-0.013329-0.13260.447381
16-0.112547-1.11980.132748
17-0.095688-0.95210.171687
18-0.094564-0.94090.174524
19-0.061361-0.61050.271453
20-0.043801-0.43580.33196
210.0605710.60270.274051
22-0.017507-0.17420.431033
230.0162070.16130.436111
240.0842860.83860.201847
250.0269110.26780.39472
26-0.024992-0.24870.402065
27-0.043732-0.43510.332208
28-0.123506-1.22890.111017
29-0.169058-1.68210.04785
30-0.19441-1.93440.027962
31-0.246365-2.45130.007993
32-0.158563-1.57770.058915
33-0.127583-1.26940.10363
34-0.141778-1.41070.080738
35-0.157959-1.57170.059608
36-0.040121-0.39920.345304
37-0.158427-1.57630.05907
38-0.224772-2.23650.013783
39-0.152951-1.52180.065618
40-0.186115-1.85180.033516
41-0.204916-2.03890.022064
42-0.181984-1.81070.036608
43-0.175237-1.74360.042168
44-0.137336-1.36650.087442
45-0.111519-1.10960.13493
46-0.045252-0.45030.326757
47-0.098069-0.97580.165777
480.0307970.30640.379963


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5151245.12541e-06
20.1083681.07820.141773
3-0.003867-0.03850.484694
4-0.186446-1.85510.033278
5-0.004536-0.04510.482048
60.1367361.36050.08838
70.0621570.61850.268848
80.0950340.94560.173332
90.1021481.01640.155967
10-0.075638-0.75260.226741
11-0.006083-0.06050.47593
120.1491941.48450.070432
13-0.144327-1.4360.077073
14-0.001334-0.01330.494718
15-0.012427-0.12360.450923
16-0.103235-1.02720.15342
17-0.042693-0.42480.335956
18-0.064256-0.63930.262039
190.0626640.62350.267195
20-0.047695-0.47460.318073
210.0901850.89730.185861
22-0.084238-0.83820.201981
230.0398590.39660.34626
240.1038811.03360.151919
250.0509310.50680.306725
26-0.093507-0.93040.177218
27-0.051019-0.50760.30642
28-0.043496-0.43280.333058
29-0.096056-0.95570.170764
30-0.09175-0.91290.181757
31-0.14519-1.44460.075861
320.0505610.50310.308015
33-0.126403-1.25770.10573
34-0.049962-0.49710.310104
35-0.134149-1.33480.092507
360.1434681.42750.078292
37-0.117429-1.16840.122725
38-0.124623-1.240.108957
390.0990030.98510.163495
40-0.009676-0.09630.461749
41-0.051774-0.51510.303798
42-0.108668-1.08120.14111
430.0694890.69140.245463
44-0.0845-0.84080.201253
45-0.06282-0.6250.266688
460.0766570.76270.22372
47-0.12024-1.19640.117204
480.0605410.60240.27415
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/1pfol1303829843.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/1pfol1303829843.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/2m81o1303829843.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/2m81o1303829843.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/36r601303829843.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t1303829664amhde3mwuxpini7/36r601303829843.ps (open in new window)


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