Home » date » 2007 » Nov » 27 » attachments

autocorrelation - opdracht 3

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 03:44:36 -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/t1196159878it8ug2fxfdkw7bd.htm/, Retrieved Tue, 27 Nov 2007 11:38:00 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
115.9 103.9 91.9 117.2 109.3 106.1 118.8 105.3 106.0 102.0 112.9 116.5 114.8 100.5 85.4 114.6 109.9 100.7 115.5 100.7 99.0 102.3 108.8 105.9 113.2 95.7 80.9 113.9 98.1 102.8 104.7 95.9 94.6 101.6 103.9 110.3 114.1 96.8 87.4 111.4 97.4 102.9 112.7 97.0 95.1 96.9 98.6 111.7 109.8 89.9 87.4 104.5 98.1 102.7 105.4 97.0 97.4 92.0 101.7 112.6 106.9 92.1 86.0 104.7 102.0 103.1 106.0 96.1 96.2 90.7 102.3 109.4 101.0 94.7 81.0 106.2 101.9 96.4 110.4 100.5 98.8
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
0190
10.0879040.79110.215587
2-0.218261-1.96440.973541
30.0342490.30820.379346
4-0.099456-0.89510.813307
50.258012.32210.01137
60.4162573.74630.000167
70.1939881.74590.04231
8-0.078341-0.70510.758605
9-0.065536-0.58980.721524
10-0.253035-2.27730.987298
110.091810.82630.205534
120.7207376.48660
130.0001820.00160.49935
14-0.238651-2.14790.982643
15-0.039473-0.35530.638339
16-0.147397-1.32660.905811
170.1533621.38030.085653
180.2913352.6220.00522
190.0918930.8270.205324
20-0.094449-0.850.801095
21-0.091361-0.82230.793326
22-0.272515-2.45260.991835
230.0601660.54150.294827
240.5200144.68016e-06
25-0.041456-0.37310.644979
26-0.187588-1.68830.952399
27-0.072145-0.64930.74101
28-0.163518-1.47170.927506
290.1031690.92850.177949
300.1830831.64770.051639
310.0810170.72920.234005
32-0.059389-0.53450.702771
33-0.12955-1.16590.876472
34-0.232442-2.0920.980214
350.0093890.08450.466432
360.3813163.43180.000473
37-0.043076-0.38770.650366
38-0.179926-1.61930.945368
39-0.074792-0.67310.748608
40-0.177205-1.59480.942679
410.0383810.34540.365334
420.1087760.9790.165252
430.0397480.35770.360736
44-0.052277-0.47050.680367
45-0.151059-1.35950.911124
46-0.194748-1.75270.958284
47-0.013169-0.11850.547025


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0879040.79110.215587
1-0.227748-2.04970.978187
20.0827210.74450.229368
3-0.174156-1.56740.939541
40.3529143.17620.001056
50.3098952.78910.003294
60.3805153.42460.000484
70.035030.31530.376683
80.1342811.20850.11518
9-0.526269-4.73640.999995
10-0.108405-0.97560.833928
110.4390013.9518.3e-05
12-0.064202-0.57780.717504
13-0.047572-0.42810.665159
14-0.033478-0.30130.618021
150.0811220.73010.233718
16-0.127765-1.14990.873213
17-0.093857-0.84470.799621
18-0.078473-0.70630.758974
190.0223240.20090.420634
200.132421.19180.118414
210.0025850.02330.490747
22-0.001453-0.01310.505202
23-0.027874-0.25090.598722
240.0393880.35450.361947
250.0159550.14360.443089
26-0.061117-0.55010.708103
27-0.049565-0.44610.671636
28-0.003046-0.02740.510901
29-0.069799-0.62820.734177
300.0971990.87480.192136
310.0007170.00650.497434
32-0.024016-0.21610.58529
330.0357220.32150.374331
34-0.07466-0.67190.748233
35-0.002336-0.0210.508361
36-0.106099-0.95490.828764
37-0.078655-0.70790.759477
38-0.025841-0.23260.591658
390.0105780.09520.462195
400.0119540.10760.457295
41-0.003404-0.03060.512183
42-0.012659-0.11390.545212
43-0.001051-0.00950.503761
440.0032610.02930.488331
450.0491120.4420.329831
46-0.01224-0.11020.543721
47-0.050982-0.45880.67621
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159878it8ug2fxfdkw7bd/1pa8h1196160274.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196159878it8ug2fxfdkw7bd/1pa8h1196160274.ps (open in new window)


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