Home » date » 2010 » Jun » 02 »

*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, 02 Jun 2010 15:19:05 +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/02/t1275491993gfoem7bais37ss7.htm/, Retrieved Wed, 02 Jun 2010 17:19:53 +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/02/t1275491993gfoem7bais37ss7.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 «
306 303 344 254 309 310 379 294 356 318 405 545 268 243 273 273 236 222 302 285 309 322 362 471 198 253 173 186 185 105 228 214 189 270 277 378 185 182 258 179 197 168 250 211 260 234 305 347 203 217 227 242 185 175 252 319 202 254 336 431 150 280 187 279 193 227 225 205 259 254 275 394 159 230 188 195 189 220 274
 
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.458833-4.05235.9e-05
20.0366510.32370.373517
3-0.078186-0.69050.245959
40.094710.83650.202726
50.0836070.73840.231244
6-0.324911-2.86950.002644
70.0662750.58530.280009
80.0836720.7390.231073
9-0.06547-0.57820.282392
100.0236820.20920.417435
11-0.240383-2.1230.018463
120.5575634.92432e-06
13-0.19013-1.67920.048559
14-0.048999-0.43270.333196
15-0.014256-0.12590.450064
160.0194230.17150.432121
170.1559371.37720.086195
18-0.375393-3.31540.000695
190.1505581.32970.093748
20-0.008679-0.07660.469549
210.0485160.42850.33474
22-0.117698-1.03950.150897
23-0.072712-0.64220.261323
240.382093.37450.000577
25-0.145008-1.28070.102051
26-0.054462-0.4810.315934
270.0088240.07790.469042
280.0383610.33880.367836
290.0392880.3470.364771
30-0.19581-1.72930.043852
310.0777210.68640.247244
32-0.025682-0.22680.410581
330.0754450.66630.253589
34-0.096654-0.85360.197963
35-0.100546-0.8880.188635
360.3855843.40540.000523
37-0.229193-2.02420.023188
380.0963550.8510.198691
39-0.131855-1.16450.123884
400.1226631.08330.140999
410.0112390.09930.460593
42-0.185535-1.63860.052662
430.0810.71540.238258
440.0161980.14310.443308
450.0038610.03410.486443
46-0.049089-0.43350.332907
47-0.068201-0.60230.27435
480.2764842.44180.008438


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.458833-4.05235.9e-05
2-0.220243-1.94510.027681
3-0.211295-1.86610.032893
4-0.051898-0.45840.323988
50.1387751.22560.112013
6-0.279288-2.46660.007917
7-0.31086-2.74540.003749
8-0.134795-1.19050.118735
9-0.228583-2.01880.023473
10-0.149689-1.3220.095012
11-0.48291-4.26492.8e-05
120.1100230.97170.167104
130.1975711.74490.04247
140.0738890.65260.257976
150.0685780.60570.273248
16-0.045736-0.40390.343684
170.0856240.75620.225901
18-0.107708-0.95130.172207
190.044010.38870.349284
20-0.013068-0.11540.454208
210.1140261.00710.158512
22-0.087868-0.7760.220039
23-0.098855-0.87310.192654
240.0613830.54210.294642
25-0.048426-0.42770.335029
26-0.055988-0.49450.311181
27-0.046758-0.4130.340387
280.028550.25210.400797
29-0.209129-1.8470.034272
300.0148390.13110.448035
310.013490.11910.452734
32-0.095098-0.83990.201771
33-0.006816-0.06020.476077
340.0167060.14750.441542
35-0.129634-1.14490.127877
360.0642430.56740.286042
37-0.059149-0.52240.301439
380.0741640.6550.257198
390.0231780.20470.419168
40-0.04114-0.36330.358666
410.0540470.47730.317231
42-0.012638-0.11160.455707
43-0.043788-0.38670.350006
440.0673250.59460.276917
450.0107430.09490.462328
46-0.021942-0.19380.423425
470.0270420.23880.405931
48-0.045782-0.40430.343535
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275491993gfoem7bais37ss7/103ie1275491942.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275491993gfoem7bais37ss7/103ie1275491942.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jun/02/t1275491993gfoem7bais37ss7/203ie1275491942.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jun/02/t1275491993gfoem7bais37ss7/203ie1275491942.ps (open in new window)


 
Parameters (Session):
par2 = grey ; par3 = FALSE ; par4 = Unknown ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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