Home » date » 2009 » Dec » 08 »

*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:46:31 -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/t1260301677afknh731uif9pvm.htm/, Retrieved Tue, 08 Dec 2009 20:47:59 +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/t1260301677afknh731uif9pvm.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 «
8,55 8,56 8,57 8,59 8,61 8,62 8,62 8,63 8,71 8,72 8,74 8,75 8,79 8,82 8,82 8,84 8,86 8,86 8,85 8,86 8,86 8,87 8,88 8,9 8,91 8,96 8,98 8,99 9 9 9 9,01 9,01 8,99 8,99 8,99 9 9 9,02 9,05 9,05 9,05 9,06 9,06 9,08 9,07 9,06 9,08 9,07 9,11 9,15 9,15 9,17 9,2 9,23 9,26 9,27 9,28 9,29 9,29 9,11 9,06 9,11 9,13 9,13 9,19 9,2 9,23 9,24 9,28 9,32 9,32 9,32 9,36 9,37 9,38 9,41 9,44 9,44 9,44 9,47 9,48 9,56 9,58 9,56 9,58 9,7 9,74 9,76 9,78 9,84 9,88 9,96 9,97 9,96 9,96
 
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
R Framework
error message
Warning: there are blank lines in the 'Data' field.
Please, use NA for missing data - blank lines are simply
 deleted and are NOT treated as missing values.


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9505519.31350
20.8979918.79850
30.844118.27060
40.789717.73750
50.7391127.24180
60.6905136.76560
70.6444916.31470
80.5996985.87580
90.5595255.48220
100.5216755.11131e-06
110.4923344.82393e-06
120.4638384.54478e-06
130.4341384.25372.4e-05
140.4058713.97676.8e-05
150.381873.74150.000156
160.3575243.5030.00035
170.335233.28460.000713
180.3113873.0510.001475
190.2854452.79680.003118
200.2607452.55480.006099
210.2370362.32250.01116
220.2138792.09560.019376
230.1925071.88620.031147
240.1734551.69950.046231
250.1529711.49880.068603
260.134661.31940.095089
270.1208551.18410.119642
280.1090581.06850.143978
290.0973040.95340.171396
300.0872850.85520.19728
310.0777430.76170.224046
320.0726580.71190.239128
330.0679920.66620.253445
340.0627450.61480.270078
350.060160.58940.278473
360.0539330.52840.29921
370.0344090.33710.368374
380.0135810.13310.44721
39-0.006603-0.06470.474276
40-0.025708-0.25190.400835
41-0.045089-0.44180.32982
42-0.063348-0.62070.268139
43-0.080629-0.790.215738
44-0.097023-0.95060.17209
45-0.111561-1.09310.138549
46-0.127068-1.2450.10808
47-0.141112-1.38260.084996
48-0.151761-1.4870.070152


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9505519.31350
2-0.057614-0.56450.286866
3-0.040463-0.39650.346324
4-0.033865-0.33180.370378
50.0097190.09520.462166
6-0.010481-0.10270.459211
7-0.004082-0.040.484091
8-0.017868-0.17510.430697
90.0197660.19370.423422
10-0.004251-0.04160.483433
110.0625110.61250.270834
12-0.017663-0.17310.431482
13-0.032675-0.32010.374776
14-0.004739-0.04640.481532
150.0313060.30670.379856
16-0.021578-0.21140.416504
170.0055310.05420.478446
18-0.03372-0.33040.370914
19-0.03054-0.29920.382706
20-0.001919-0.01880.492521
21-0.000433-0.00420.498314
22-0.014432-0.14140.443922
23-0.001322-0.0130.494846
240.0066460.06510.47411
25-0.025425-0.24910.401901
260.0031140.03050.487862
270.0302140.2960.38392
280.0035180.03450.486288
29-0.017196-0.16850.433279
300.0078530.07690.469416
31-0.001236-0.01210.495181
320.036490.35750.360741
33-0.005975-0.05850.47672
34-0.010203-0.10.460288
350.0198150.19410.423235
36-0.037359-0.3660.35757
37-0.137384-1.34610.090723
38-0.016914-0.16570.434363
39-0.005825-0.05710.477302
400.0024070.02360.490615
41-0.026984-0.26440.396023
42-0.004323-0.04240.483151
43-0.010224-0.10020.460207
44-0.012835-0.12580.450094
45-0.007302-0.07150.471556
46-0.032184-0.31530.376596
47-0.024255-0.23770.406329
480.0205230.20110.42053
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301677afknh731uif9pvm/1b3nl1260301589.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/08/t1260301677afknh731uif9pvm/1b3nl1260301589.ps (open in new window)


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