Home » date » 2007 » Nov » 29 » attachments

WS 4 - Q2 - methode 2 - Reeks 1

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 29 Nov 2007 02:52:16 -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/29/t11963294090hfxg6uou6997q0.htm/, Retrieved Thu, 29 Nov 2007 10:43:30 +0100
 
User-defined keywords:
Christel Stuer, Steven Coomans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
117 103,8 100,8 110,6 104 112,6 107,3 98,9 109,8 104,9 102,2 123,9 124,9 112,7 121,9 100,6 104,3 120,4 107,5 102,9 125,6 107,5 108,8 128,4 121,1 119,5 128,7 108,7 105,5 119,8 111,3 110,6 120,1 97,5 107,7 127,3 117,2 119,8 116,2 111 112,4 130,6 109,1 118,8 123,9 101,6 112,8 128 129,6 125,8 119,5 115,7 113,6 129,7 112 116,8 127 112,9 113,3 121,7
 
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 time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.1170480.90660.18411
2-0.049566-0.38390.64881
30.3904773.02460.00183
4-0.172458-1.33590.906678
5-0.007289-0.05650.522419
60.473233.66560.000262
7-0.134659-1.04310.849449
8-0.098005-0.75910.77463
90.2881112.23170.014691
10-0.263201-2.03870.977056
110.0125150.09690.461549
120.5517924.27423.5e-05
13-0.069539-0.53860.703939
14-0.012567-0.09730.53861
150.2140651.65810.051255
16-0.260437-2.01730.97593
17-0.021481-0.16640.565796
180.247051.91360.03022
19-0.235204-1.82190.963271
20-0.114443-0.88650.810549
210.0969260.75080.227857
22-0.272793-2.1130.980617
230.0507940.39340.347691
240.2892672.24070.014381
25-0.108733-0.84220.798502
260.0229610.17790.429719
270.1692811.31120.097386
28-0.173539-1.34420.908033
290.0317930.24630.403158
300.1487291.1520.126935
31-0.117593-0.91090.816996
32-0.013995-0.10840.542981
33-0.008226-0.06370.525297
34-0.235607-1.8250.96351
35-0.005697-0.04410.517526
360.1329381.02970.153635
37-0.100904-0.78160.781239
38-0.056781-0.43980.669176
39-0.023436-0.18150.571719
40-0.192632-1.49210.929547
41-0.073501-0.56930.714374
42-0.035804-0.27730.608763
43-0.106684-0.82640.794065
44-0.035009-0.27120.606409
45-0.062817-0.48660.685835
46-0.186483-1.44450.923099
47-0.090505-0.7010.757008


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1170480.90660.18411
1-0.064145-0.49690.689451
20.4114663.18720.001141
3-0.349633-2.70820.9956
40.2349921.82020.036855
50.2755762.13460.018444
6-0.178493-1.38260.914044
7-0.065217-0.50520.692356
80.0923120.7150.238676
9-0.162173-1.25620.893041
100.1741871.34930.091163
110.3565832.76210.003806
12-0.041104-0.31840.624354
13-0.088577-0.68610.752357
14-0.144972-1.12290.867033
150.0702080.54380.294286
16-0.102692-0.79540.785256
17-0.12126-0.93930.824322
18-0.022695-0.17580.569477
19-0.098068-0.75960.774776
20-0.025012-0.19370.576483
210.1006050.77930.219438
220.149711.15960.125393
23-0.043257-0.33510.630628
240.0110680.08570.465982
25-0.014774-0.11440.545363
260.1610291.24730.108563
27-0.074584-0.57770.717195
28-0.034575-0.26780.60512
29-0.065229-0.50530.692387
300.1735561.34440.091947
31-0.051737-0.40080.654988
32-0.117303-0.90860.816409
33-0.0709-0.54920.707544
34-0.06147-0.47610.682149
350.0191650.14850.441241
36-0.060329-0.46730.679014
37-0.116055-0.8990.813867
38-0.173024-1.34020.907389
39-0.053286-0.41280.65937
40-0.028118-0.21780.585839
41-0.043046-0.33340.630014
420.029870.23140.408906
430.0347080.26880.394485
440.0511520.39620.346673
45-0.003604-0.02790.511088
460.0408690.31660.376333
47-0.151739-1.17540.877755
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963294090hfxg6uou6997q0/1ke4q1196329932.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/29/t11963294090hfxg6uou6997q0/1ke4q1196329932.ps (open in new window)


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