Home » date » 2010 » Dec » 10 »

Workshop 9

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 10 Dec 2010 19:48:20 +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/Dec/10/t12920104599o7dyqnh29d14m1.htm/, Retrieved Fri, 10 Dec 2010 20:47:41 +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/2010/Dec/10/t12920104599o7dyqnh29d14m1.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
493 514 522 490 484 506 501 462 465 454 464 427 460 473 465 422 415 413 420 363 376 380 384 346 389 407 393 346 348 353 364 305 307 312 312 286 324 336 327 302 299 311 315 264 278 278 287 279 324 354 354 360 363 385 412 370 389 395 417 404
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9173397.10570
20.8427386.52780
30.7902256.12110
40.767395.94420
50.6780155.25191e-06
60.5933924.59641.1e-05
70.5396594.18024.8e-05
80.5225444.04767.5e-05
90.441263.4180.000569
100.3864862.99370.001999
110.3504012.71420.004331
120.3447582.67050.004866
130.242721.88010.032476
140.1533431.18780.119798
150.0936530.72540.235504
160.066570.51560.303997
17-0.010505-0.08140.46771
18-0.073697-0.57090.285116
19-0.114238-0.88490.189875
20-0.114971-0.89060.188361
21-0.165516-1.28210.102372
22-0.198128-1.53470.065058
23-0.211392-1.63740.053387
24-0.201761-1.56280.061676
25-0.263563-2.04150.0228
26-0.318492-2.4670.008248
27-0.348523-2.69970.004503
28-0.347574-2.69230.004592
29-0.383286-2.96890.002145
30-0.416041-3.22260.001027
31-0.43166-3.34360.000714
32-0.410617-3.18060.001163
33-0.414125-3.20780.001074
34-0.408291-3.16260.001227
35-0.393662-3.04930.001705
36-0.357932-2.77250.003699
37-0.363818-2.81810.003266
38-0.366473-2.83870.003087
39-0.352558-2.73090.00414
40-0.32075-2.48450.00789
41-0.302192-2.34080.011293
42-0.286157-2.21660.015228
43-0.258478-2.00220.024897
44-0.204491-1.5840.059227
45-0.167474-1.29730.099755
46-0.125284-0.97040.167861
47-0.085628-0.66330.254849
48-0.03679-0.2850.388323


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9173397.10570
20.0077430.060.476188
30.1011610.78360.218182
40.1720821.33290.093795
5-0.411097-3.18430.001151
60.0087810.0680.473
70.1202710.93160.177635
80.0850810.6590.256197
9-0.29258-2.26630.013526
100.2528431.95850.027411
11-0.028689-0.22220.412446
12-0.038995-0.30210.381828
13-0.478496-3.70640.00023
140.1208250.93590.176536
150.0074080.05740.477216
16-0.097034-0.75160.227607
170.0874760.67760.250318
180.1108560.85870.196965
19-0.107935-0.83610.20322
20-0.066933-0.51850.303021
210.1101160.8530.198539
22-0.100156-0.77580.220457
23-0.00801-0.0620.475366
24-0.06603-0.51150.30545
25-0.106556-0.82540.206213
26-0.086719-0.67170.25217
270.0208520.16150.436113
28-0.01647-0.12760.449457
290.0662990.51350.304728
30-0.100598-0.77920.219454
31-0.023575-0.18260.427859
320.0061960.0480.480941
330.1232650.95480.171754
34-0.067497-0.52280.301508
35-0.051504-0.3990.345673
360.0619540.47990.316523
37-0.018204-0.1410.444168
38-0.073507-0.56940.28561
390.0474590.36760.357227
400.0091410.07080.471894
410.0556540.43110.333973
42-0.032441-0.25130.401226
430.0793460.61460.270567
440.022820.17680.430144
45-0.063508-0.49190.312281
460.0683930.52980.299114
47-0.038204-0.29590.384154
480.0098390.07620.469753
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920104599o7dyqnh29d14m1/1mus51292010495.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920104599o7dyqnh29d14m1/1mus51292010495.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/10/t12920104599o7dyqnh29d14m1/2mus51292010495.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/10/t12920104599o7dyqnh29d14m1/2mus51292010495.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