Home » date » 2010 » Dec » 21 »

CPI-ACF

*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:45:37 +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/t12929463221fqad6o86dhma3n.htm/, Retrieved Tue, 21 Dec 2010 16:45:23 +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/t12929463221fqad6o86dhma3n.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 «
104.8 105.2 105.6 105.8 106.1 106.5 106.71 106.68 107.41 107.15 107.5 107.22 107.11 107.57 107.81 108.75 109.43 109.62 109.54 109.53 109.84 109.67 109.79 109.56 110.22 110.4 110.69 110.72 110.89 110.58 110.94 110.91 111.22 111.09 111 111.06 111.55 112.32 112.64 112.36 112.04 112.37 112.59 112.89 113.22 112.85 113.06 112.99 113.32 113.74 113.91 114.52 114.96 114.91 115.3 115.44 115.52 116.08 115.94 115.56 115.88 116.66 117.41 117.68 117.85 118.21 118.92 119.03 119.17 118.95 118.92 118.9 118.92 119.44 119.40 119.98 120.43 120.41 120.82 120.97 120.63 120.38 120.68 120.84 120.90 121.56 121.57 122.12 121.97 121.96 122.48 122.33 122.44 123.08 124.23 124.58 125.08 125.98 126.90 127.19 128.33 129.04 129.72 128.92 129.13 128.90 128.13 127.85 127.98 128.42 127.68 127.95 127.85 127.61 127.53 127.92 127.59 127.65 127.98 128.19 128.77 129.31 129.80 130.24 130.76 130.75 130.81 130.89 131.30 131.4 etc...
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1773722.02240.022596
20.13771.570.059421
30.0654810.74660.228326
40.0660670.75330.226321
5-0.057991-0.66120.254827
6-0.069507-0.79250.214755
70.0185570.21160.416381
8-0.110292-1.25750.105409
9-0.12572-1.43340.077068
10-0.069809-0.79590.213759
110.06350.7240.235179
12-0.065534-0.74720.228146
13-0.143239-1.63320.052426
14-0.074465-0.8490.198714
15-0.089953-1.02560.153489
16-0.214918-2.45040.007799
17-0.133417-1.52120.065321
18-0.132496-1.51070.066648
19-0.042895-0.48910.312807
20-0.071422-0.81430.208472
21-0.014757-0.16830.43332
220.1374811.56750.059711
23-0.026158-0.29820.382997
240.1676811.91190.029048
250.0320280.36520.357787
260.023910.27260.392792
270.0160160.18260.427693
28-0.02226-0.25380.400026
29-0.002897-0.0330.486851
30-0.015534-0.17710.429845
31-0.068216-0.77780.219054
32-0.031986-0.36470.357964
330.0734380.83730.201975
340.0547130.62380.266919
350.0494130.56340.28707
360.226512.58260.005456
37-0.008795-0.10030.460141
380.0330190.37650.353587
390.0026680.03040.487891
40-0.073924-0.84290.200425
41-0.001597-0.01820.49275
42-0.055292-0.63040.264762
43-0.075198-0.85740.196403
44-0.062833-0.71640.237513
45-0.024646-0.2810.389577
460.0820440.93540.175648
470.1022541.16590.1229
480.0387890.44230.329516
490.0184850.21080.416702
50-0.01402-0.15990.436623
51-0.01808-0.20610.418502
52-0.046639-0.53180.297899
53-0.048123-0.54870.292079
54-0.115051-1.31180.095952
55-0.121747-1.38810.083736
56-0.048617-0.55430.290156
570.0343130.39120.348133
580.0996611.13630.128959
59-0.002097-0.02390.490482
600.0887261.01160.156798


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1773722.02240.022596
20.109691.25070.106653
30.0253740.28930.386401
40.0385410.43940.330537
5-0.088324-1.0070.157891
6-0.063933-0.72890.233673
70.0546610.62320.267112
8-0.108341-1.23530.109477
9-0.092776-1.05780.146052
10-0.012509-0.14260.443402
110.1028871.17310.121453
12-0.063883-0.72840.233847
13-0.150572-1.71680.0442
14-0.052833-0.60240.273984
15-0.055268-0.63020.264851
16-0.175936-2.0060.023467
17-0.071763-0.81820.207364
18-0.122561-1.39740.082335
190.0140090.15970.436674
20-0.024432-0.27860.390511
21-0.06207-0.70770.240195
220.0891411.01640.155673
23-0.105678-1.20490.115213
240.1401711.59820.056214
25-0.080576-0.91870.179975
26-0.113199-1.29070.099555
270.0343770.3920.347864
28-0.090882-1.03620.151013
29-0.049706-0.56670.285936
30-0.031257-0.35640.361063
31-0.166895-1.90290.029633
32-0.021522-0.24540.403272
330.0272630.31090.378206
34-0.015549-0.17730.429781
35-0.011059-0.12610.449928
360.1916552.18520.015333
37-0.09036-1.03030.152399
380.0153640.17520.430605
39-0.023551-0.26850.394362
40-0.09966-1.13630.12896
410.0441710.50360.307689
42-0.00341-0.03890.484524
43-0.146384-1.6690.048758
44-0.049796-0.56780.285586
450.0176960.20180.420208
460.0511250.58290.280479
470.0774130.88260.189529
48-0.052017-0.59310.277076
490.0134240.15310.439297
500.0317740.36230.358868
51-0.001278-0.01460.494199
520.0001420.00160.499357
53-0.038846-0.44290.329284
54-0.071167-0.81140.209301
55-0.087665-0.99950.159697
56-0.011829-0.13490.446463
57-0.001385-0.01580.493713
580.0278040.3170.375869
590.0307970.35110.363024
60-0.061073-0.69630.24373
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929463221fqad6o86dhma3n/1mumf1292946333.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929463221fqad6o86dhma3n/1mumf1292946333.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929463221fqad6o86dhma3n/3x34i1292946333.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929463221fqad6o86dhma3n/3x34i1292946333.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