Home » date » 2010 » Aug » 18 »

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: Wed, 18 Aug 2010 18:17:33 +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/18/t1282155446uafb5kkii0hf21y.htm/, Retrieved Wed, 18 Aug 2010 20:17:29 +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/18/t1282155446uafb5kkii0hf21y.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:
Patrick Fieremans
 
Dataseries X:
» Textbox « » Textfile « » CSV «
259 258 257 255 253 252 253 255 256 256 257 259 267 263 266 257 249 249 251 252 252 252 256 257 259 260 261 253 243 233 241 239 233 228 228 227 225 230 222 207 190 184 192 187 173 167 163 156 153 157 152 128 115 114 136 132 126 124 123 119 105 107 108 92 74 73 100 97 99 102 99 103 92 99 97 87 69 66 95 91 93 99 91 91
 
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.13581.23720.109752
2-0.263259-2.39840.009354
3-0.155012-1.41220.08081
40.0788080.7180.237394
50.1385121.26190.10526
6-0.176376-1.60690.055941
70.1397271.2730.10329
80.0807660.73580.23196
9-0.150481-1.37090.087044
10-0.246799-2.24840.013599
110.1015930.92560.178679
120.6999526.37690
130.1427981.30090.098438
14-0.250312-2.28040.012572
15-0.198644-1.80970.036979
160.0348590.31760.375799
170.0533290.48590.314175
18-0.134629-1.22650.111734
190.095770.87250.192724
200.0593920.54110.294947
21-0.168579-1.53580.064192
22-0.237211-2.16110.016785
230.0590340.53780.29607
240.4025523.66740.000216
250.050680.46170.322745
26-0.212253-1.93370.028278
27-0.244046-2.22340.014455
28-0.070543-0.64270.261103
29-0.002078-0.01890.49247
30-0.077997-0.71060.239665
310.0713320.64990.258786
320.0563410.51330.304556
33-0.141984-1.29350.099707
34-0.167639-1.52730.065249
350.056590.51560.303766
360.222352.02570.023004
37-0.040918-0.37280.355132
38-0.165586-1.50860.067604
39-0.181425-1.65290.051069
40-0.082442-0.75110.227364
41-0.02853-0.25990.397786
42-0.020915-0.19050.424675
430.0524980.47830.316853
440.0498730.45440.325378
45-0.047903-0.43640.331834
46-0.05762-0.52490.30051
470.0812710.74040.23057
480.1219871.11140.134813


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.13581.23720.109752
2-0.286993-2.61460.005303
3-0.077747-0.70830.240368
40.0458220.41750.338711
50.0640790.58380.280474
6-0.210475-1.91750.029306
70.307052.79740.003201
8-0.096426-0.87850.191109
9-0.129611-1.18080.120526
10-0.164206-1.4960.069225
110.2179691.98580.025179
120.5714975.20661e-06
130.0544480.4960.310588
14-0.043043-0.39210.347978
15-0.090578-0.82520.205811
16-0.076415-0.69620.244132
17-0.135039-1.23030.111037
180.0197420.17990.428853
19-0.050305-0.45830.323969
20-0.030516-0.2780.390845
21-0.07522-0.68530.247535
220.0038920.03550.4859
23-0.061094-0.55660.289652
24-0.194041-1.76780.040385
25-0.166001-1.51230.067123
26-0.009149-0.08330.466887
27-0.161655-1.47270.0723
28-0.136967-1.24780.107802
29-0.020174-0.18380.427313
30-0.020247-0.18450.427053
31-0.049738-0.45310.325816
320.0702830.64030.261867
33-0.00028-0.00260.498985
340.0704510.64180.261373
350.0523840.47720.317223
36-0.002727-0.02480.490118
37-0.11944-1.08810.13984
380.0019970.01820.492764
390.0082140.07480.470262
400.0819290.74640.228763
41-0.006447-0.05870.476652
420.0027890.02540.489894
43-0.121375-1.10580.136009
44-0.022697-0.20680.418345
450.0222390.20260.419969
460.0449280.40930.341681
47-0.008756-0.07980.468305
48-0.021982-0.20030.420882
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282155446uafb5kkii0hf21y/1m8s91282155452.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/18/t1282155446uafb5kkii0hf21y/1m8s91282155452.ps (open in new window)


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