Home » date » 2011 » May » 20 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 20 May 2011 04:13:08 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9.htm/, Retrieved Fri, 20 May 2011 06:09:39 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,4442 1,3999 1,3649 1,336 1,322 1,3661 1,3898 1,3067 1,2894 1,277 1,2208 1,2565 1,3406 1,3569 1,3686 1,4272 1,4614 1,4914 1,4816 1,4562 1,4268 1,4088 1,4016 1,365 1,319 1,305 1,2785 1,3239 1,3449 1,2732 1,3322 1,4369 1,4975 1,577 1,5553 1,5557 1,575 1,5527 1,4748 1,4718 1,457 1,4684 1,4227 1,3896 1,3622 1,3716 1,3419 1,3511 1,3516 1,3242 1,3074 1,2999 1,3213 1,2881 1,2611 1,2727 1,2811 1,2684 1,265 1,277 1,2271 1,202 1,1938 1,2103 1,1856 1,1786 1,2015 1,2256 1,2292 1,2037 1,2165 1,2694 1,2938 1,3201 1,3014
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.927948.03620
20.8236797.13330
30.7245066.27440
40.6111645.29281e-06
50.490744.24993e-05
60.3665263.17420.00109
70.2438782.1120.019006
80.1642561.42250.079514
90.1102740.9550.171322
100.0737840.6390.262388
110.0685730.59390.277195
120.0792820.68660.247226
130.0976280.84550.200264
140.1309821.13430.130134
150.1634281.41530.080556
160.1717631.48750.070536
170.1480351.2820.101892
180.1139310.98670.163487
190.0698520.60490.273525
20-0.000482-0.00420.498342
21-0.081714-0.70770.240672
22-0.160621-1.3910.084167
23-0.242888-2.10350.019389
24-0.300526-2.60260.005572
25-0.339784-2.94260.002164
26-0.372951-3.22980.00092
27-0.387239-3.35360.000627
28-0.399933-3.46350.000442
29-0.408554-3.53820.000348
30-0.374251-3.24110.000888
31-0.331526-2.87110.002657
32-0.298911-2.58860.005783
33-0.263389-2.2810.012694
34-0.22363-1.93670.028275
35-0.177447-1.53670.064283
36-0.144875-1.25470.106751
37-0.132551-1.14790.127323
38-0.113325-0.98140.16477
39-0.077271-0.66920.252716
40-0.054438-0.47140.319345
41-0.054796-0.47450.318245
42-0.066103-0.57250.284358
43-0.075116-0.65050.258672
44-0.08544-0.73990.230827
45-0.097498-0.84440.200578
46-0.109992-0.95260.171938
47-0.114424-0.99090.16245
48-0.118077-1.02260.154898


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.927948.03620
2-0.269161-2.3310.011221
30.0327490.28360.388745
4-0.197291-1.70860.045831
5-0.065825-0.57010.285171
6-0.121388-1.05130.148258
7-0.056882-0.49260.311862
80.2428622.10320.019399
9-0.005174-0.04480.482188
100.0957030.82880.204921
110.105550.91410.181799
12-0.014938-0.12940.448708
13-0.002353-0.02040.4919
140.025260.21880.413717
15-0.000239-0.00210.499178
16-0.169061-1.46410.073671
17-0.195756-1.69530.047083
180.0434660.37640.353831
19-0.076931-0.66620.253649
20-0.151184-1.30930.097216
210.0375330.3250.373027
220.0134530.11650.453781
23-0.121996-1.05650.147061
240.1019050.88250.190158
250.0055990.04850.480728
26-0.087164-0.75490.226348
27-0.077698-0.67290.251545
28-0.158758-1.37490.08663
29-0.055724-0.48260.315398
300.1479941.28170.101955
310.004410.03820.484818
320.0570410.4940.311378
33-0.003587-0.03110.487651
340.0858750.74370.22969
350.0970530.84050.201648
36-0.16102-1.39450.083646
370.0286980.24850.402202
380.103540.89670.186379
390.1102020.95440.171479
40-0.123037-1.06550.145027
41-0.143596-1.24360.108764
42-0.001485-0.01290.494886
43-0.032555-0.28190.389385
44-0.047009-0.40710.342544
450.0354910.30740.379712
46-0.062272-0.53930.295643
470.0986590.85440.197799
48-0.054347-0.47070.319626
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/1qaqa1305864785.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/1qaqa1305864785.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/2o7m31305864785.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/2o7m31305864785.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/3av421305864785.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305864579fkt00weh5gr3wl9/3av421305864785.ps (open in new window)


 
Parameters (Session):
par1 = 72 ;
 
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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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