Home » date » 2011 » Apr » 26 »

*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, 26 Apr 2011 14:14:46 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e.htm/, Retrieved Tue, 26 Apr 2011 16:11:18 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,3014 1,3201 1,2938 1,2694 1,2165 1,2037 1,2292 1,2256 1,2015 1,1786 1,1856 1,2103 1,1938 1,202 1,2271 1,277 1,265 1,2684 1,2811 1,2727 1,2611 1,2881 1,3213 1,2999 1,3074 1,3242 1,3516 1,3511 1,3419 1,3716 1,3622 1,3896 1,4227 1,4684 1,457 1,4718 1,4748 1,5527 1,5751 1,5557 1,5553 1,577 1,4975 1,437 1,3322 1,2732 1,3449 1,3239 1,2785 1,305 1,319 1,365 1,4016 1,4088 1,4268 1,4562 1,4816 1,4914 1,4614 1,4272 1,3686 1,3569 1,3406 1,2565 1,2209 1,277 1,2894 1,3067 1,3898 1,3661 1,322 1,336
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.935947.94170
20.8370527.10260
30.7399536.27870
40.6227595.28431e-06
50.4952654.20253.7e-05
60.3727643.1630.001143
70.2610522.21510.014959
80.1853961.57310.060036
90.1360011.1540.126158
100.102130.86660.194521
110.0860850.73050.233741
120.0847530.71920.237188
130.0991730.84150.201425
140.126561.07390.143228
150.1485131.26020.105838
160.1503331.27560.103095
170.1234651.04760.149156
180.0926070.78580.217283
190.0536690.45540.325098
20-0.012503-0.10610.457903
21-0.091151-0.77340.220897
22-0.166438-1.41230.081088
23-0.241439-2.04870.02207
24-0.291997-2.47770.007786
25-0.329139-2.79280.003344
26-0.363145-3.08140.001459
27-0.383198-3.25150.000874
28-0.395173-3.35320.000638
29-0.401653-3.40810.000537
30-0.384192-3.260.000852
31-0.361713-3.06920.001513
32-0.342553-2.90670.002426
33-0.316271-2.68370.004515
34-0.274578-2.32990.01131
35-0.22947-1.94710.027711
36-0.196114-1.66410.050221
37-0.175725-1.49110.070154
38-0.146298-1.24140.109248
39-0.109542-0.92950.177868
40-0.084939-0.72070.236705
41-0.083481-0.70840.240504
42-0.086654-0.73530.232277
43-0.090283-0.76610.223068
44-0.097384-0.82630.205673
45-0.108957-0.92450.179149
46-0.118217-1.00310.159585
47-0.123227-1.04560.149618
48-0.12442-1.05570.14731


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.935947.94170
2-0.313921-2.66370.004765
30.0393450.33390.36973
4-0.267822-2.27250.01302
5-0.054645-0.46370.322137
6-0.054641-0.46360.322152
70.0115840.09830.460987
80.2257061.91520.029721
90.0112390.09540.462143
100.0504590.42820.334905
11-0.020836-0.17680.430082
12-0.013615-0.11550.454174
130.0715160.60680.272936
140.0414850.3520.362928
15-0.02455-0.20830.417788
16-0.141321-1.19910.117201
17-0.225131-1.91030.030039
180.0805990.68390.248114
19-0.080149-0.68010.249316
20-0.091479-0.77620.220079
21-0.017171-0.14570.442281
22-0.051518-0.43710.331656
23-0.070361-0.5970.276181
240.1163770.98750.163354
25-0.06439-0.54640.293252
26-0.028784-0.24420.403869
27-0.101557-0.86170.195845
28-0.147644-1.25280.107167
29-0.050884-0.43180.333602
300.1194451.01350.157102
310.0274660.23310.408188
320.0139640.11850.453006
33-0.024446-0.20740.418129
340.1004040.8520.198532
350.0323810.27480.392142
36-0.021937-0.18610.426429
37-0.023801-0.2020.420261
380.1003190.85120.19873
390.0524080.44470.328935
40-0.133072-1.12910.131291
41-0.144598-1.2270.111918
420.0530640.45030.326937
43-0.050434-0.42790.334983
440.0228190.19360.423508
45-0.00911-0.07730.469298
46-0.018283-0.15510.438575
470.073230.62140.268156
48-0.089423-0.75880.22523
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/1akjb1303827281.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/1akjb1303827281.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/23rz51303827281.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/23rz51303827281.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/3m7l51303827281.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/26/t13038270780ebbt0cplditj8e/3m7l51303827281.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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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