Home » date » 2009 » Dec » 09 »

*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, 09 Dec 2009 02:55:24 -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/Dec/09/t126035259460w2huw91ht7vxe.htm/, Retrieved Wed, 09 Dec 2009 10:56:36 +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/Dec/09/t126035259460w2huw91ht7vxe.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8,82000 8,80000 8,82000 8,58000 8,54000 8,42000 8,43000 8,44000 8,09000 7,69000 7,56000 7,54000 7,40000 7,39000 7,37000 7,31000 7,35000 7,26000 7,37000 7,35000 7,33000 7,32000 7,31000 7,33000 7,32000 7,27000 7,48000 7,70000 7,77000 7,80000 7,84000 7,81000 7,78000 7,82000 7,80000 7,81000 7,80000 7,66000 7,41000 7,35000 7,39000 7,32000 7,32000 7,30000 7,29000 7,26000 7,22000 7,21000 7,21000 7,21000 7,20000 7,19000 7,18000 7,12000 7,12000 7,07000 7,08000 7,05000 7,06000 7,07000 7,08000 7,08000 7,09000 7,07000 7,06000 6,99000 6,99000 6,99000 6,98000 6,96000 6,95000 6,91000 6,91000 6,87000 6,91000 6,89000 6,88000 6,90000 6,91000 6,85000 6,86000 6,82000 6,80000 6,83000 6,84000 6,89000 7,14000 7,21000 7,25000 7,31000 7,30000 7,48000 7,49000 7,40000 7,44000 7,42000 7,14000 7,24000 7,33000 7,61000 7,66000 7,69000 7,70000 7,68000 7,71000 7,71000 7,72000 7,68000 7,72000 7,74000 7,76000 7,90000 7,97000 7,96000 etc...
 
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.94541910.8620
20.88122110.12450
30.810839.31570
40.7447498.55650
50.6776457.78550
60.6129527.04230
70.5430526.23920
80.4739215.44490
90.4201914.82762e-06
100.3835224.40631.1e-05
110.3559124.08913.7e-05
120.3294383.78490.000116
130.3078313.53670.00028
140.2823253.24370.000747
150.2544122.9230.00204
160.2333622.68110.004137
170.2099872.41260.008607
180.193142.2190.014097
190.1778722.04360.021492
200.1675821.92540.028167
210.1608681.84820.033403
220.1598741.83680.034243
230.1598251.83630.034285
240.1593251.83050.034715
250.1609121.84870.033367
260.1611091.8510.033202
270.1492921.71520.044324
280.1272721.46220.073025
290.1008111.15820.12443
300.0683860.78570.216728
310.031840.36580.357543
32-0.003405-0.03910.484427
33-0.036769-0.42240.336694
34-0.067706-0.77790.219016
35-0.098314-1.12950.130358
36-0.128431-1.47560.071221
37-0.166675-1.91490.028831
38-0.20083-2.30740.011296
39-0.225336-2.58890.005354
40-0.250064-2.8730.00237
41-0.27685-3.18080.000916
42-0.297125-3.41370.000426
43-0.317722-3.65040.000188
44-0.336605-3.86738.6e-05
45-0.353898-4.0664.1e-05
46-0.367828-4.2262.2e-05
47-0.372605-4.28091.8e-05
48-0.374836-4.30651.6e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.94541910.8620
2-0.118635-1.3630.0876
3-0.085691-0.98450.163333
40.0112810.12960.448538
5-0.052168-0.59940.274978
6-0.019737-0.22680.410478
7-0.090613-1.04110.149875
8-0.033279-0.38230.35141
90.1088891.2510.106566
100.0986991.1340.129432
110.0219520.25220.400637
12-0.032651-0.37510.354083
130.0248070.2850.388042
14-0.060962-0.70040.242456
15-0.061414-0.70560.240842
160.038060.43730.331315
17-0.047574-0.54660.292792
180.0750120.86180.195174
190.0229820.2640.396081
200.0334780.38460.350563
210.0395340.45420.32521
220.0253320.2910.385739
23-0.0185-0.21250.416003
24-0.025759-0.29590.383868
250.0203540.23380.407734
26-0.014879-0.17090.432263
27-0.113074-1.29910.098084
28-0.066602-0.76520.222758
29-0.024551-0.28210.389164
30-0.040359-0.46370.321815
31-0.043944-0.50490.307244
32-0.01095-0.12580.450038
330.0156630.180.428732
340.0043290.04970.480206
35-0.048182-0.55360.290404
36-0.071421-0.82060.206686
37-0.136887-1.57270.059089
38-0.012125-0.13930.44471
390.0357760.4110.340856
40-0.06304-0.72430.235088
41-0.038875-0.44660.327932
420.0555540.63830.262203
43-0.025158-0.2890.386502
44-0.037763-0.43390.332547
45-0.072232-0.82990.204051
46-0.044681-0.51330.304285
470.0570450.65540.256678
48-0.029287-0.33650.368523
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t126035259460w2huw91ht7vxe/1tcri1260352522.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t126035259460w2huw91ht7vxe/1tcri1260352522.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t126035259460w2huw91ht7vxe/26pmj1260352522.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t126035259460w2huw91ht7vxe/26pmj1260352522.ps (open in new window)


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