Home » date » 2007 » Nov » 28 » attachments

Workshop 3, Q2

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 28 Nov 2007 11:29:01 -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/Nov/28/t1196273973clok2u8gnspn780.htm/, Retrieved Wed, 28 Nov 2007 19:19:35 +0100
 
User-defined keywords:
Q2 reeks 4
 
Dataseries X:
» Textbox « » Textfile « » CSV «
99,4 102,7 109,3 93,9 95,3 101,8 85,6 81,1 109,5 104,0 94,5 79,0 92,8 95,6 101,7 90,8 89,5 91,8 83,8 77,4 112,7 98,8 85,7 72,8 96,9 95,0 94,2 87,3 80,6 87,9 79,6 71,9 94,6 91,4 86,6 68,5 90,1 91,6 95,4 85,4 81,6 88,9 84,1 74,7 97,1 95,3 85,1 67,3 80,6 87,9 89,2 81,3 79,7 83,7 82,1 69,3 91,2 85,7 85,2 70,0 85,8 91,4 97,5 87,1 85,1 94,1 85,8 74,7 99,9 90,7 86,8 74,8 91,8 97,6 100,8 85,4 84,0 90,6 80,5 73,9 93,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 time2 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.30660
10.6197995.14841e-06
20.4711973.91410.000105
30.4291873.56510.000333
40.4528933.7620.000175
50.3438352.85610.002831
60.2032741.68850.047913
70.1299941.07980.141993
8-0.011284-0.09370.537203
90.1077220.89480.187
10-0.00195-0.01620.50644
11-0.074133-0.61580.729972
12-0.233684-1.94110.971836
13-0.133712-1.11070.864723
14-0.075873-0.63020.734692
15-0.076823-0.63810.737253
16-0.021156-0.17570.569493
17-0.05723-0.47540.681994
180.0830620.690.246266
190.087740.72880.234287
200.1531761.27240.103755
210.1168490.97060.167563
220.1210431.00550.159094
230.1091520.90670.183865
240.0970540.80620.21145
250.1285831.06810.144601
260.0166040.13790.445351
270.0467410.38830.34951
28-0.043437-0.36080.640329
29-0.021829-0.18130.571679
30-0.082134-0.68230.751319
31-0.07012-0.58250.718923
32-0.138663-1.15180.873315
33-0.190857-1.58540.941273
34-0.073208-0.60810.727445
35-0.128556-1.06790.855348
36-0.17235-1.43160.92162
37-0.205031-1.70310.953476
38-0.120138-0.99790.839102
39-0.144891-1.20360.883562
40-0.139112-1.15560.874075
41-0.133283-1.10710.863959
42-0.134618-1.11820.866325
43-0.09828-0.81640.791452
44-0.076894-0.63870.737444
45-0.098645-0.81940.792312
46-0.166045-1.37930.913867
47-0.12481-1.03670.848263


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.6197995.14841e-06
10.1413451.17410.122196
20.1504661.24990.107786
30.1889911.56990.060509
4-0.06776-0.56290.712321
5-0.138156-1.14760.872453
6-0.072327-0.60080.725026
7-0.242069-2.01080.975871
80.2724862.26340.013378
9-0.14719-1.22270.887189
10-0.02104-0.17480.569116
11-0.226283-1.87960.967811
120.1315941.09310.139076
130.0583530.48470.314707
140.1183290.98290.164542
150.1432991.19030.118998
16-0.010599-0.0880.534951
170.0946730.78640.217158
18-0.041717-0.34650.635001
19-0.027013-0.22440.58844
200.0966670.8030.212374
21-0.115783-0.96180.830237
22-0.06236-0.5180.696941
23-0.093814-0.77930.78076
240.0162160.13470.446622
25-0.060004-0.49840.690116
260.0793560.65920.255986
27-0.074652-0.62010.731384
280.0413280.34330.366209
29-0.017281-0.14350.556863
300.0774110.6430.26117
31-0.121524-1.00950.841859
320.0341390.28360.388792
330.0784910.6520.258284
34-0.088207-0.73270.766889
35-0.206321-1.71380.954476
360.0371540.30860.379269
37-0.101221-0.84080.798319
380.061010.50680.306961
39-0.121093-1.00590.841005
400.054150.44980.327132
410.0263950.21930.41355
42-0.020454-0.16990.567209
430.0273730.22740.410403
44-0.11287-0.93760.824131
450.0320890.26660.395304
46-0.040861-0.33940.632336
47-0.057-0.47350.681317
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273973clok2u8gnspn780/1vke91196274539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273973clok2u8gnspn780/1vke91196274539.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273973clok2u8gnspn780/2clgd1196274539.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/28/t1196273973clok2u8gnspn780/2clgd1196274539.ps (open in new window)


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