Home » date » 2007 » Dec » 07 » attachments

Autocorrelation Function 3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 07 Dec 2007 06:31: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/Dec/07/t11970335124crwhc7bamtyl9f.htm/, Retrieved Fri, 07 Dec 2007 14:18:32 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
103,7 103,75 103,85 104,02 104,13 104,17 104,18 104,2 104,5 104,78 104,88 104,89 104,9 104,95 105,24 105,35 105,44 105,46 105,47 105,48 105,75 106,1 106,19 106,23 106,24 106,25 106,35 106,48 106,52 106,55 106,55 106,56 106,89 107,09 107,24 107,28 107,3 107,31 107,47 107,35 107,31 107,32 107,32 107,34 107,53 107,72 107,75 107,79 107,81 107,9 107,8 107,86 107,8 107,74 107,75 107,83 107,8 107,81 107,86 107,83
 
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
017.7460
10.9532617.38390
20.9027076.99230
30.8530386.60760
40.8063466.24590
50.7599395.88650
60.7124225.51840
70.6604985.11622e-06
80.6051244.68738e-06
90.554984.29893.2e-05
100.5114183.96141e-04
110.4670483.61770.000305
120.4197033.2510.000944
130.3677362.84850.003004
140.3134772.42820.009095
150.2650782.05330.022206
160.2210041.71190.046041
170.1804191.39750.083702
180.1377421.06690.145136
190.0924650.71620.238315
200.0457330.35420.362198
210.0039890.03090.487726
22-0.031445-0.24360.595803
23-0.063789-0.49410.688482
24-0.097538-0.75550.773554
25-0.134053-1.03840.848368
26-0.171472-1.32820.905432
27-0.205293-1.59020.941476
28-0.233768-1.81080.962407
29-0.258009-1.99850.974902
30-0.282896-2.19130.983838
31-0.309304-2.39590.990141
32-0.335918-2.6020.994171
33-0.354095-2.74280.99599
34-0.365981-2.83490.996881
35-0.373588-2.89380.997351
36-0.381253-2.95320.997757
37-0.389043-3.01350.99811
38-0.396811-3.07370.99841
39-0.399474-3.09430.998503
40-0.400443-3.10180.998535
41-0.399258-3.09260.998495
42-0.398459-3.08650.998468
43-0.397891-3.08210.998448
44-0.396911-3.07450.998414
45-0.390083-3.02160.998153
46-0.377105-2.9210.997545
47-0.359704-2.78630.996436


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9532617.38390
1-0.065723-0.50910.69372
2-0.015203-0.11780.546675
30.0051190.03970.48425
4-0.025211-0.19530.577084
5-0.038206-0.29590.615851
6-0.074387-0.57620.716683
7-0.065876-0.51030.694134
80.0247980.19210.424162
90.033040.25590.399442
10-0.044751-0.34660.634961
11-0.057927-0.44870.672368
12-0.076245-0.59060.721494
13-0.058675-0.45450.674444
140.0199570.15460.438833
15-0.006293-0.04870.519359
16-0.001502-0.01160.504622
17-0.047062-0.36450.641633
18-0.054781-0.42430.663578
19-0.05474-0.4240.663463
200.0005480.00420.498315
210.009760.07560.469996
22-0.008347-0.06470.52567
23-0.039965-0.30960.621018
24-0.055536-0.43020.665697
25-0.048698-0.37720.646326
26-0.020023-0.15510.561367
27-0.006638-0.05140.520418
28-0.000752-0.00580.502314
29-0.033946-0.26290.603253
30-0.038861-0.3010.617779
31-0.042698-0.33070.629001
320.0349940.27110.393638
330.0042420.03290.486948
340.0035780.02770.488992
35-0.020404-0.1580.562524
36-0.013742-0.10640.542207
37-0.027767-0.21510.584784
380.0057760.04470.482232
39-0.041194-0.31910.624616
40-0.012065-0.09350.537074
41-0.016025-0.12410.549185
42-0.013374-0.10360.541083
43-0.021726-0.16830.566539
440.0199090.15420.438981
450.0184780.14310.443335
460.026640.20640.418606
470.012940.10020.460248
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t11970335124crwhc7bamtyl9f/1mdcc1197034300.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t11970335124crwhc7bamtyl9f/1mdcc1197034300.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t11970335124crwhc7bamtyl9f/254ln1197034300.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/07/t11970335124crwhc7bamtyl9f/254ln1197034300.ps (open in new window)


 
Parameters:
par1 = 48 ; 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