Home » date » 2007 » Nov » 30 » attachments

WS11_Q1_Webstek

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Nov 2007 07:34:20 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Nov/30/t11964326454fq1rqwon560e9x.htm/, Retrieved Fri, 30 Nov 2007 15:24:07 +0100
 
User-defined keywords:
workshop 11, Rik, Tim, Giel, ARIMA
 
Dataseries X:
» Textbox « » Textfile « » CSV «
513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542
 
Text written by user:
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.1274230.9870.163801
2-0.028998-0.22460.58848
30.0268440.20790.417992
4-0.005511-0.04270.516954
50.0724360.56110.288414
60.0783380.60680.273136
70.1066760.82630.205951
80.0997010.77230.221491
90.1550561.20110.117224
10-0.100006-0.77460.779203
11-0.038676-0.29960.617235
12-0.169341-1.31170.902693
130.0133320.10330.459046
140.2285761.77050.040858
150.0672210.52070.302248
160.0488940.37870.353111
17-0.162511-1.25880.893512
180.0897510.69520.244805
190.0604930.46860.320534
200.0026920.02090.491716
210.0467850.36240.359165
220.066870.5180.30319
230.2059541.59530.057949
24-0.037824-0.2930.614726
25-0.104498-0.80940.789268
26-0.184957-1.43270.921429
270.0592070.45860.324084
28-0.005564-0.04310.517117
290.0995990.77150.221723
30-0.104394-0.80860.78904
31-0.128496-0.99530.838213
320.0410560.3180.375789
33-0.087441-0.67730.749595
340.0073670.05710.477342
35-0.05517-0.42730.66467
36-0.050816-0.39360.652373
370.0429510.33270.370261
380.0512650.39710.346353
39-0.099911-0.77390.778989
40-0.053827-0.41690.660896
410.0722460.55960.288914
42-0.011776-0.09120.536187
430.071880.55680.289875
44-0.083766-0.64890.740545
45-0.108399-0.83970.797783
46-0.077914-0.60350.725782
47-0.131512-1.01870.843778


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.1274230.9870.163801
1-0.045981-0.35620.638518
20.037250.28850.386964
3-0.015667-0.12140.548093
40.0792890.61420.270712
50.0575910.44610.328567
60.0986540.76420.22388
70.0773040.59880.275782
80.147271.14070.129254
9-0.143793-1.11380.865101
10-0.004198-0.03250.512916
11-0.221445-1.71530.954275
120.054310.42070.337746
130.1682421.30320.098743
140.0314680.24370.404129
150.0424190.32860.371811
16-0.18484-1.43180.9213
170.1782631.38080.086228
180.055940.43330.333173
190.0128330.09940.460574
200.0407750.31580.376608
21-0.041449-0.32110.625362
220.1798331.3930.084383
23-0.118099-0.91480.818018
24-0.080923-0.62680.733425
25-0.120028-0.92970.821882
260.0132390.10250.459331
27-0.052004-0.40280.655743
280.0521610.4040.343811
29-0.178139-1.37990.913625
300.0358470.27770.391109
31-0.020266-0.1570.562106
320.043490.33690.368696
330.0160490.12430.450741
340.02920.22620.410914
35-0.113709-0.88080.809026
36-0.019505-0.15110.559791
370.0238060.18440.427159
38-0.009538-0.07390.529324
390.0608730.47150.319491
400.0027190.02110.491633
41-0.061178-0.47390.681348
420.0191970.14870.441146
430.0046450.0360.485709
44-0.093256-0.72240.76356
45-0.093115-0.72130.763226
46-0.166244-1.28770.898605
47-0.025302-0.1960.577359
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t11964326454fq1rqwon560e9x/1xtxe1196433258.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t11964326454fq1rqwon560e9x/1xtxe1196433258.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t11964326454fq1rqwon560e9x/26amb1196433258.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Nov/30/t11964326454fq1rqwon560e9x/26amb1196433258.ps (open in new window)


 
Parameters:
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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 1:par1) {
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(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-1,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(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:

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