Home » date » 2009 » Jun » 07 »

Opdracht 6Bis Oefening 2 stap 2 Anke Winckelmans

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 07 Jun 2009 11:43:57 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb.htm/, Retrieved Sun, 07 Jun 2009 19:45:20 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3779.7 3795.5 3813.1 3826.9 3833.3 3844.8 3851.3 3851.8 3854.1 3858.4 3861.6 3856.3 3855.8 3860.4 3855.1 3839.5 3833 3833.6 3826.8 3818.2 3811.4 3806.8 3810.3 3818.2 3858.9 3867.8 3872.3 3873.3 3876.7 3882.6 3883.5 3882.2 3888.1 3893.7 3901.9 3914.3 3930.3 3948.3 3971.5 3990.1 3993 3998 4015.8 4041.2 4060.7 4076.7 4103 4125.3 4139.7 4146.7 4158 4155.1 4144.8 4148.2 4142.5 4142.1 4145.4 4146.3 4143.5 4149.2 4158.9 4166.1 4179.1 4194.4 4211.7 4226.3 4235.8 4243.6 4258.7 4278.2 4298 4315.1 4334.3 4356 4374 4395.5
 
Output produced by software:


Summary of computational 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
10.6761675.85580
20.4631184.01077.1e-05
30.382583.31320.000711
40.3196772.76850.003546
50.1871381.62070.054643
60.0853750.73940.230996
70.0793080.68680.247155
80.0098370.08520.46617
9-0.060767-0.52630.300131
10-0.040122-0.34750.364608
11-0.015304-0.13250.447457
12-0.077974-0.67530.250788
13-0.153075-1.32570.094486
14-0.127794-1.10670.135973
15-0.170133-1.47340.072414
16-0.275354-2.38460.009812
17-0.282483-2.44640.008387
18-0.175976-1.5240.065858
19-0.095849-0.83010.204564
20-0.09977-0.8640.195162
21-0.035571-0.30810.379446
220.045380.3930.347718
230.0039290.0340.486472
24-0.021723-0.18810.425642
250.0069610.06030.476046
260.0320690.27770.390994
27-0.068477-0.5930.277474
28-0.151619-1.31310.096583
29-0.076633-0.66370.254472
30-0.082383-0.71350.238887
31-0.054227-0.46960.319995
32-0.021112-0.18280.427709
330.0348150.30150.381932
340.0394140.34130.366902
350.0723540.62660.266412
360.1576661.36540.0881
370.1621891.40460.082134
380.1251131.08350.141026
390.1076290.93210.177139
400.1390931.20460.116077
410.1135850.98370.16422
420.0558520.48370.315006
430.0415850.36010.35988
440.0492490.42650.33548
450.0595510.51570.30378
460.0366990.31780.375751
47-0.002465-0.02130.491512
48-0.038645-0.33470.369402


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6761675.85580
20.0108980.09440.462529
30.1206471.04480.149728
40.0281480.24380.404036
5-0.1224-1.060.14627
6-0.048555-0.42050.337661
70.065690.56890.285565
8-0.108743-0.94170.174674
9-0.038027-0.32930.371414
100.0800160.6930.245238
110.0023150.020.49203
12-0.105753-0.91580.181341
13-0.088063-0.76260.224033
140.0277920.24070.405226
15-0.136753-1.18430.120014
16-0.144453-1.2510.107412
170.0169030.14640.442007
180.1184951.02620.154048
190.0892710.77310.220943
20-0.017359-0.15030.440453
210.0501940.43470.332517
220.0264360.22890.409769
23-0.127453-1.10380.13661
24-0.02268-0.19640.422408
25-0.010142-0.08780.465123
260.0183180.15860.437191
27-0.1165-1.00890.158129
28-0.11559-1.0010.160014
290.0973960.84350.200822
30-0.075453-0.65340.257734
310.1102680.95490.171337
32-0.024202-0.20960.417277
33-0.009203-0.07970.468343
340.0470860.40780.342299
350.1408191.21950.113233
360.0822380.71220.239275
37-0.013729-0.11890.452836
380.0273370.23670.40675
39-0.007508-0.0650.474164
40-0.027405-0.23730.406522
41-0.054981-0.47610.317676
42-0.006845-0.05930.476444
43-0.076933-0.66630.253645
44-0.035506-0.30750.379662
450.0528210.45740.324338
460.0098410.08520.466154
47-0.068648-0.59450.276982
48-0.029393-0.25450.399884
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb/15c891244396634.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb/15c891244396634.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb/2355a1244396635.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/07/t124439671888qrvnxaqx1evqb/2355a1244396635.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 4 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 4 ;
 
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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