Home » date » 2010 » Aug » 17 »

*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, 17 Aug 2010 10:49:33 +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/17/t12820423825id32sop13khdup.htm/, Retrieved Tue, 17 Aug 2010 12:53:05 +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/17/t12820423825id32sop13khdup.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:
DeGroodtOlivierStap20
 
Dataseries X:
» Textbox « » Textfile « » CSV «
356 355 354 352 372 371 356 346 347 347 348 350 353 351 348 351 370 370 351 335 330 328 332 334 343 334 336 343 365 364 351 326 320 312 315 316 319 311 315 322 336 339 317 295 291 283 285 289 296 283 285 289 306 306 283 258 255 248 244 249 258 252 246 249 267 284 261 235 229 218 218 229 237 231 229 233 245 256 224 194 192 178 170 187 192 182 178 186 204 224 194 173 178 168 152 163 172 170 156 155 178 194 164 135 139 135 109 121 131 135 119 121 151 169 135 105 112 105 82 81
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.96132210.53080
20.91551410.0290
30.8846789.69120
40.8603169.42430
50.829019.08140
60.8056228.82510
70.7946338.70480
80.7833478.58110
90.7636788.36570
100.7478118.19190
110.7442348.15270
120.7337318.03760
130.697887.64490
140.6519647.14190
150.6194796.78610
160.5918676.48360
170.5599516.1340
180.535185.86260
190.5206935.70390
200.5066335.54990
210.4873825.3390
220.472435.17520
230.4669395.11511e-06
240.4569865.0061e-06
250.4249174.65474e-06
260.3837264.20352.5e-05
270.3508543.84349.8e-05
280.3230813.53920.000286
290.2917793.19630.00089
300.2662362.91650.002113
310.2496822.73510.003591
320.2333412.55610.005916
330.2139062.34320.010382
340.1974372.16280.01627
350.1878512.05780.020888
360.1761241.92930.028024
370.147251.6130.054681
380.1081511.18470.119232
390.0744610.81570.20815
400.0455440.49890.309378
410.0154280.1690.433039
42-0.007618-0.08350.466814
43-0.019821-0.21710.414237
44-0.031324-0.34310.366049
45-0.04544-0.49780.309777
46-0.056144-0.6150.269852
47-0.061033-0.66860.252523
48-0.068439-0.74970.227449


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96132210.53080
2-0.113712-1.24570.107659
30.1844312.02030.022787
40.0301050.32980.371068
5-0.083663-0.91650.180625
60.1372221.50320.067709
70.1052331.15280.125649
8-0.007991-0.08750.465195
9-0.043749-0.47920.316319
100.0640730.70190.242055
110.1200381.3150.095516
12-0.092114-1.00910.157489
13-0.265393-2.90720.002172
14-0.141856-1.5540.061414
150.0647350.70910.239806
16-0.003006-0.03290.486894
17-0.024959-0.27340.392501
180.0397060.4350.332186
19-0.003783-0.04140.483506
200.026790.29350.384835
210.0313720.34370.365849
220.034880.38210.351533
230.0417730.45760.324032
24-0.020927-0.22920.409535
25-0.157121-1.72120.043898
26-0.079736-0.87350.192078
27-0.012361-0.13540.446257
28-0.010659-0.11680.45362
29-0.03607-0.39510.346725
30-0.004636-0.05080.479789
31-0.026379-0.2890.386552
320.0003290.00360.498567
330.0364030.39880.345383
34-0.003952-0.04330.482768
35-0.000911-0.010.496026
360.0090610.09930.46055
37-0.088042-0.96440.16838
38-0.067989-0.74480.228931
39-0.026055-0.28540.387909
40-0.027034-0.29610.383815
41-0.019846-0.21740.414132
420.0268130.29370.384739
430.0188540.20650.41836
44-0.007251-0.07940.468411
450.0307020.33630.368608
460.015710.17210.431828
470.0048980.05370.478649
480.0003030.00330.498677
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/17/t12820423825id32sop13khdup/1grxd1282042171.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t12820423825id32sop13khdup/1grxd1282042171.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t12820423825id32sop13khdup/2grxd1282042171.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t12820423825id32sop13khdup/2grxd1282042171.ps (open in new window)


 
Parameters (Session):
par1 = grey ;
 
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