Home » date » 2010 » Dec » 21 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 21 Dec 2010 20:16:07 +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/Dec/21/t12929626175ct92malxh0iyst.htm/, Retrieved Tue, 21 Dec 2010 21:16:59 +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/Dec/21/t12929626175ct92malxh0iyst.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 «
320 324 343 295 301 367 196 182 342 361 333 330 345 323 365 323 316 358 235 169 430 409 407 341 326 374 364 349 300 385 304 196 443 414 325 388 356 386 444 387 327 448 225 182 460 411 342 361 377 331 428 340 352 461 221 198 422 329 320 375 364 351 380 319 322 386 221 187 343 342 365 313 356 337 389 326 343 357 220 218 391 425 332 298 360 336 325 393 301 426 265 210 429 440 357 431 442 422 544 420 396 482 261 211 448 468 464 425
 
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.1933112.00890.023519
2-0.165442-1.71930.04421
30.2016362.09550.019234
4-0.018549-0.19280.423751
5-0.024524-0.25490.399659
60.1548741.60950.055213
7-0.046325-0.48140.315595
80.0476280.4950.310815
90.1660331.72550.043652
10-0.239619-2.49020.007145
110.099461.03360.151813
120.6398536.64960
130.0290420.30180.381688
14-0.238687-2.48050.007331
150.0589660.61280.27065
16-0.077482-0.80520.211232
17-0.07474-0.77670.21951
180.008370.0870.465421
19-0.124159-1.29030.099852
20-0.070897-0.73680.231427
210.010380.10790.45715
22-0.276914-2.87780.002414
230.0013240.01380.494523
240.4816945.00591e-06
250.0136910.14230.443561
26-0.249601-2.59390.005402
27-0.006998-0.07270.471079
28-0.074616-0.77540.219889
29-0.172128-1.78880.038225
30-0.045396-0.47180.319023
31-0.121286-1.26040.105114
32-0.134122-1.39380.083114
33-0.017343-0.18020.428654
34-0.242641-2.52160.006571
35-0.028389-0.2950.384271
360.419884.36351.5e-05
370.0024010.0250.490069
38-0.255404-2.65420.004575
390.0248310.25810.398427
40-0.048281-0.50170.308433
41-0.140105-1.4560.074145
420.0129470.13460.446608
43-0.065907-0.68490.247431
44-0.080848-0.84020.201327
450.053150.55240.290923
46-0.175662-1.82550.035342
47-0.006255-0.0650.474146
480.4049234.20812.7e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1933112.00890.023519
2-0.210684-2.18950.015357
30.3055573.17540.000975
4-0.221188-2.29870.011725
50.1966462.04360.021713
6-0.023514-0.24440.403706
7-0.016754-0.17410.43105
80.128331.33360.092562
90.0191120.19860.421468
10-0.261442-2.7170.003837
110.3919374.07314.4e-05
120.4325954.49579e-06
13-0.198944-2.06750.020539
14-0.21588-2.24350.013453
15-0.065165-0.67720.24986
160.0496710.51620.303387
17-0.085201-0.88540.188944
18-0.16891-1.75540.041017
190.0068120.07080.471847
20-0.248549-2.5830.005566
210.0297260.30890.378988
22-0.026646-0.27690.391188
230.0550720.57230.284144
240.127181.32170.094531
250.0303350.31530.376589
26-0.009261-0.09620.461754
27-0.039986-0.41550.339283
280.0258660.26880.394296
29-0.187104-1.94440.027221
300.0329030.34190.366532
31-0.068277-0.70960.239753
32-0.107369-1.11580.13349
33-0.04112-0.42730.334993
34-0.026227-0.27260.392857
350.0562180.58420.28014
360.0042470.04410.482437
37-0.020293-0.21090.416684
380.0033350.03470.486207
390.0289290.30060.382133
400.0209230.21740.414137
410.0273660.28440.388324
420.0079890.0830.466991
43-0.007553-0.07850.468789
440.0336510.34970.363618
450.030870.32080.374487
460.0010760.01120.495549
47-0.089458-0.92970.177308
480.010570.10980.456367
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929626175ct92malxh0iyst/12dmy1292962565.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929626175ct92malxh0iyst/12dmy1292962565.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t12929626175ct92malxh0iyst/22dmy1292962565.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t12929626175ct92malxh0iyst/22dmy1292962565.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