Home » date » 2010 » Dec » 18 »

autocorrelatiefunctie 3

*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: Sat, 18 Dec 2010 20:27:56 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/18/t1292703969xe1jonrl7j0a3pg.htm/, Retrieved Sat, 18 Dec 2010 21:26:10 +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/2010/Dec/18/t1292703969xe1jonrl7j0a3pg.htm/},
    year = {2010},
}
@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 = {2010},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101.76 102.37 102.38 102.86 102.87 102.92 102.95 103.02 104.08 104.16 104.24 104.33 104.73 104.86 105.03 105.62 105.63 105.63 105.94 106.61 107.69 107.78 107.93 108.48 108.14 108.48 108.48 108.89 108.93 109.21 109.47 109.80 111.73 111.85 112.12 112.15 112.17 112.67 112.80 113.44 113.53 114.53 114.51 115.05 116.67 117.07 116.92 117.00 117.02 117.35 117.36 117.82 117.88 118.24 118.50 118.80 119.76 120.09 120.16
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.244989-1.66160.051697
20.1087880.73780.232181
3-0.002915-0.01980.492155
40.2991922.02920.024123
5-0.130581-0.88560.190208
6-0.174063-1.18050.121925
70.2441831.65610.052251
8-0.289147-1.96110.027969
90.278791.89080.032476
10-0.249154-1.68980.048912
110.2909181.97310.027255
12-0.325782-2.20960.016076
130.1555271.05480.148505
14-0.054854-0.3720.355787
15-0.09653-0.65470.257962
16-0.068915-0.46740.321208
17-0.174103-1.18080.12187
180.2666381.80840.03854
19-0.202434-1.3730.088208
200.0900260.61060.272239
21-0.130109-0.88240.191063
220.3219912.18390.017055
23-0.133933-0.90840.184206
24-0.12955-0.87860.192079
250.0490120.33240.370542
260.0622460.42220.337432
27-0.045886-0.31120.378523
28-0.141418-0.95910.17125
290.1756511.19130.119819
30-0.125456-0.85090.199621
310.0253630.1720.432089
320.0033120.02250.491088
33-0.01504-0.1020.459596
34-0.128445-0.87120.194097
350.007370.050.480176
360.0031410.02130.491548
37-0.08717-0.59120.278636
38-0.038103-0.25840.398614
390.0178840.12130.451993
400.0776610.52670.30046
41-0.049247-0.3340.369945
420.00150.01020.495964
430.0653120.4430.329933
440.0136570.09260.463302
45-0.020336-0.13790.44545
46NANANA
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.244989-1.66160.051697
20.0518820.35190.363268
30.0374040.25370.400434
40.3216232.18140.017153
50.0116110.07870.468788
6-0.298783-2.02640.02427
70.1441260.97750.166715
8-0.310025-2.10270.020497
90.3162892.14520.018626
10-0.043682-0.29630.384181
110.1363250.92460.18
12-0.202864-1.37590.087759
13-0.114974-0.77980.219753
14-0.030233-0.20510.419218
15-0.064824-0.43970.331122
16-0.101533-0.68860.247258
17-0.043311-0.29370.385136
180.0628370.42620.335983
190.221951.50530.069536
20-0.180073-1.22130.114094
210.0791040.53650.297096
220.0497890.33770.368568
230.0012250.00830.496702
24-0.196907-1.33550.094144
25-0.076601-0.51950.302941
260.1433940.97250.167933
27-0.042787-0.29020.386486
280.0634020.430.334596
29-0.055473-0.37620.354236
30-0.115316-0.78210.219078
31-0.055718-0.37790.353623
32-0.058126-0.39420.347616
33-0.060332-0.40920.342149
340.0496060.33640.369033
35-0.024528-0.16640.434301
36-0.092876-0.62990.265934
370.0037960.02570.489787
380.0424140.28770.387448
39-0.051957-0.35240.363077
400.0486630.330.371431
41-0.106706-0.72370.236452
420.0811960.55070.292253
430.0677090.45920.324118
44-0.125701-0.85250.199165
450.080280.54450.294368
46NANANA
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292703969xe1jonrl7j0a3pg/10yhk1292704072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292703969xe1jonrl7j0a3pg/10yhk1292704072.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292703969xe1jonrl7j0a3pg/20yhk1292704072.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292703969xe1jonrl7j0a3pg/20yhk1292704072.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = Include Monthly Dummies ; par3 = Linear Trend ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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 (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