Home » date » 2009 » Nov » 26 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 26 Nov 2009 13:12:06 -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/26/t1259266352ynk1ed25qs2mt4t.htm/, Retrieved Thu, 26 Nov 2009 21:12:34 +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/26/t1259266352ynk1ed25qs2mt4t.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 «
110.5 110.8 104.2 88.9 89.8 90 93.9 91.3 87.8 99.7 73.5 79.2 96.9 95.2 95.6 89.7 92.8 88 101.1 92.7 95.8 103.8 81.8 87.1 105.9 108.1 102.6 93.7 103.5 100.6 113.3 102.4 102.1 106.9 87.3 93.1 109.1 120.3 104.9 92.6 109.8 111.4 117.9 121.6 117.8 124.2 106.8 102.7 116.8 113.6 96.1 85 83.2 84.9 83 79.6 83.2 83.8 82.8 71.4
 
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
10.8660616.00020
20.7950195.50811e-06
30.6542714.53291.9e-05
40.5028123.48360.000533
50.363752.52010.007555
60.2031711.40760.082845
70.0882660.61150.27187
8-0.036136-0.25040.401688
9-0.114223-0.79140.216314
10-0.155253-1.07560.143736
11-0.204154-1.41440.081846
12-0.194729-1.34910.091814
13-0.167046-1.15730.126432
14-0.127718-0.88490.190322
15-0.091069-0.63090.265536
16-0.082389-0.57080.285397
17-0.05492-0.38050.352627
18-0.065608-0.45450.325744
19-0.053912-0.37350.355206
20-0.067472-0.46750.321142
21-0.079177-0.54860.292927
22-0.114396-0.79260.215968
23-0.119645-0.82890.205625
24-0.162799-1.12790.132483
25-0.168936-1.17040.123805
26-0.180723-1.25210.108303
27-0.212064-1.46920.074149
28-0.222668-1.54270.064737
29-0.240309-1.66490.051223
30-0.239489-1.65920.051796
31-0.245211-1.69890.047909
32-0.23683-1.64080.053687
33-0.225103-1.55960.062717
34-0.213336-1.4780.072965
35-0.159273-1.10350.137661
36-0.117818-0.81630.20919


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8660616.00020
20.1798751.24620.109368
3-0.273702-1.89630.031977
4-0.244175-1.69170.048594
5-0.036034-0.24970.401961
6-0.123208-0.85360.19878
70.0323270.2240.411866
8-0.057973-0.40160.344864
90.0281990.19540.422964
100.1150970.79740.214568
11-0.093401-0.64710.260324
120.0421380.29190.385795
130.1392080.96450.169825
14-0.003282-0.02270.490976
15-0.106084-0.7350.232966
16-0.172624-1.1960.118791
170.0052840.03660.485475
18-0.035027-0.24270.404645
190.0454260.31470.377169
20-0.035873-0.24850.402391
210.0230660.15980.436853
22-0.130842-0.90650.184599
230.0863580.59830.276224
24-0.139596-0.96720.169158
250.0724420.50190.309018
260.0165340.11450.454641
27-0.219657-1.52180.067307
28-0.102294-0.70870.240966
290.0255310.17690.430171
300.0216410.14990.440723
31-0.003184-0.02210.491246
32-0.007622-0.05280.479054
33-0.071213-0.49340.311998
34-0.00544-0.03770.485046
350.1517991.05170.149103
360.0088730.06150.475617
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259266352ynk1ed25qs2mt4t/1xnz71259266325.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259266352ynk1ed25qs2mt4t/1xnz71259266325.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259266352ynk1ed25qs2mt4t/26q5l1259266325.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259266352ynk1ed25qs2mt4t/26q5l1259266325.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 1 ; 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