Home » date » 2009 » Dec » 20 »

PAPER 5

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 18:17:09 -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/20/t1261271890scvu98w6m4uheo3.htm/, Retrieved Sun, 20 Dec 2009 02:18:12 +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/20/t1261271890scvu98w6m4uheo3.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
144,63 124,24 135,21 119,80 102,79 109,42 99,61 83,02 95,29 116,18 81,25 71,35 128,63 134,85 167,22 147,01 104,08 111,61 82,63 80,48 93,46 104,55 87,97 63,36 136,50 117,44 133,53 121,53 102,82 124,11 82,47 85,96 90,34 90,80 84,80 49,10 146,65 135,41 158,36 124,67 122,70 108,72 83,33 79,52 83,55 96,35 79,77 42,99 142,84 121,85 140,67 118,67 115,19 118,30 93,70 85,76 93,73 113,70 90,93 58,46 144,86 138,19 137,77 146,55 118,52 123,15 92,73 81,64 94,17 103,34 71,46 52,82 116,78 110,56 127,52 120,22 94,15 104,45 87,32 77,88 91,95 103,19 85,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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3755623.42150.000484
20.1520871.38560.084793
3-0.030007-0.27340.392622
4-0.212152-1.93280.028336
5-0.282185-2.57080.005965
6-0.481417-4.38591.7e-05
7-0.296714-2.70320.004164
8-0.212804-1.93870.027966
9-0.078918-0.7190.237087
100.047560.43330.332964
110.2604652.37290.009979
120.7737447.04910
130.2845112.5920.005636
140.1333951.21530.113851
15-0.002179-0.01990.492103
16-0.179115-1.63180.053254
17-0.256295-2.3350.01098
18-0.459641-4.18753.5e-05
19-0.281467-2.56430.00607
20-0.209089-1.90490.030129
21-0.112628-1.02610.153916
220.0371250.33820.368024
230.2397582.18430.015881
240.6430615.85860
250.2727262.48470.007489
260.1211431.10370.136464
270.0160270.1460.442134
28-0.125565-1.14390.127967
29-0.193108-1.75930.041106
30-0.365606-3.33080.000647
31-0.214645-1.95550.026944
32-0.197969-1.80360.037463
33-0.120503-1.09780.137725
340.014350.13070.44815
350.166541.51720.066502
360.482174.39281.6e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3755623.42150.000484
20.0128540.11710.453531
3-0.106215-0.96770.168012
4-0.199076-1.81370.036672
5-0.154754-1.40990.081156
6-0.376135-3.42680.000476
7-0.04898-0.44620.328295
8-0.152624-1.39050.084052
9-0.098707-0.89930.185556
10-0.118007-1.07510.142725
110.1221321.11270.134531
120.6781316.17810
13-0.386993-3.52570.000345
14-0.089537-0.81570.208498
150.069740.63540.263469
16-0.024033-0.2190.413612
17-0.117164-1.06740.144439
18-0.035637-0.32470.373123
190.0107660.09810.461051
20-0.105237-0.95880.170234
21-0.064198-0.58490.28011
220.1691031.54060.063609
230.0069930.06370.474677
24-0.11939-1.08770.13994
250.0950680.86610.194464
26-0.093001-0.84730.199639
27-0.094068-0.8570.196957
280.1017520.9270.178306
290.1038610.94620.173392
30-0.00522-0.04760.481091
31-0.043434-0.39570.346669
32-0.033163-0.30210.381656
330.072310.65880.255932
34-0.085163-0.77590.220016
35-0.100865-0.91890.1804
36-0.036128-0.32910.371439
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261271890scvu98w6m4uheo3/1g6241261271827.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261271890scvu98w6m4uheo3/1g6241261271827.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/20/t1261271890scvu98w6m4uheo3/2on391261271827.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t1261271890scvu98w6m4uheo3/2on391261271827.ps (open in new window)


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