Home » date » 2009 » May » 28 »

autocorrelatoin function - Fortis - Caroline Thys

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 28 May 2009 07:53:33 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/May/28/t1243518904sdk3kghxe5nsek8.htm/, Retrieved Thu, 28 May 2009 15:55:06 +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/2009/May/28/t1243518904sdk3kghxe5nsek8.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
18,09 18,13 18 17,72 17,62 17,13 17,39 17,09 17,14 17,38 16,8 16,51 16,01 15,05 13,56 15,22 14,91 15,13 15,25 14,61 14,87 15,1 15,22 15,46 14,96 14 14,2 13,9 13,63 13,32 13,8 14,5 14,12 13,88 14,11 14,26 14,71 14,52 14,32 14,69 15,25 15,04 14,82 14,5 14,72 14,6 14,58 14 14,75 14,41 15,19 14,96 14,83 14,25 14,32 14,93 14,65 15,65 15,65 15,61 15,95 15,83 15,77 16,7 16,69 16,4 16,77 16,78 16,84 16,68 16,67 16,3 16,37 16,6 16,72 16,82 17,5 17,2 17,29 17,2 17,2 17,32 17,16 17,41 17,31 17,3 17,34 17,19 17,05 17,07 17,07 16,81 16,81 16,96 17,05 17 16,77 16,66 16,2 16,26 15,84 15,85 15,71 15,84 15,73 15,77 15,3 15,41 15,4 15,61 15 14,12 14,01 13,46 13,85 13,92 13,59 13,67 13,05 12,87 12,28 11,88 12,49 11,9 10,8 10,99 10,15 10,07 10,05 10,31 9,94 9,65 9,74 9,85 9,96 9,63 9,43 8,77 9,53 9,5 9,78 9,9 9,93 10,35 9,79 9,63 9,02 9,25 9,11 8,95 9,3 9,13 9,75 9,65 9,27 9,5 etc...
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.99078716.37050
20.98193416.22420
30.97309716.07820
40.96478115.94080
50.9563715.80180
60.94750415.65530
70.93811115.50010
80.92861915.34330
90.9185215.17640
100.90756914.99550
110.89719514.82410
120.8871814.65860
130.87727814.4950
140.86775514.33770
150.85907514.19430
160.84864114.02180
170.83860213.8560
180.82810213.68250
190.81707213.50030
200.80623613.32120
210.79529413.14040
220.78397112.95330
230.77248612.76360
240.76100412.57390
250.74968712.38690
260.73900412.21030
270.72831812.03380
280.71776811.85950
290.70733111.6870
300.69701311.51660
310.68648211.34250
320.67564211.16340
330.66503610.98820
340.65417410.80870
350.64323310.6280
360.63193310.44120
370.6204210.2510
380.60863710.05630
390.5974639.87170
400.5859639.68170
410.5740149.48430
420.562499.29390
430.5506889.09890
440.5396348.91620
450.5284498.73140
460.5174938.55040
470.5063648.36650
480.4958068.19210


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.99078716.37050
20.0149590.24720.402485
3-0.003196-0.05280.478965
40.0239960.39650.346031
5-0.008331-0.13760.445311
6-0.029225-0.48290.314785
7-0.0335-0.55350.290182
8-0.011796-0.19490.422808
9-0.039746-0.65670.25596
10-0.054768-0.90490.183154
110.0241530.39910.345077
120.0149220.24650.402722
130.0004540.00750.497013
140.0202140.3340.369323
150.0477520.7890.215403
16-0.097276-1.60730.054576
170.0127040.20990.416951
18-0.02638-0.43590.331636
19-0.044073-0.72820.233555
20-0.003196-0.05280.478965
21-0.012307-0.20340.419505
22-0.02663-0.440.330142
23-0.018861-0.31160.37778
24-0.000248-0.00410.498365
250.0147620.24390.403741
260.0253950.41960.337554
27-1.4e-05-2e-040.499908
280.0078060.1290.448738
29-0.00223-0.03680.485318
30-0.008113-0.1340.446733
31-0.008452-0.13960.44452
32-0.034493-0.56990.284603
330.0032080.0530.478883
34-0.02044-0.33770.367914
35-0.019472-0.32170.373953
36-0.023532-0.38880.348857
37-0.014695-0.24280.404174
38-0.019756-0.32640.372176
390.0305610.50490.307002
40-0.017721-0.29280.384948
41-0.035271-0.58280.280265
420.0192860.31870.375115
43-0.023843-0.39390.346964
440.0299080.49420.310793
45-0.013432-0.22190.412269
460.0039550.06540.473971
47-0.014485-0.23930.405516
480.0141410.23370.407714
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243518904sdk3kghxe5nsek8/1e9rs1243518812.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243518904sdk3kghxe5nsek8/1e9rs1243518812.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243518904sdk3kghxe5nsek8/22e591243518812.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/May/28/t1243518904sdk3kghxe5nsek8/22e591243518812.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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