Home » date » 2009 » Nov » 29 »

ws 8 rev

*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: Sun, 29 Nov 2009 14:03:11 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/29/t125952862362pag1o7wtz3o07.htm/, Retrieved Sun, 29 Nov 2009 22:03:46 +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/2009/Nov/29/t125952862362pag1o7wtz3o07.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
4.2 4 4.9 4.6 4.3 4.3 4.6 5.1 4.8 4.5 4.9 5.1 5.1 5.2 4.5 4.6 4.9 4.6 4.4 3.7 4 4.2 3.9 3.6 3.6 3.2 3.2 3.5 3.6 3.7 3.8 3.8 3.8 3.3 3.3 3.4 3.1 3.5 4.2 4.9 5.1 5.5 5.6 6.4 6.2 7.2 7.8 7.9 7.4 7.5 6.7 5.1 4.6 4.3 3.9 2.6 2.6 1.6 0.9 0.3
 
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.3079062.36510.010667
20.2462261.89130.031749
30.2635132.02410.023749
40.3250472.49670.007673
50.1086920.83490.203576
60.0586820.45070.326913
70.0849610.65260.258276
80.0456890.35090.36344
9-0.077232-0.59320.277646
10-0.139624-1.07250.143938
11-0.024466-0.18790.42579
12-0.424496-3.26060.000924
13-0.244976-1.88170.032407
14-0.123878-0.95150.17261
15-0.083821-0.64380.261087
16-0.174596-1.34110.092514
17-0.112573-0.86470.195357
18-0.0437-0.33570.369155
19-0.024084-0.1850.426934
20-0.199825-1.53490.065079
21-0.098388-0.75570.226409
220.008070.0620.475392
23-0.095762-0.73560.232456
24-0.085766-0.65880.256299
250.0527330.4050.343454
26-0.024532-0.18840.425592
27-0.029421-0.2260.410996
280.0034960.02690.489333
290.0130490.10020.460249
300.0090920.06980.47228
31-0.056945-0.43740.331709
320.1299010.99780.161228
330.1188270.91270.18255
340.0285060.2190.413718
350.0206350.15850.437301
360.1467651.12730.132085


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3079062.36510.010667
20.1672781.28490.101926
30.1692011.29970.099386
40.213341.63870.0533
5-0.091653-0.7040.242102
6-0.077069-0.5920.278063
7-0.008546-0.06560.473943
8-0.039556-0.30380.381162
9-0.098529-0.75680.226086
10-0.125746-0.96590.169024
110.0502080.38570.35057
12-0.457321-3.51270.000429
130.0124930.0960.461938
140.1378391.05880.147012
150.0885910.68050.249431
160.1239570.95210.172458
17-0.00829-0.06370.474721
18-0.031028-0.23830.406224
19-0.003361-0.02580.489745
20-0.214893-1.65060.052064
21-0.056721-0.43570.33233
22-0.064798-0.49770.310265
23-0.040151-0.30840.379431
24-0.192847-1.48130.071925
250.0930640.71480.238764
26-0.000423-0.00320.498711
270.1216340.93430.176982
280.1746841.34180.092405
29-0.020837-0.160.436695
30-0.019323-0.14840.441258
31-0.057005-0.43790.331543
32-0.017357-0.13330.447196
33-0.040816-0.31350.377498
34-0.078273-0.60120.274996
35-0.05719-0.43930.33103
36-0.07928-0.6090.272445
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/29/t125952862362pag1o7wtz3o07/1il8q1259528589.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t125952862362pag1o7wtz3o07/1il8q1259528589.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/29/t125952862362pag1o7wtz3o07/2kkmr1259528589.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/29/t125952862362pag1o7wtz3o07/2kkmr1259528589.ps (open in new window)


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