Home » date » 2010 » Jun » 04 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 04 Jun 2010 14:10:15 +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/Jun/04/t1275660831dif19q8xbm9378h.htm/, Retrieved Fri, 04 Jun 2010 16:13:53 +0200
 
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/Jun/04/t1275660831dif19q8xbm9378h.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25000 25284 12434,5 33955 14980,5 50831 4198,5 34566 35000 11055,5 20807 21887,29 16977,5 19613,5 14570 24416,5 16825,5 13980 21450,5 27239,5 19078,5 20459,1 20373,5 19306,5 16723,16 11638 20917 17903,5 28218,5 15268 21555 23143 16691 17932,5 30512 41931,5 10853,5 25939,5 14900 25127,76 22063,5 25306,5 31217,5 23201,5 38148 26264 16359 27945,5 16218,5 36003,5 20323,5 20100,5 18741 24426,75 19174,5 13766 18999 21745 34469 13248 16218,5 36003,5 20323,5 20100,5 18741 24426,75 19174,5 13766 18999 21745 34469 13248
 
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
1-0.65185-5.49260
20.1965591.65620.051044
3-0.069852-0.58860.279006
40.0152950.12890.44891
50.1182040.9960.161314
6-0.22831-1.92380.029196
70.1488651.25440.106912
8-0.023213-0.19560.422742
90.0429970.36230.359102
10-0.038473-0.32420.373379
11-0.07543-0.63560.263545
120.1379651.16250.124459
13-0.142398-1.19990.11709
140.1455911.22680.111981
15-0.138098-1.16360.124234
160.1320351.11250.134828
17-0.063484-0.53490.297185
18-0.039788-0.33530.36921
190.0867170.73070.233687
20-0.124215-1.04670.149404
210.1601171.34920.090785
22-0.199986-1.68510.048179
230.2108961.7770.039923
24-0.093874-0.7910.215791
25-0.068524-0.57740.282749
260.0623660.52550.300436
270.0585010.49290.311787
28-0.037778-0.31830.375586
29-0.115687-0.97480.166485
300.2037191.71660.045209
31-0.140149-1.18090.120789
320.1021630.86080.196111
33-0.177316-1.49410.069791
340.1367191.1520.12659
35-0.024763-0.20870.417656
36-0.01386-0.11680.45368
370.0635680.53560.296944
38-0.136521-1.15030.12693
390.1506721.26960.104189
40-0.069138-0.58260.281016
41-0.072622-0.61190.27127
420.1644421.38560.085101
43-0.154699-1.30350.098304
440.1244931.0490.148869
45-0.129216-1.08880.139964
460.13051.09960.137608
47-0.097057-0.81780.208098
480.0466380.3930.347756


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.65185-5.49260
2-0.397068-3.34580.000657
3-0.308984-2.60350.005614
4-0.285146-2.40270.009446
50.0179650.15140.440053
6-0.150232-1.26590.104848
7-0.215089-1.81240.037079
8-0.146652-1.23570.11032
90.0023460.01980.492143
100.0914920.77090.221654
11-0.032161-0.2710.39359
12-0.002183-0.01840.492689
13-0.148424-1.25060.107585
14-0.017242-0.14530.442449
15-0.020283-0.17090.432391
160.0997920.84090.201623
170.0990110.83430.203461
18-0.01178-0.09930.460607
190.0214770.1810.428455
20-0.064315-0.54190.294783
210.054640.46040.323317
22-0.129245-1.0890.13991
23-0.005837-0.04920.480457
240.0690320.58170.281314
25-0.078301-0.65980.255767
26-0.22879-1.92780.028939
270.060540.51010.305775
280.1369751.15420.12615
29-0.087038-0.73340.232867
300.1213611.02260.154984
310.0462210.38950.34905
320.1187581.00070.160191
33-0.075599-0.6370.263083
340.0031660.02670.489395
35-0.167492-1.41130.081259
36-0.125516-1.05760.146907
370.0742450.62560.266791
38-0.016738-0.1410.444121
39-0.06395-0.53880.295838
40-0.017073-0.14390.44301
41-0.126591-1.06670.144866
420.0355280.29940.382768
430.1365941.1510.126804
44-0.030495-0.2570.398977
45-0.115871-0.97630.166103
46-0.023497-0.1980.42181
47-0.056439-0.47560.317921
480.0519480.43770.331459
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660831dif19q8xbm9378h/11fg91275660613.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660831dif19q8xbm9378h/11fg91275660613.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660831dif19q8xbm9378h/2cofc1275660613.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275660831dif19q8xbm9378h/2cofc1275660613.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