Home » date » 2011 » May » 20 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 May 2011 23:10:13 +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/20/t13058464215c684k2dvyhwbwg.htm/, Retrieved Fri, 20 May 2011 01:07:01 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
90 51 47 59 54 79 59 80 46 62 55 77 72 72 71 50 66 78 59 52 71 98 70 84 90 98 98 78 59 0 58 55 62 80 91 86 61 49 61 56 73 85 82 32 39 30 51 48 57 59 32 56 54 74 62 78 72 48 59 61 80 69 58 63 27 23 34 45 51 51 73 37 35 66 54 30 66 61 37 55 64 53 63 70 72 52 53 50 60 73 66 78
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time5 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4020813.85660.000106
20.1740781.66970.049189
30.0249380.23920.405742
4-0.058102-0.55730.28934
5-0.089763-0.8610.195745
60.0489480.46950.319914
70.2978072.85650.002648
80.0548490.52610.300044
90.0390630.37470.354381
100.0211990.20330.419661
11-0.058714-0.56320.287346
12-0.072478-0.69520.244346
130.0537510.51560.3037
140.287372.75640.003524
150.0816380.7830.217806
160.0356750.34220.366498
17-0.013333-0.12790.449258
18-0.026238-0.25170.400929
190.006750.06470.47426
200.0677530.64990.258699
210.2946922.82660.002886
22-0.023358-0.2240.41161
23-0.096205-0.92280.179271
24-0.201877-1.93630.027948
25-0.08813-0.84530.200065
26-0.088609-0.84990.198791
270.0278550.26720.394966
280.2021051.93850.027812
290.0097660.09370.462788
30-0.031624-0.30330.381164
31-0.1308-1.25460.106403
32-0.130765-1.25430.106463
33-0.076923-0.73780.231252
340.0070540.06770.473101
350.2380882.28370.012347
360.0992550.9520.171792
37-0.0105-0.10070.459999
38-0.10055-0.96440.168677
39-0.145798-1.39840.082671
40-0.158644-1.52170.065762
41-0.145994-1.40030.08239
420.0428430.41090.341036
43-0.06441-0.61780.269116
44-0.140862-1.35110.089988
45-0.195833-1.87840.031749
46-0.065271-0.62610.266414
47-0.109993-1.0550.14709
48-0.055464-0.5320.298008
490.0682210.65430.25726
50-0.057411-0.55070.291599
51-0.128611-1.23360.110248
52-0.139246-1.33560.092487
53-0.093444-0.89630.18622
54-0.142486-1.36670.087528
55-0.056068-0.53780.296012
560.0856530.82160.206728
57-0.001076-0.01030.495895
58-0.024128-0.23140.408749
59-0.031169-0.2990.382821
60-0.059887-0.57440.283544


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4020813.85660.000106
20.0148020.1420.443705
3-0.059621-0.57190.284406
4-0.060728-0.58250.280832
5-0.044855-0.43020.334016
60.1356741.30130.098196
70.2998612.87620.002501
8-0.241488-2.31630.011382
90.0174920.16780.433561
100.048340.46370.321993
11-0.049701-0.47670.317347
120.019230.18440.427036
130.0697880.66940.252463
140.2134582.04740.021734
15-0.108325-1.0390.150761
16-0.077652-0.74480.229142
17-0.005708-0.05480.478227
180.108461.04030.150461
190.0932280.89420.18677
20-0.052427-0.50290.308131
210.1726411.65590.050574
22-0.24687-2.36790.009992
23-0.100107-0.96020.169738
24-0.121533-1.16570.123374
250.2099732.0140.023465
26-0.023047-0.22110.412768
27-0.037377-0.35850.360392
28-0.043684-0.4190.338097
29-0.007445-0.07140.471615
300.0075220.07210.47132
31-0.093238-0.89430.186746
32-0.021755-0.20870.417586
330.1409011.35150.089928
34-0.066076-0.63380.263897
350.0485590.46580.321243
360.0436420.41860.338243
37-0.063245-0.60660.272798
380.0270190.25920.398045
39-0.143052-1.37210.086683
40-0.035694-0.34240.36643
41-0.061166-0.58670.279428
42-0.043611-0.41830.338349
430.0094110.09030.464136
44-0.143008-1.37170.086748
45-0.005939-0.0570.47735
460.0649870.62330.267304
47-0.064974-0.62320.267344
48-0.030326-0.29090.385902
49-0.049139-0.47130.319262
50-0.054727-0.52490.300449
51-0.008815-0.08460.466401
520.0015730.01510.493997
53-0.018037-0.1730.431515
54-0.083247-0.79850.213324
550.0237080.22740.410308
56-0.056368-0.54070.295023
570.0855210.82030.207086
580.1238041.18750.119047
590.0705650.67680.250104
60-0.097936-0.93940.175
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/1dyyh1305846606.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/1dyyh1305846606.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/25xrz1305846606.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/25xrz1305846606.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/3lcec1305846606.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058464215c684k2dvyhwbwg/3lcec1305846606.ps (open in new window)


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