Home » date » 2007 » Dec » 13 » attachments

ACF Graan

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 13 Dec 2007 15:29:21 -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/13/t1197584166gt2phwn9n37du4y.htm/, Retrieved Thu, 13 Dec 2007 23:16:06 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
145,3 143,6 142,8 155,9 156,2 149,8 152,7 155,5 159,3 143 141,4 142,8 146,4 152,3 164,3 168 171,3 162,7 150,2 142,5 138,2 138 145,1 138,4 131,8 130,8 126,3 123 124 120,8 122,1 106,5 104,3 108,7 113,8 112,5 106,1 98,4 96 99,3 97,5 95,3 88 94,7 99,4 98,9 96,4 95,3 99,5 101,6 103,9 106,6 108,3 102 93,8 91,6 97,7 94,8 98 103,8 97,8 91,2 89,3 87,5 90,4 94,2 102,2 101,3 96 90,8 93,2 90,9 91,1 90,2 94,3 96 99 103,3 113,1 112,8 112,1 107,4 111 110,5 110,8 112,4 111,5 116,2 122,5 121,3 113,9 110,7 120,8 141,1 147,4 148 158,1 165 187 190,3 182,4 168,8 151,2 120,1 112,5 106,2 107,1 108,5 106,5 108,3 125,6 124 127,2 136,9 135,8 124,3 115,4 113,6 114,4 118,4 117 116,5 115,4 113,6 117,4 116,9 116,4 111,1 110,2 118,9 131,8 130,6 138,3 148,4 148,7 144,3 152,5 162,9 167,2 166,5 185,6
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0111.83220
10.3140353.71570.000146
2-0.047279-0.55940.711615
3-0.113225-1.33970.908743
40.0009260.0110.495638
5-0.060698-0.71820.763082
6-0.045432-0.53760.704132
7-0.077491-0.91690.819611
80.0360850.4270.335031
9-0.088219-1.04380.850817
10-0.076221-0.90190.81566
110.0366350.43350.332671
120.0259920.30750.379443
130.0252640.29890.382719
140.0715430.84650.199356
150.0355950.42120.337141
160.0108230.12810.449142
17-0.03013-0.35650.639
180.0687790.81380.208569
190.0679050.80350.211534
200.0170820.20210.420061
21-0.027853-0.32960.62889
220.1223711.44790.074938
230.0326810.38670.349785
24-0.14524-1.71850.956043
25-0.20831-2.46480.99254
260.0029730.03520.485994
27-0.041796-0.49450.689149
28-0.10965-1.29740.901686
29-0.104616-1.23780.891075
300.0070960.0840.466602
310.066410.78580.216665
320.0673360.79670.213478
33-0.017219-0.20370.580574
340.0121630.14390.442888
350.0012990.01540.49388
360.1043651.23490.109475
370.0422890.50040.3088
38-0.124495-1.4730.928508
39-0.178699-2.11440.981873
40-0.013769-0.16290.564593
41-0.029035-0.34360.63415
420.0477250.56470.286594
430.0607810.71920.236617
440.1545241.82840.034813
450.0646510.7650.222791
46-0.054133-0.64050.738557
47-0.113865-1.34730.909964


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3140353.71570.000146
1-0.16186-1.91510.971244
2-0.051432-0.60860.728096
30.0578920.6850.247243
4-0.112185-1.32740.90673
50.008030.0950.462222
6-0.076817-0.90890.817521
70.0750990.88860.187877
8-0.158155-1.87130.968305
9-0.003502-0.04140.516495
100.0777760.92030.179511
11-0.080487-0.95230.828715
120.0708740.83860.201564
130.043080.50970.305521
14-0.012285-0.14540.557681
150.0060560.07170.471487
16-0.02058-0.24350.596015
170.1209441.4310.077326
18-0.027567-0.32620.627611
190.0344360.40740.342151
200.0036020.04260.483032
210.1421311.68170.047427
22-0.042259-0.50.691074
23-0.155657-1.84180.966187
24-0.056475-0.66820.747454
250.0625950.74060.230077
26-0.129293-1.52980.93584
27-0.075001-0.88740.811814
28-0.029758-0.35210.637352
29-0.029352-0.34730.635553
300.0487880.57730.282344
310.0205430.24310.404152
32-0.084746-1.00270.841138
33-0.013136-0.15540.561645
340.0130570.15450.438722
350.1267491.49970.06797
36-0.082737-0.9790.835356
37-0.132272-1.56510.940087
38-0.03772-0.44630.671968
390.0458360.54230.294225
40-0.070782-0.83750.79813
410.0823860.97480.165668
420.0992581.17440.121107
430.0990311.17170.121644
44-0.022907-0.2710.606619
457.1e-058e-040.499668
46-0.006315-0.07470.529726
470.0999781.1830.119416
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197584166gt2phwn9n37du4y/1kznf1197584956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197584166gt2phwn9n37du4y/1kznf1197584956.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197584166gt2phwn9n37du4y/204sl1197584956.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197584166gt2phwn9n37du4y/204sl1197584956.ps (open in new window)


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