Home » date » 2007 » Dec » 13 » attachments

paper tijdreeks 3: autocorr 1

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 02:49:54 -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/t1197538488yaor2vh3v1xv00u.htm/, Retrieved Thu, 13 Dec 2007 10:34:51 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.9383 0.9217 0.9095 0.8920 0.8742 0.8532 0.8607 0.9005 0.9111 0.9059 0.8883 0.8924 0.8833 0.8700 0.8758 0.8858 0.9170 0.9554 0.9922 0.9778 0.9808 0.9811 1.0014 1.0183 1.0622 1.0773 1.0807 1.0848 1.1582 1.1663 1.1372 1.1139 1.1222 1.1692 1.1702 1.2286 1.2613 1.2646 1.2262 1.1985 1.2007 1.2138 1.2266 1.2176 1.2218 1.2490 1.2991 1.3408 1.3119 1.3014 1.3201 1.2938 1.2694 1.2165 1.2037 1.2292 1.2256 1.2015 1.1786 1.1856
 
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
017.7460
10.9745247.54860
20.9370177.25810
30.8979766.95570
40.8594066.65690
50.8163736.32360
60.7700225.96460
70.7260135.62370
80.6829255.28991e-06
90.6367334.93213e-06
100.5825724.51261.5e-05
110.5221784.04487.6e-05
120.4571813.54130.000389
130.3878993.00470.001938
140.3192782.47310.008122
150.2544951.97130.026653
160.1950841.51110.068005
170.143961.11510.134626
180.094090.72880.234475
190.0449630.34830.364424
20-0.008722-0.06760.526819
21-0.060452-0.46830.679352
22-0.114021-0.88320.809674
23-0.169275-1.31120.902606
24-0.218798-1.69480.952351
25-0.257448-1.99420.974659
26-0.286224-2.21710.984791
27-0.31545-2.44350.991247
28-0.342701-2.65450.994923
29-0.363541-2.8160.996714
30-0.385815-2.98850.997971
31-0.41152-3.18760.99886
32-0.436252-3.37920.999359
33-0.45196-3.50090.999559
34-0.460368-3.5660.99964
35-0.466557-3.61390.999691
36-0.463169-3.58770.999664
37-0.450308-3.48810.999541
38-0.4346-3.36640.999333
39-0.42335-3.27930.999132
40-0.417189-3.23150.998999
41-0.410312-3.17830.998829
42-0.400835-3.10490.998548
43-0.385282-2.98440.997947
44-0.367906-2.84980.997006
45-0.347062-2.68830.995359
46-0.320749-2.48450.99211
47-0.286888-2.22220.984975


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.9745247.54860
1-0.252097-1.95270.97224
20.0064620.05010.480123
3-0.009699-0.07510.52982
4-0.121272-0.93940.824347
5-0.049207-0.38120.647782
60.047490.36790.357138
7-0.040099-0.31060.621413
8-0.090133-0.69820.756116
9-0.15803-1.22410.887149
10-0.112597-0.87220.806704
11-0.112127-0.86850.805717
12-0.111386-0.86280.804157
130.0094680.07330.47089
140.0264880.20520.419065
150.0257910.19980.421165
160.1060810.82170.207252
17-0.075784-0.5870.720304
18-0.022664-0.17560.569383
19-0.141585-1.09670.861425
200.03670.28430.388587
21-0.100584-0.77910.780515
22-0.062791-0.48640.685763
230.0856090.66310.254896
240.0996270.77170.221658
250.0233470.18080.42855
26-0.139809-1.0830.858419
27-0.017685-0.1370.554252
280.0436770.33830.368151
29-0.15609-1.20910.88431
30-0.042491-0.32910.628401
310.0705460.54640.293394
320.1087760.84260.201407
33-0.012672-0.09820.538932
34-0.06676-0.51710.696514
350.1239670.96020.170392
360.0508690.3940.347478
37-0.123579-0.95720.828857
38-0.06882-0.53310.702026
39-0.059913-0.46410.677866
400.0406020.31450.377116
410.0154370.11960.452609
420.0673880.5220.301801
43-0.026706-0.20690.581591
44-0.024871-0.19260.576057
450.0026250.02030.491924
460.0624660.48390.315123
470.0105910.0820.467444
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197538488yaor2vh3v1xv00u/11co11197539392.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197538488yaor2vh3v1xv00u/11co11197539392.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197538488yaor2vh3v1xv00u/24vjo1197539392.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/13/t1197538488yaor2vh3v1xv00u/24vjo1197539392.ps (open in new window)


 
Parameters:
par1 = 1 ; par2 = 1 ; par3 = 1 ; par4 = 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