Home » date » 2010 » May » 02 »

Autocorrelatie

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 02 May 2010 08:32:53 +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/May/02/t1272789289l1n3yc5kj9tzo51.htm/, Retrieved Sun, 02 May 2010 10:34:51 +0200
 
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/May/02/t1272789289l1n3yc5kj9tzo51.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,17 2,18 2,18 2,18 2,17 2,17 2,18 2,17 2,18 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,17 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,18 2,19 2,19 2,19 2,20 2,20 2,21 2,21 2,21 2,20 2,21 2,20 2,21 2,21 2,22 2,22 2,23 2,24 2,24 2,25 2,25 2,32 2,36 2,37 2,37 2,37 2,38 2,38 2,41 2,42 2,43 2,44 2,44 2,44 2,43 2,43 2,43 2,42 2,42 2,42 2,42 2,42
 
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.9696298.22760
20.9360367.94250
30.898637.62510
40.8601347.29850
50.8185956.9460
60.7717916.54890
70.7240816.1440
80.6704675.68910
90.6140885.21071e-06
100.5537124.69846e-06
110.4923824.1784.1e-05
120.4323683.66880.000232
130.3746213.17880.00109
140.3196872.71260.004172
150.2711482.30080.012152
160.2219291.88310.031861
170.1744331.48010.071603
180.126121.07020.144061
190.077990.66180.255117
200.0322640.27380.392522
21-0.00507-0.0430.482902
22-0.0268-0.22740.410375
23-0.048939-0.41530.339592
24-0.068946-0.5850.280178
25-0.089362-0.75830.225384
26-0.107918-0.91570.181436
27-0.124751-1.05850.146672
28-0.141584-1.20140.11677
29-0.156694-1.32960.093925
30-0.17194-1.4590.074463
31-0.18519-1.57140.060238
32-0.199299-1.69110.04757
33-0.211412-1.79390.038514
34-0.226066-1.91820.029524
35-0.240536-2.0410.022458
36-0.255007-2.16380.016899
37-0.266072-2.25770.013499
38-0.277001-2.35040.010747
39-0.285662-2.42390.008933
40-0.295597-2.50820.007194
41-0.304394-2.58290.005915
42-0.312605-2.65250.004911
43-0.318589-2.70330.004279
44-0.325255-2.75990.003664
45-0.330239-2.80220.003258
46-0.335767-2.84910.002857
47-0.340567-2.88980.002545
48-0.343278-2.91280.002384


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9696298.22760
2-0.069272-0.58780.279256
3-0.078633-0.66720.25338
4-0.032002-0.27150.393373
5-0.06709-0.56930.285471
6-0.106322-0.90220.184987
7-0.029726-0.25220.40079
8-0.118735-1.00750.158535
9-0.070623-0.59930.275442
10-0.088034-0.7470.228751
11-0.04446-0.37730.353548
12-0.008419-0.07140.471623
130.0112350.09530.462157
140.0117570.09980.460406
150.0827640.70230.242386
16-0.051913-0.44050.330448
17-0.011421-0.09690.461534
18-0.058032-0.49240.31196
19-0.057987-0.4920.312095
20-0.02729-0.23160.408768
210.0877660.74470.229433
220.2006311.70240.046496
23-0.06138-0.52080.302042
24-0.025967-0.22030.413116
25-0.04747-0.40280.344146
26-0.032396-0.27490.392095
27-0.031138-0.26420.396186
28-0.045137-0.3830.351423
29-0.046964-0.39850.34572
30-0.070093-0.59480.276933
31-0.034076-0.28910.38665
32-0.052485-0.44530.328703
330.0196610.16680.433986
34-0.051859-0.440.330613
350.0134830.11440.454617
360.0108970.09250.463292
370.0188160.15970.436798
38-0.034824-0.29550.384235
39-0.007998-0.06790.473039
40-0.069574-0.59040.278399
410.0057730.0490.480532
420.0279970.23760.406448
430.0637990.54140.294967
44-0.074637-0.63330.264268
45-0.00121-0.01030.495918
46-0.072605-0.61610.269895
47-0.011439-0.09710.461473
48-0.01088-0.09230.463349
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/02/t1272789289l1n3yc5kj9tzo51/1i7uj1272789171.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/02/t1272789289l1n3yc5kj9tzo51/1i7uj1272789171.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/02/t1272789289l1n3yc5kj9tzo51/2i7uj1272789171.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/02/t1272789289l1n3yc5kj9tzo51/2i7uj1272789171.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 (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