Home » date » 2010 » Dec » 21 »

*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: Tue, 21 Dec 2010 15:20:18 +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/21/t1292944755c5k6wxdijim23d0.htm/, Retrieved Tue, 21 Dec 2010 16:19: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/21/t1292944755c5k6wxdijim23d0.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 «
21.3 21.1 20.6 20.5 20.5 20.8 21.1 21.3 21.3 21.1 20.9 19.9 19.8 19.5 19.6 19.6 19.7 20.2 19.7 19.3 18.9 18.4 18 17.8 17.8 17.7 17.5 17.4 17.1 17.1 17.2 17.8 18.6 18.9 18.9 18.7 18.6 19.1 20.3 21.1 21.6 21.5 21.5 21.7 21.9 22.2 22.6 22.5 23.2 23.6 23.8 23.9 23.8 23.5 23.3 23.2 23.5 23.5 23.5 23.3
 
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.5518184.23864e-05
20.2766042.12460.018909
3-0.032604-0.25040.40156
4-0.12495-0.95980.170546
50.03560.27350.392731
60.1711411.31460.096873
70.3464262.6610.005011
80.3077482.36390.010699
90.1891411.45280.075786
100.1373531.0550.147857
110.0461740.35470.362051
12-0.021558-0.16560.434523
13-0.110674-0.85010.199352
14-0.097664-0.75020.228067
15-0.095325-0.73220.233471
16-0.04011-0.30810.379549
170.0180020.13830.445246
18-0.058004-0.44550.328781
19-0.149996-1.15210.126955
20-0.260392-2.00010.025049
21-0.238378-1.8310.036075
22-0.160174-1.23030.11173
23-0.060691-0.46620.321404
240.0039240.03010.488027
25-0.018372-0.14110.444129
26-0.08575-0.65870.256339
27-0.239997-1.84350.035144
28-0.242973-1.86630.033485
29-0.206182-1.58370.059303
30-0.168599-1.2950.100176
310.0206720.15880.437191
320.1013140.77820.219778
330.0970880.74570.229391
340.0444660.34160.366951
35-0.100798-0.77420.220939
36-0.134557-1.03360.152781
37-0.192473-1.47840.072308
38-0.11058-0.84940.199551
39-2.9e-05-2e-040.499911
400.023610.18140.428356
410.0422890.32480.37323
420.0449820.34550.365468
430.0416110.31960.375194
440.0181260.13920.444871
45-0.031181-0.23950.40577
46-0.043995-0.33790.368308
47-0.064249-0.49350.311745
48-0.012702-0.09760.461305
49-0.004277-0.03290.486952
500.0238640.18330.427593
510.0380620.29240.385517
520.0190590.14640.442054
530.0025150.01930.492326
54-0.020573-0.1580.437488
55-0.003895-0.02990.488117
560.0070520.05420.478493
570.0163310.12540.450301
580.0067270.05170.479482
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5518184.23864e-05
2-0.040114-0.30810.379537
3-0.243709-1.8720.033086
40.0005080.00390.498449
50.2703432.07650.021104
60.092170.7080.240875
70.1670891.28340.102179
80.0122060.09380.462812
9-0.010648-0.08180.467546
100.1553161.1930.118822
110.002350.01810.49283
12-0.164808-1.26590.105259
13-0.172619-1.32590.09499
140.0001880.00140.499426
15-0.098508-0.75670.226134
16-0.052979-0.40690.342763
17-0.031623-0.24290.404461
18-0.183318-1.40810.082176
19-0.114518-0.87960.191314
20-0.047246-0.36290.358988
210.0198980.15280.439524
220.0102660.07890.468706
230.0620750.47680.317632
240.0329070.25280.400666
250.0664020.510.305961
260.0610860.46920.320323
27-0.160497-1.23280.11127
28-0.001436-0.0110.49562
290.0315180.24210.404774
30-0.13023-1.00030.160622
310.1344381.03260.152994
320.0983840.75570.226418
33-0.151134-1.16090.125182
340.03970.30490.380741
35-0.03382-0.25980.397971
36-0.075761-0.58190.281416
37-0.053753-0.41290.340593
38-0.009648-0.07410.470588
39-0.097093-0.74580.229378
40-0.095483-0.73340.233103
41-0.01213-0.09320.46304
420.0071240.05470.478274
430.0356140.27360.392689
440.074180.56980.285493
45-0.067818-0.52090.302187
460.0209760.16110.436275
470.0716450.55030.29209
48-0.000783-0.0060.497611
49-0.103681-0.79640.2145
50-0.005186-0.03980.484179
510.0542750.41690.339134
520.0374410.28760.387333
53-0.032802-0.2520.400976
54-0.103048-0.79150.215905
55-0.021846-0.16780.433657
560.0146190.11230.455486
57-0.080961-0.62190.268211
58-0.029631-0.22760.410372
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/12rmg1292944814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/12rmg1292944814.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/2ci3j1292944814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/2ci3j1292944814.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/3nakm1292944814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292944755c5k6wxdijim23d0/3nakm1292944814.ps (open in new window)


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