Home » date » 2010 » Aug » 14 »

Tijdreeks 2 - stap 18

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 14 Aug 2010 11:02:44 +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/Aug/14/t1281783736djxjnmo231b5cte.htm/, Retrieved Sat, 14 Aug 2010 13:02:16 +0200
 
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/Aug/14/t1281783736djxjnmo231b5cte.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:
Reuben Vermoet
 
Dataseries X:
» Textbox « » Textfile « » CSV «
172 171 170 168 166 165 166 168 169 169 170 172 173 172 165 152 148 145 141 149 146 144 149 150 149 156 150 137 130 126 125 123 117 111 114 121 122 131 125 116 106 98 99 96 95 83 85 98 102 110 101 90 88 83 88 85 86 80 79 97 105 116 99 87 82 81 85 84 78 77 79 85 96 108 98 86 80 74 75 82 71 66 71 75
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.299262.72640.003905
2-0.094869-0.86430.194957
3-0.296188-2.69840.004219
4-0.350559-3.19370.000993
50.0301470.27470.392133
60.1057370.96330.169094
7-0.036507-0.33260.370141
8-0.393555-3.58550.000284
9-0.290976-2.65090.004806
10-0.04349-0.39620.346481
110.2238562.03940.022294
120.6922916.30710
130.3342423.04510.001558
14-0.024979-0.22760.410269
15-0.257214-2.34330.010752
16-0.292437-2.66420.004635
170.0694420.63260.264351
180.1299141.18360.119981
19-0.069059-0.62920.265486
20-0.333891-3.04190.001573
21-0.303743-2.76720.003484
22-0.016192-0.14750.44154
230.253692.31120.01165
240.4306373.92339e-05
250.1949861.77640.039665
26-0.034854-0.31750.375819
27-0.148162-1.34980.090372
28-0.186013-1.69470.046945
290.0135760.12370.450932
300.1097180.99960.16021
31-0.086984-0.79250.215175
32-0.24833-2.26240.013143
33-0.225921-2.05820.021352
34-0.05028-0.45810.324049
350.2498872.27660.012693
360.3131172.85260.002736
370.1101971.00390.159162
38-0.039652-0.36120.359416
39-0.089039-0.81120.209791
40-0.06283-0.57240.284295
410.0016760.01530.493927
420.0585250.53320.297664
43-0.123055-1.12110.132743
44-0.151713-1.38220.085314
45-0.13401-1.22090.112792
46-0.080146-0.73020.233673
470.1471781.34090.091813
480.2199152.00350.024192


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.299262.72640.003905
2-0.202567-1.84550.034267
3-0.230707-2.10180.019299
4-0.242081-2.20550.015093
50.1723491.57020.06009
6-0.083462-0.76040.224591
7-0.211415-1.92610.028758
8-0.515232-4.6945e-06
9-0.085393-0.7780.2194
10-0.138177-1.25880.105807
11-0.079579-0.7250.235246
120.4520274.11824.5e-05
130.142111.29470.09951
140.0837230.76280.223887
15-0.105825-0.96410.168894
16-0.041845-0.38120.352003
170.150081.36730.087612
180.0384690.35050.363436
19-0.168476-1.53490.064307
200.0955840.87080.193185
210.110121.00320.159331
220.0777530.70840.240353
23-0.008213-0.07480.470267
24-0.178444-1.62570.053902
25-0.052732-0.48040.316098
26-0.032713-0.2980.383214
27-0.045272-0.41250.340536
28-0.061204-0.55760.289311
29-0.116321-1.05970.14617
300.0221020.20140.420455
31-0.109423-0.99690.160857
32-0.104193-0.94920.172627
330.025420.23160.408716
34-0.093475-0.85160.198444
35-0.039534-0.36020.359815
36-0.075578-0.68850.246514
37-0.030361-0.27660.391386
380.1253381.14190.128393
39-0.024559-0.22370.411752
40-0.06066-0.55260.290997
410.0199970.18220.427943
420.0800080.72890.234054
43-0.031255-0.28470.388273
440.0643680.58640.279593
45-0.046661-0.42510.335931
460.0323080.29430.384616
47-0.126856-1.15570.125558
480.0066850.06090.47579
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/14/t1281783736djxjnmo231b5cte/1yzpt1281783760.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t1281783736djxjnmo231b5cte/1yzpt1281783760.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/14/t1281783736djxjnmo231b5cte/2yzpt1281783760.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/14/t1281783736djxjnmo231b5cte/2yzpt1281783760.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