Home » date » 2010 » Aug » 15 »

TIJDREEKS A - STAP 20

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 15 Aug 2010 19:35:13 +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/15/t1281900978el5dvj89nzcsni9.htm/, Retrieved Sun, 15 Aug 2010 21:36:20 +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/15/t1281900978el5dvj89nzcsni9.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:
De Cock Nicola
 
Dataseries X:
» Textbox « » Textfile « » CSV «
252 251 250 248 268 267 252 242 243 243 244 246 236 241 240 239 253 249 232 229 221 222 224 224 215 225 225 221 238 234 228 227 216 219 225 227 205 215 214 209 222 216 206 199 189 198 203 211 199 211 210 203 214 202 193 193 176 192 200 195 180 197 194 194 212 202 195 198 170 187 190 189 176 188 195 194 211 203 194 194 163 183 181 184 171 178 179 186 205 204 195 186 156 167 164 165 153 160 154 169 186 188 187 169 131 146 145 137 119 118 113 123 142 141 138 124 83 100 96 98
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.91819610.05830
20.8480189.28960
30.7849358.59850
40.7167827.8520
50.6872277.52820
60.6667417.30380
70.6352936.95930
80.6120246.70440
90.5916536.48120
100.5695716.23930
110.5579646.11220
120.5581726.11450
130.4971675.44620
140.4516114.94711e-06
150.4055074.44211e-05
160.3527643.86439.1e-05
170.3387913.71130.000157
180.3325213.64262e-04
190.3170073.47260.000359
200.3099933.39580.000464
210.302543.31420.000608
220.2920263.1990.000882
230.2956623.23880.000776
240.3059723.35180.000537
250.2660362.91430.002127
260.2362062.58750.00543
270.2000582.19150.015172
280.1594351.74650.04164
290.1540241.68730.047076
300.1471591.61210.054789
310.135631.48580.069984
320.1332681.45990.073468
330.1249611.36890.086798
340.1165951.27720.101992
350.1192561.30640.096959
360.1272151.39360.083011
370.1004361.10020.136719
380.083380.91340.181438
390.0586710.64270.260818
400.0229940.25190.400781
410.0236630.25920.397957
420.014410.15790.437419
430.0052560.05760.477093
440.012070.13220.447517
450.0089830.09840.460888
460.0089320.09780.461109
470.017230.18870.425308
480.0224580.2460.403046
490.0016380.01790.492859
50-0.011024-0.12080.452042
51-0.034452-0.37740.353269
52-0.064832-0.71020.239479
53-0.062143-0.68070.248674
54-0.071471-0.78290.217607
55-0.081255-0.89010.187595
56-0.07716-0.84520.199827
57-0.082534-0.90410.183872
58-0.086152-0.94370.173599
59-0.079273-0.86840.193457
60-0.077794-0.85220.197904


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.91819610.05830
20.0314420.34440.365562
30.0121230.13280.447288
4-0.061465-0.67330.251021
50.2057052.25340.013026
60.069140.75740.225152
7-0.055819-0.61150.271025
80.0214460.23490.407332
90.0604230.66190.254652
100.0223840.24520.403356
110.0396080.43390.332577
120.0938721.02830.152935
13-0.369996-4.05314.5e-05
140.0460310.50420.307508
15-0.02122-0.23250.408292
16-0.00939-0.10290.459122
170.0695360.76170.223858
180.0436320.4780.316773
19-0.018186-0.19920.421215
200.0026790.02930.488319
210.0803950.88070.190125
220.0127990.14020.444366
230.0559630.6130.270505
240.0240680.26370.396251
25-0.193575-2.12050.018011
26-0.016568-0.18150.428143
27-0.015781-0.17290.431521
280.0170550.18680.426056
290.0041520.04550.481898
30-0.04025-0.44090.330033
31-0.008852-0.0970.461456
320.00810.08870.464721
330.0455960.49950.309179
340.0178510.19550.422649
350.0033330.03650.485469
360.0170970.18730.425874
37-0.07103-0.77810.219024
380.0109370.11980.45242
39-0.000137-0.00150.499402
40-0.047995-0.52580.300013
410.0337760.370.356019
42-0.079829-0.87450.1918
430.0067910.07440.470412
440.0428830.46980.319689
450.0359020.39330.347404
460.0048450.05310.478881
47-0.013446-0.14730.441575
48-0.010701-0.11720.45344
49-0.053758-0.58890.278522
500.0246180.26970.393937
51-0.028264-0.30960.378693
52-0.024935-0.27310.392605
530.0054980.06020.476036
54-0.035564-0.38960.348766
55-0.028577-0.3130.377397
560.003360.03680.485349
570.043910.4810.315693
58-0.04195-0.45950.323337
590.0103410.11330.454999
60-0.009134-0.10010.460232
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281900978el5dvj89nzcsni9/1qodx1281900908.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281900978el5dvj89nzcsni9/1qodx1281900908.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/15/t1281900978el5dvj89nzcsni9/2qodx1281900908.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/15/t1281900978el5dvj89nzcsni9/2qodx1281900908.ps (open in new window)


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