Home » date » 2009 » Nov » 27 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 27 Nov 2009 08:09:59 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/27/t1259334718wlq7a37evwl0t7x.htm/, Retrieved Fri, 27 Nov 2009 16:12:00 +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/2009/Nov/27/t1259334718wlq7a37evwl0t7x.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 «
902.2 891.9 874 930.9 944.2 935.9 937.1 885.1 892.4 987.3 946.3 799.6 875.4 846.2 880.6 885.7 868.9 882.5 789.6 773.3 804.3 817.8 836.7 721.8 760.8 841.4 1045.6 949.2 850.1 957.4 851.8 913.9 888 973.8 927.6 833 879.5 797.3 834.5 735.1 835 892.8 697.2 821.1 732.7 797.6 866.3 826.3 778.6 779.2 951 692.3 841.4 857.3 760.7 841.2 810.3 1007.4 931.3 931.2
 
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
1-0.213292-1.46230.075163
2-0.281962-1.9330.029634
30.1721021.17990.121995
40.0237990.16320.435546
5-0.112307-0.76990.222595
6-0.00109-0.00750.497035
70.2760041.89220.032317
8-0.331918-2.27550.013739
9-0.02436-0.1670.434041
100.2495091.71050.046879
11-0.060055-0.41170.34121
12-0.309632-2.12270.019536
13-0.133586-0.91580.182218
140.3020762.07090.021941
15-0.135302-0.92760.179182
16-0.029452-0.20190.420429
170.1884961.29230.101291
18-0.156011-1.06960.145141
19-0.106894-0.73280.233652
200.0470090.32230.374335
210.2601571.78350.040478
22-0.24316-1.6670.051081
230.0662240.4540.325955
240.1711741.17350.123252
25-0.135035-0.92580.179652
260.0411670.28220.389504
270.0166840.11440.454712
280.0175530.12030.452365
29-0.111348-0.76340.22453
300.0733990.50320.308587
310.0594670.40770.342679
32-0.049787-0.34130.36719
33-0.006219-0.04260.483086
34-0.00303-0.02080.491758
350.0237960.16310.435556
36-0.045895-0.31460.377214


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.213292-1.46230.075163
2-0.343063-2.35190.011459
30.021560.14780.441563
4-0.022053-0.15120.440238
5-0.055599-0.38120.352398
6-0.055012-0.37710.353882
70.2570431.76220.042269
8-0.254615-1.74550.043712
9-0.001176-0.00810.496799
100.044660.30620.380413
110.0622840.4270.335666
12-0.308824-2.11720.019782
13-0.395647-2.71240.004651
14-0.031355-0.2150.415365
15-0.021556-0.14780.441574
16-0.059644-0.40890.342235
170.0301670.20680.418525
18-0.04157-0.2850.388451
19-0.004674-0.0320.487287
20-0.213395-1.4630.075066
210.0714130.48960.313352
22-0.051653-0.35410.362419
230.1648651.13030.132052
24-0.167337-1.14720.128551
25-0.144433-0.99020.163577
26-0.043596-0.29890.383175
270.0471820.32350.373891
28-0.123152-0.84430.201393
290.0666780.45710.324845
30-0.061505-0.42170.337599
31-0.080735-0.55350.291275
32-0.086891-0.59570.277119
330.0110620.07580.469936
340.1219950.83640.203594
350.0578740.39680.346668
36-0.002714-0.01860.492616
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259334718wlq7a37evwl0t7x/16wle1259334598.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259334718wlq7a37evwl0t7x/16wle1259334598.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259334718wlq7a37evwl0t7x/2d3ss1259334598.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259334718wlq7a37evwl0t7x/2d3ss1259334598.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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