Home » date » 2007 » Nov » 27 » attachments

Opdracht 3 Q2 Kolom3

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:07:37 -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/t1196157520te1oo12rc4u5ffh.htm/, Retrieved Tue, 27 Nov 2007 10:58:42 +0100
 
User-defined keywords:
Verbeterd
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5329 4903 5826 6006 6552 6748 5633 5361 6631 7078 6100 6376 5571 5512 5461 5704 6420 6344 5624 5322 6098 6303 5581 5491 5108 4585 5545 5145 5888 5925 5715 5595 6160 6163 5906 5045 5130 4743 5438 5698 6333 6340 5635 5948 6199 6023 4540 4315 5161 4433 5199 5582 5936 6391 5647 5827 6101 5777 5511 5036 4468 4053 4821 5138 6102 6029 5365 5717 6150 5737 5268 5307
 
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
017.7460
10.3176782.46070.00838
20.1057170.81890.208047
30.1055760.81780.208356
40.0587690.45520.325296
50.0685310.53080.298745
6-0.017274-0.13380.552997
7-0.162077-1.25540.892907
8-0.093528-0.72450.764203
9-0.151304-1.1720.877084
10-0.065178-0.50490.692249
11-0.122295-0.94730.826356
12-0.339156-2.62710.994542
13-0.10309-0.79850.786144
14-0.015221-0.11790.54673
15-0.084731-0.65630.742937
16-0.167344-1.29620.900072
17-0.029765-0.23060.590779
180.0150270.11640.453863
190.067550.52320.301368
20-0.079602-0.61660.730082
210.0359420.27840.39083
22-0.003626-0.02810.511157
230.0033940.02630.489557
240.0882010.68320.248555
250.0989510.76650.223201
260.0619880.48020.316432
270.142311.10230.13736
280.1162710.90060.185693
29-0.000365-0.00280.501122
30-0.003814-0.02950.511736
31-0.033409-0.25880.601656
320.0746960.57860.282515
33-0.126461-0.97960.834382
34-0.166038-1.28610.898329
35-0.046197-0.35780.63914
36-0.082873-0.64190.738319
37-0.021364-0.16550.565441
38-0.000727-0.00560.502236
39-0.001544-0.0120.504753
400.0995350.7710.221867
410.0257880.19980.421174
420.0048030.03720.485224
43-0.01531-0.11860.547001
44-0.071303-0.55230.708606
450.0874830.67760.250302
460.0897530.69520.244799
47-0.033298-0.25790.601326


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.3176782.46070.00838
10.0053360.04130.483583
20.0783890.60720.273005
30.0029150.02260.49103
40.0480440.37220.355546
5-0.06704-0.51930.697266
6-0.162729-1.26050.893814
7-0.003546-0.02750.510912
8-0.124155-0.96170.82997
90.0470490.36440.358406
10-0.1066-0.82570.793882
11-0.275876-2.13690.981655
120.1042480.80750.211284
130.0008970.00690.497241
14-0.069814-0.54080.704667
15-0.18385-1.42410.9202
160.1172040.90790.183792
17-0.032834-0.25430.599946
18-0.017296-0.1340.553065
19-0.16808-1.30190.901044
200.0713530.55270.291262
21-0.053459-0.41410.659858
22-0.078756-0.610.727931
23-0.013474-0.10440.541388
240.0857760.66440.254484
250.0649830.50340.308278
260.0123680.09580.461999
27-0.041879-0.32440.626615
28-0.05711-0.44240.670096
290.0333840.25860.398417
30-0.075835-0.58740.720436
310.0135310.10480.458437
32-0.145915-1.13030.868567
33-0.063045-0.48830.686457
340.0407730.31580.376615
35-0.112393-0.87060.806277
360.1334921.0340.152637
37-0.053-0.41050.658563
380.1518181.1760.122124
390.0210240.16290.435591
40-0.052404-0.40590.656876
41-0.053003-0.41060.658571
42-0.070712-0.54770.707045
430.0025570.01980.49213
44-0.025169-0.1950.576959
450.0406140.31460.377081
46-0.039743-0.30780.620368
47-0.022361-0.17320.568466
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196157520te1oo12rc4u5ffh/124tt1196158055.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/27/t1196157520te1oo12rc4u5ffh/124tt1196158055.ps (open in new window)


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