Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 11:09:52 +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/29/t12936208457lhjxjrkd8beitw.htm/, Retrieved Wed, 29 Dec 2010 12:07:28 +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/29/t12936208457lhjxjrkd8beitw.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 «
548604 563668 586111 604378 600991 544686 537034 551531 563250 574761 580112 575093 557560 564478 580523 596594 586570 536214 523597 536535 536322 532638 528222 516141 501866 506174 517945 533590 528379 477580 469357 490243 492622 507561 516922 514258 509846 527070 541657 564591 555362 498662 511038 525919 531673 548854 560576 557274 565742
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2404471.66590.051127
2-0.370167-2.56460.006757
3-0.324209-2.24620.014665
4-0.208091-1.44170.077941
50.1307160.90560.184829
60.3160962.190.016709
70.1327880.920.181091
8-0.114486-0.79320.215787
9-0.254305-1.76190.042229
10-0.3224-2.23370.0151
110.2102321.45650.075878
120.6449894.46862.4e-05
130.0984480.68210.249238
14-0.300012-2.07850.021514
15-0.262582-1.81920.037559
16-0.165789-1.14860.128203
170.094440.65430.258022
180.1837041.27270.104621
190.0497110.34440.366022
20-0.096789-0.67060.252854
21-0.218064-1.51080.068698
22-0.232628-1.61170.056793
230.1316580.91220.183123
240.4241772.93880.002526
250.0519060.35960.360357
26-0.203969-1.41310.082034
27-0.183309-1.270.105104
28-0.12842-0.88970.189027
290.0595050.41230.34099
300.1038290.71940.237706
310.027830.19280.423959
32-0.059808-0.41440.340226
33-0.100893-0.6990.24396
34-0.097735-0.67710.250788
350.1106390.76650.223558
360.249121.7260.045394
370.0156830.10870.456965
38-0.079611-0.55160.291903
39-0.080997-0.56120.288648
40-0.073644-0.51020.306117
410.001720.01190.495271
420.0404070.27990.390361
430.0114850.07960.468455
440.0221610.15350.439309
450.0127510.08830.464988
460.00690.04780.481036
470.0065670.04550.481949
48NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2404471.66590.051127
2-0.454244-3.14710.001416
3-0.114408-0.79260.215943
4-0.321687-2.22870.015275
50.1178190.81630.209188
60.030120.20870.417792
70.0655270.4540.325944
8-0.040846-0.2830.3892
9-0.092554-0.64120.26221
10-0.313219-2.170.017492
110.356272.46830.008595
120.345612.39450.010299
13-0.140121-0.97080.168261
140.0281350.19490.423137
150.0497390.34460.365948
16-0.01741-0.12060.452247
17-0.089594-0.62070.268857
18-0.16762-1.16130.12563
19-0.065741-0.45550.325414
20-0.151175-1.04740.150087
21-0.069233-0.47970.316823
22-0.087832-0.60850.272855
23-0.168295-1.1660.124691
240.0257080.17810.429692
25-0.052147-0.36130.359736
260.0397030.27510.392222
27-0.021325-0.14770.441582
28-0.004716-0.03270.487035
29-0.001194-0.00830.496717
30-0.039342-0.27260.393176
31-0.029042-0.20120.420692
32-0.066828-0.4630.322728
330.0528940.36650.357816
340.0293660.20350.419821
35-0.010122-0.07010.472192
36-0.065472-0.45360.326078
370.0212150.1470.44188
380.0816950.5660.287015
39-0.020008-0.13860.445165
40-0.006707-0.04650.481565
41-0.115778-0.80210.213214
420.005820.04030.484002
43-0.083991-0.58190.281676
440.0579030.40120.345039
45-0.055043-0.38140.352312
460.0937090.64920.259642
47-0.186789-1.29410.10091
48NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/1q5tr1293620990.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/1q5tr1293620990.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/21xac1293620990.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/21xac1293620990.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/31xac1293620990.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t12936208457lhjxjrkd8beitw/31xac1293620990.ps (open in new window)


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