Home » date » 2007 » Nov » 27 » attachments

Workhop 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 05:43:53 -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/t1196167120cryw5o94ohfvnm8.htm/, Retrieved Tue, 27 Nov 2007 13:38:40 +0100
 
User-defined keywords:
Q2, reek 1
 
Dataseries X:
» Textbox « » Textfile « » CSV «
101,5 99,2 107,8 92,3 99,2 101,6 87,0 71,4 104,7 115,1 102,5 75,3 96,7 94,6 98,6 99,5 92,0 93,6 89,3 66,9 108,8 113,2 105,5 77,8 102,1 97,0 95,5 99,3 86,4 92,4 85,7 61,9 104,9 107,9 95,6 79,8 94,8 93,7 108,1 96,9 88,8 106,7 86,8 69,8 110,9 105,4 99,2 84,4 87,2 91,9 97,9 94,5 85,0 100,3 78,7 65,8 104,8 96,0 103,3 82,9 91,4 94,5 109,3 92,1 99,3 109,6 87,5 73,1 110,7 111,6 110,7 84,0 101,6 102,1 113,9 99,0 100,4 109,5 93,0 76,8 105,3
 
Text written by user:
d=0 D=1
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
018.30660
10.3206542.66360.004808
20.4370483.63040.00027
30.5324354.42271.8e-05
40.249292.07080.021062
50.2435182.02280.023485
60.1878941.56080.061577
7-0.072133-0.59920.724492
8-0.058594-0.48670.685999
9-0.045798-0.38040.647601
10-0.282547-2.3470.9891
11-0.154983-1.28740.898869
12-0.266494-2.21370.98492
13-0.230892-1.91790.97037
14-0.098451-0.81780.791855
15-0.141919-1.17890.87875
16-0.183263-1.52230.933748
170.0553270.45960.323631
180.0187930.15610.438204
19-0.045872-0.3810.647828
200.1764121.46540.073679
210.0782120.64970.259029
220.0371040.30820.379427
230.2470552.05220.021973
240.0296950.24670.402949
25-0.010909-0.09060.53597
260.1283731.06630.144992
27-0.004753-0.03950.515689
28-0.008199-0.06810.527051
290.0390880.32470.373201
30-0.152111-1.26350.894675
310.0421570.35020.363634
32-0.016314-0.13550.553702
33-0.141616-1.17640.878252
34-0.015516-0.12890.55109
35-0.052191-0.43350.667008
36-0.074273-0.6170.730354
370.0045440.03770.485001
38-0.020025-0.16630.565811
39-0.120752-1.0030.840327
400.0607850.50490.307614
41-0.036709-0.30490.619331
42-0.048173-0.40020.65486
43-0.001574-0.01310.505196
44-0.00365-0.03030.512048
45-0.050521-0.41970.661979
46-0.028539-0.23710.593345
47-0.027032-0.22450.588502


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3206542.66360.004808
10.3725323.09450.001423
20.420683.49440.000417
3-0.05521-0.45860.676021
4-0.161413-1.34080.907808
5-0.161093-1.33810.907378
6-0.322743-2.68090.995412
7-0.212753-1.76730.959196
80.0867730.72080.236736
9-0.00769-0.06390.525374
100.1312821.09050.13964
11-0.049933-0.41480.660202
120.0690890.57390.283952
130.1603951.33230.093566
140.1184650.9840.164265
15-0.160646-1.33440.906775
16-0.004132-0.03430.51364
170.0276790.22990.409418
18-0.15744-1.30780.902359
19-0.004108-0.03410.513563
200.0937410.77870.219418
21-0.076529-0.63570.736461
220.1284291.06680.144888
23-0.038699-0.32150.625582
24-0.146258-1.21490.88573
25-0.05147-0.42750.664841
260.1189330.98790.163319
270.104150.86510.194982
280.1033820.85880.196724
29-0.125319-1.0410.849241
300.0502550.41740.338823
31-0.044436-0.36910.643412
32-0.055455-0.46060.676749
33-0.124403-1.03340.84748
34-0.038335-0.31840.62444
350.036070.29960.382685
360.0041820.03470.486193
370.0670610.5570.289648
380.0450140.37390.354806
390.0137770.11440.45461
40-0.065996-0.54820.70734
41-0.017088-0.14190.55623
42-0.049029-0.40730.657463
430.017210.1430.44337
44-0.022573-0.18750.574093
45-0.155701-1.29340.899899
460.035050.29120.385905
47-0.040979-0.34040.632704
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196167120cryw5o94ohfvnm8/1esyb1196167429.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196167120cryw5o94ohfvnm8/1esyb1196167429.ps (open in new window)


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