Home » date » 2009 » Jun » 02 »

opdracht6bis2-MerelBoels-MAR204A

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 02 Jun 2009 08:22:48 -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/02/t1243952617z9jcy0ypduphlf1.htm/, Retrieved Tue, 02 Jun 2009 16:23:40 +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/02/t1243952617z9jcy0ypduphlf1.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 «
672,1 674,4 676,6 678,7 680,8 682,9 684 684,1 684,1 684,2 685,9 689,2 692,4 695,7 697,2 696,8 696,4 695,9 696,2 697,2 705,2 706,2 707,4 708,7 710 711,3 711,5 710,7 710 709,2 707,9 706,1 704,4 702,7 701,5 700,8 700 699,3 698,8 698,4 696,8 695,1 694,3 693,4 692,4 691 689,7 688,3 686 683,6 682,6 681,9 681 679,9 678,5 677,5 678 679 679,8 681,3 684,2 687 688,4 689,5 691,1 693,3 695,9 698 699,6 701,6 703,5 705,5 708,1 709,6 710,3
 
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.7015286.03480
20.5499344.73075e-06
30.4245493.65210.000241
40.3556963.05980.001542
50.3227092.77610.003482
60.3368912.8980.002469
70.3586493.08520.00143
80.3576733.07680.001466
90.3434082.95410.002101
100.2352022.02330.023328
110.1116740.96070.169928
120.0583150.50160.308702
130.0093270.08020.468132
140.0103070.08870.464796
150.0122540.10540.458167
16-0.034359-0.29560.384195
17-0.059846-0.51480.304109
18-0.072982-0.62780.266028
19-0.093779-0.80670.211206
20-0.207598-1.78580.039112
21-0.213005-1.83230.035462
22-0.192853-1.6590.050676
23-0.224955-1.93510.028397
24-0.256517-2.20660.015221
25-0.292924-2.51980.006949
26-0.316046-2.71870.00408
27-0.345853-2.97510.001977
28-0.39629-3.4090.000529
29-0.414931-3.56940.000316
30-0.360156-3.09820.001376
31-0.318502-2.73990.003849
32-0.301962-2.59760.005661
33-0.292345-2.51480.00704
34-0.296965-2.55460.006344
35-0.288868-2.48490.007609
36-0.232452-1.99960.024606
37-0.197437-1.69840.046815
38-0.190578-1.63940.052686
39-0.1578-1.35740.089383
40-0.098173-0.84450.200552
41-0.092618-0.79670.214077
42-0.133347-1.14710.127519
43-0.131455-1.13080.130891
44-0.090941-0.78230.218266
45-0.030071-0.25870.398302
460.0304920.26230.396909
470.0523740.45050.326821
480.0521680.44880.327454


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7015286.03480
20.1137970.97890.165405
30.0056370.04850.480727
40.05470.47060.319673
50.0697480.60.275172
60.1205011.03660.151652
70.1010470.86920.193763
80.0429810.36970.356318
90.0303660.26120.397324
10-0.152422-1.31120.096925
11-0.155234-1.33540.092923
12-0.00801-0.06890.472625
13-0.06238-0.53660.296574
140.004250.03660.485467
15-0.020994-0.18060.428589
16-0.124122-1.06770.144554
17-0.017566-0.15110.440152
180.0281730.24240.404589
190.0218290.18780.425781
20-0.18527-1.59380.057627
210.0231320.1990.42141
220.0536890.46180.322772
23-0.115302-0.99190.162248
24-0.093792-0.80680.211176
25-0.058757-0.50540.307375
26-0.045567-0.3920.348099
27-0.090896-0.78190.218378
28-0.145987-1.25580.106565
29-0.028334-0.24370.404053
300.0929770.79980.213188
31-0.017921-0.15420.43895
32-0.01536-0.13210.447621
33-0.008788-0.07560.469973
34-0.007628-0.06560.473928
350.0548750.47210.31914
360.0777460.66880.252853
370.0051730.04450.482314
38-0.052468-0.45130.326529
390.0006840.00590.49766
400.0194240.16710.433876
41-0.078877-0.67850.249776
42-0.116119-0.99890.160552
43-0.009418-0.0810.467823
440.0121590.10460.45849
45-0.003443-0.02960.488226
460.0604820.52030.302208
470.0337880.29070.386064
48-0.060931-0.52410.300872
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243952617z9jcy0ypduphlf1/1de0k1243952566.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243952617z9jcy0ypduphlf1/1de0k1243952566.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243952617z9jcy0ypduphlf1/2wufl1243952566.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243952617z9jcy0ypduphlf1/2wufl1243952566.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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 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