Home » date » 2010 » Nov » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 16 Nov 2010 14:45:03 +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/Nov/16/t1289918617sii70mk1m1pn8fl.htm/, Retrieved Tue, 16 Nov 2010 15:43:39 +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/Nov/16/t1289918617sii70mk1m1pn8fl.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
98,6 100,1 98,8 98,3 102,8 103,6 105,2 100,1 98,2 98,4 97,4 98,4 100,3 101,1 104,1 107,3 110,1 112,6 114,3 115,3 109,9 108,2 103,2 101,8 105,6 108,2 109,8 114,6 117,2 116,5 116,1 112,1 106,8 106,9 104,5 103 105,9 107,7 107,1 112,5 114,5 114,6 113,1 112,8 111,9 112 112,4 110 112,3 109,6 111,9 110,8 110,4 110,8 114 108,4 110,5 105,1 102,3 104,3 103,4 102,4 104,5 107,3 110,1 111,8 111,8 105,7 106 106,4 107,1 111,5 109,6 109,9 109,3 111,4 112,9 115,5 118,4 116,2 113,3 113,8 114,1 117,1 115,5 115,2 114,2 115,3 118,8 118 118,1 111,8 112 114,3 115 118,5 117,6 119,1 120,6 123,6 122,7 123,8 123,1 124,5 120,7 118,7 119 122,3 118,6 118,1 118,2 120,8 119,7 119,7 117,1 114,5 116,5 116,4 114,9 115,5
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0998271.0890.139182
20.0843180.91980.17977
3-0.095272-1.03930.150388
4-0.211455-2.30670.0114
5-0.182368-1.98940.024475
6-0.075632-0.8250.205498
7-0.240818-2.6270.004874
8-0.183676-2.00370.023688
90.0259130.28270.388956
100.1319481.43940.076334
110.129161.4090.080726
120.339913.7080.000159
130.1298211.41620.079668
140.0233850.25510.399543
150.0268820.29320.384923
16-0.276258-3.01360.001578
17-0.085808-0.9360.175572
18-0.131398-1.43340.077186
19-0.127862-1.39480.082835
20-0.120418-1.31360.095753
21-0.057753-0.630.264946
220.0336020.36660.3573
230.212082.31350.011205
240.2931393.19780.000887
250.1140511.24420.107945
260.0138560.15120.440056
27-0.041812-0.45610.324568
28-0.151219-1.64960.050831
290.033380.36410.358203
30-0.131679-1.43640.07675
31-0.154173-1.68180.047613
32-0.068961-0.75230.226684
33-0.028877-0.3150.376654
340.0305450.33320.369782
350.2104522.29580.01172
360.1284581.40130.081862
370.0161990.17670.43002
380.0603860.65870.255669
39-0.031829-0.34720.364522
40-0.132669-1.44720.075229
41-0.108039-1.17860.120462
42-0.059215-0.6460.259775
43-0.175852-1.91830.028734
44-0.044283-0.48310.314965
450.0406340.44330.329191
46-0.058708-0.64040.261562
470.184522.01290.023193
480.1047491.14270.127734


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0998271.0890.139182
20.0751010.81930.207141
3-0.1123-1.2250.111488
4-0.203544-2.22040.014143
5-0.137412-1.4990.068262
6-0.027196-0.29670.383615
7-0.265617-2.89750.002239
8-0.261633-2.85410.002546
9-0.016943-0.18480.426841
100.0659730.71970.236567
11-0.062981-0.6870.246697
120.189692.06930.020343
130.1032591.12640.131126
14-0.016556-0.18060.428491
150.044830.4890.312857
16-0.196045-2.13860.017256
170.087120.95040.171927
18-0.018553-0.20240.419978
19-0.066273-0.72290.235565
20-0.084606-0.92290.178952
21-0.130832-1.42720.078069
22-0.057123-0.62310.267193
230.0474280.51740.302928
240.0937921.02310.154156
25-0.019461-0.21230.416121
26-0.015688-0.17110.432203
27-0.036172-0.39460.346928
28-0.002563-0.0280.488872
290.1503731.64040.051783
30-0.052165-0.56910.285197
31-0.008504-0.09280.463123
320.0068930.07520.470093
330.0200860.21910.413471
34-0.063209-0.68950.245917
350.0612440.66810.252685
36-0.003979-0.04340.482726
37-0.11717-1.27820.101837
380.0006440.0070.497201
39-0.004575-0.04990.48014
40-0.029088-0.31730.375781
41-0.199525-2.17660.015744
420.0232910.25410.399938
43-0.076707-0.83680.202198
44-0.124033-1.3530.089305
450.0906660.9890.162323
46-0.200668-2.1890.015273
470.0171140.18670.426111
48-0.119252-1.30090.097905
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289918617sii70mk1m1pn8fl/1pmp31289918702.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289918617sii70mk1m1pn8fl/1pmp31289918702.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/16/t1289918617sii70mk1m1pn8fl/2pmp31289918702.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/16/t1289918617sii70mk1m1pn8fl/2pmp31289918702.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 (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