Home » date » 2007 » Dec » 07 » attachments

Autocorrelation Function 2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 07 Dec 2007 06:22:57 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/07/t1197032995b3zuk61958j6fak.htm/, Retrieved Fri, 07 Dec 2007 14:09:55 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
106,22 106,31 107,38 109,31 110,82 111,22 110,66 110,76 110,69 111,08 110,97 110,24 112,51 111,52 112,13 112,23 112,92 111,89 111,99 111,51 112,33 112,04 112,09 111,41 112,61 113,14 113,65 114,26 114,4 114,93 114,86 114,95 116,17 114,6 114,62 113,82 115,02 115,18 115,59 116,6 117,07 116,96 116,66 116,07 116,04 115,81 116,22 115,85 116,43 117,39 119,17 119,24 120,03 119,34 118,49 118,59 117,5 117,56 118,25 118,01
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.9084697.0370
20.8163246.32320
30.7269335.63080
40.6688365.18081e-06
50.6219594.81775e-06
60.5884844.55841.3e-05
70.5474114.24023.9e-05
80.5103163.95290.000103
90.4701213.64150.000283
100.4347873.36780.000664
110.3983113.08530.001537
120.3570132.76540.003772
130.3297142.5540.006604
140.2868792.22220.015027
150.2511971.94580.028186
160.2231591.72860.044513
170.2010591.55740.062318
180.1688091.30760.098001
190.1337981.03640.152089
200.0987080.76460.223755
210.0657470.50930.306214
220.0361860.28030.390109
23-1.4e-05-1e-040.500043
24-0.047821-0.37040.643814
25-0.083818-0.64930.740673
26-0.121695-0.94260.825179
27-0.158968-1.23140.888504
28-0.199258-1.54340.93601
29-0.233388-1.80780.962176
30-0.255952-1.98260.974002
31-0.2771-2.14640.982053
32-0.286261-2.21740.984801
33-0.27919-2.16260.982716
34-0.287187-2.22450.985058
35-0.300437-2.32720.988326
36-0.322258-2.49620.992341
37-0.32967-2.55360.99339
38-0.344441-2.6680.995102
39-0.358467-2.77670.996342
40-0.356671-2.76280.996201
41-0.343029-2.65710.994958
42-0.330492-2.560.993498
43-0.318007-2.46330.991673
44-0.322929-2.50140.992442
45-0.319865-2.47770.991971
46-0.323547-2.50620.992533
47-0.328856-2.54730.993281


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9084697.0370
1-0.051475-0.39870.654243
2-0.034907-0.27040.606105
30.1279510.99110.162807
40.0269620.20880.417639
50.049610.38430.351065
6-0.039534-0.30620.619754
70.0172330.13350.447128
8-0.015969-0.12370.549015
90.0018860.01460.494196
10-0.019348-0.14990.559315
11-0.055815-0.43230.66648
120.0662360.51310.304897
13-0.116392-0.90160.814555
140.0103490.08020.468186
150.0344970.26720.395112
16-0.012062-0.09340.537065
17-0.066384-0.51420.695503
18-0.042424-0.32860.628205
19-0.000901-0.0070.502771
20-0.03758-0.29110.614008
21-0.011807-0.09150.536282
22-0.081448-0.63090.734747
23-0.10337-0.80070.786767
240.0477370.36980.356427
25-0.086897-0.67310.748267
26-0.052687-0.40810.657679
27-0.056466-0.43740.668297
28-0.018376-0.14230.556354
290.0201050.15570.438383
30-0.043668-0.33830.631822
310.0529570.41020.34156
320.0704250.54550.293713
33-0.090691-0.70250.757455
34-0.033604-0.26030.602236
35-0.05295-0.41020.658423
360.0843520.65340.258002
37-0.11554-0.8950.81281
38-0.053624-0.41540.660323
390.1018430.78890.216647
400.042080.32590.372799
41-0.015055-0.11660.546224
42-0.033929-0.26280.603202
43-0.058481-0.4530.673905
440.0701850.54370.294348
45-0.086552-0.67040.74742
46-0.049783-0.38560.649427
47-0.141034-1.09240.860497
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t1197032995b3zuk61958j6fak/1sns51197033770.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t1197032995b3zuk61958j6fak/1sns51197033770.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t1197032995b3zuk61958j6fak/2b3o71197033770.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t1197032995b3zuk61958j6fak/2b3o71197033770.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1.2 ; 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 1:par1) {
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(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-1,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(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:

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