Home » date » 2010 » May » 05 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 05 May 2010 16:02:01 +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/May/05/t12730754019xfzc5q3hvfzlni.htm/, Retrieved Wed, 05 May 2010 18:03:22 +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/May/05/t12730754019xfzc5q3hvfzlni.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 «
254 234 222 225 243 270 289 273 274 220 271 288 276 266 239 201 242 239 273 280 294 212 264 272 262 238 227 250 245 270 288 298 281 218 284 281 277 276 222 255 267 261 263 264 278 248 320 305 301 274 220 235 252 272 280 305 299 246 307 325 302 274 251 272 253 292 288 258 295 231 250 268
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3427872.90860.002412
20.0582290.49410.311372
3-0.133101-1.12940.131239
4-0.174184-1.4780.071885
50.0468390.39740.346107
60.0925590.78540.217401
70.1298871.10210.137039
8-0.083381-0.70750.240767
9-0.132764-1.12650.131838
10-0.024158-0.2050.419082
110.1224181.03870.151199
120.5496854.66427e-06
130.183761.55930.06166
14-0.002905-0.02470.490201
15-0.13426-1.13920.12919
16-0.074506-0.63220.264627
170.1026060.87060.193422
180.0462070.39210.348079
190.0797320.67660.25043
20-0.129369-1.09770.13799
21-0.165154-1.40140.082698
22-0.084352-0.71570.238231
230.0601830.51070.305573
240.3598523.05340.001585
250.0755110.64070.261864
260.0028870.02450.490263
27-0.113215-0.96070.169969
28-0.02081-0.17660.430169
290.0848250.71980.236999
30-0.067971-0.57670.282954
31-0.089232-0.75720.225712
32-0.211316-1.79310.03858
33-0.19901-1.68870.047806
34-0.07124-0.60450.273708
350.0575760.48850.313324
360.2516542.13540.018067
370.0076060.06450.474359
38-0.100401-0.85190.198538
39-0.134024-1.13720.129605
40-0.06733-0.57130.284784
410.021130.17930.429105
42-0.023504-0.19940.421241
43-0.08824-0.74870.228227
44-0.216579-1.83770.035114
45-0.181257-1.5380.064214
46-0.094111-0.79860.213586
470.0119260.10120.459838
480.171931.45890.074474


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3427872.90860.002412
2-0.067165-0.56990.285254
3-0.149546-1.26890.104274
4-0.087141-0.73940.231029
50.1660221.40870.081607
60.0155580.1320.447672
70.0517320.4390.331002
8-0.175059-1.48540.070898
9-0.012361-0.10490.458379
100.0887330.75290.226976
110.1320331.12030.133147
120.4865864.12884.8e-05
13-0.251235-2.13180.018218
14-0.029469-0.25010.40163
150.0179860.15260.439565
160.2016231.71080.045709
170.0081930.06950.472385
18-0.174082-1.47710.072
19-0.037438-0.31770.375826
20-0.027967-0.23730.406547
210.0532970.45220.326227
22-0.076301-0.64740.259704
230.0261620.2220.412476
240.0093170.07910.468602
25-0.077848-0.66060.255501
260.1051210.8920.187686
27-0.004842-0.04110.483669
280.0504770.42830.334851
29-0.12816-1.08750.140227
30-0.140329-1.19070.118835
31-0.116603-0.98940.162889
320.0542050.45990.32347
33-0.051726-0.43890.331022
34-0.007417-0.06290.474997
35-0.049796-0.42250.336949
36-0.011039-0.09370.462816
370.0371380.31510.376789
38-0.114249-0.96940.167786
390.0659310.55940.288798
40-0.16726-1.41920.080071
41-0.040557-0.34410.365873
420.116850.99150.16238
43-0.034086-0.28920.386617
44-0.08828-0.74910.228124
45-0.081722-0.69340.245133
460.0320680.27210.393159
470.0074250.0630.474969
480.0590780.50130.308846
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t12730754019xfzc5q3hvfzlni/1lhwq1273075317.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730754019xfzc5q3hvfzlni/1lhwq1273075317.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t12730754019xfzc5q3hvfzlni/2lhwq1273075317.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t12730754019xfzc5q3hvfzlni/2lhwq1273075317.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