Home » date » 2010 » Dec » 20 »

*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: Mon, 20 Dec 2010 21:43:16 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o.htm/, Retrieved Mon, 20 Dec 2010 22:44:15 +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/2010/Dec/20/t1292881451j509a56tla2a52o.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
9.1 5.9 7.2 6.8 8 14.3 14.6 17.5 17.2 17.2 14.1 10.4 6.8 4.1 6.5 6.1 6.3 9.3 16.4 16.1 18 17.6 14 10.5 6.9 2.8 0.7 3.6 6.7 12.5 14.4 16.5 18.7 19.4 15.8 11.3 9.7 2.9 0.1 2.5 6.7 10.3 11.2 17.4 20.5 17 14.2 10.6 6.1
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.179131.08960.141467
2-0.015148-0.09210.463542
3-0.006033-0.03670.485463
40.1059260.64430.26167
5-0.046401-0.28220.389665
6-0.149734-0.91080.184149
7-0.006946-0.04230.483262
8-0.134874-0.82040.208619
90.0204220.12420.450906
10-0.06538-0.39770.346571
110.0568340.34570.365761
12-0.184943-1.1250.133924
130.0094320.05740.477278
140.0380020.23120.409232
150.1527820.92930.179369
16-0.02232-0.13580.446371
17-0.254369-1.54730.065155
18-0.075618-0.460.324116
19-0.154285-0.93850.177042
20-0.053192-0.32360.374049
21-0.046971-0.28570.388346
220.0795650.4840.315627
23-0.038419-0.23370.408256
24-0.061435-0.37370.355383
250.0548650.33370.370233
260.0069540.04230.483245
27-0.128901-0.78410.218994
28-0.002853-0.01740.493124
290.0960480.58420.281304
30-0.022818-0.13880.445181
310.0556970.33880.368342
320.0095260.05790.477053
330.0308480.18760.426092
340.0139820.0850.466342
350.0256060.15580.438536
360.0350230.2130.416234
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.179131.08960.141467
2-0.048801-0.29680.384122
30.0057530.0350.486137
40.1090290.66320.255658
5-0.090438-0.55010.292774
6-0.124413-0.75680.226989
70.046990.28580.388301
8-0.174806-1.06330.147268
90.0965560.58730.280275
10-0.07262-0.44170.330627
110.0642350.39070.349121
12-0.215836-1.31290.098654
130.0922580.56120.289028
14-0.032215-0.1960.422859
150.1892351.15110.128544
16-0.126797-0.77130.222721
17-0.219305-1.3340.095182
18-0.085949-0.52280.302113
19-0.145243-0.88350.191341
20-0.051383-0.31250.378189
210.1286530.78260.219431
22-0.011309-0.06880.472764
23-0.029932-0.18210.42826
24-0.185981-1.13130.132609
250.0246330.14980.440854
26-0.083377-0.50720.307524
27-0.0961-0.58460.281197
280.0832770.50660.307738
29-0.093266-0.56730.286964
30-0.081241-0.49420.312055
310.0657580.40.345733
32-0.011759-0.07150.471682
330.0440590.2680.395094
340.0073680.04480.482246
35-0.083897-0.51030.306428
36-0.12425-0.75580.227282
37NANANA
38NANANA
39NANANA
40NANANA
41NANANA
42NANANA
43NANANA
44NANANA
45NANANA
46NANANA
47NANANA
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/1sm6x1292881390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/1sm6x1292881390.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/2kv5z1292881390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/2kv5z1292881390.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/3vm4k1292881390.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292881451j509a56tla2a52o/3vm4k1292881390.ps (open in new window)


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