Home » date » 2009 » Dec » 14 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 14 Dec 2009 13:56:12 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/14/t1260824364qs33tym2fnp7xoi.htm/, Retrieved Mon, 14 Dec 2009 21:59:26 +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/2009/Dec/14/t1260824364qs33tym2fnp7xoi.htm/},
    year = {2009},
}
@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 = {2009},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3,81 3,95 3,99 4 4,06 4,16 4,19 4,2 4,2 4,2 4,2 4,2 4,23 4,38 4,43 4,44 4,44 4,44 4,44 4,44 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,46 4,46 4,46 4,48 4,58 4,67 4,68 4,68 4,69 4,69 4,69 4,69 4,69 4,69 4,69 4,73 4,78 4,79 4,79 4,8 4,8 4,81 5,16 5,26 5,29 5,29 5,29 5,3 5,3 5,3 5,3 5,3 5,3 5,3 5,3 5,35 5,44 5,47 5,47 5,48 5,48 5,48 5,48 5,48
 
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.2877162.42430.008942
2-0.045822-0.38610.350286
3-0.084133-0.70890.240349
4-0.080164-0.67550.250783
5-0.10302-0.86810.194142
6-0.052489-0.44230.329814
7-0.020097-0.16930.433006
8-0.031281-0.26360.396435
9-0.071471-0.60220.27447
10-0.105778-0.89130.187889
11-0.051089-0.43050.334075
120.0376580.31730.375968
130.0485210.40880.341943
140.0716740.60390.273905
15-0.061914-0.52170.301752
16-0.108261-0.91220.182368
170.0560250.47210.31916
180.1295611.09170.139328
190.0753610.6350.263734
20-0.006371-0.05370.478669
21-0.094326-0.79480.214688
22-0.072448-0.61050.271754
23-0.081442-0.68620.247398
24-0.09952-0.83860.202263
25-0.104849-0.88350.189981
26-0.084188-0.70940.240206
27-0.034549-0.29110.385906
28-0.026393-0.22240.412325
29-0.051062-0.43030.334155
300.0214260.18050.428621
310.1063240.89590.186666
320.0492560.4150.339682
33-0.060347-0.50850.306342
34-0.081382-0.68570.247557
35-0.064385-0.54250.294582
360.009520.08020.468146
370.2086971.75850.041485
380.0630680.53140.298394
39-0.019313-0.16270.435595
40-0.061199-0.51570.303842
41-0.072103-0.60760.272712
42-0.039401-0.3320.370434
43-0.025331-0.21340.415796
44-0.008799-0.07410.470554
450.1188421.00140.160021
460.0834890.70350.242026
47-0.024971-0.21040.416974
480.0024960.0210.491641


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2877162.42430.008942
2-0.140209-1.18140.120688
3-0.031984-0.26950.394162
4-0.05531-0.4660.321304
5-0.082044-0.69130.245811
6-0.012052-0.10160.459698
7-0.025295-0.21310.415916
8-0.041972-0.35370.36232
9-0.073616-0.62030.268524
10-0.092783-0.78180.218464
11-0.019943-0.1680.433514
120.0273810.23070.409099
13-0.004507-0.0380.484906
140.0410050.34550.365366
15-0.128431-1.08220.141417
16-0.064493-0.54340.294269
170.110830.93390.176767
180.0641680.54070.295207
190.0143470.12090.452061
20-0.044388-0.3740.354752
21-0.095787-0.80710.211147
220.0074960.06320.474908
23-0.051469-0.43370.332915
24-0.076857-0.64760.259664
25-0.112826-0.95070.172493
26-0.108348-0.9130.182178
27-0.014427-0.12160.451795
28-0.040759-0.34340.36614
29-0.085684-0.7220.236337
30-0.012187-0.10270.459249
31-0.007717-0.0650.474168
32-0.054106-0.45590.324924
33-0.081553-0.68720.247104
34-0.090084-0.75910.225165
35-0.093766-0.79010.216054
36-0.039619-0.33380.369742
370.1799661.51640.066927
38-0.09212-0.77620.220099
39-0.034926-0.29430.384698
40-0.082149-0.69220.245535
41-0.065475-0.55170.291441
420.0058430.04920.480435
43-0.04662-0.39280.347812
44-0.082287-0.69340.245171
450.0723440.60960.272042
46-0.003278-0.02760.489022
47-0.025735-0.21690.414473
48-0.01218-0.10260.459274
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260824364qs33tym2fnp7xoi/16vuf1260824170.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260824364qs33tym2fnp7xoi/16vuf1260824170.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/14/t1260824364qs33tym2fnp7xoi/2ni9f1260824170.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/14/t1260824364qs33tym2fnp7xoi/2ni9f1260824170.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