Home » date » 2009 » Dec » 25 »

paper 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: Fri, 25 Dec 2009 13:55:04 -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/Dec/25/t1261774624372xns8kqm7j1g0.htm/, Retrieved Fri, 25 Dec 2009 21:57:07 +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/Dec/25/t1261774624372xns8kqm7j1g0.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 «
7.55 7.55 7.59 7.59 7.59 7.57 7.57 7.59 7.6 7.64 7.64 7.76 7.76 7.76 7.77 7.83 7.94 7.94 7.94 8.09 8.18 8.26 8.28 8.28 8.28 8.29 8.3 8.3 8.31 8.33 8.33 8.34 8.48 8.59 8.67 8.67 8.67 8.71 8.72 8.72 8.72 8.74 8.74 8.74 8.74 8.79 8.85 8.86 8.87 8.92 8.96 8.97 8.99 8.98 8.98 9.01 9.01 9.03 9.05 9.05
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.280645-2.13730.018399
2-0.204032-1.55390.062829
3-0.095968-0.73090.233901
40.0620970.47290.319024
50.2411291.83640.035714
6-0.215323-1.63980.053225
7-0.128226-0.97650.166427
80.1241940.94580.17408
90.0540320.41150.341112
10-0.071774-0.54660.29337
11-0.158065-1.20380.116782
120.0556450.42380.336647
130.2935482.23560.014621
14-0.019355-0.14740.441663
15-0.219355-1.67060.050099
16-0.078226-0.59570.27683
170.1903231.44950.076298
180.1516131.15460.126485
19-0.155645-1.18540.120355
20-0.183871-1.40030.083372
210.1596771.21610.114443
22-0.020968-0.15970.436842
230.0645160.49130.31252
24-0.129032-0.98270.164923
250.0411290.31320.377615
260.1330651.01340.157542
27-0.058871-0.44830.327786
28-0.120161-0.91510.181959
29-0.059677-0.45450.325586
300.2330651.7750.040575
31-0.025-0.19040.424832
32-0.085484-0.6510.2588
33-0.040323-0.30710.379938
340.0370970.28250.389275
350.0330650.25180.401038
360.0177420.13510.446493


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.280645-2.13730.018399
2-0.306972-2.33780.011434
3-0.307942-2.34520.011229
4-0.204258-1.55560.062624
50.1185030.90250.185264
6-0.13298-1.01270.157693
7-0.199157-1.51670.067383
8-0.041496-0.3160.37656
9-0.0617-0.46990.320098
10-0.184819-1.40750.082302
11-0.266461-2.02930.023512
12-0.234872-1.78870.03944
130.0405760.3090.379208
140.0955590.72780.234846
15-0.042332-0.32240.374159
16-0.127315-0.96960.168136
17-0.0161-0.12260.451418
180.0756210.57590.28345
190.0394330.30030.382507
20-0.067879-0.51690.303579
210.0784590.59750.27624
22-0.122411-0.93230.177534
230.0545210.41520.339756
240.0663010.50490.307759
250.0891370.67880.249967
260.0296320.22570.411127
270.0478360.36430.358475
28-0.019271-0.14680.441915
29-0.093226-0.710.240277
300.07940.60470.273871
31-0.099341-0.75660.226189
32-0.046322-0.35280.362766
330.0922540.70260.242563
340.048690.37080.356065
35-0.119126-0.90720.184018
360.0080020.06090.475809
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/25/t1261774624372xns8kqm7j1g0/134gi1261774500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/25/t1261774624372xns8kqm7j1g0/134gi1261774500.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/25/t1261774624372xns8kqm7j1g0/2btty1261774500.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/25/t1261774624372xns8kqm7j1g0/2btty1261774500.ps (open in new window)


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