Home » date » 2009 » Dec » 08 »

6 bis oef 2

*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, 08 Dec 2009 12:39:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301205o6znihh99s0k2ob.htm/, Retrieved Tue, 08 Dec 2009 20:40:07 +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/2009/Dec/08/t1260301205o6znihh99s0k2ob.htm/},
    year = {2009},
}
@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 = {2009},
    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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
5789 6333 6901 5813 6504 5619 5867 6084 5258 5601 5081 4678 5463 5546 6810 6407 5985 5119 5904 5034 4922 6083 4365 4464 4557 5885 5286 6017 5376 5935 6276 5510 5998 5193 4602 5326 5307 5014 6153 6441 5584 6427 6062 5589 6216 5809 4989 6706 7174 6122 8075 6292 6337 8576 6077 5931 6288 7167 6054 6468 6403 6927 7914 7728 8701 8522 6481 7502 7778 7424 6941 8574 9171 7718 9083 7164 8213 8124 7075 7026 7390 7778 6203 6905 7087 6495 7664 6516 6322 7828 6708 6717 5707 8063 6315 5893 6914 7319 6615 7341 6210 7408 6168 5878 6834 6211 5982 6973
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.489056-5.05881e-06
2-0.085732-0.88680.188582
30.2453412.53780.006297
4-0.142827-1.47740.071251
5-0.021824-0.22570.410915
60.020290.20990.41708
7-0.031308-0.32380.373342
8-0.082845-0.8570.196692
90.16341.69020.046949
10-0.09018-0.93280.176503
11-0.107035-1.10720.13535
120.3376363.49250.000348
13-0.240436-2.48710.007212
140.0220430.2280.410036
150.1800411.86240.032648
16-0.216504-2.23950.013595
170.0612420.63350.263882
180.0399780.41350.340022
19-0.056184-0.58120.281172
20-0.101688-1.05190.147614
210.1842521.90590.029672
22-0.148603-1.53720.063603
230.0299320.30960.378725
240.1470111.52070.065643
25-0.091526-0.94680.172948
260.0112070.11590.453966
270.0451830.46740.320592
28-0.082321-0.85150.198186
290.044470.460.323225
300.0100430.10390.458729
31-0.178551-1.84690.033759
320.1099251.13710.129025
330.0625150.64670.259618
34-0.056715-0.58670.279334
35-0.086549-0.89530.186327
360.2089852.16180.016433
37-0.070274-0.72690.234433
38-0.056576-0.58520.279814
390.0402640.41650.33894
40-0.000513-0.00530.497888
41-0.037191-0.38470.350608
42-0.053788-0.55640.289555
430.04840.50070.308823
440.0249320.25790.398491
45-0.097368-1.00720.158061
460.1173781.21420.113678
47-0.050452-0.52190.301416
480.0135020.13970.444593


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.489056-5.05881e-06
2-0.427048-4.41741.2e-05
3-0.037524-0.38820.349337
4-0.04005-0.41430.339749
5-0.054194-0.56060.288126
6-0.119639-1.23760.109294
7-0.129745-1.34210.091204
8-0.253123-2.61830.005059
9-0.034397-0.35580.361343
10-0.043621-0.45120.326372
11-0.197065-2.03850.021985
120.1689561.74770.041693
130.0399020.41280.340306
140.0444310.45960.323368
150.1500051.55170.061848
160.0011550.01190.495246
170.014260.14750.441505
180.0134120.13870.444959
190.0520010.53790.295882
20-0.112317-1.16180.123947
21-1e-04-0.0010.49959
22-0.116243-1.20240.115925
23-0.031678-0.32770.371899
24-0.019438-0.20110.420515
250.1167781.2080.114862
260.0662810.68560.247219
27-0.014291-0.14780.44138
28-0.023579-0.24390.403887
290.0205160.21220.416169
300.0398090.41180.340659
31-0.182761-1.89050.030699
32-0.093022-0.96220.169052
33-0.078723-0.81430.208637
340.1142881.18220.119872
35-0.142176-1.47070.072156
36-0.007478-0.07740.469243
370.0263790.27290.392739
38-0.017812-0.18420.427085
39-0.097239-1.00580.158379
40-0.01477-0.15280.439428
41-0.033817-0.34980.363587
42-0.211677-2.18960.015363
43-0.00092-0.00950.496213
440.0500880.51810.302725
45-0.089107-0.92170.179371
46-0.006137-0.06350.474752
470.0149930.15510.438523
48-0.092752-0.95940.169751
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301205o6znihh99s0k2ob/15uwu1260301157.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301205o6znihh99s0k2ob/15uwu1260301157.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301205o6znihh99s0k2ob/2o0he1260301157.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301205o6znihh99s0k2ob/2o0he1260301157.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 (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