Home » date » 2009 » Nov » 26 »

autocorr. functie

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 26 Nov 2009 11:24:00 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/26/t1259259926j9qeocep5loxpcr.htm/, Retrieved Thu, 26 Nov 2009 19:25:28 +0100
 
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/2009/Nov/26/t1259259926j9qeocep5loxpcr.htm/},
    year = {2009},
}
@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 = {2009},
    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:
d=0 D=0 tijdreeks: aantal bouwvergunningen
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2465 1932 1993 2243 1758 1806 2063 1823 2137 2428 2139 2265 2615 2070 2794 2190 2434 2520 2063 2068 2537 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 2946 2799 2695 2498 2260 2160 2058 2533 2150 2172 2155 3016
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3724432.90890.002527
20.3925543.06590.001616
30.3591812.80530.003368
40.2689682.10070.019904
50.1315321.02730.154169
60.0944480.73770.231774
70.0754250.58910.278989
80.143851.12350.132813
90.1442781.12690.13211
100.070910.55380.29086
110.07230.56470.287179
120.1433251.11940.133678
13-0.012282-0.09590.461946
140.0063450.04960.480319
150.0509030.39760.34617
16-0.049201-0.38430.351056
170.0139870.10920.456684
18-0.08388-0.65510.257425
19-0.024666-0.19260.423937
20-0.093918-0.73350.233025
210.031420.24540.403486
22-0.114579-0.89490.187182
23-0.025559-0.19960.421221
240.0573350.44780.327942
250.0812150.63430.264125
26-0.041876-0.32710.37237
270.038640.30180.381921
28-0.033318-0.26020.397784
29-0.080661-0.630.265529
30-0.110539-0.86330.195668
31-0.167508-1.30830.097843
32-0.103072-0.8050.211967
33-0.121391-0.94810.173412
34-0.161416-1.26070.10611
35-0.238178-1.86020.033838
36-0.101706-0.79430.215036


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3724432.90890.002527
20.2947222.30190.012386
30.1860191.45290.075695
40.0375590.29330.385127
5-0.120593-0.94190.174989
6-0.074404-0.58110.281653
70.0034120.02660.489415
80.1611761.25880.106445
90.1317411.02890.153788
10-0.057463-0.44880.327583
11-0.091847-0.71740.237948
120.052840.41270.340638
13-0.102744-0.80250.212703
14-0.00144-0.01120.495533
150.0905320.70710.241106
16-0.080958-0.63230.264776
170.0239190.18680.426213
18-0.125664-0.98150.16512
190.0162160.12670.449816
20-0.072715-0.56790.286087
210.1557141.21620.114303
22-0.073729-0.57580.283419
23-0.002577-0.02010.492005
240.0991450.77430.220858
250.1277380.99770.161191
26-0.138148-1.0790.142424
27-0.036055-0.28160.389602
28-0.069646-0.5440.294229
29-0.114159-0.89160.188052
300.010460.08170.467577
31-0.055873-0.43640.332051
320.0513850.40130.34479
33-0.087006-0.67950.249685
34-0.062892-0.49120.312524
35-0.213735-1.66930.050089
360.0145250.11340.455025
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259259926j9qeocep5loxpcr/1nsfa1259259838.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259259926j9qeocep5loxpcr/1nsfa1259259838.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259259926j9qeocep5loxpcr/236yr1259259838.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259259926j9qeocep5loxpcr/236yr1259259838.ps (open in new window)


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