Home » date » 2007 » Nov » 28 » attachments

Stationarity in time series: Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 09:00:11 -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/Nov/28/t1196265051kbq6g8um3ltkjyf.htm/, Retrieved Wed, 28 Nov 2007 16:50:51 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98.8 100.5 110.4 96.4 101.9 106.2 81.0 94.7 101.0 109.4 102.3 90.7 96.2 96.1 106.0 103.1 102.0 104.7 86.0 92.1 106.9 112.6 101.7 92.0 97.4 97.0 105.4 102.7 98.1 104.5 87.4 89.9 109.8 111.7 98.6 96.9 95.1 97.0 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99.0 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102.0 106.0 105.3 118.8 106.1 109.3 117.2 91.9 103.9 115.9
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.30660
10.0152450.12660.4498
20.207971.72750.044274
30.3222592.67690.004638
4-0.005969-0.04960.519701
50.2402661.99580.024952
60.1969651.63610.053184
7-0.182698-1.51760.933158
80.024190.20090.420669
90.105840.87920.19118
10-0.204896-1.7020.953371
110.0374110.31080.378462
12-0.131951-1.09610.86157
13-0.166937-1.38670.914999
140.0371320.30840.379338
15-0.017784-0.14770.558504
16-0.129914-1.07910.857861
170.1386951.15210.12663
18-0.004497-0.03740.514845
19-0.153533-1.27530.896766
200.1253811.04150.150641
210.0897050.74510.229356
22-0.068873-0.57210.715443
230.2629842.18450.016163
24-0.094051-0.78120.781336
25-0.079363-0.65920.744033
260.2540982.11070.019213
27-0.054361-0.45160.673498
280.0012640.01050.495827
290.0399310.33170.370563
30-0.188556-1.56630.939069
310.0787220.65390.25767
320.0410350.34090.367122
33-0.172971-1.43680.922353
34-0.031066-0.25810.601434
35-0.033014-0.27420.607637
36-0.096795-0.8040.787932
370.1100330.9140.181948
38-0.008393-0.06970.527689
39-0.13564-1.12670.868116
400.0736810.6120.271262
41-0.039823-0.33080.6291
42-0.02094-0.17390.56879
430.0262320.21790.414076
440.01020.08470.466363
45-0.105794-0.87880.808717
460.0078280.0650.474171
47-0.07263-0.60330.72586


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0152450.12660.4498
10.2077851.7260.044412
20.3309412.7490.003812
3-0.041238-0.34250.633511
40.12221.01510.156809
50.1375251.14240.128624
6-0.270425-2.24630.986056
7-0.206554-1.71580.954654
80.1374121.14140.128819
9-0.100036-0.8310.795569
10-0.077008-0.63970.737749
11-0.056842-0.47220.680851
120.0356830.29640.383906
13-0.001285-0.01070.504244
140.0986280.81930.207729
150.0150490.1250.450441
160.1477371.22720.11196
170.0571880.4750.31813
18-0.250911-2.08420.979578
19-0.092532-0.76860.77763
200.299532.48810.007631
21-0.074266-0.61690.730334
220.0465470.38670.350102
230.0006920.00570.497716
24-0.103285-0.8580.803055
25-0.011441-0.0950.53772
260.1019260.84670.200056
270.0274350.22790.410203
28-0.116066-0.96410.830822
29-0.130863-1.0870.859596
300.0787540.65420.257586
31-0.058245-0.48380.684977
320.0425040.35310.362558
33-0.01633-0.13560.553751
340.0443270.36820.356922
350.0181980.15120.440144
360.0525070.43620.332042
370.0057330.04760.481079
38-0.031392-0.26080.602474
39-0.05755-0.4780.682935
40-0.102416-0.85070.801069
410.0239850.19920.421334
42-0.02867-0.23820.593766
43-0.040369-0.33530.630803
440.0251730.20910.417492
45-0.055059-0.45740.675574
46-0.091062-0.75640.774013
47-0.064049-0.5320.701794
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196265051kbq6g8um3ltkjyf/1si5p1196265604.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196265051kbq6g8um3ltkjyf/1si5p1196265604.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196265051kbq6g8um3ltkjyf/2xokl1196265604.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196265051kbq6g8um3ltkjyf/2xokl1196265604.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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