Home » date » 2008 » Dec » 24 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 24 Dec 2008 01:56:31 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/24/t123010914098xhzs6a47in487.htm/, Retrieved Wed, 24 Dec 2008 09:59:02 +0100
 
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/2008/Dec/24/t123010914098xhzs6a47in487.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
46402 45329 42185 49341 50472 33020 29567 22870 25730 32609 23536 15135 36776 29982 38062 34226 24906 30233 27405 20784 22886 25425 20838 15655 37158 36364 43213 31635 30113 29985 20919 19429 21427 26064 20109 15369 35466 25954 33504 28115 28501 28618 21434 20177 21484 25642 23515 12941 36190 37785 38407 33326 30304 27576 27048 17291 21018 26792 19426 13927 35647 31746 31277 31583 25607 28151 24947 18077 23429 26313 18862 14753 36409 33163 34122 35225 28249 30374 26311 22069 23651 28628 23187 14727 43080 32519 39657 33614 28671 34243 27336 22916 24537 26128 22602 15744 41086 39690 43129 37863 35953 29133 24693 22205 21725 27192 21790 13253 37702 30364 32609 30212 29965 28352 25814 22414 20506 28806 22228 13971 36845 35338 35022 34777 26887 23970 22780 17351 21382 24561 17409 11514 31514 27071 29462 26105 22397 23843 21705 18089 20764 25316 17704 15548 28029 29383 36438 32034 22679 24319 18004 17537 20366 22782 19169 13807 29743 25591 29096 26482 22405 27044 17970 18730 19684 19785 18479 10698 31956 29506 34506 27165 26736 23691 18157 17328 18205 20995 17382 9367 31124 26551 30651 25859 25100 25778 20418 18688 20424 24776 19814 12738
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5036076.75660
20.3556354.77132e-06
30.3257684.37061e-05
40.0938461.25910.104818
50.1225021.64350.051009
60.0960611.28880.099563
70.0366680.4920.311674
80.0949211.27350.102241
9-0.042463-0.56970.284793
10-0.195626-2.62460.00471
11-0.21301-2.85780.002384
12-0.411239-5.51740
13-0.291027-3.90456.7e-05
14-0.051825-0.69530.24388
15-0.011204-0.15030.440341
160.0382040.51260.304444
170.0668240.89650.185581
180.0674240.90460.183447
190.0036060.04840.480732
200.0177960.23880.405784
210.1487511.99570.023737
220.1804942.42160.008223
230.2859483.83648.6e-05
240.2838623.80849.6e-05
250.2498913.35260.000488
260.1543542.07090.019899
27-0.016497-0.22130.412541
28-0.0292-0.39180.34785
29-0.01727-0.23170.408516
30-0.089324-1.19840.116168
31-0.020128-0.270.393717
324.6e-056e-040.499757
33-0.173255-2.32450.010608
34-0.187184-2.51130.006454
35-0.207357-2.7820.002989
36-0.344868-4.62694e-06
37-0.213726-2.86740.002316
38-0.200435-2.68910.003919
39-0.086807-1.16460.122852
400.0495330.66460.253593
41-0.040786-0.54720.292458
420.0074050.09940.460484
430.0297090.39860.345336
44-0.049938-0.670.251864
450.0185620.2490.401807
460.153442.05860.020486
470.1033181.38620.083707
480.2073122.78140.002995


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5036076.75660
20.136681.83380.034171
30.1396911.87410.031265
4-0.193454-2.59550.005113
50.1020971.36980.086233
6-0.003245-0.04350.482659
70.0096050.12890.448803
80.0472290.63360.263558
9-0.15447-2.07240.019825
10-0.212607-2.85240.002423
11-0.094319-1.26540.103677
12-0.271638-3.64440.000175
130.11441.53480.063289
140.2753023.69360.000147
150.185062.48280.006975
16-0.048934-0.65650.256163
17-0.012868-0.17260.431561
180.0790961.06120.145014
19-0.10563-1.41720.079081
200.0367990.49370.311054
210.1770522.37540.009291
22-0.070449-0.94520.172917
230.0831911.11610.132928
24-0.063981-0.85840.195907
250.0866371.16240.123314
260.0208360.27950.390075
27-0.05464-0.73310.232234
28-0.041737-0.560.288103
29-0.065431-0.87780.190599
30-0.065325-0.87640.190981
310.0152240.20420.419196
320.0164110.22020.412994
33-0.056709-0.76080.223879
34-0.045672-0.61270.270408
350.0616560.82720.204611
36-0.236761-3.17650.000877
370.0789891.05980.145339
38-0.070594-0.94710.172425
390.0520160.69790.243079
400.0570890.76590.22236
41-0.025345-0.340.367111
420.00580.07780.469033
43-0.014361-0.19270.423714
44-0.02422-0.32490.372802
45-0.043791-0.58750.278797
460.0449050.60250.27381
470.0123160.16520.434471
480.0031280.0420.483284
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t123010914098xhzs6a47in487/1b31s1230108990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t123010914098xhzs6a47in487/1b31s1230108990.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t123010914098xhzs6a47in487/2u7nd1230108990.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t123010914098xhzs6a47in487/2u7nd1230108990.ps (open in new window)


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