Home » date » 2009 » Nov » 24 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 24 Nov 2009 11:00:15 -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/Nov/24/t1259085655xroas71zoz9tqwb.htm/, Retrieved Tue, 24 Nov 2009 19:00:57 +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/Nov/24/t1259085655xroas71zoz9tqwb.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 «
90398 90269 90390 88219 87032 87175 92603 93571 94118 92159 89528 89955 89587 89488 88521 86587 85159 84915 91378 92729 92194 89664 86285 86858 87184 86629 85220 84816 84831 84957 90951 92134 91790 86625 83324 82719 83614 81640 78665 77828 75728 72187 79357 81329 77304 75576 72932 74291 74988 73302 70483 69848 66466 67610 75091 76207 73454 72008 71362 74250
 
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.060889-0.41740.33913
20.0364790.25010.401804
30.2375361.62850.055056
40.0503190.3450.365827
5-0.011247-0.07710.469435
60.0838790.5750.284002
7-0.040398-0.2770.391514
80.1820021.24770.109154
9-0.158839-1.08890.140866
10-0.114617-0.78580.217972
110.2894871.98460.026521
12-0.284174-1.94820.028688
13-0.095316-0.65350.258324
14-0.074928-0.51370.304942
15-0.098614-0.67610.251156
16-0.093558-0.64140.26219
17-0.040001-0.27420.392554
18-0.04514-0.30950.379167
190.0613850.42080.337896
20-0.139783-0.95830.171407
21-0.016238-0.11130.455916
22-0.011585-0.07940.468516
23-0.07849-0.53810.296523
240.0427660.29320.385335
25-0.054948-0.37670.354044
260.0020920.01430.494309
270.0482870.3310.371043
28-0.038918-0.26680.395392
290.0386170.26470.396182
300.0841080.57660.283476
31-0.027304-0.18720.426159
320.0035550.02440.49033
33-0.080418-0.55130.292013
340.0046530.03190.487344
350.0600710.41180.341169
36-0.04276-0.29320.385349


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.060889-0.41740.33913
20.0328940.22550.411281
30.2428491.66490.051294
40.0846430.58030.282248
5-0.022607-0.1550.438748
60.0180850.1240.450929
7-0.067394-0.4620.323095
80.1863341.27740.10386
9-0.166802-1.14350.129303
10-0.151809-1.04080.151658
110.2476541.69780.048076
12-0.246821-1.69210.048622
13-0.052328-0.35870.360698
14-0.228336-1.56540.0621
150.0027510.01890.492517
16-0.009646-0.06610.473776
17-0.004346-0.02980.488179
180.0994120.68150.249439
19-0.074082-0.50790.306956
200.0738930.50660.307408
21-0.044214-0.30310.38157
22-0.15568-1.06730.145647
230.0699520.47960.316881
24-0.008795-0.06030.476089
250.0098210.06730.473302
26-0.078294-0.53680.296983
270.0192050.13170.447907
28-0.037263-0.25550.399741
29-0.015832-0.10850.457016
300.0949420.65090.259144
31-0.02738-0.18770.425957
32-0.035775-0.24530.40366
33-0.09978-0.68410.248649
34-0.052333-0.35880.360685
350.0333870.22890.409973
360.0057620.03950.484328
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085655xroas71zoz9tqwb/1dpa21259085613.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085655xroas71zoz9tqwb/1dpa21259085613.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085655xroas71zoz9tqwb/277jx1259085613.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259085655xroas71zoz9tqwb/277jx1259085613.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