Home » date » 2009 » Jun » 01 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 01 Jun 2009 06:46:33 -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/01/t1243860411iku6yrq7t3oar7h.htm/, Retrieved Mon, 01 Jun 2009 14:46:52 +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/01/t1243860411iku6yrq7t3oar7h.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 «
27.00 26.88 27.38 26.82 27.00 26.15 25.85 26.17 25.66 25.72 25.42 25.10 26.20 26.39 26.27 26.63 21.10 20.30 20.61 21.05 20.45 20.91 21.22 20.85 21.90 22.71 22.40 22.81 23.96 23.37 23.55 23.01 22.63 22.63 22.00 22.15 22.00 22.00 21.84 22.10 22.37 21.83 21.77 21.89 20.76 20.21 20.19 20.01 19.16 18.50 17.41 18.14 18.60 18.32 18.40 18.16 17.29 16.65 16.36 16.32 17.37 17.30 18.10 19.00 18.38 18.41 18.10 17.87 18.70 18.81 18.88 19.44 18.60 18.80 18.62 18.24 17.84 17.85 17.67 17.99 18.15 18.39 18.07 18.39
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0278260.25350.400253
2-0.038832-0.35380.362203
30.0301790.27490.392022
4-0.168343-1.53370.064456
5-0.061236-0.55790.289212
60.02970.27060.393691
7-0.049122-0.44750.327833
8-0.042218-0.38460.35075
9-0.069199-0.63040.265072
100.0213150.19420.423252
110.049630.45210.32617
12-0.107938-0.98340.164144
130.0587560.53530.296938
14-0.11223-1.02250.154766
150.0664680.60560.273233
160.0222220.20250.42003
17-0.020338-0.18530.426729
180.0473370.43130.333698
19-0.072883-0.6640.254266
20-0.054497-0.49650.31043
21-0.019629-0.17880.429256
22-0.05098-0.46440.321772
23-0.056751-0.5170.303257
24-0.03635-0.33120.370676
250.0089880.08190.467468
26-0.009713-0.08850.464851
270.0031080.02830.488739
280.132151.20390.116016
29-0.023417-0.21330.415792
30-0.007829-0.07130.471656
31-0.027768-0.2530.400456
320.0480910.43810.331214
330.0744390.67820.249774
340.0753730.68670.247099
35-0.078183-0.71230.239145
36-0.052467-0.4780.316954
37-0.023863-0.21740.414214
380.0210380.19170.424236
390.0485150.4420.329823
400.1067340.97240.166841
410.1078160.98220.164416
420.0096590.0880.465046
43-0.000167-0.00150.499394
44-0.087551-0.79760.213682
450.0002820.00260.498978
46-0.1089-0.99210.162009
47-0.078298-0.71330.238823
480.0443120.40370.343734


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0278260.25350.400253
2-0.039636-0.36110.359469
30.0324810.29590.384016
4-0.17232-1.56990.060121
5-0.049134-0.44760.327792
60.0179920.16390.435099
7-0.04566-0.4160.339248
8-0.064984-0.5920.277719
9-0.094629-0.86210.195554
100.029550.26920.394216
110.0322090.29340.384959
12-0.134863-1.22870.111335
130.0364350.33190.370385
14-0.13698-1.24790.10778
150.1103611.00540.158805
16-0.054888-0.50010.30918
17-0.012375-0.11270.455255
180.0136170.12410.450784
19-0.079144-0.7210.236456
20-0.030066-0.27390.392416
21-0.078008-0.71070.239636
22-0.0371-0.3380.36811
23-0.087449-0.79670.213949
24-0.081854-0.74570.228971
250.0134880.12290.45125
26-0.103741-0.94510.173669
270.0108650.0990.460695
280.0463770.42250.336872
29-0.040485-0.36880.356596
30-0.017396-0.15850.437231
31-0.10955-0.9980.160579
320.1055780.96190.169456
330.0193310.17610.430317
340.0759020.69150.245591
35-0.129801-1.18250.120183
36-0.044225-0.40290.344026
370.028720.26170.397119
380.0017020.01550.493832
390.0344840.31420.377093
400.0849940.77430.220468
410.1310361.19380.11798
420.0664470.60540.273295
43-0.064777-0.59010.278349
44-0.045291-0.41260.340475
450.026560.2420.4047
46-0.054565-0.49710.310213
47-0.087345-0.79580.214223
480.0446450.40670.342625
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860411iku6yrq7t3oar7h/153yz1243860390.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860411iku6yrq7t3oar7h/153yz1243860390.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860411iku6yrq7t3oar7h/2gxcm1243860390.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/01/t1243860411iku6yrq7t3oar7h/2gxcm1243860390.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