Home » date » 2009 » Dec » 04 »

WS 9.5

*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, 04 Dec 2009 05:24:35 -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/04/t1259929549xm68gdtswgwnb57.htm/, Retrieved Fri, 04 Dec 2009 13:25:54 +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/04/t1259929549xm68gdtswgwnb57.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 «
95.1 97.0 112.7 102.9 97.4 111.4 87.4 96.8 114.1 110.3 103.9 101.6 94.6 95.9 104.7 102.8 98.1 113.9 80.9 95.7 113.2 105.9 108.8 102.3 99.0 100.7 115.5 100.7 109.9 114.6 85.4 100.5 114.8 116.5 112.9 102.0 106.0 105.3 118.8 106.1 109.3 117.2 92.5 104.2 112.5 122.4 113.3 100.0 110.7 112.8 109.8 117.3 109.1 115.9 96.0 99.8 116.8 115.7 99.4 94.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
1-0.629054-4.31264.1e-05
20.070250.48160.31616
30.2096571.43730.078624
4-0.212046-1.45370.076336
50.0734880.50380.308376
60.089210.61160.271877
7-0.15083-1.0340.153205
80.0606910.41610.339623
90.0853190.58490.280701
10-0.157947-1.08280.142205
110.1262730.86570.19553
12-0.052317-0.35870.360726
130.0095990.06580.473905
14-0.034079-0.23360.408141
150.0997820.68410.248645
16-0.137553-0.9430.175248
170.0707060.48470.315058
180.0681980.46750.321136
19-0.140071-0.96030.170914
200.0789110.5410.295536
210.0860080.58960.279127
22-0.290406-1.99090.02616
230.3875872.65720.005366
24-0.263946-1.80950.038384
250.0042340.0290.488483
260.1519791.04190.151391
27-0.117538-0.80580.212208
280.0179260.12290.451358
290.0456320.31280.377893
30-0.040397-0.27690.391517
31-0.027592-0.18920.42539
320.0926830.63540.264124
33-0.123369-0.84580.200982
340.0887030.60810.273018
35-0.075613-0.51840.303314
360.0435620.29860.383263


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.629054-4.31264.1e-05
2-0.538581-3.69230.000289
3-0.142536-0.97720.166742
4-0.083683-0.57370.284453
5-0.079852-0.54740.293335
60.0724620.49680.310832
70.0259150.17770.429875
8-0.073858-0.50630.307491
90.0440750.30220.38193
10-0.019031-0.13050.448375
110.0163570.11210.455595
12-0.03227-0.22120.412935
130.0500210.34290.36659
14-0.074077-0.50780.306969
150.0624140.42790.335344
16-0.028927-0.19830.421826
17-0.075997-0.5210.302404
180.0541190.3710.356145
190.0297120.20370.419736
20-0.045243-0.31020.378902
210.1407320.96480.169789
22-0.223321-1.5310.066235
230.1117740.76630.223669
24-0.011142-0.07640.469717
25-0.022243-0.15250.439727
26-0.083762-0.57420.284271
270.0329580.22590.411112
280.04470.30640.38031
29-0.004529-0.03110.48768
300.0266830.18290.42782
31-0.004545-0.03120.487638
32-0.04606-0.31580.376787
33-0.045462-0.31170.378335
34-0.057185-0.3920.348401
35-0.131638-0.90250.185705
36-0.177329-1.21570.115084
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929549xm68gdtswgwnb57/1jhos1259929474.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929549xm68gdtswgwnb57/1jhos1259929474.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929549xm68gdtswgwnb57/237401259929474.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929549xm68gdtswgwnb57/237401259929474.ps (open in new window)


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