Home » date » 2007 » Nov » 25 » attachments

Q2 Autocorrelation

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 25 Nov 2007 09:20:46 -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/25/t1196007130y1z9mkyavcod0b1.htm/, Retrieved Sun, 25 Nov 2007 17:12:12 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105.1 113.3 99.1 100.3 93.5 98.8 106.2 98.3 102.1 117.1 101.5 80.5 105.9 109.5 97.2 114.5 93.5 100.9 121.1 116.5 109.3 118.1 108.3 105.4 116.2 111.2 105.8 122.7 99.5 107.9 124.6 115 110.3 132.7 99.7 96.5 118.7 112.9 130.5 137.9 115 116.8 140.9 120.7 134.2 147.3 112.4 107.1 128.4 137.7 135 151 137.4 132.4 161.3 139.8 146 154.6 142.1 120.5
 
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
017.7460
10.6100694.72567e-06
20.489913.79480.000173
30.646075.00443e-06
40.4090833.16870.001205
50.4005783.10290.001461
60.5884614.55821.3e-05
70.3266092.52990.007027
80.2396631.85640.034153
90.3864492.99340.002001
100.1649081.27740.103197
110.2132051.65150.051933
120.4305813.33530.000733
130.1913581.48220.071754
140.1239460.96010.170434
150.2015791.56140.061842
160.0181330.14050.444385
170.0156530.12120.451949
180.1740681.34830.091311
19-0.005858-0.04540.51802
20-0.019197-0.14870.558857
210.0491740.38090.352312
22-0.13634-1.05610.852418
23-0.068075-0.52730.700037
240.0697050.53990.29562
25-0.080109-0.62050.731368
26-0.103844-0.80440.787821
27-0.061049-0.47290.680993
28-0.197765-1.53190.934596
29-0.150997-1.16960.87661
30-0.065136-0.50450.692135
31-0.164187-1.27180.895821
32-0.137369-1.06410.854217
33-0.135114-1.04660.850257
34-0.234155-1.81380.962642
35-0.194153-1.50390.931074
36-0.136481-1.05720.852666
37-0.238115-1.84440.964971
38-0.272717-2.11250.980591
39-0.222165-1.72090.954787
40-0.300015-2.32390.988232
41-0.284235-2.20170.984228
42-0.250644-1.94150.97155
43-0.271477-2.10290.980159
44-0.252024-1.95220.972205
45-0.238132-1.84460.96498
46-0.269414-2.08690.979422
47-0.260787-2.020.976075
48-0.209453-1.62240.945022
49-0.216563-1.67750.950675
50-0.215213-1.6670.94964
51-0.196894-1.52510.93376
52-0.179153-1.38770.914821
53-0.147878-1.14550.871716
54-0.136282-1.05560.852317
55-0.087724-0.67950.750285
56-0.056317-0.43620.667882
57-0.034322-0.26590.604371
58-0.017669-0.13690.554201
59-0.00218-0.01690.50671


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.6100694.72567e-06
10.1875171.45250.075787
20.4768353.69350.00024
3-0.257181-1.99210.974543
40.2196271.70120.047039
50.2306651.78670.039517
6-0.261899-2.02870.976531
7-0.079309-0.61430.729339
80.0487080.37730.353646
9-0.139656-1.08180.858158
100.2492171.93040.029142
110.1543431.19550.118291
12-0.127672-0.98890.836669
13-0.097852-0.7580.774278
14-0.222957-1.7270.955345
150.026280.20360.419691
16-0.083146-0.6440.739
170.0596380.4620.322893
180.0149360.11570.454141
190.1081290.83760.202799
20-0.09294-0.71990.762812
21-0.060309-0.46720.678958
220.0337020.26110.397472
23-0.023981-0.18580.573368
24-0.030098-0.23310.591777
25-0.086804-0.67240.748039
26-0.038219-0.2960.615889
270.0670610.51940.302679
280.0178230.13810.44533
29-0.063701-0.49340.688244
300.0673680.52180.301855
31-0.076859-0.59530.723074
32-0.052458-0.40630.657029
330.0208110.16120.436237
34-0.105839-0.81980.792219
35-0.014779-0.11450.545381
36-0.13815-1.07010.85557
37-0.159904-1.23860.889843
380.2167431.67890.049188
39-0.042706-0.33080.629025
400.0008160.00630.497489
41-0.076542-0.59290.72226
420.0161310.1250.450489
430.017590.13630.446038
44-0.054214-0.41990.661985
45-0.009846-0.07630.530271
46-0.032293-0.25010.598333
470.0080340.06220.475291
480.0809050.62670.26662
490.0382730.29650.383951
500.0034480.02670.489389
510.0167470.12970.44861
520.039910.30910.379143
53-0.026739-0.20710.581692
54-0.024084-0.18660.57368
550.1049980.81330.209629
560.028070.21740.414305
570.013730.10640.45783
58-0.021621-0.16750.566221
59NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007130y1z9mkyavcod0b1/1vtql1196007644.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007130y1z9mkyavcod0b1/1vtql1196007644.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007130y1z9mkyavcod0b1/2ymx31196007644.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/25/t1196007130y1z9mkyavcod0b1/2ymx31196007644.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