Home » date » 2007 » Nov » 27 » 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: Tue, 27 Nov 2007 03:10:55 -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/27/t119615779676dgcruoads9yg3.htm/, Retrieved Tue, 27 Nov 2007 11:03:18 +0100
 
User-defined keywords:
s0650062 s0650550
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8.0 8.1 8.3 8.2 8.1 7.7 7.6 7.7 8.2 8.4 8.4 8.6 8.4 8.5 8.7 8.7 8.6 7.4 7.3 7.4 9.0 9.2 9.2 8.5 8.3 8.3 8.6 8.6 8.5 8.1 8.1 8.0 8.6 8.7 8.7 8.6 8.4 8.4 8.7 8.7 8.5 8.3 8.3 8.3 8.1 8.2 8.1 8.1 7.9 7.7 8.1 8.0 7.7 7.8 7.6 7.4 7.7 7.8 7.5 7.2
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.6832095.29211e-06
20.3056062.36720.010583
30.0301110.23320.408186
40.070980.54980.292246
50.1902351.47360.072915
60.2767932.1440.018046
70.1828041.4160.080973
80.0105370.08160.467612
9-0.04852-0.37580.645816
100.0920350.71290.239335
110.2390871.8520.034477
120.3277222.53850.006872
130.1743321.35040.090984
14-0.054169-0.41960.661858
15-0.234025-1.81270.962563
16-0.230138-1.78260.960148
17-0.109659-0.84940.800486
18-0.02081-0.16120.56376
19-0.092487-0.71640.761739
20-0.212968-1.64960.947879
21-0.234083-1.81320.962598
22-0.1594-1.23470.889123
23-0.071856-0.55660.710062
24-0.033649-0.26060.602371
25-0.060143-0.46590.678499
26-0.122607-0.94970.826965
27-0.149207-1.15570.873817
28-0.126256-0.9780.833994
29-0.101522-0.78640.782632
30-0.079104-0.61270.728818
31-0.142154-1.10110.862379
32-0.213272-1.6520.94812
33-0.238248-1.84550.965046
34-0.182575-1.41420.918767
35-0.124425-0.96380.830491
36-0.090212-0.69880.756306
37-0.107121-0.82980.795016
38-0.106642-0.8260.793975
39-0.059117-0.45790.675666
400.0371870.2880.387151
410.0277340.21480.415316
42-0.012791-0.09910.539297
43-0.095677-0.74110.769241
44-0.092616-0.71740.762044
45-0.065565-0.50790.693295
46-0.021767-0.16860.566664
470.0101290.07850.468861
480.037260.28860.386936
490.0635910.49260.312055
500.0580790.44990.32721
510.0756240.58580.280109
520.0980420.75940.225284
530.0823320.63770.263034
540.0562380.43560.332338
550.0205860.15950.436922
560.0048490.03760.48508
570.0033840.02620.489587
580.018640.14440.442841
590.0156570.12130.451939


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.6832095.29211e-06
1-0.302253-2.34120.98872
2-0.072832-0.56420.712623
30.3468882.6870.004657
40.0206820.16020.436629
50.0363580.28160.389599
6-0.089515-0.69340.754626
7-0.095337-0.73850.768448
80.1574921.21990.113633
90.1958331.51690.06727
10-0.048003-0.37180.644336
110.1486821.15170.127009
12-0.211622-1.63920.946799
13-0.141639-1.09710.861517
14-0.047248-0.3660.642168
15-0.140849-1.0910.860185
160.0503950.39040.348828
17-0.027193-0.21060.583059
18-0.208364-1.6140.94411
190.0699790.54210.294894
200.070180.54360.294362
21-0.200154-1.55040.936846
220.0327780.25390.400221
23-0.02236-0.17320.568462
240.0604850.46850.320558
250.1413531.09490.138964
26-0.081524-0.63150.734939
27-0.01223-0.09470.53758
280.0119120.09230.463395
29-0.069456-0.5380.703717
30-0.148624-1.15120.872899
31-0.027424-0.21240.583753
32-0.064751-0.50160.691093
33-0.008941-0.06930.527491
34-0.087893-0.68080.750697
35-0.055349-0.42870.665174
36-0.020471-0.15860.562729
370.0362350.28070.389962
380.0214050.16580.434435
390.092890.71950.237307
40-0.076669-0.59390.722587
410.0450340.34880.364217
42-0.006166-0.04780.518966
430.0391310.30310.381428
440.0014240.0110.495618
45-0.112684-0.87280.806886
460.0973020.75370.22699
470.0209160.1620.43592
480.002340.01810.492799
49-0.100531-0.77870.780394
50-0.037769-0.29260.614566
51-0.044679-0.34610.634754
52-0.012371-0.09580.538011
53-0.016556-0.12820.550806
54-0.000108-8e-040.500331
55-0.004294-0.03330.51321
56-0.050633-0.39220.651852
570.0010310.0080.496829
58-0.033397-0.25870.601622
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t119615779676dgcruoads9yg3/1ezy31196158253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t119615779676dgcruoads9yg3/1ezy31196158253.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t119615779676dgcruoads9yg3/2k8ag1196158253.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t119615779676dgcruoads9yg3/2k8ag1196158253.ps (open in new window)


 
Parameters:
par1 = 60 ; 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 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