Home » date » 2007 » Dec » 25 » attachments

ACF 6

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:39:58 -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/t1198585237ujvsnu2vr6qtnp6.htm/, Retrieved Tue, 25 Dec 2007 13:20:39 +0100
 
User-defined keywords:
Klaas Van Pelt
 
Dataseries X:
» Textbox « » Textfile « » CSV «
124,9 120,4 141,2 95,4 111,4 113,3 78 77,7 110,1 109,6 111 97 90,9 94,7 113,5 107,1 103,7 107,7 75,2 74,1 115,7 116,2 95,4 95,9 89,9 102,4 130,2 98,9 102,1 117,3 87,8 66,6 106,3 104,5 113,1 95,1 96,9 107,1 135,4 120,3 105,5 128,4 78,2 85,8 128,7 131,2 128,9 112,3 115 116 140,2 121,2 104,1 128,8 76,1 86,9 127,6 108 113,5 117,4 102,4 117,9 132 95 120,8 128,9 88,4 81,1 120,7 131 123,6 139 109,6 108 130,3 111,7 105,9 128,7 89,9 101
 
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.24620
10.1880821.5510.062776
20.1628061.34250.091944
30.0197120.16260.435676
40.2359491.94570.027914
50.2745882.26430.013374
60.0495290.40840.342122
7-0.073704-0.60780.72732
8-0.060777-0.50120.691067
90.1215431.00230.159883
100.1008020.83120.204375
11-0.013081-0.10790.54279
12-0.348235-2.87160.99728
13-0.059668-0.4920.68786
14-0.104374-0.86070.803783
15-0.014612-0.12050.547776
16-0.156108-1.28730.898823
17-0.181692-1.49830.930655
18-0.049935-0.41180.659099
190.0690290.56920.28554
20-0.008643-0.07130.528305
21-0.010857-0.08950.535538
22-0.120447-0.99320.83794
230.0009550.00790.496869
24-0.091117-0.75140.772488
250.0063130.05210.479317
26-0.012491-0.1030.540868
27-0.111771-0.92170.820026
28-0.017036-0.14050.555654
29-0.112594-0.92850.821778
300.0215610.17780.429705
31-0.146018-1.20410.883636
32-0.026694-0.22010.586783
33-0.209613-1.72850.955782
34-0.044767-0.36920.643421
350.0064760.05340.478783
360.0825370.68060.249214
37-0.1315-1.08440.858986
38-0.004456-0.03670.514603
390.0179540.14810.441369
400.1070160.88250.190314
410.1412831.16510.124034
42-0.045473-0.3750.645579
430.0494440.40770.342378
440.0802440.66170.255197
450.1977591.63080.053782
460.070430.58080.281655
47-0.059625-0.49170.687735
48-0.044857-0.36990.643698
490.1321321.08960.13987
500.0536460.44240.329812
510.0682520.56280.287704
52-0.114982-0.94820.826799
53-0.049661-0.40950.658275
540.0349640.28830.386991
550.0083840.06910.472542
56-0.036581-0.30170.618083
57-0.114386-0.94320.825553
58-0.0618-0.50960.694015
59-0.03343-0.27570.608182


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1880821.5510.062776
10.1321041.08940.139921
2-0.033456-0.27590.608265
30.2287241.88610.031776
40.2226971.83640.035335
5-0.098879-0.81540.791149
6-0.14037-1.15750.874445
7-0.058715-0.48420.68509
80.0790020.65150.258469
90.0399650.32960.371372
10-0.016665-0.13740.554448
11-0.338179-2.78870.996571
120.0333160.27470.392179
13-0.088906-0.73310.767004
14-0.05017-0.41370.659808
150.0343090.28290.389049
160.0238720.19690.422264
170.0233820.19280.423841
180.1026610.84660.200105
19-0.06312-0.52050.697797
200.0972830.80220.21261
21-0.048804-0.40240.655691
22-0.02506-0.20660.581549
23-0.269606-2.22320.985237
240.0815210.67220.251853
250.0051680.04260.483067
26-0.122938-1.01380.842857
27-0.012371-0.1020.540477
28-0.136294-1.12390.867499
290.0239080.19710.42215
30-0.075146-0.61970.731226
310.0210860.17390.431237
32-0.091386-0.75360.773151
330.0222750.18370.427405
340.1564861.29040.100638
350.0072710.060.476181
36-0.130564-1.07670.857281
370.1218171.00450.159342
38-0.069605-0.5740.716062
390.0454480.37480.354498
400.0351030.28950.386551
41-0.014401-0.11870.547088
42-0.025677-0.21170.583527
430.0667730.55060.291847
44-0.076285-0.62910.734291
45-0.056087-0.46250.677402
46-0.037914-0.31260.622247
47-0.052804-0.43540.667687
480.0196230.16180.435965
490.0737060.60780.272673
50-0.015432-0.12730.550442
510.0669960.55250.29122
52-0.064032-0.5280.700399
53-0.053166-0.43840.668765
54-0.050832-0.41920.661793
550.0800150.65980.255798
56-0.040975-0.33790.631755
57-0.040757-0.33610.631081
58-0.077797-0.64150.738331
59-0.00575-0.04740.518841
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585237ujvsnu2vr6qtnp6/1cof11198586396.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585237ujvsnu2vr6qtnp6/1cof11198586396.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585237ujvsnu2vr6qtnp6/2a3u01198586396.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/25/t1198585237ujvsnu2vr6qtnp6/2a3u01198586396.ps (open in new window)


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