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:16:31 -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/t1196168819r1dpj2e4vp5mj7z.htm/, Retrieved Tue, 27 Nov 2007 14:07:01 +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=1 D=1
 
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.24620
1-0.533021-4.39540.99998
2-0.067427-0.5560.709989
30.3237952.67010.004739
4-0.229537-1.89280.96868
5-0.105033-0.86610.805266
60.2745872.26430.013374
7-0.230303-1.89910.969104
80.1525751.25820.106317
9-0.029794-0.24570.59667
10-0.126572-1.04370.849848
110.2105061.73590.043558
12-0.216567-1.78590.960709
130.0638130.52620.300224
140.0863070.71170.23954
15-0.125699-1.03650.848189
16-0.030187-0.24890.597918
170.2327681.91950.029562
18-0.31397-2.58910.99412
190.1370741.13030.131151
200.1196310.98650.163692
21-0.1505-1.24110.890576
22-0.00411-0.03390.51347
230.2269921.87180.032766
24-0.273348-2.25410.986291
250.036370.29990.38258
260.1260771.03970.151091
27-0.094081-0.77580.779724
280.0003890.00320.498726
290.0960690.79220.215498
30-0.062249-0.51330.695304
310.0178270.1470.441782
32-0.019708-0.16250.564308
33-0.010015-0.08260.532788
340.0296580.24460.403766
35-0.006286-0.05180.520595
36-0.046726-0.38530.649397
370.1096720.90440.184494
38-0.053043-0.43740.668397
39-0.055518-0.45780.675727
400.1201430.99070.162667
41-0.140151-1.15570.874079
420.0287960.23750.406507
430.1424881.1750.12205
44-0.195826-1.61480.94451
450.0851640.70230.24245
460.0674240.5560.290021
47-0.175346-1.44590.923606


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
0-0.533021-4.39540.99998
1-0.491052-4.04930.999933
20.0155820.12850.449068
30.0024950.02060.491822
4-0.236769-1.95240.972498
5-0.047493-0.39160.651723
6-0.120837-0.99640.838718
70.1571651.2960.099676
80.0200110.1650.43471
9-0.145911-1.20320.883466
100.0771330.63610.263437
11-0.142991-1.17910.878773
12-0.021212-0.17490.569168
13-0.102936-0.84880.800523
14-0.062289-0.51360.695419
15-0.201137-1.65860.949101
160.0281230.23190.408653
17-0.141435-1.16630.876218
18-0.200226-1.65110.948335
19-0.004967-0.0410.516275
200.0536280.44220.329864
21-0.078322-0.64590.739727
220.1219091.00530.159161
23-0.035563-0.29330.614891
24-0.189399-1.56180.938514
25-0.149257-1.23080.888681
26-0.017903-0.14760.558464
27-0.120566-0.99420.838178
28-0.042257-0.34850.635715
29-0.053989-0.44520.671208
30-0.023587-0.19450.576818
31-0.016747-0.13810.554715
32-0.008559-0.07060.52803
33-0.156548-1.29090.89945
340.0827650.68250.248621
35-0.103132-0.85040.800969
36-0.039462-0.32540.627066
370.0549640.45320.325907
380.0045580.03760.485065
39-0.056801-0.46840.679499
40-0.088341-0.72850.765589
41-0.105403-0.86920.806095
420.0118090.09740.461356
43-0.065015-0.53610.70319
440.0305290.25170.400997
45-0.140672-1.160.87495
46-0.002518-0.02080.508251
470.0270210.22280.412173
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168819r1dpj2e4vp5mj7z/1md4i1196169389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168819r1dpj2e4vp5mj7z/1md4i1196169389.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168819r1dpj2e4vp5mj7z/2c1441196169389.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196168819r1dpj2e4vp5mj7z/2c1441196169389.ps (open in new window)


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