Home » date » 2010 » Dec » 10 »

*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: Fri, 10 Dec 2010 21:12:45 +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/10/t1292015425qx1hs57jj48ypu3.htm/, Retrieved Fri, 10 Dec 2010 22:10:27 +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/10/t1292015425qx1hs57jj48ypu3.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 «
493 514 522 490 484 506 501 462 465 454 464 427 460 473 465 422 415 413 420 363 376 380 384 346 389 407 393 346 348 353 364 305 307 312 312 286 324 336 327 302 299 311 315 264 278 278 287 279 324 354 354 360 363 385 412 370 389 395 417 404
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.146445-1.12490.132601
2-0.20074-1.54190.06422
3-0.14458-1.11050.135636
40.5776014.43662e-05
5-0.140411-1.07850.142597
6-0.228807-1.75750.04201
7-0.169942-1.30540.098421
80.519313.98899.3e-05
9-0.185866-1.42770.07933
10-0.192448-1.47820.072334
11-0.120587-0.92620.179046
120.7131655.47790
13-0.160559-1.23330.111181
14-0.224069-1.72110.045236
15-0.140098-1.07610.14313
160.438063.36480.000676
17-0.145921-1.12080.133449
18-0.213688-1.64140.05302
19-0.144307-1.10840.136084
200.365082.80420.003409
21-0.180812-1.38880.085051
22-0.182396-1.4010.083224
23-0.06327-0.4860.314388
240.4724013.62860.000298
25-0.13659-1.04920.14919
26-0.166934-1.28220.102387
27-0.10689-0.8210.207465
280.2951542.26710.013531
29-0.078726-0.60470.273848
30-0.172912-1.32820.09462
31-0.112286-0.86250.195956
320.1980451.52120.066774
33-0.121412-0.93260.177418
34-0.079758-0.61260.271237
35-0.078374-0.6020.274738
360.2489171.9120.03037
37-0.089217-0.68530.247924
38-0.106318-0.81660.208708
39-0.065227-0.5010.309111
400.1277410.98120.165251
41-0.050948-0.39130.348479
42-0.103487-0.79490.214928
43-0.052459-0.40290.344223
440.0949580.72940.234326
45-0.064509-0.49550.311043
46-0.007674-0.05890.476596
47-0.037632-0.28910.386775
480.0910510.69940.243533


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.146445-1.12490.132601
2-0.227056-1.7440.043179
3-0.230473-1.77030.040922
40.5193533.98929.3e-05
5-0.062647-0.48120.316077
6-0.132809-1.02010.155916
7-0.135489-1.04070.151128
80.2242861.72280.045084
9-0.140827-1.08170.14189
10-0.030282-0.23260.408439
110.0047310.03630.485569
120.5276724.05317.5e-05
130.0068870.05290.478994
14-0.085489-0.65670.256979
15-0.088973-0.68340.24851
16-0.272156-2.09050.020447
17-0.058972-0.4530.326114
180.0262640.20170.420409
190.0883450.67860.250025
20-0.08691-0.66760.253505
21-0.019818-0.15220.439766
22-0.074348-0.57110.285057
230.003770.0290.488497
24-0.036452-0.280.39023
250.0408190.31350.37749
260.1181810.90780.183847
27-0.045368-0.34850.36436
28-0.095023-0.72990.234173
290.0391810.3010.382254
30-0.053808-0.41330.34044
31-0.049034-0.37660.353899
32-0.089254-0.68560.247834
33-0.011-0.08450.466474
340.1399591.0750.143366
35-0.100332-0.77070.22199
36-0.108464-0.83310.204065
37-0.074087-0.56910.285734
38-0.109268-0.83930.202342
390.0584840.44920.327458
40-0.007302-0.05610.47773
41-0.049319-0.37880.353088
42-0.046122-0.35430.3622
430.0666520.5120.305293
440.0594020.45630.324934
450.0209530.16090.436345
46-0.022679-0.17420.431152
47-0.02611-0.20060.420869
48-0.074516-0.57240.284623
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015425qx1hs57jj48ypu3/1juw91292015563.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015425qx1hs57jj48ypu3/1juw91292015563.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015425qx1hs57jj48ypu3/2juw91292015563.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t1292015425qx1hs57jj48ypu3/2juw91292015563.ps (open in new window)


 
Parameters (Session):
par1 = 1 ; par2 = 0 ; par3 = 0 ; par4 = 12 ;
 
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