Home » date » 2009 » Dec » 16 »

*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, 16 Dec 2009 02:10:42 -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/16/t12609547230iqyav4vuob8yvk.htm/, Retrieved Wed, 16 Dec 2009 10:12:05 +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/16/t12609547230iqyav4vuob8yvk.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 «
0,62 0,62 0,62 0,63 0,62 0,63 0,63 0,62 0,63 0,63 0,63 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,63 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,64 0,65 0,65 0,65 0,65 0,65 0,65 0,66 0,66 0,66 0,66 0,68 0,69 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,71 0,7 0,71 0,7 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,7 0,71 0,71 0,7 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,7 0,7 0,68 0,68 0,69 0,69 0,7 0,7 0,7 0,7 0,7 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,71 0,76 0,77 0,78 0,85 0,89 0,9 0,91 0,91 0,91 0,9 0,89 0,88 0,87 0,86 0,87 0,87 0,87 0,85
 
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.96914511.13460
20.92769810.65840
30.88124810.12480
40.8291349.5260
50.7751028.90520
60.7196038.26760
70.6625617.61220
80.60396.93830
90.545986.27280
100.487845.60490
110.4307324.94871e-06
120.3747294.30531.6e-05
130.3208573.68640.000166
140.2702953.10550.001163
150.2291432.63270.004741
160.2021772.32280.010859
170.1769012.03240.022058
180.1543451.77330.039244
190.1431831.64510.051169
200.1300331.4940.068785
210.1185771.36240.087704
220.1088881.2510.106569
230.1002281.15150.125797
240.0928931.06730.143901
250.0865880.99480.160821
260.0807250.92750.17769
270.075450.86690.193796
280.0718660.82570.205239
290.068870.79130.215107
300.0652860.75010.227272
310.0611130.70210.241917
320.0566450.65080.258153
330.0549740.63160.26437
340.0535970.61580.26955
350.0546460.62780.265599
360.0531930.61110.271078
370.0479190.55050.291439
380.0422020.48490.314287
390.0348720.40060.344664
400.0273940.31470.37673
410.0190330.21870.41362
420.0106730.12260.451297
430.0045240.0520.479313
44-7.7e-05-9e-040.499646
45-0.002542-0.02920.488371
46-0.005007-0.05750.477104
47-0.007178-0.08250.467198
48-0.008613-0.0990.460661


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96914511.13460
2-0.189994-2.18290.015407
3-0.077063-0.88540.18878
4-0.099505-1.14320.127506
5-0.031664-0.36380.358297
6-0.04155-0.47740.316942
7-0.046239-0.53120.29807
8-0.053314-0.61250.270619
9-0.013281-0.15260.439478
10-0.041957-0.4820.315285
11-0.018346-0.21080.416693
12-0.028123-0.32310.373562
13-0.008941-0.10270.459168
140.003340.03840.484722
150.1050171.20660.114882
160.1618761.85980.032569
17-0.079006-0.90770.182841
18-0.019746-0.22690.410442
190.1395181.60290.05567
20-0.11753-1.35030.089612
21-0.00406-0.04660.481434
22-0.022911-0.26320.396392
23-0.010396-0.11940.452553
24-0.003332-0.03830.484763
25-0.016545-0.19010.424768
26-0.018102-0.2080.417784
27-0.000564-0.00650.497419
280.0131710.15130.439975
290.0174120.20.420875
300.012540.14410.442832
310.0081430.09360.462802
32-0.02745-0.31540.376488
330.0848310.97460.165762
340.0260320.29910.382675
35-0.019862-0.22820.409923
36-0.058194-0.66860.252461
37-0.038184-0.43870.330798
38-0.027042-0.31070.378263
39-0.015132-0.17390.431123
40-0.009335-0.10730.457376
41-0.021301-0.24470.403525
420.0080890.09290.463048
430.0518540.59580.276178
440.0131380.15090.440124
450.0283920.32620.372394
46-0.014019-0.16110.436143
470.0104470.120.452322
480.0397280.45640.32441
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609547230iqyav4vuob8yvk/1b6q61260954640.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t12609547230iqyav4vuob8yvk/1b6q61260954640.ps (open in new window)


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