Home » date » 2007 » Dec » 06 » attachments

Workshop 4 Q4

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 06 Dec 2007 07:02:05 -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/06/t11969489854j4jf33inklrlec.htm/, Retrieved Thu, 06 Dec 2007 14:49:49 +0100
 
User-defined keywords:
reeks 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.0752994101837376 -3.14700395116914 -2.47349546522743 -4.99251393436674 8.50731827303442 -2.16296132761318 -4.57417744084085 -0.225023802322432 0.773120583025641 5.61875385028389 -2.19050905866029 3.02386986944502 -0.234412715957203 3.98774513237866 -0.322671610641998 -6.60718570492927 -0.23777454931973 -6.09598421072851 -1.43436689297905 -1.96435671813545 -1.26878359038875 -0.245363473695155 -2.78257990576489 -4.40825821800731 4.06226710314469 -0.371336627104249 0.852813864171328 8.65845790401914 3.01369763183328 -2.40730359118334 6.12354542382898 0.619728746512792 1.89821092488078 -1.16752907187817 -6.24275796248451 -3.72914525246775 3.69405286823824 -6.45515383392024 -4.24390148729987 -6.39067827595839 3.65797375565865 -2.28833326367129 2.32514561894615 -5.37887350693019 0.443139073739122 -0.9274743961954 -7.41598623255795 4.69002266502663 6.27668276362856 4.05774582562774 -1.29164513132306 7.91715343813355 -2.46639083761789 7.15490950988381 5.65110067953293 2.89195372107196 -2.19949157907185 -1.94065209264981 3.21380896451048 3.50411640860489 -1.68046453086958 1.05844832456957 1.81665657725699 4.76943632911119 -1.14477159920592 -0.569988072906385 -0.365451044330128 2.14484935836149 1.90832432847442 -7.61612502300154
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.36660
1-0.004422-0.0370.514703
20.0622290.52060.302128
30.0674910.56470.287053
40.16781.40390.082383
50.0892990.74710.228743
6-0.037477-0.31360.622606
7-0.122897-1.02820.846309
8-0.110888-0.92780.821638
90.0318450.26640.395344
10-0.243941-2.0410.977486
11-0.110982-0.92850.821842
12-0.015886-0.13290.552677
13-0.122177-1.02220.844899
14-0.020989-0.17560.569445
15-0.04014-0.33580.631001
16-0.120528-1.00840.841634
170.0695660.5820.281207
180.0107290.08980.464363
190.0148510.12430.450735
200.039630.33160.370604
210.0316540.26480.395957
22-0.011387-0.09530.537814
230.2696052.25570.013609
240.0024660.02060.4918
25-0.181328-1.51710.933127
260.0373690.31260.377738
270.0895450.74920.228127
280.0012860.01080.495722
29-0.046966-0.39290.652225
30-0.154554-1.29310.899885
310.0959750.8030.212351
320.0486110.40670.342732
33-0.09508-0.79550.785494
34-0.068962-0.5770.717097
350.0504930.42250.336995
360.0402820.3370.368555
37-0.050197-0.420.662107
380.0352950.29530.384321
39-0.107097-0.8960.813348
400.1292521.08140.141616
41-0.039448-0.330.628825
42-0.067218-0.56240.712176
430.0110390.09240.463338
440.0316840.26510.395861
45-0.028111-0.23520.592629
46-0.037763-0.3160.62351
470.0219150.18340.427525


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.004422-0.0370.514703
10.0622110.52050.302181
20.0682890.57140.284796
30.1661981.39050.084389
40.088680.74190.230301
5-0.059127-0.49470.688818
6-0.165467-1.38440.914683
7-0.167737-1.40340.917539
80.012950.10830.457015
9-0.212911-1.78130.960403
10-0.06238-0.52190.698309
110.0789640.66070.2555
12-0.075341-0.63030.73474
130.0367290.30730.379763
140.0161720.13530.44638
15-0.145692-1.21890.886522
160.0349890.29270.385294
17-0.03978-0.33280.629869
180.0172610.14440.442794
190.0279480.23380.407901
20-0.029253-0.24470.596316
21-0.020646-0.17270.568322
220.2294241.91950.029499
23-0.026227-0.21940.586523
24-0.235577-1.9710.973659
25-0.075561-0.63220.735339
260.0542180.45360.325753
27-0.002472-0.02070.508222
280.0199560.1670.43394
29-0.057677-0.48260.684543
300.1520161.27190.103816
31-0.007992-0.06690.526561
32-0.048877-0.40890.658082
33-0.004726-0.03950.515715
34-0.076228-0.63780.737147
350.0115940.0970.461502
36-0.006934-0.0580.523047
370.0454440.38020.35247
38-0.023399-0.19580.577322
390.0332470.27820.390853
40-0.052776-0.44160.669916
41-0.046135-0.3860.649665
42-0.036984-0.30940.621044
43-0.001142-0.00960.503799
44-0.004598-0.03850.51529
45-0.087321-0.73060.766263
460.0571970.47850.316878
47-0.031952-0.26730.605
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969489854j4jf33inklrlec/1wfge1196949723.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969489854j4jf33inklrlec/1wfge1196949723.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969489854j4jf33inklrlec/20mh91196949723.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/06/t11969489854j4jf33inklrlec/20mh91196949723.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