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:22:04 +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/t1292962782idi24zmiwsnivkv.htm/, Retrieved Tue, 21 Dec 2010 21:19:43 +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/t1292962782idi24zmiwsnivkv.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 time2 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2201022.15660.016769
20.2980882.92060.002177
30.302582.96470.001911
40.0092030.09020.464168
50.1868531.83080.035118
60.2469592.41970.008708
70.044780.43880.330912
80.3232033.16670.001033
90.1831021.7940.037979
100.022410.21960.413335
110.2191762.14750.017137
12-0.150688-1.47640.07155
13-0.039245-0.38450.350723
140.0940350.92140.179588
150.1432181.40320.081885
160.0138280.13550.446256
170.1747261.7120.045066
180.0282210.27650.391376
190.0180120.17650.430146
200.0543350.53240.29785
21-0.013283-0.13010.448361
22-0.056077-0.54940.291989
230.0351780.34470.365545
24-0.137102-1.34330.091168
25-0.037979-0.37210.355315
260.0326620.320.374822
27-0.267305-2.6190.005124
28-0.027206-0.26660.395188
29-0.087305-0.85540.197228
30-0.20639-2.02220.022969
31-0.070815-0.69380.244728
32-0.151813-1.48750.070086
33-0.245923-2.40950.008939
34-0.071327-0.69890.243165
35-0.153525-1.50420.067902
36-0.169496-1.66070.050017
37-0.049335-0.48340.314963
38-0.225043-2.2050.014922
39-0.087937-0.86160.195526
40-0.090597-0.88770.188469
41-0.161647-1.58380.058262
42-0.156021-1.52870.064815
43-0.066339-0.650.258627
44-0.115351-1.13020.130603
45-0.098853-0.96860.1676
46-0.097618-0.95650.170621
47-0.212346-2.08060.020069
48-0.123454-1.20960.114703


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2201022.15660.016769
20.2623522.57050.005846
30.2216982.17220.016152
4-0.164502-1.61180.055146
50.0863880.84640.199711
60.2262192.21650.01451
7-0.049305-0.48310.315065
80.1827971.7910.038219
90.0644610.63160.264579
10-0.125236-1.22710.1114
110.0487240.47740.317081
12-0.246457-2.41480.008819
13-0.049205-0.48210.315414
140.0646140.63310.264092
150.3262823.19690.000941
16-0.218009-2.1360.01761
170.0055740.05460.478281
180.1270381.24470.108134
19-0.062105-0.60850.272145
20-0.000357-0.00350.498608
210.0651760.63860.262303
22-0.144918-1.41990.079437
23-0.076694-0.75140.227111
24-0.180026-1.76390.040466
25-0.020962-0.20540.418853
260.0183660.17990.428786
27-0.056312-0.55170.291202
28-0.026971-0.26430.396074
29-0.020724-0.20310.419762
30-0.026708-0.26170.397064
31-0.042058-0.41210.340599
32-0.049784-0.48780.313407
33-0.024366-0.23870.405908
34-0.07839-0.76810.222168
350.1091571.06950.143759
36-0.192058-1.88180.031448
37-0.004416-0.04330.482788
380.0043380.04250.483092
390.0827430.81070.209769
40-0.088826-0.87030.193149
410.049260.48260.315224
42-0.030007-0.2940.384695
43-0.033134-0.32460.373079
440.1036231.01530.15626
45-0.061468-0.60230.274209
46-0.162404-1.59120.057423
47-0.033691-0.33010.37102
480.0072020.07060.471947
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292962782idi24zmiwsnivkv/1mzmg1292962920.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292962782idi24zmiwsnivkv/1mzmg1292962920.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/21/t1292962782idi24zmiwsnivkv/2mzmg1292962920.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/21/t1292962782idi24zmiwsnivkv/2mzmg1292962920.ps (open in new window)


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