Home » date » 2009 » Dec » 04 »

*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, 04 Dec 2009 06:46:52 -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/04/t12599344717q15pxjkjo5u8bn.htm/, Retrieved Fri, 04 Dec 2009 14:47:54 +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/04/t12599344717q15pxjkjo5u8bn.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:
WS9,ACF
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.3 1.2 1.1 1.4 1.2 1.5 1.1 1.3 1.5 1.1 1.4 1.3 1.5 1.6 1.7 1.1 1.6 1.3 1.7 1.6 1.7 1.9 1.8 1.9 1.6 1.5 1.6 1.6 1.7 2 2 1.9 1.7 1.8 1.9 1.7 2 2.1 2.4 2.5 2.5 2.6 2.2 2.5 2.8 2.8 2.9 3 3.1 2.9 2.7 2.2 2.5 2.3 2.6 2.3 2.2 1.8 1.8
 
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.404925-3.08380.001564
20.284522.16680.017184
3-0.208371-1.58690.058986
4-0.026806-0.20420.419475
50.0211080.16080.436423
6-0.015241-0.11610.453999
70.0353260.2690.39443
80.0925970.70520.241755
90.1142920.87040.19383
10-0.048002-0.36560.358008
110.1435211.0930.139452
12-0.378142-2.87980.002783
130.0924890.70440.242008
14-0.220717-1.68090.049077
150.1093590.83290.204173
160.0678060.51640.303771
17-0.079076-0.60220.274687
180.1862521.41850.080705
19-0.176792-1.34640.091705
200.0558610.42540.336051
21-0.111236-0.84710.200197
22-0.050312-0.38320.3515
230.020320.15470.438778
24-0.053507-0.40750.34257
250.1089930.83010.204953
260.0833520.63480.26403
270.0363950.27720.391314
28-0.068105-0.51870.302983
29-0.04706-0.35840.360672
30-0.08406-0.64020.262289
310.1132670.86260.195951
32-0.090407-0.68850.246934
330.0696910.53080.298809
340.0551590.42010.337991
35-0.143462-1.09260.139549
360.2522131.92080.029839


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.404925-3.08380.001564
20.1441991.09820.13833
3-0.062767-0.4780.317216
4-0.193007-1.46990.073496
50.0005270.0040.498406
60.031160.23730.406628
7-0.010577-0.08060.468038
80.1214050.92460.179504
90.2403721.83060.036148
100.0296430.22580.411093
110.151851.15650.126118
12-0.273301-2.08140.020911
13-0.231936-1.76640.041298
14-0.19598-1.49250.070489
15-0.137638-1.04820.149444
160.0133870.1020.459572
17-0.131835-1.0040.159768
180.1158220.88210.19069
190.0150030.11430.454713
200.0401970.30610.3803
210.1389421.05820.147186
220.0307310.2340.407888
230.1279630.97450.166919
24-0.175515-1.33670.093274
25-0.072261-0.55030.292104
26-0.004971-0.03790.484966
27-0.012586-0.09580.461986
28-0.038094-0.29010.386381
29-0.189004-1.43940.077704
300.0080970.06170.475522
310.0765810.58320.281002
320.0240350.1830.4277
33-0.002714-0.02070.491791
340.0558610.42540.336049
35-0.144478-1.10030.137872
360.0226980.17290.431682
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599344717q15pxjkjo5u8bn/1j9pl1259934410.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599344717q15pxjkjo5u8bn/1j9pl1259934410.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t12599344717q15pxjkjo5u8bn/27ami1259934410.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t12599344717q15pxjkjo5u8bn/27ami1259934410.ps (open in new window)


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