Home » date » 2007 » Nov » 27 » 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: Tue, 27 Nov 2007 06:13:10 -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/27/t1196168622ga4vzl9dg83t83n.htm/, Retrieved Tue, 27 Nov 2007 14:03:44 +0100
 
User-defined keywords:
Q2, reeks 3
 
Dataseries X:
» Textbox « » Textfile « » CSV «
91,4 85,4 110,4 90,1 103,4 118,7 76,4 92,7 105,2 91,5 75,3 60,5 80,4 84,5 93,9 78,0 92,3 90,0 72,1 76,9 76,0 88,7 55,4 46,6 90,9 84,9 89,0 90,2 72,3 83,0 71,6 75,4 85,1 81,2 68,7 68,4 93,7 96,6 101,8 93,6 88,9 114,1 82,3 96,4 104,0 88,2 85,2 87,1 85,5 89,1 105,2 82,9 86,8 112,0 97,4 88,9 109,4 87,8 90,5 79,3 114,9 118,8 125,0 96,1 116,7 119,5 104,1 121,0 127,3 117,7 108,0 89,4 137,4 142,0 137,3 122,8 126,1 147,6 115,7 139,2 150,9
 
Text written by user:
d=0 D=0
 
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
0190
10.6214385.59290
20.5002554.50231.1e-05
30.5612725.05141e-06
40.5036794.53311e-05
50.5014084.51271.1e-05
60.4202543.78230.000148
70.4332983.89979.9e-05
80.3981113.5830.000289
90.297322.67590.004509
100.2925282.63270.00507
110.3692583.32330.000669
120.4823964.34162e-05
130.2586332.32770.011212
140.164971.48470.070748
150.172311.55080.062425
160.1631151.4680.072984
170.1669691.50270.0684
180.0564980.50850.30625
190.1127861.01510.156547
200.0728250.65540.257027
21-0.009674-0.08710.534581
220.0201060.1810.428429
230.0668830.60190.274445
240.1209961.0890.1397
25-0.017434-0.15690.562144
26-0.053531-0.48180.684368
27-0.038287-0.34460.634351
28-0.06483-0.58350.7194
29-0.023652-0.21290.584017
30-0.111187-1.00070.840019
31-0.103321-0.92990.822405
32-0.096807-0.87130.806907
33-0.101308-0.91180.817702
34-0.106653-0.95990.830012
35-0.076908-0.69220.754595
360.0237610.21380.415602
37-0.117674-1.05910.85364
38-0.191706-1.72540.955862
39-0.150557-1.3550.91041
40-0.179665-1.6170.945115
41-0.176302-1.58670.941764
42-0.248966-2.24070.986108
43-0.25856-2.3270.98877
44-0.274346-2.46910.992176
45-0.292743-2.63470.994956
46-0.280261-2.52230.993192
47-0.252065-2.26860.987023


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.6214385.59290
10.1858371.67250.049139
20.3251352.92620.002225
30.0771590.69440.244701
40.1617021.45530.074723
5-0.072164-0.64950.741065
60.1179561.06160.145785
7-0.055024-0.49520.689106
8-0.085591-0.77030.778324
9-0.032261-0.29030.613853
100.1838111.65430.050968
110.3158572.84270.002829
12-0.302559-2.7230.99604
13-0.16982-1.52840.934843
14-0.23829-2.14460.98251
150.0848210.76340.223724
160.0361010.32490.373044
17-0.089364-0.80430.788204
180.0767580.69080.245826
19-0.029296-0.26370.603647
200.1020640.91860.180523
21-0.075778-0.6820.751407
220.0032980.02970.488198
23-0.036372-0.32730.627876
24-0.000272-0.00240.500972
250.0720450.64840.259277
26-0.070989-0.63890.737655
27-0.058911-0.53020.701287
280.0207520.18680.426156
29-0.020033-0.18030.571317
30-0.092748-0.83470.796837
310.0101570.09140.463694
320.1468241.32140.095042
33-0.051173-0.46060.676824
340.0233330.210.417099
350.0810050.7290.234038
36-0.124312-1.11880.866735
37-0.187217-1.6850.952076
38-0.093967-0.84570.799895
39-0.039832-0.35850.639546
40-0.045676-0.41110.658952
410.030870.27780.390927
42-0.046217-0.4160.660729
43-0.099685-0.89720.813856
44-0.044019-0.39620.653491
45-0.009041-0.08140.532327
460.0269320.24240.404547
470.0808030.72720.234592
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168622ga4vzl9dg83t83n/14a3a1196169188.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168622ga4vzl9dg83t83n/14a3a1196169188.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168622ga4vzl9dg83t83n/2ul651196169188.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168622ga4vzl9dg83t83n/2ul651196169188.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