Home » date » 2010 » Aug » 18 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 Aug 2010 00:15:20 +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/Aug/18/t1282090474h6o8fhf70lkgfz7.htm/, Retrieved Wed, 18 Aug 2010 02:14:37 +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/Aug/18/t1282090474h6o8fhf70lkgfz7.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 «
158 157 156 154 152 151 152 154 155 155 156 158 155 151 152 156 147 159 152 148 146 148 142 141 139 143 146 150 141 153 142 139 134 152 142 139 137 132 137 134 127 140 127 120 112 128 119 117 115 104 108 104 98 111 104 98 91 94 82 81 70 64 71 73 71 80 72 68 60 71 62 69 55 58 67 69 71 85 76 79 69 95 94 99
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.964218.83710
20.9477718.68650
30.9233738.46290
40.9013488.2610
50.8728247.99960
60.8507127.79690
70.8203267.51840
80.7903977.24410
90.7494996.86930
100.7126566.53160
110.669686.13770
120.6411125.87590
130.5836615.34930
140.5439824.98572e-06
150.4997434.58028e-06
160.45884.2053.2e-05
170.4158363.81120.000131
180.374923.43620.00046
190.3303033.02730.001638
200.289252.6510.004795
210.2466382.26050.013189
220.2025681.85660.033439
230.1621471.48610.070498
240.1341791.22980.111108
250.089050.81620.208359
260.0571130.52340.301021
270.0202090.18520.426752
28-0.009555-0.08760.465211
29-0.042174-0.38650.35004
30-0.07401-0.67830.249718
31-0.10574-0.96910.167634
32-0.135106-1.23830.109534
33-0.160828-1.4740.072108
34-0.192846-1.76750.040391
35-0.218835-2.00570.024056
36-0.231637-2.1230.018349
37-0.261357-2.39540.009413
38-0.278326-2.55090.006279
39-0.302615-2.77350.003415
40-0.319375-2.92710.0022
41-0.338422-3.10170.00131
42-0.355611-3.25920.000807
43-0.369492-3.38650.00054
44-0.37852-3.46920.000413
45-0.38627-3.54020.000327
46-0.398583-3.65310.000225
47-0.408187-3.74110.000167
48-0.408857-3.74720.000164


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.964218.83710
20.2570492.35590.010404
3-0.052124-0.47770.317043
4-0.01905-0.17460.430909
5-0.098747-0.9050.184019
60.0350560.32130.374393
7-0.089169-0.81730.208049
8-0.070404-0.64530.260258
9-0.182435-1.6720.049119
10-0.053933-0.49430.311191
11-0.076046-0.6970.243871
120.1609091.47480.072009
13-0.354929-3.2530.000823
140.0370090.33920.367655
150.0452180.41440.339807
160.0215890.19790.421815
170.035780.32790.371889
18-0.088401-0.81020.210055
19-0.029428-0.26970.394022
20-0.003376-0.03090.487696
210.0655770.6010.274721
22-0.133996-1.22810.111422
230.0397060.36390.35842
240.0802970.73590.231912
25-0.069668-0.63850.262437
260.0063410.05810.476897
27-0.074443-0.68230.248469
280.0682340.62540.266711
29-0.03122-0.28610.38774
30-0.056293-0.51590.303628
31-0.054378-0.49840.309759
32-0.046247-0.42390.336376
330.070040.64190.261334
34-0.106954-0.98030.164888
35-0.009744-0.08930.464527
360.0992070.90920.182911
37-0.080794-0.74050.230533
380.0206290.18910.425249
39-0.085058-0.77960.218919
400.0041270.03780.484959
41-0.005757-0.05280.479022
42-0.008591-0.07870.468714
430.0164750.1510.440169
440.0294460.26990.393957
450.0026670.02440.490277
46-0.024337-0.22310.412018
47-0.028123-0.25770.398616
48-0.023075-0.21150.416512
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090474h6o8fhf70lkgfz7/1vhmf1282090518.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090474h6o8fhf70lkgfz7/1vhmf1282090518.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090474h6o8fhf70lkgfz7/2vhmf1282090518.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282090474h6o8fhf70lkgfz7/2vhmf1282090518.ps (open in new window)


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