Home » date » 2010 » Jun » 04 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 04 Jun 2010 14:21:30 +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/Jun/04/t1275661450yp6d9tm6scj2oz9.htm/, Retrieved Fri, 04 Jun 2010 16:24:11 +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/Jun/04/t1275661450yp6d9tm6scj2oz9.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
25000 25284 12434.5 33955 14980.5 50831 4198.5 34566 35000 11055.5 20807 21887.29 16977.5 19613.5 14570 24416.5 16825.5 13980 21450.5 27239.5 19078.5 20459.1 20373.5 19306.5 16723.16 11638 20917 17903.5 28218.5 15268 21555 23143 16691 17932.5 30512 41931.5 10853.5 25939.5 14900 25127.76 22063.5 25306.5 31217.5 23201.5 38148 26264 16359 27945.5 16218.5 36003.5 20323.5 20100.5 18741 24426.75 19174.5 13766 18999 21745 34469 13248 16218.5 36003.5 20323.5 20100.5 18741 24426.75 19174.5 13766 18999 21745 34469 13248
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.319417-2.71030.004198
20.1091860.92650.178648
30.0071950.0610.475744
40.0689260.58490.280238
50.092580.78560.217349
6-0.206958-1.75610.041662
70.1316191.11680.133892
80.049720.42190.337183
90.0303560.25760.398732
10-0.085884-0.72880.234258
11-0.077371-0.65650.256793
120.0904460.76750.222659
13-0.105918-0.89870.185893
140.1096640.93050.177603
15-0.076877-0.65230.258135
160.0867210.73590.232106
17-0.10091-0.85630.19735
18-0.110125-0.93440.176599
19-0.009882-0.08390.466703
20-0.151628-1.28660.101177
210.0396850.33670.368645
22-0.18907-1.60430.056512
230.1362181.15580.125783
24-0.127969-1.08590.140584
25-0.122179-1.03670.151667
260.0444750.37740.3535
270.0606410.51460.30422
28-0.051558-0.43750.331535
29-0.099849-0.84720.199832
300.1786411.51580.066972
31-0.091764-0.77860.21937
32-0.002336-0.01980.492121
33-0.170605-1.44760.07603
340.1052780.89330.187334
350.035540.30160.381927
36-0.006314-0.05360.478711
370.0673030.57110.284859
38-0.056744-0.48150.315815
390.1599571.35730.089466
40-0.027404-0.23250.408394
41-0.019709-0.16720.433827
420.1728361.46660.073425
43-0.081854-0.69460.244785
440.098190.83320.203753
45-0.077798-0.66010.255636
460.097470.82710.205468
47-0.080891-0.68640.247338
48-0.003333-0.02830.488759


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.319417-2.71030.004198
20.0079720.06760.473129
30.049380.4190.338231
40.0942280.79950.213301
50.1532561.30040.098802
6-0.165787-1.40670.081902
7-0.007763-0.06590.473832
80.1122590.95250.172003
90.0856440.72670.234879
10-0.058652-0.49770.310114
11-0.148146-1.25710.106397
12-0.036821-0.31240.377806
13-0.061938-0.52560.300403
140.1376231.16780.123376
150.0418190.35480.36187
160.0220640.18720.426008
17-0.138197-1.17260.122402
18-0.193616-1.64290.052383
19-0.110102-0.93420.17665
20-0.133333-1.13140.130828
21-0.035883-0.30450.38082
22-0.176051-1.49380.069793
230.01940.16460.434854
24-0.071971-0.61070.271662
25-0.157418-1.33570.092921
26-0.029075-0.24670.402919
270.1935451.64230.052446
28-0.027168-0.23050.409167
29-0.149546-1.26890.104275
300.0661560.56130.288151
31-0.111019-0.9420.174664
32-0.052963-0.44940.327244
33-0.154084-1.30740.09761
340.0064570.05480.478228
35-0.069516-0.58990.278564
360.0903740.76680.222839
370.0924780.78470.217601
38-0.0915-0.77640.220028
39-0.009853-0.08360.4668
400.0289320.24550.403386
41-0.037242-0.3160.376456
420.0751460.63760.262868
43-0.077855-0.66060.255483
44-0.208261-1.76720.04072
45-0.072188-0.61250.271057
460.0456870.38770.349703
47-0.034754-0.29490.38446
480.0078050.06620.473691
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275661450yp6d9tm6scj2oz9/1izq21275661287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275661450yp6d9tm6scj2oz9/1izq21275661287.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/04/t1275661450yp6d9tm6scj2oz9/2izq21275661287.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/04/t1275661450yp6d9tm6scj2oz9/2izq21275661287.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