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:23:30 -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/t1197626868zqbatxm4g0pit45.htm/, Retrieved Fri, 14 Dec 2007 11:07:50 +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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
016.85570
1-0.3159-2.16570.982279
2-0.230491-1.58020.939612
30.2465821.69050.048779
40.113590.77870.220019
5-0.334736-2.29480.986873
60.177671.2180.114643
70.1203480.82510.206752
8-0.210992-1.44650.922662
9-0.06174-0.42330.662984
100.2638261.80870.038449
11-0.191726-1.31440.902456
12-0.190364-1.30510.900889
130.2372631.62660.055255
14-0.041712-0.2860.611918
15-0.151769-1.04050.848279
16-0.029201-0.20020.578903
170.2055531.40920.08268
18-0.164646-1.12880.867636
190.1202040.82410.207029
200.0993280.6810.24962
21-0.103753-0.71130.759792
22-0.020078-0.13760.554446
230.22891.56930.061648
24-0.127513-0.87420.806768
25-0.084616-0.58010.717691
260.0349420.23950.405861
270.1580251.08340.142087
28-0.31698-2.17310.982577
290.1481741.01580.157455
300.1244990.85350.198849
31-0.153737-1.0540.851356
32-0.038426-0.26340.603317
330.1339970.91860.181488
34-0.179197-1.22850.887314
35-0.04233-0.29020.61353
360.1241030.85080.199596
37-0.01307-0.08960.535507
38-0.055313-0.37920.646879
390.0164560.11280.455329
400.0664940.45590.325296
41-0.072005-0.49360.68807
420.0346290.23740.406688
43-0.039221-0.26890.605402
440.0685720.47010.320226
45-0.092786-0.63610.736104
460.0391450.26840.394796
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.3159-2.16570.982279
1-0.366897-2.51530.992315
20.0399890.27420.392585
30.1909191.30890.09847
4-0.17193-1.17870.877773
50.0434830.29810.383469
60.0517640.35490.362134
7-0.064116-0.43960.668865
8-0.11978-0.82120.792152
90.0700890.48050.316549
10-0.067605-0.46350.677419
11-0.195041-1.33710.906192
12-0.021309-0.14610.557761
13-0.067708-0.46420.67767
140.0136010.09320.463052
15-0.217826-1.49330.928985
160.0241930.16590.434491
17-0.009033-0.06190.524557
180.1960921.34430.092646
190.1108620.760.225517
20-0.025214-0.17290.568248
210.0674950.46270.322848
220.1145080.7850.218188
230.0181140.12420.450851
24-0.063497-0.43530.667336
25-0.152493-1.04540.849417
260.0826670.56670.286795
27-0.254382-1.7440.956147
280.028560.19580.422805
290.063120.43270.333595
300.1144060.78430.218392
310.0320070.21940.413632
32-0.035499-0.24340.59561
33-0.067145-0.46030.676297
340.0105730.07250.471262
35-0.067908-0.46560.678157
36-0.113098-0.77540.778995
370.0925970.63480.264315
38-0.065107-0.44640.671304
39-0.121967-0.83620.796352
40-0.025441-0.17440.568855
41-0.057365-0.39330.652052
42-0.034369-0.23560.592625
43-0.029798-0.20430.580493
44-0.009671-0.06630.52629
45-0.023667-0.16230.5641
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/t1197626868zqbatxm4g0pit45/1jsc71197627808.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197626868zqbatxm4g0pit45/1jsc71197627808.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197626868zqbatxm4g0pit45/2v0oa1197627808.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/14/t1197626868zqbatxm4g0pit45/2v0oa1197627808.ps (open in new window)


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