Home » date » 2011 » Apr » 07 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 06 Apr 2011 23:50:01 +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/07/t13021338536puoji6k4aj2ajl.htm/, Retrieved Thu, 07 Apr 2011 01:50:55 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
70938 34077 45409 40809 37013 44953 19848 32745 43412 34931 33008 8620 68906 39556 50669 36432 40891 48428 36222 33425 39401 37967 34801 12657 69116 41519 51321 38529 41547 52073 38401 40898 40439 41888 37898 8771 68184 50530 47221 41756 45633 48138 39486 39341 41117 41629 29722 7054 56676 34870 35117 30169 30936 35699 33228 27733 33666 35429 27438 8170 63410 38040 45389 37353 37024 50957 37994 36454 46080 43373 37395 10963 75001
 
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' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.539401-4.5771e-05
20.0877520.74460.229469
3-0.07815-0.66310.254685
40.0626590.53170.298293
50.1740711.4770.072012
6-0.296166-2.51310.007104
70.1162890.98670.163536
80.0724680.61490.270277
9-0.078515-0.66620.2537
100.1348721.14440.128119
11-0.528705-4.48621.3e-05
120.7609796.45710
13-0.401372-3.40580.000541
140.0706490.59950.27537
15-0.069081-0.58620.279797
160.0507330.43050.334063
170.1305551.10780.135818
18-0.228488-1.93880.028224
190.1001520.84980.199121
200.0482090.40910.341852
21-0.057405-0.48710.313835
220.1046540.8880.188743
23-0.431511-3.66150.000238
240.6071845.15211e-06
25-0.309243-2.6240.005302
260.0415020.35220.362876
27-0.056974-0.48340.315125
280.032280.27390.392472
290.1224541.03910.151128
30-0.200368-1.70020.046706
310.0798880.67790.250012
320.0503990.42770.335091
33-0.062154-0.52740.299771
340.1012140.85880.196642
35-0.348484-2.9570.0021
360.4658833.95318.9e-05
37-0.225146-1.91040.03003
380.0330580.28050.389945
39-0.040144-0.34060.367185
400.0253170.21480.415258
410.0875110.74260.230083
42-0.14101-1.19650.117712
430.0557810.47330.318709
440.0397780.33750.368352
45-0.053535-0.45430.325503
460.1093970.92830.178185
47-0.27414-2.32620.011415
480.3250922.75850.003678


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.539401-4.5771e-05
2-0.286584-2.43170.008758
3-0.264032-2.24040.014076
4-0.16299-1.3830.085467
50.2181241.85080.034147
6-0.065374-0.55470.290403
7-0.112057-0.95080.172433
80.084240.71480.238522
9-0.041235-0.34990.36372
100.1508771.28020.102286
11-0.555946-4.71746e-06
120.3849983.26680.000834
130.0929030.78830.216552
140.0346790.29430.384701
150.0285580.24230.404611
160.0929140.78840.216526
17-0.144874-1.22930.111482
18-0.03462-0.29380.384892
190.0659550.55960.288728
20-0.034165-0.28990.386363
210.0379360.32190.374232
22-0.125917-1.06840.144446
23-0.0331-0.28090.389811
240.0488570.41460.339845
250.0609860.51750.303203
26-0.024934-0.21160.416519
270.0375430.31860.37549
28-0.084523-0.71720.237785
29-0.038179-0.3240.373453
30-0.020771-0.17620.430297
31-0.041579-0.35280.362631
320.0262530.22280.412175
33-0.061718-0.52370.30105
34-0.036564-0.31030.378633
350.0287990.24440.403821
360.005040.04280.483005
37-0.020949-0.17780.429706
380.0654890.55570.290071
390.0097380.08260.467188
400.0198790.16870.433261
41-0.029711-0.25210.400838
420.0227840.19330.423623
430.0059420.05040.479963
44-0.033089-0.28080.389847
45-0.02013-0.17080.432427
460.0863970.73310.232939
470.0756970.64230.261355
48-0.059648-0.50610.307157
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/14suv1302133800.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/14suv1302133800.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/20rmw1302133800.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/20rmw1302133800.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/33b3j1302133800.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t13021338536puoji6k4aj2ajl/33b3j1302133800.ps (open in new window)


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