Home » date » 2007 » Dec » 14 » attachments

Time series

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 14 Dec 2007 03:26:18 -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/14/t1197627092av5htdw0hp2cyx7.htm/, Retrieved Fri, 14 Dec 2007 11:11:34 +0100
 
User-defined keywords:
s0650550 s0650062
 
Dataseries X:
» Textbox « » Textfile « » CSV «
263418000000 262752000000 266433000000 267722000000 266003000000 262971000000 265521000000 264676000000 270223000000 269508000000 268457000000 265814000000 266680000000 263018000000 269285000000 269829000000 270911000000 266844000000 271244000000 269907000000 271296000000 270157000000 271322000000 267179000000 264101000000 265518000000 269419000000 268714000000 272482000000 268351000000 268175000000 270674000000 272764000000 272599000000 270333000000 270846000000 270491000000 269160000000 274027000000 273784000000 276663000000 274525000000 271344000000 271115000000 270798000000 273911000000 273985000000 271917000000 273338000000 270601000000 273547000000 275363000000 281229000000 277793000000 279913000000 282500000000 280041000000 282166000000 290304000000 283519000000
 
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
015.91610
1-0.259491-1.53520.933133
2-0.322133-1.90580.96754
30.2628991.55530.064432
40.1935971.14530.12992
5-0.381466-2.25680.984815
60.1076690.6370.264141
70.110920.65620.25799
8-0.179294-1.06070.851958
9-0.114862-0.67950.749366
100.3177911.88010.034221
11-0.156262-0.92450.819212
12-0.324878-1.9220.968612
130.2701271.59810.059506
140.0668890.39570.347357
15-0.231605-1.37020.910324
160.0972410.57530.284389
170.0879690.52040.303019
18-0.15496-0.91680.817228
190.0765620.45290.326692
200.088930.52610.301063
21-0.049082-0.29040.613377
22-0.027415-0.16220.563954
230.1532620.90670.185381
24-0.093287-0.55190.707735
25-0.090137-0.53330.701387
26-0.006224-0.03680.514582
270.1076430.63680.264192
28-0.173876-1.02870.844653
290.0777060.45970.324282
300.0557560.32990.371737
310.0286490.16950.433194
32-0.086504-0.51180.693984
330.0755160.44680.3289
34-0.02765-0.16360.564498
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.259491-1.53520.933133
1-0.417587-2.47050.990745
20.0468060.27690.391739
30.2190961.29620.101697
4-0.182294-1.07850.855899
50.0383850.22710.410837
6-0.097662-0.57780.716443
7-0.121059-0.71620.760689
8-0.146257-0.86530.803608
90.1399670.82810.206625
10-0.038118-0.22550.588553
11-0.306553-1.81360.960838
12-0.032558-0.19260.575813
13-0.133541-0.790.782587
140.0254240.15040.440653
150.050860.30090.382639
16-0.137258-0.8120.788868
17-0.102062-0.60380.725068
18-0.018929-0.1120.544263
19-0.065242-0.3860.649075
200.0556430.32920.371988
210.106190.62820.266966
220.0251310.14870.441332
23-0.162679-0.96240.82878
24-0.10034-0.59360.721708
25-0.248313-1.4690.924623
260.0482560.28550.388478
27-0.057349-0.33930.631786
28-0.028351-0.16770.566117
29-0.020556-0.12160.548049
300.0698630.41330.340948
31-0.046554-0.27540.607692
32-0.035694-0.21120.583011
330.0233060.13790.445562
34NANANA
35NANANA
36NANANA
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627092av5htdw0hp2cyx7/1cepl1197627976.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627092av5htdw0hp2cyx7/1cepl1197627976.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627092av5htdw0hp2cyx7/25i0d1197627976.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197627092av5htdw0hp2cyx7/25i0d1197627976.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 2 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 2 ; 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