Home » date » 2007 » Dec » 25 » attachments

ACF 8

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 25 Dec 2007 05:43:53 -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/25/t1198585469thc02jbibu582p4.htm/, Retrieved Tue, 25 Dec 2007 13:24:31 +0100
 
User-defined keywords:
Klaas Van Pelt
 
Dataseries X:
» Textbox « » Textfile « » CSV «
92,1 91,4 90,7 92,5 94,4 94,3 87,3 85,9 89 83,3 78,6 75,7 79,6 78,5 82,6 88,7 88,5 84,6 83,4 84,4 94,1 100,4 93,1 93,1 82,1 88,1 87,7 80,2 73,8 75,3 77,3 80,1 81,3 81,5 83,2 80,8 81,3 78,8 82,8 84,9 93,2 94,7 94,8 103,9 107 118,6 112,2 112,2 93,8 96,7 108,7 112,1 107,2 113,1 120 124,4 139,5 145,8 135,6 135,5 141,6 141,2 141,6 147,1 146,5 144,1 148,5 146,9 135,7 128,5 128,7 127,6 122,5 123,4 129,4 135,3 138,5 140,6 144,2 144,3
 
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
018.88820
10.1344681.19520.117796
2-0.10643-0.9460.826477
3-0.082667-0.73480.76767
40.0756420.67230.251671
5-0.032009-0.28450.611615
60.06030.5360.296747
7-0.01681-0.14940.559196
8-0.350335-3.11380.998714
9-0.085744-0.76210.775867
100.1487941.32250.094907
110.1601091.42310.079325
12-0.092345-0.82080.792878
130.0347050.30850.379269
14-0.084271-0.7490.771964
15-0.097821-0.86940.806382
16-0.05213-0.46330.677804
170.0121770.10820.457043
18-0.025286-0.22470.588622
19-0.016264-0.14460.557287
200.2040341.81350.036776
210.0857080.76180.224226
220.0528320.46960.319972
23-0.080245-0.71320.761098
240.1838761.63430.053085
250.0530290.47130.319353
26-0.057228-0.50870.693795
27-0.205055-1.82260.963924
28-0.188755-1.67770.95132
29-0.101943-0.90610.816177
300.0580220.51570.303748
310.0883780.78550.21725
32-0.118806-1.0560.8529
33-0.09401-0.83560.797045
34-0.044813-0.39830.654262
350.1089890.96870.167822
360.0504270.44820.327617
370.0177510.15780.437518
38-0.052378-0.46550.678588
39-0.04148-0.36870.643326
400.0175840.15630.4381
410.1115650.99160.162207
420.1246191.10760.13569
43-0.036977-0.32870.628359
44-0.04176-0.37120.64425
450.042830.38070.35223
460.008890.0790.46861
47-0.081876-0.72770.765535
48-0.045475-0.40420.656418
49-0.035949-0.31950.624911
50-0.081432-0.72380.764333
51-0.030695-0.27280.607148
520.0091990.08180.467523
53-0.041321-0.36730.6428
54-0.046884-0.41670.66099
550.0226770.20160.420389
56-0.009014-0.08010.531826
57-0.021484-0.1910.575476
580.0385850.3430.366273
590.0586070.52090.301943


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1344681.19520.117796
1-0.126805-1.12710.868437
2-0.051225-0.45530.674927
30.0849410.7550.226255
4-0.073693-0.6550.742815
50.0925750.82280.206542
6-0.040962-0.36410.641612
7-0.362485-3.22180.999075
80.0488090.43380.3328
90.0840870.74740.228526
100.0819080.7280.234378
11-0.053947-0.47950.683544
120.0600270.53350.297581
13-0.101451-0.90170.815025
14-0.10341-0.91910.819586
15-0.153591-1.36510.911959
16-0.049829-0.44290.670473
170.0845090.75110.227403
180.0784540.69730.243827
190.2059551.83060.035468
200.0670770.59620.276376
210.0087950.07820.468944
22-0.190261-1.69110.952618
230.1239871.1020.136899
240.0381630.33920.36768
25-0.037497-0.33330.630098
26-0.115493-1.02650.846111
27-0.10046-0.89290.812691
28-0.059896-0.53240.702016
290.0067210.05970.476259
30-0.084577-0.75170.772779
31-0.027765-0.24680.59714
320.0132020.11730.453444
33-0.064423-0.57260.715731
34-0.027046-0.24040.594674
350.0219560.19510.42289
36-0.019275-0.17130.567796
370.0751630.66810.25302
380.0388990.34570.365229
39-0.034005-0.30220.61837
400.0324810.28870.386784
410.0017970.0160.493649
42-0.068911-0.61250.729015
43-0.075888-0.67450.749022
440.068920.61260.270958
45-0.073957-0.65730.743566
460.0210820.18740.425921
47-0.025954-0.23070.590922
48-0.007665-0.06810.527071
49-0.043287-0.38470.649269
50-0.017082-0.15180.560145
510.0023550.02090.491678
520.0455830.40510.343232
53-0.059405-0.5280.700512
54-0.126189-1.12160.867284
55-0.051915-0.46140.677121
560.0071960.0640.474583
570.0406130.3610.359541
580.0414480.36840.356781
59-0.01387-0.12330.548901
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585469thc02jbibu582p4/1kbf21198586630.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585469thc02jbibu582p4/1kbf21198586630.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585469thc02jbibu582p4/22qgu1198586630.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585469thc02jbibu582p4/22qgu1198586630.ps (open in new window)


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