Home » date » 2011 » May » 04 »

*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, 04 May 2011 16:48:57 +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/May/04/t13045275958p49aw0ighvlvlg.htm/, Retrieved Wed, 04 May 2011 18:46:39 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
31.900 31.815 31.075 31.070 31.300 31.410 30.310 31.440 31.355 31.380 31.975 31.905 32.565 32.780 32.850 32.910 32.910 33.755 34.130 34.330 34.120 33.600 33.715 33.535 33.745 34.295 33.940 34.245 34.395 33.640 33.890 33.905 33.930 33.975 33.880 33.800 33.165 33.660 33.545 33.590 33.810 33.720 33.660 33.915 34.265 34.175 33.735 33.855 34.210 33.950 33.130 32.195 33.160 33.255 32.260 31.795 31.875 31.985 31.835 32.200 32.275 32.515 32.700 32.680 32.135 31.460 30.755 31.090 31.270 31.110 30.835 31.025 30.800 30.790
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.046533-0.39760.34605
2-0.176619-1.5090.067803
30.0466130.39830.345799
40.0584590.49950.309474
50.1228761.04980.148625
6-0.108458-0.92670.178578
70.0025840.02210.491223
80.0213690.18260.42782
90.0083570.07140.471636
100.0881680.75330.226845
11-0.149265-1.27530.10312
12-0.017408-0.14870.441087
13-0.022553-0.19270.423868
14-0.043429-0.37110.355836
150.297072.53820.006638
16-0.064333-0.54970.292115
17-0.109255-0.93350.176825
180.0517210.44190.329933
19-0.03126-0.26710.395078
200.1373551.17360.122193
21-0.023048-0.19690.422219
22-0.068956-0.58920.278785
23-0.017283-0.14770.441506
24-0.045287-0.38690.349966
250.0542820.46380.322089
26-0.09106-0.7780.219537
270.042580.36380.358528
280.0340020.29050.386125
29-0.0655-0.55960.288721
300.166131.41940.080017
31-0.057052-0.48750.313698
32-0.062308-0.53240.298046
33-0.037398-0.31950.375118
340.0374130.31970.375072
350.0513410.43870.331102
360.0101830.0870.465453
37-0.051138-0.43690.331727
38-0.139247-1.18970.119004
39-0.095784-0.81840.207901
400.0579670.49530.310949
41-0.089002-0.76040.224723
42-0.082035-0.70090.242795
430.0194570.16620.434214
440.0249170.21290.416003
450.1424411.2170.113759
46-0.12153-1.03840.151267
47-0.138732-1.18530.119867
480.0434510.37120.355765


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.046533-0.39760.34605
2-0.179173-1.53090.065064
30.0295970.25290.400537
40.0319060.27260.392962
50.1460951.24820.107966
6-0.085066-0.72680.234836
70.0379370.32410.373381
8-0.028261-0.24150.404938
90.0154230.13180.447762
100.0805540.68830.246738
11-0.122832-1.04950.14871
12-0.013402-0.11450.454574
13-0.085616-0.73150.233408
14-0.04858-0.41510.339656
150.2966652.53470.006699
16-0.008237-0.07040.472044
17-0.030877-0.26380.396334
180.0171320.14640.442016
19-0.0999-0.85350.198073
200.1097380.93760.17577
210.0650380.55570.290061
22-0.063559-0.5430.294375
23-0.049316-0.42140.337368
24-0.106441-0.90940.183058
25-0.045641-0.390.348852
260.03190.27260.392981
270.0976790.83460.203341
280.0245480.20970.417227
29-0.021005-0.17950.429034
300.0367050.31360.377357
31-0.018161-0.15520.438558
320.0341080.29140.38578
33-0.091165-0.77890.219275
340.054650.46690.320971
35-0.099545-0.85050.19891
360.047470.40560.343117
37-0.018118-0.15480.438703
38-0.138291-1.18160.120608
39-0.111784-0.95510.171345
40-0.023022-0.19670.422303
41-0.081984-0.70050.242929
42-0.043762-0.37390.35478
430.0197810.1690.433129
440.0335940.2870.387452
450.1234671.05490.147475
46-0.078626-0.67180.251923
47-0.10799-0.92270.179609
48-0.004226-0.03610.485649
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/1nb1h1304527734.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/1nb1h1304527734.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/27axq1304527734.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/27axq1304527734.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/3sanr1304527734.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/04/t13045275958p49aw0ighvlvlg/3sanr1304527734.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