Home » date » 2010 » Nov » 14 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 14 Nov 2010 22:44:30 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774628g06e68we0kyn8b4.htm/, Retrieved Sun, 14 Nov 2010 23:43:50 +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/2010/Nov/14/t1289774628g06e68we0kyn8b4.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W11
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1.35 1.91 1.31 1.19 1.3 1.14 1.1 1.02 1.11 1.18 1.24 1.36 1.29 1.73 1.41 1.15 1.31 1.15 1.08 1.1 1.14 1.24 1.33 1.49 1.38 1.96 1.36 1.24 1.35 1.23 1.09 1.08 1.33 1.35 1.38 1.5 1.47 2.09 1.52 1.29 1.52 1.27 1.35 1.29 1.41 1.39 1.45 1.53 1.45 2.11 1.53 1.38 1.54 1.35 1.29 1.33 1.47 1.47 1.54 1.59 1.5 2 1.51 1.4 1.62 1.44 1.29 1.28 1.4 1.39 1.46 1.49
 
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.3694313.13470.001245
20.2505962.12640.01845
30.2496952.11870.018782
4-0.03346-0.28390.388644
5-0.145623-1.23560.110303
6-0.276369-2.34510.010892
7-0.147691-1.25320.107094
8-0.077377-0.65660.256777
90.1713391.45390.075165
100.1824411.54810.062995
110.2596932.20360.015377
120.7530426.38980
130.255582.16870.016706
140.1382771.17330.122268
150.140581.19290.11842
16-0.11355-0.96350.169259
17-0.223106-1.89310.031181
18-0.315141-2.67410.004634
19-0.193613-1.64290.052386
20-0.141623-1.20170.116707
210.0665620.56480.286985
220.0669960.56850.285739
230.130591.10810.135754
240.5267434.46961.4e-05
250.097260.82530.205969
260.0364590.30940.378968
270.0288140.24450.403772
28-0.154056-1.30720.097651
29-0.2635-2.23590.01423
30-0.338655-2.87360.002665
31-0.231615-1.96530.026618
32-0.186052-1.57870.059394
33-0.04627-0.39260.347882
34-0.046227-0.39230.348016
350.0094950.08060.468005
360.3017652.56060.006274
370.0041540.03520.48599
38-0.03847-0.32640.372524
39-0.019325-0.1640.435103
40-0.161346-1.36910.087618
41-0.209652-1.7790.039734
42-0.237578-2.01590.023771
43-0.175459-1.48880.070451
44-0.161756-1.37250.087077
45-0.051868-0.44010.330588
46-0.051171-0.43420.33272
47-0.020467-0.17370.431308
480.1601461.35890.089213


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3694313.13470.001245
20.1321531.12140.132931
30.1420611.20540.115993
4-0.220147-1.8680.032915
5-0.1666-1.41360.080887
6-0.236851-2.00970.024103
70.1266221.07440.143111
80.1147680.97380.166698
90.393643.34010.000665
100.0104620.08880.464753
110.0600520.50960.305959
120.6229055.28551e-06
13-0.332285-2.81950.003104
14-0.171402-1.45440.075092
15-0.14737-1.25050.107588
16-0.03641-0.3090.379126
17-0.009392-0.07970.468351
180.0462810.39270.347847
19-0.028474-0.24160.404883
20-0.021938-0.18620.426425
21-0.08517-0.72270.236106
22-0.127107-1.07850.142197
23-0.02674-0.22690.410573
240.0166440.14120.444043
25-0.111404-0.94530.173836
260.0891180.75620.226001
27-0.065705-0.55750.28945
280.1033210.87670.19178
29-0.060703-0.51510.304037
30-0.060425-0.51270.304858
31-0.122366-1.03830.151301
320.0212130.180.428831
33-0.15701-1.33230.093485
340.0191640.16260.435641
35-0.056973-0.48340.315128
36-0.092051-0.78110.218658
370.1335411.13310.130458
38-0.04768-0.40460.343494
390.0406340.34480.365629
40-0.079551-0.6750.250916
410.1084220.920.180325
420.1198581.0170.156272
430.0223110.18930.425189
44-0.13944-1.18320.120314
450.0175760.14910.440933
460.0432710.36720.357285
47-0.013431-0.1140.45479
48-0.100453-0.85240.198417
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774628g06e68we0kyn8b4/10m121289774668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774628g06e68we0kyn8b4/10m121289774668.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774628g06e68we0kyn8b4/20m121289774668.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/14/t1289774628g06e68we0kyn8b4/20m121289774668.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 (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